Repository Analysis

activeadmin/activeadmin

The administration framework for Ruby on Rails applications.

4.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of activeadmin/activeadmin, a Ruby project with 9,705 GitHub stars. SynthScan v2.0 examined 38,518 lines of code across 390 source files, recording 131 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 4.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.7K
Stars
Ruby
Language
38.5K
Lines of Code
390
Files
131
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 0MEDIUM 12LOW 116

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 131 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block70 hits · 70 pts
SeverityFileLineSnippetContext
LOW…ollers/active_admin/resource_controller/data_access.rb61 endCOMMENT
LOW…ollers/active_admin/resource_controller/data_access.rb81 def method_for_association_chainCOMMENT
LOW…ollers/active_admin/resource_controller/data_access.rb161 #COMMENT
LOW…ollers/active_admin/resource_controller/data_access.rb201 #COMMENT
LOW…trollers/active_admin/base_controller/authorization.rb21 helper_method :authorize!COMMENT
LOW…trollers/active_admin/base_controller/authorization.rb41COMMENT
LOWapp/assets/config/active_admin_manifest.js1//= link_tree ../../javascript .jsCOMMENT
LOWspec/tasks/gemfile_spec.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin.rb81COMMENT
LOWlib/active_admin.rb101 #COMMENT
LOWlib/active_admin/scope.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/scope.rb21 # # => Scope with name 'Published' that does not display a countCOMMENT
LOWlib/active_admin/page_dsl.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/authorization_adapter.rb21 class AuthorizationAdapterCOMMENT
LOWlib/active_admin/authorization_adapter.rb41 # the action on the subject.COMMENT
LOWlib/active_admin/authorization_adapter.rb61 #COMMENT
LOWlib/active_admin/authorization_adapter.rb81 #COMMENT
LOWlib/active_admin/authorization_adapter.rb101 #COMMENT
LOWlib/active_admin/namespace.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/dependency.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/dependency.rb21 #COMMENT
LOWlib/active_admin/callbacks.rb41 # before_save do |arg1, arg2|COMMENT
LOWlib/active_admin/csv_builder.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/menu.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/application.rb161COMMENT
LOWlib/active_admin/page.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/resource.rb21 # Resource is the primary data storage for resource configuration in Active AdminCOMMENT
LOWlib/active_admin/resource_dsl.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/resource_dsl.rb41 # Store relations that should be includedCOMMENT
LOWlib/active_admin/resource_dsl.rb101 # For example:COMMENT
LOWlib/active_admin/resource_dsl.rb121 #COMMENT
LOWlib/active_admin/resource_dsl.rb161 config.decorator_class_name = "::#{ decorator_class }"COMMENT
LOWlib/active_admin/resource_dsl.rb201 #COMMENT
LOWlib/active_admin/page_presenter.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/menu_item.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/menu_item.rb21 # Default: underscored_resource_nameCOMMENT
LOWlib/active_admin/dsl.rb21 # modify options:COMMENT
LOWlib/active_admin/dsl.rb41 # dsl.sidebar "Help" doCOMMENT
LOWlib/active_admin/dsl.rb61 #COMMENT
LOWlib/active_admin/dsl.rb81 # @param [Symbol] nameCOMMENT
LOWlib/active_admin/dsl.rb121 def menu(options = {})COMMENT
LOWlib/active_admin/dsl.rb141 #COMMENT
LOWlib/active_admin/view_helpers/method_or_proc_helper.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/view_helpers/method_or_proc_helper.rb21 when Symbol, StringCOMMENT
LOWlib/active_admin/view_helpers/method_or_proc_helper.rb41 # call_method_or_proc_on(@my_obj, proc)COMMENT
LOWlib/active_admin/batch_actions/resource_extension.rb81COMMENT
LOWlib/active_admin/batch_actions/resource_extension.rb101 # => You can create batch actions with a title instead of a SymbolCOMMENT
LOWlib/active_admin/resource/action_items.rb21 #COMMENT
LOWlib/active_admin/resource/scope_to.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/resource/scope_to.rb21 # method to call as the association. If its different, you canCOMMENT
LOWlib/active_admin/views/index_as_table.rb1# frozen_string_literal: trueCOMMENT
LOWlib/active_admin/views/index_as_table.rb21 # ```COMMENT
LOWlib/active_admin/views/index_as_table.rb41 # Sometimes that just isn't enough and you need to write some view-specific code.COMMENT
LOWlib/active_admin/views/index_as_table.rb61 # index doCOMMENT
LOWlib/active_admin/views/index_as_table.rb81 #COMMENT
LOWlib/active_admin/views/index_as_table.rb101 #COMMENT
LOWlib/active_admin/views/index_as_table.rb121 #COMMENT
LOWlib/active_admin/views/index_as_table.rb141 # ```rubyCOMMENT
LOWlib/active_admin/views/index_as_table.rb161 #COMMENT
LOWlib/active_admin/views/index_as_table.rb181 # column :publisher, sortable: 'publishers.name'COMMENT
10 more matches not shown…
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALspec/unit/action_builder_spec.rb36 expect(Rails.application.routes.url_helpers.methods.collect(&:to_s)).to include("comment_admin_post_path")CODE
CRITICALspec/unit/action_builder_spec.rb92 expect(Rails.application.routes.url_helpers.methods.collect(&:to_s)).to include("comments_admin_posts_path")CODE
CRITICAL…/active_admin/views/components/paginated_collection.rb127 entry_name = I18n.translate key, count: 1, default: @collection.first.class.name.underscore.sub("_", " ")CODE
Self-Referential Comments9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…ollers/active_admin/resource_controller/data_access.rb90 # This method is used on all the member actions:COMMENT
MEDIUM…ollers/active_admin/resource_controller/data_access.rb120 # This method is used to instantiate and authorize new resources in theCOMMENT
MEDIUMlib/active_admin/scope.rb7 # Create a ScopeCOMMENT
MEDIUMlib/active_admin/pundit_adapter.rb63 # This method is needed to fallback to our previous policy searching logic.COMMENT
MEDIUMlib/active_admin/callbacks.rb32 # Define a new callback.COMMENT
MEDIUMlib/active_admin/resource_dsl.rb36 # Create a scopeCOMMENT
MEDIUMlib/active_admin/view_helpers/method_or_proc_helper.rb87 # This method is different from the others in that it calls `instance_exec` on the receiver,COMMENT
MEDIUMlib/active_admin/batch_actions/resource_extension.rb90 # Create a Batch ActionCOMMENT
MEDIUMlib/active_admin/resource/scopes.rb27 # Create a new scope object for this resource.COMMENT
Fake / Example Data20 hits · 22 pts
SeverityFileLineSnippetContext
LOWtasks/bug_report_template.rb119 User.create! full_name: "John Doe"CODE
LOWtasks/bug_report_template.rb121 assert_match "John Doe", response.body # has created rowCODE
LOWfeatures/step_definitions/user_steps.rb12 login_as ensure_user_created("admin@example.com"), scope: :admin_userCODE
LOWfeatures/step_definitions/user_steps.rb16 ensure_user_created "admin@example.com"CODE
LOWfeatures/step_definitions/user_steps.rb20 fill_in "Email", with: "admin@example.com"CODE
LOWspec/unit/comments_spec.rb172 body: "Lorem Ipsum",CODE
LOWspec/unit/views/components/attributes_table_spec.rb152 expect(table.find_by_tag("td").first.content).to eq "John Doe"CODE
LOWspec/support/rails_template_with_data.rb18 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWspec/support/rails_template_with_data.rb18 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWspec/support/templates_with_data/admin/posts.rb120 f.input :category, hint: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tincidunt porttitor massa CODE
LOWspec/support/templates_with_data/admin/posts.rb120 f.input :category, hint: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tincidunt porttitor massa CODE
LOWspec/helpers/breadcrumb_helper_spec.rb8 let(:user) { double display_name: "Jane Doe" }CODE
LOWspec/helpers/breadcrumb_helper_spec.rb111 expect(trail[2][:name]).to eq "Jane Doe"CODE
LOWspec/helpers/breadcrumb_helper_spec.rb209 expect(trail[2][:name]).to eq "Jane Doe"CODE
LOWspec/helpers/breadcrumb_helper_spec.rb237 expect(trail[2][:name]).to eq "Jane Doe"CODE
LOWspec/helpers/filter_form_helper_spec.rb367 expect(body).to have_css("option[value='#{@john.id}']", text: "John Doe")CODE
LOWspec/helpers/filter_form_helper_spec.rb368 expect(body).to have_css("option[value='#{@jane.id}']", text: "Jane Doe")CODE
LOWspec/helpers/filter_form_helper_spec.rb459 expect(body).to have_css("option[value='#{john.id}']", text: "John Doe")CODE
LOWspec/helpers/filter_form_helper_spec.rb460 expect(body).to have_css("option[value='#{jane.id}']", text: "Jane Doe")CODE
LOWlib/generators/active_admin/devise/devise_generator.rb63 create_user_code = "#{class_name}.create!(email: 'admin@example.com', password: 'password', password_confirmatioCODE
Hyper-Verbose Identifiers17 hits · 17 pts
SeverityFileLineSnippetContext
LOW…rollers/active_admin/resource_controller/decorators.rb12 def apply_collection_decorator(collection)CODE
LOW…ollers/active_admin/resource_controller/data_access.rb213 def apply_authorization_scope(collection)CODE
LOW…trollers/active_admin/base_controller/authorization.rb104 def dispatch_active_admin_access_denied(exception)CODE
LOW…trollers/active_admin/base_controller/authorization.rb108 def rescue_active_admin_access_denied(exception)CODE
LOWapp/helpers/active_admin/form_helper.rb62 def active_admin_filters_form_for(search, filters, options = {})CODE
LOWapp/helpers/active_admin/auto_link_helper.rb60 def active_admin_resource_for(klass)CODE
LOWspec/unit/devise_spec.rb17 def with_temp_relative_url_root(relative_url_root)CODE
LOWspec/requests/default_namespace_spec.rb65 def with_custom_default_namespace(namespace)CODE
LOWspec/support/active_admin_integration_spec_helper.rb66 def controller_with_decorator(action, decorator_class)CODE
LOWlib/active_admin/namespace.rb194 def register_resource_controller(config)CODE
LOWlib/active_admin/namespace.rb204 def parse_page_registration_block(config, &block)CODE
LOWlib/active_admin/callbacks.rb61 def define_active_admin_callbacks(*names)CODE
LOWlib/active_admin/resource.rb122 def resource_quoted_column_name(column)CODE
LOWlib/active_admin/resource.rb216 def define_resource_name_extension(resource)CODE
LOWlib/active_admin/view_helpers/method_or_proc_helper.rb78 def render_or_call_method_or_proc_on(obj, string_symbol_or_proc, options = {})CODE
LOW…/active_admin/views/components/paginated_collection.rb65 def build_pagination_with_formats(options)CODE
LOWlib/active_admin/views/components/status_tag.rb60 def convert_to_boolean_status(status)CODE
AI Slop Vocabulary6 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ollers/active_admin/resource_controller/data_access.rb225 chain # just return the chainCODE
LOWlib/active_admin/authorization_adapter.rb59 # default, we just return the same collection. The returned scope is usedCOMMENT
LOWlib/active_admin/application.rb109 # To reload everything simply call `ActiveAdmin.unload!`COMMENT
MEDIUMlib/active_admin/dsl.rb125 # Set the name of the navigation menu to display. This is mainly used in conjunction with theCOMMENT
LOWlib/active_admin/view_helpers/method_or_proc_helper.rb44 # not instance exec, but just call the Proc, then pass along `exec: false` inCOMMENT
LOWlib/active_admin/views/index_as_table.rb13 # To display an attribute or a method on a resource, simply pass a symbol into theCOMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWfeatures/step_definitions/table_steps.rb102# Usage:COMMENT
LOWlib/active_admin/csv_builder.rb5 # Usage example:COMMENT
LOWlib/active_admin/application.rb144 # Example usage:COMMENT
LOWlib/active_admin/page_presenter.rb9 # Usage:COMMENT
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMlib/active_admin/resource/scope_to.rb30 # To conditionally use this scope, you can use conditional procsCOMMENT
MEDIUMlib/active_admin/resource/scopes.rb28 # If you want to internationalize the scope name, you can addCOMMENT