A library for generating fake data such as names, addresses, and phone numbers.
This report presents the forensic synthetic code analysis of faker-ruby/faker, a Ruby project with 11,832 GitHub stars. SynthScan v2.0 examined 254,597 lines of code across 1136 source files, recording 762 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 3.0 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).
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 762 distinct pattern matches across 6 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 | CONTRIBUTING.md | 121 | - Set as `next` for new methods or methods with new features | COMMENT |
| LOW | test/test_helper.rb | 21 | YAML::ENGINE.yamler = 'psych' if defined? YAML::ENGINE | COMMENT |
| LOW | lib/faker.rb | 81 | def bothify(string) | COMMENT |
| LOW | lib/locales/en/bank.yml | 1 | # Most of the iban details and the idea were copied from: https://github.com/iulianu/iban-tools | COMMENT |
| LOW | lib/faker/music.rb | 21 | # Faker::Music.key #=> "A#" | COMMENT |
| LOW | lib/faker/music.rb | 41 | ## | COMMENT |
| LOW | lib/faker/music.rb | 61 | NOTE_LETTERS | COMMENT |
| LOW | lib/faker/music.rb | 81 | # | COMMENT |
| LOW | lib/faker/music.rb | 101 | # | COMMENT |
| LOW | lib/faker/music.rb | 121 | end | COMMENT |
| LOW | lib/faker/internet.rb | 21 | class << self | COMMENT |
| LOW | lib/faker/internet.rb | 101 | [Faker::Name.first_name, Faker::Name.last_name].map do |name| | COMMENT |
| LOW | lib/faker/internet.rb | 181 | # Returns the domain name | COMMENT |
| LOW | lib/faker/internet.rb | 221 | # | COMMENT |
| LOW | lib/faker/internet.rb | 261 | COMMENT | |
| LOW | lib/faker/internet.rb | 281 | # @return [String] | COMMENT |
| LOW | lib/faker/internet.rb | 301 | ## | COMMENT |
| LOW | lib/faker/internet.rb | 341 | # | COMMENT |
| LOW | lib/faker/internet.rb | 381 | # Returns Ipv4 address with CIDR, range from 1 to 31 | COMMENT |
| LOW | lib/faker/internet.rb | 401 | end | COMMENT |
| LOW | lib/faker/internet.rb | 421 | # @param scheme [String] | COMMENT |
| LOW | lib/faker/internet.rb | 441 | # Faker::Internet.slug #=> "repudiandae-sed" | COMMENT |
| LOW | lib/faker/internet.rb | 461 | end | COMMENT |
| LOW | lib/faker/internet.rb | 481 | ## | COMMENT |
| LOW | lib/faker/internet.rb | 501 | # @return [String] | COMMENT |
| LOW | lib/faker/internet.rb | 541 | COMMENT | |
| LOW | lib/faker/music/rush.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/pearl_jam.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/pearl_jam.rb | 21 | # Produces the name of an album by Pearl Jam. | COMMENT |
| LOW | lib/faker/music/hiphop.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/hiphop.rb | 21 | # Produces the name of a Hip Hop Group | COMMENT |
| LOW | lib/faker/music/smashing_pumpkins.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/smashing_pumpkins.rb | 21 | # Produces the name of an album by the Smashing Pumpkins. | COMMENT |
| LOW | lib/faker/music/smashing_pumpkins.rb | 41 | # | COMMENT |
| LOW | lib/faker/music/prince.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/prince.rb | 21 | ## | COMMENT |
| LOW | lib/faker/music/prince.rb | 41 | # Faker::Music::Prince.album #=> "The Gold Experience" | COMMENT |
| LOW | lib/faker/music/grateful_dead.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/rock_band.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/phish.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/phish.rb | 21 | # Produces the name of a musician in Phish. | COMMENT |
| LOW | lib/faker/music/opera.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/music/opera.rb | 21 | ## | COMMENT |
| LOW | lib/faker/music/opera.rb | 41 | # | COMMENT |
| LOW | lib/faker/music/opera.rb | 61 | # Produces the title of an opera by Wolfgang Amadeus Mozart. | COMMENT |
| LOW | lib/faker/music/opera.rb | 81 | # | COMMENT |
| LOW | lib/faker/music/opera.rb | 101 | # Produces the title of an opera by Christoph Willibald Gluck. | COMMENT |
| LOW | lib/faker/music/opera.rb | 121 | # | COMMENT |
| LOW | lib/faker/music/opera.rb | 141 | # Produces the title of an opera by Ludwig van Beethoven. | COMMENT |
| LOW | lib/faker/music/opera.rb | 161 | # @faker.version next | COMMENT |
| LOW | lib/faker/music/opera.rb | 181 | # | COMMENT |
| LOW | lib/faker/music/opera.rb | 201 | def schumann | COMMENT |
| LOW | lib/faker/music/opera.rb | 221 | # @return [String] | COMMENT |
| LOW | lib/faker/music/opera.rb | 241 | fetch('opera.french.by_maurice_ravel') | COMMENT |
| LOW | lib/faker/music/opera.rb | 261 | # | COMMENT |
| LOW | lib/faker/music/bossa_nova.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/quotes/chiquito.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/faker/quotes/chiquito.rb | 21 | # Produces a concept from Chiquito | COMMENT |
| LOW | lib/faker/quotes/chiquito.rb | 41 | # | COMMENT |
| LOW | lib/faker/quotes/shakespeare.rb | 1 | # frozen_string_literal: true | COMMENT |
| 676 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/faker/default/test_faker_id_number.rb | 279 | def assert_valid_south_african_id_number(sample) | CODE |
| LOW | lib/faker/internet.rb | 564 | def sanitize_email_local_part(local_part) | CODE |
| LOW | lib/faker/default/id_number.rb | 296 | def croatian_id_checksum_digit(digits) | CODE |
| LOW | lib/faker/default/id_number.rb | 311 | def chilean_verification_code(digits) | CODE |
| LOW | lib/faker/default/id_number.rb | 331 | def south_african_id_checksum_digit(id_number) | CODE |
| LOW⚡ | lib/faker/default/id_number.rb | 349 | def brazilian_citizen_number_checksum_digit(digits) | CODE |
| LOW⚡ | lib/faker/default/id_number.rb | 354 | def brazilian_id_checksum_digit(digits) | CODE |
| LOW⚡ | lib/faker/default/id_number.rb | 359 | def brazilian_document_checksum(digits) | CODE |
| LOW | lib/faker/default/id_number.rb | 370 | def brazilian_citizen_number_digit(remainder) | CODE |
| LOW | lib/faker/default/barcode.rb | 30 | def ean_with_composite_symbology(length = 8) | CODE |
| LOW | lib/faker/default/measurement.rb | 141 | def define_measurement_locale(amount, locale) | CODE |
| LOW | lib/faker/default/code.rb | 283 | def generate_nric_check_alphabet(values, prefix) | CODE |
| LOW | lib/faker/default/company.rb | 178 | def spanish_organisation_number(organization_type: nil) | CODE |
| LOW | lib/faker/default/company.rb | 325 | def polish_register_of_national_economy(length: 9) | CODE |
| LOW | lib/faker/default/company.rb | 639 | def spanish_cif_control_digit(organization_type, code) | CODE |
| LOW | lib/faker/travel/train_station.rb | 29 | def fill_missing_inputs_with_samples(region, type) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 699 | * Add exclude_words keyword to Lorem Ipsum to prevent words from being produced by @philipfong in #2665 | COMMENT |
| LOW | doc/default/markdown.md | 5 | Generates markdown formatting with Lorem Ipsum text | CODE |
| LOW | doc/default/omniauth.md | 13 | :name => "John Doe", | CODE |
| LOW | doc/default/omniauth.md | 30 | :name => "John Doe", | CODE |
| LOW | doc/default/omniauth.md | 164 | "name"=>"John Doe", | CODE |
| LOW | doc/default/omniauth.md | 166 | "nickname"=>"John Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/faker/default/test_array_sample_method_compat.rb | 8 | # Under Ruby 1.9, they simply use the built-in Array#sample method | COMMENT |
| MEDIUM | lib/faker/default/company.rb | 79 | # Faker::Company.bs #=> "empower customized functionalities" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/faker/default/company.rb | 480 | # Check if state code is valid | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/locales/en/heroes_of_the_storm.yml | 116 | - Don't forget to check the pocket! | CODE |