Repository Analysis

cucumber/cucumber-ruby

Cucumber for Ruby. It's amazing!

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cucumber/cucumber-ruby, a Ruby project with 5,213 GitHub stars. SynthScan v2.0 examined 28,246 lines of code across 412 source files, recording 102 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.4 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.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-08-02
Last Push
5.2K
Stars
Ruby
Language
28.2K
Lines of Code
412
Files
102
Pattern Hits
2026-08-02
Scan Date
0.00
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 0MEDIUM 10LOW 92

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 102 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.

Hyper-Verbose Identifiers56 hits · 58 pts
SeverityFileLineSnippetContext
LOWfeatures/lib/support/json.rb34 def normalise_json_step_or_hook(step_or_hook)CODE
LOWfeatures/lib/support/json.rb44 def update_json_step_or_hook_error_message(step_or_hook)CODE
LOWspec/cucumber/configuration_spec.rb27 def given_the_following_files(*files)CODE
LOWspec/cucumber/cli/configuration_spec.rb6 def given_cucumber_yml_defined_as(hash_or_string)CODE
LOWspec/cucumber/cli/configuration_spec.rb12 def given_the_following_files(*files)CODE
LOWspec/cucumber/cli/options_spec.rb7 def given_cucumber_yml_defined_as(hash_or_string)CODE
LOWspec/cucumber/cli/profile_loader_spec.rb8 def given_cucumber_yml_defined_as(hash_or_string)CODE
LOWspec/cucumber/formatter/json_spec.rb800 def normalise_json_step_or_hook(step_or_hook)CODE
LOWlib/cucumber/repository.rb116 def update_test_case_finished(test_case_finished)CODE
LOWlib/cucumber/repository.rb120 def update_test_run_hook_started(test_run_hook_started)CODE
LOWlib/cucumber/repository.rb124 def update_test_run_hook_finished(test_run_hook_finished)CODE
LOWlib/cucumber/repository.rb132 def update_test_step_finished(test_step_finished)CODE
LOWlib/cucumber/query.rb114 def find_most_severe_test_step_result_by(message)CODE
LOWlib/cucumber/query.rb174 def find_test_case_started_by(message)CODE
LOWlib/cucumber/query.rb182 def find_test_case_finished_by(test_case_started)CODE
LOWlib/cucumber/query.rb198 def find_test_run_hook_started_by(test_run_hook_finished)CODE
LOWlib/cucumber/query.rb206 def find_test_run_hook_finished_by(test_run_hook_started)CODE
LOWlib/cucumber/query.rb230 def find_test_steps_started_by(message)CODE
LOWlib/cucumber/query.rb239 def find_test_steps_finished_by(message)CODE
LOWlib/cucumber/configuration.rb270 def register_snippet_generator(generator)CODE
LOWlib/cucumber/configuration.rb293 def with_default_features_path(paths)CODE
LOWlib/cucumber/configuration.rb299 def remove_excluded_files_from(files)CODE
LOWlib/cucumber/glue/snippet.rb52 def replace_and_count_capturing_groups(pattern)CODE
LOWlib/cucumber/glue/snippet.rb175 def append_block_parameter_to(array)CODE
LOWlib/cucumber/glue/snippet.rb189 def append_block_parameter_to(array)CODE
LOWlib/cucumber/glue/snippet.rb202 def append_block_parameter_to(array); endCODE
LOWlib/cucumber/glue/registry_and_more.rb84 def register_rb_step_definition(string_or_regexp, proc_or_sym, options)CODE
LOWlib/cucumber/glue/registry_and_more.rb210 def test_run_hook_started_envelope(hook, id)CODE
LOWlib/cucumber/glue/registry_and_more.rb221 def test_run_hook_finished_envelope(test_result, test_run_hook_started_id)CODE
LOWlib/cucumber/glue/dsl.rb29 def register_rb_step_definition(regexp, proc_or_sym, options = {})CODE
LOWlib/cucumber/glue/dsl.rb141 def register_rb_step_definition(regexp, symbol = nil, options = {}, &proc)CODE
LOWlib/cucumber/cli/options.rb538 def indicate_invalid_language_and_exit(lang)CODE
LOWlib/cucumber/formatter/usage.rb40 def on_step_definition_registered(event)CODE
LOWlib/cucumber/formatter/json.rb302 def create_id_from_scenario_source(scenario_source)CODE
LOWlib/cucumber/formatter/json.rb319 def create_tags_array_from_hash_array(tags)CODE
LOWlib/cucumber/formatter/json.rb325 def create_tags_array_from_tags_array(tags)CODE
LOWlib/cucumber/formatter/ast_lookup.rb77 def process_scenario_container(container)CODE
LOWlib/cucumber/formatter/ast_lookup.rb110 def process_scenario_container(container)CODE
LOWlib/cucumber/formatter/ast_lookup.rb122 def store_scenario_source_steps(scenario)CODE
LOWlib/cucumber/formatter/ast_lookup.rb128 def store_background_source_steps(background)CODE
LOWlib/cucumber/formatter/ast_lookup.rb147 def process_scenario_container(container, original_previous_node)CODE
LOWlib/cucumber/formatter/message_builder.rb101 def on_hook_test_step_created(event)CODE
LOWlib/cucumber/formatter/message_builder.rb284 def generate_snippet_envelope(snippet_text_proc, event)CODE
LOWlib/cucumber/formatter/message_builder.rb298 def on_undefined_parameter_type(event)CODE
LOWlib/cucumber/formatter/message_builder.rb327 def step_match_arguments_lists(step)CODE
LOWlib/cucumber/formatter/message_builder.rb345 def argument_group_to_message(group)CODE
LOWlib/cucumber/formatter/message_builder.rb382 def fake_query_step_definition_ids(test_step)CODE
LOWlib/cucumber/formatter/message_builder.rb386 def fake_query_step_match_arguments(test_step)CODE
LOWlib/cucumber/formatter/pretty.rb153 def find_exception_to_be_printed(result)CODE
LOWlib/cucumber/formatter/pretty.rb168 def calculate_source_indent_for_ast_node(ast_node)CODE
LOWlib/cucumber/formatter/pretty.rb178 def calculate_source_indent_for_expanded_test_case(test_case, scenario_keyword, expanded_name)CODE
LOWlib/cucumber/formatter/message_handlers.rb8 def store_current_test_run_hook_started_id(event)CODE
LOWlib/cucumber/formatter/unicode.rb28 def cucumber_preprocess_output(*out)CODE
LOWlib/cucumber/formatter/console.rb122 def collect_undefined_parameter_type_names(undefined_parameter_type)CODE
LOWlib/cucumber/formatter/console.rb192 def do_print_profile_information(profiles)CODE
LOWlib/cucumber/formatter/console.rb202 def do_print_undefined_parameter_type_snippet(type_name)CODE
Over-Commented Block35 hits · 35 pts
SeverityFileLineSnippetContext
LOW.rubocop_todo.yml1# This configuration was generated byCOMMENT
LOWcompatibility/features/empty/empty_steps.rb1# frozen_string_literal: trueCOMMENT
LOW.github/lock.yaml21# Limit to only `issues` or `pulls`COMMENT
LOWlib/cucumber/step_match.rb41 #COMMENT
LOWlib/cucumber/running_test_case.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/events.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/query.rb21 endCOMMENT
LOWlib/cucumber/glue/step_definition.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/glue/registry_wrapper.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/glue/proto_world.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/glue/proto_world.rb21 # | name | email |COMMENT
LOWlib/cucumber/glue/proto_world.rb41 superCOMMENT
LOWlib/cucumber/glue/proto_world.rb61 # })COMMENT
LOWlib/cucumber/glue/dsl.rb41 # symbols are the namespaces.COMMENT
LOWlib/cucumber/glue/dsl.rb121 # Use it for your final clean-upsCOMMENT
LOWlib/cucumber/gherkin/formatter/ansi_escapes.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/gherkin/formatter/ansi_escapes.rb21 # <tt>outline</tt>:: defaults to <tt>cyan</tt>COMMENT
LOWlib/cucumber/term/ansicolor.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/rake/task.rb21 # To further configure the task, you can pass a block:COMMENT
LOWlib/cucumber/runtime/meta_message_builder.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/runtime/meta_message_builder.rb21 # - revision: the revision of the git repository (e.g. abcdef)COMMENT
LOWlib/cucumber/runtime/user_interface.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/formatter/ansicolor.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/formatter/ansicolor.rb21 # class MyFormatterCOMMENT
LOWlib/cucumber/formatter/ansicolor.rb41 # The colours that you can change are:COMMENT
LOWlib/cucumber/formatter/console.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/multiline_argument/data_table.rb1# frozen_string_literal: trueCOMMENT
LOWlib/cucumber/multiline_argument/data_table.rb121 # | 7 | 9 |COMMENT
LOWlib/cucumber/multiline_argument/data_table.rb141 #COMMENT
LOWlib/cucumber/multiline_argument/data_table.rb161 endCOMMENT
LOWlib/cucumber/multiline_argument/data_table.rb221 #COMMENT
LOWlib/cucumber/multiline_argument/data_table.rb241 #COMMENT
LOWlib/cucumber/multiline_argument/data_table.rb261 def map_headers(mappings = {}, &block)COMMENT
LOWlib/cucumber/multiline_argument/data_table.rb281 endCOMMENT
LOWlib/cucumber/multiline_argument/data_table.rb301 # A Different error is raised if there are missing rows or columns, orCOMMENT
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMlib/cucumber/runtime.rb175 # Define the MessageBuilder - Required until all messages are generated at the sourceCOMMENT
MEDIUMlib/cucumber/glue/dsl.rb7 # This module provides the methods the DSL you can use to defineCOMMENT
MEDIUMlib/cucumber/glue/dsl.rb43 # This method is typically called from one or more Ruby scripts underCOMMENT
MEDIUMlib/cucumber/formatter/ansicolor.rb94 # Define the color-named methods required by Term::ANSIColor.COMMENT
MEDIUMlib/cucumber/formatter/console.rb9 # This module contains helper methods that are used by formatters thatCOMMENT
Slop Phrases4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMlib/cucumber/glue/dsl.rb7 # This module provides the methods the DSL you can use to defineCOMMENT
MEDIUMlib/cucumber/gherkin/formatter/ansi_escapes.rb10 # The colours that you can change are:COMMENT
MEDIUMlib/cucumber/gherkin/formatter/ansi_escapes.rb40 # Although not listed, you can also use <tt>grey</tt>COMMENT
MEDIUMlib/cucumber/formatter/ansicolor.rb41 # The colours that you can change are:COMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWlib/cucumber/runtime.rb242 # TODO: can we just use Glue::RegistryAndMore's step definitions directly?COMMENT
MEDIUMlib/cucumber/glue/proto_world.rb46 # Useful in conjunction with the #step method.COMMENT