Acceptance test framework for web applications
This report presents the forensic synthetic code analysis of teamcapybara/capybara, a Ruby project with 10,165 GitHub stars. SynthScan v2.0 examined 38,610 lines of code across 273 source files, recording 229 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 6.7 places this repository in the Low AI signal 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 229 distinct pattern matches across 5 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 781 | page.find(:field, 'Greeting') == page.find_field('Greeting') # => true | COMMENT |
| LOW | .github/lock.yml | 21 | COMMENT | |
| LOW | .github/workflows/build.yml | 101 | # - uses: actions/checkout@v6 | COMMENT |
| LOW | .github/workflows/build.yml | 121 | # - uses: actions/checkout@v6 | COMMENT |
| LOW | lib/capybara.rb | 21 | class InfiniteRedirectError < CapybaraError; end | COMMENT |
| LOW | lib/capybara.rb | 41 | # See {Capybara.configure} | COMMENT |
| LOW | lib/capybara.rb | 61 | ## | COMMENT |
| LOW | lib/capybara.rb | 81 | # - **default_normalize_ws** (Boolean = `false`) - Whether text predicates and matchers use normalize whitespace beh | COMMENT |
| LOW | lib/capybara.rb | 101 | # - **server_errors** (Array\<Class> = `[Exception]`) - Error classes that should be raised in the tests if they are | COMMENT |
| LOW | lib/capybara.rb | 121 | # | COMMENT |
| LOW | lib/capybara.rb | 141 | # Rack::Handler::WEBrick.run(app, ...) | COMMENT |
| LOW | lib/capybara.rb | 161 | # xpath { |num| ".//tbody/tr[#{num}]" } | COMMENT |
| LOW | lib/capybara.rb | 181 | # | COMMENT |
| LOW | lib/capybara.rb | 221 | # anchor[:href] #=> 'foo' | COMMENT |
| LOW | lib/capybara.rb | 241 | Capybara::Node::Simple.new(html) | COMMENT |
| LOW | lib/capybara.rb | 321 | # | COMMENT |
| LOW | lib/capybara/helpers.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/helpers.rb | 41 | ## | COMMENT |
| LOW | lib/capybara/result.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/session.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/session.rb | 21 | # current values of the global options and a configuration block can be passed to the session initializer. | COMMENT |
| LOW | lib/capybara/session.rb | 221 | # | COMMENT |
| LOW | lib/capybara/session.rb | 241 | # session.visit('http://google.com') | COMMENT |
| LOW | lib/capybara/session.rb | 301 | ## | COMMENT |
| LOW | lib/capybara/session.rb | 321 | # Not supported by Rack Test | COMMENT |
| LOW | lib/capybara/session.rb | 341 | # | COMMENT |
| LOW | lib/capybara/session.rb | 381 | end | COMMENT |
| LOW | lib/capybara/session.rb | 461 | Window.new(self, driver.current_window_handle) | COMMENT |
| LOW | lib/capybara/session.rb | 501 | # window = switch_to_window { title == 'Page title' } | COMMENT |
| LOW | lib/capybara/session.rb | 521 | _switch_to_window(window, **options, &window_locator) | COMMENT |
| LOW | lib/capybara/session.rb | 561 | _switch_to_window(original) unless original == window_or_proc | COMMENT |
| LOW | lib/capybara/session.rb | 601 | # @param [String] script A string of JavaScript to execute | COMMENT |
| LOW | lib/capybara/session.rb | 641 | # Execute the block, accepting a alert. | COMMENT |
| LOW | lib/capybara/session.rb | 661 | end | COMMENT |
| LOW | lib/capybara/session.rb | 681 | end | COMMENT |
| LOW | lib/capybara/session.rb | 701 | dismiss_modal(:prompt, text, options, &blk) | COMMENT |
| LOW | lib/capybara/session.rb | 721 | COMMENT | |
| LOW | lib/capybara/session.rb | 741 | # and file will be given randomly generated filename. If invoked with a relative path | COMMENT |
| LOW | lib/capybara/selector.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/selector.rb | 21 | # * **:xpath** - Select elements by XPath expression | COMMENT |
| LOW | lib/capybara/selector.rb | 41 | # | COMMENT |
| LOW | lib/capybara/selector.rb | 61 | # * :valid (Boolean) - Match fields that are valid/invalid according to HTML5 form validation | COMMENT |
| LOW | lib/capybara/selector.rb | 81 | # page.html # => '<fieldset disabled> | COMMENT |
| LOW | lib/capybara/selector.rb | 101 | # page.html # => '<a href="/"><img src="/logo.png" alt="The logo"></a>' | COMMENT |
| LOW | lib/capybara/selector.rb | 121 | # page.html # => '<button name="article[state]" value="draft">Save as draft</button>' | COMMENT |
| LOW | lib/capybara/selector.rb | 141 | # * **:fillable_field** - Find text fillable fields ( textarea, input [not of type submit, image, radio, checkbox, hidde | COMMENT |
| LOW | lib/capybara/selector.rb | 161 | # ``` | COMMENT |
| LOW | lib/capybara/selector.rb | 181 | # page.find :radio_button, 'Published', checked: true | COMMENT |
| LOW | lib/capybara/selector.rb | 201 | # page.find :checkbox, 'I agree to terms and conditions', unchecked: true | COMMENT |
| LOW | lib/capybara/selector.rb | 221 | # # <option value="General" checked></option> | COMMENT |
| LOW | lib/capybara/selector.rb | 241 | # ```ruby | COMMENT |
| LOW | lib/capybara/selector.rb | 261 | # | COMMENT |
| LOW | lib/capybara/selector.rb | 281 | # * Filters: | COMMENT |
| LOW | lib/capybara/selector.rb | 301 | # * :name (String, Regexp) - Matches the name attribute | COMMENT |
| LOW | lib/capybara/selector.rb | 321 | # ```ruby | COMMENT |
| LOW | lib/capybara/selector.rb | 341 | # # <caption>A table</caption> | COMMENT |
| LOW | lib/capybara/selector.rb | 361 | # page.find :table, with_rows: [ | COMMENT |
| LOW | lib/capybara/selector.rb | 381 | # # <tr> | COMMENT |
| LOW | lib/capybara/selector.rb | 401 | # * Filters: | COMMENT |
| LOW | lib/capybara/config.rb | 41 | # By default, Capybara will try to use puma. | COMMENT |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | lib/capybara/spec/public/jquery-ui.js | 6 | (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a, | CODE |
| CRITICAL | lib/capybara/spec/public/jquery-ui.js | 8 | return e.datepicker._get(n,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String. | CODE |
| CRITICAL | lib/capybara/spec/public/jquery.js | 4 | marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/capybara/selector/definition.rb | 47 | # Define a selector by an xpath expression | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 65 | # Define a selector by a CSS selector | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 133 | # Define a node filter for use with this selector | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 150 | # Define an expression filter for use with this selector | COMMENT |
| MEDIUM | lib/capybara/node/base.rb | 44 | # This method is Capybara's primary defence against asynchronicity | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/regexp_dissassembler_spec.rb | 244 | def verify_alternated_strings(hsh, wrap: false) | CODE |
| LOW | lib/capybara/selenium/atoms/src/isDisplayed.js | 392 | function getParentNodeInComposedDom(node) { | CODE |
| LOW | lib/capybara/selenium/extensions/scroll.rb | 32 | def scroll_element_to_location(element, location) | CODE |
| LOW | lib/capybara/selector/definition.rb | 180 | def describe_expression_filters(&block) | CODE |
| LOW | lib/capybara/selector/definition.rb | 190 | def describe_all_expression_filters(**opts) | CODE |
| LOW | lib/capybara/selector/builders/xpath_builder.rb | 62 | def regexp_to_xpath_conditions(regexp) | CODE |
| LOW | lib/capybara/selector/definition/table.rb | 92 | def row_match_cells_to_headers(row) | CODE |
| LOW | lib/capybara/spec/spec_helper.rb | 131 | def be_an_invalid_element_error(session) | CODE |
| LOW | lib/capybara/queries/selector_query.rb | 242 | def find_nodes_by_selector_format(node, exact) | CODE |
| LOW | lib/capybara/rack_test/browser.rb | 54 | def process_and_follow_redirects(method, path, attributes = {}, env = {}) | CODE |
| LOW | lib/capybara/node/whitespace_normalizer.rb | 71 | def normalize_visible_spacing(text) | CODE |
| LOW | lib/capybara/node/matchers.rb | 602 | def assert_not_matches_selector(*args, &optional_filter_block) | CODE |
| LOW | lib/capybara/node/matchers.rb | 894 | def _set_query_session_options(*query_args) | CODE |
| LOW | lib/capybara/node/actions.rb | 310 | def find_select_or_datalist_input(from, options) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 119 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 163 | User.create(email: 'user@example.com', password: 'password') | CODE |
| LOW | README.md | 169 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 194 | User.create(email: 'user@example.com', password: 'caplin') | CODE |
| LOW | README.md | 200 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 999 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 1070 | session.fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 14 | expect(el.ancestor('//p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 37 | expect(el.ancestor(:css, 'p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 50 | expect(el.ancestor(:xpath, '//p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/all_spec.rb | 65 | expect(paras[0]).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/node/matchers.rb | 733 | # page.has_text?('lorem ipsum', between: 2..4) | COMMENT |