cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
This report presents the forensic synthetic code analysis of AlDanial/cloc, a Perl project with 23,292 GitHub stars. SynthScan v2.0 examined 32,359 lines of code across 684 source files, recording 104 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 6.1 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).
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.
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 104 distinct pattern matches across 10 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 |
|---|---|---|---|---|
| MEDIUM | tests/inputs/utilities.R | 286 | ## Create the interaction terms for nested effects | COMMENT |
| MEDIUM | tests/inputs/nomad_job.hcl | 33 | # Create an individual task (unit of work). This particular | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 267 | # Create a partial function with 'project' as a fixed argument | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 273 | # Create a ThreadPoolExecutor with the specified number of threads | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 90 | # Create a metadata object | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 93 | # Define the tbl_orcode_extension_mapping table | COMMENT |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 114 | # Create a connection | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 267 | # Create a partial function with 'project' as a fixed argument | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 273 | # Create a ThreadPoolExecutor with the specified number of threads | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 90 | # Create a metadata object | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 93 | # Define the tbl_orcode_extension_mapping table | COMMENT |
| MEDIUM | tests/inputs/issues/906/current_version.py | 114 | # Create a connection | COMMENT |
| MEDIUM | tests/inputs/issues/606/in/nomad_job.hcl | 33 | # Create an individual task (unit of work). This particular | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 333 | # print(f"An error occurred for branch {branch_name}: {e}") | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/previous_version.py | 283 | print(f"An error occurred: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 172 | print(f"An error occurred for project {git_project_id}: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 80 | def mapTechExtensions(engine,or_code,logger): | CODE |
| MEDIUM | tests/inputs/issues/906/previous_version.py | 296 | def wrapper_function(branch_name, project): | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 256 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 281 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 331 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 342 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 119 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 171 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 364 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 377 | except Exception as ex: | CODE |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 333 | # print(f"An error occurred for branch {branch_name}: {e}") | COMMENT |
| MEDIUM⚡ | tests/inputs/issues/906/current_version.py | 283 | print(f"An error occurred: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 172 | print(f"An error occurred for project {git_project_id}: {e}") | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 80 | def mapTechExtensions(engine,or_code,logger): | CODE |
| MEDIUM | tests/inputs/issues/906/current_version.py | 296 | def wrapper_function(branch_name, project): | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 256 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 281 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 331 | except Exception as e: | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 342 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 119 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 171 | except Exception as e: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 364 | except Exception as ex: | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 377 | except Exception as ex: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/Application_Data_Test.feature.cs | 1 | // ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/csharp-designer.designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/tour.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| LOW | tests/inputs/utilities.R | 1 | # from https://github.com/lme4/lme4 | COMMENT |
| LOW | tests/inputs/utilities.R | 141 | fl <- do.call(data.frame, c(fl, check.names = FALSE)) | COMMENT |
| LOW | tests/inputs/utilities.R | 241 | COMMENT | |
| LOW | tests/inputs/utilities.R | 261 | ##' ## => list of length 2: list ( 1 | cask:batch , 1 | batch) | COMMENT |
| LOW | tests/inputs/utilities.R | 321 | ##' expand terms with the double vertical bar operator | COMMENT |
| LOW | tests/inputs/utilities.R | 361 | COMMENT | |
| LOW | tests/inputs/utilities.R | 401 | ##' model.frame function. | COMMENT |
| LOW | tests/inputs/utilities.R | 661 | ## (2) otherwise, if formula has an environment, use it | COMMENT |
| LOW | tests/inputs/utilities.R | 741 | ## } | COMMENT |
| LOW | tests/inputs/utilities.R | 761 | ##' Not exported. | COMMENT |
| LOW | tests/inputs/messages.rb | 1 | #!/usr/local/bin/ruby | COMMENT |
| LOW | tests/inputs/messages.rb | 21 | # along with this program; if not, write to the Free Software | COMMENT |
| LOW | tests/inputs/hello_app_autogen.go | 1 | // Code generated by manual copy DO NOT EDIT. | COMMENT |
| LOW | tests/inputs/TypeScript.ts | 1 | // | COMMENT |
| LOW | tests/inputs/hello_app.go | 1 | // https://raw.githubusercontent.com/golang/example/master/appengine-hello/app.go | COMMENT |
| LOW | tests/inputs/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/dd/bb/ee/TeapotRenderer.cpp | 21 | //-------------------------------------------------------------------------------- | COMMENT |
| LOW | tests/inputs/dd/bb/cc/MoreTeapotsRenderer.cpp | 21 | //-------------------------------------------------------------------------------- | COMMENT |
| LOW | tests/inputs/aa/bb/cc/plasma.c | 61 | #define FIXED_FROM_FLOAT(x) ((Fixed)((x)*FIXED_ONE)) | COMMENT |
| LOW | tests/inputs/aa/bb/cc/plasma.c | 81 | #endif | COMMENT |
| LOW | …sts/inputs/issues/753/Application_Data_Test.feature.cs | 1 | // ------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/753/csharp-designer.designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/280/R/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/280/L/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/513/R/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 1 | // Locale support -*- C++ -*- | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 21 | // USA. | COMMENT |
| LOW | tests/inputs/issues/513/L/locale_facets.h | 41 | #ifndef _LOCALE_FACETS_H | COMMENT |
| LOW | tests/inputs/issues/579/csharp-autogen.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inputs/issues/577/tour.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| LOW | tests/inputs/issues/577/tour2.swift | 1 | // https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTo | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/inputs/Application_Data_Test.feature.cs | 3 | // This code was generated by SpecFlow (https://www.specflow.org/). | COMMENT |
| HIGH | tests/inputs/csharp-designer.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …sts/inputs/issues/753/Application_Data_Test.feature.cs | 3 | // This code was generated by SpecFlow (https://www.specflow.org/). | COMMENT |
| HIGH | tests/inputs/issues/753/csharp-designer.designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | tests/inputs/issues/579/csharp-autogen.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/inputs/issues/365/RSpecTests.java | 27 | org.assertj.core.util.Files.currentFolder().getParent(), "lib/bootstrap/rspec.rb" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 195 | # Check if the combination of or_code and extension already exists | COMMENT |
| LOW | tests/inputs/issues/906/previous_version.py | 228 | # Check if the extension already exists in master extension table | COMMENT |
| LOW | tests/inputs/issues/906/current_version.py | 195 | # Check if the combination of or_code and extension already exists | COMMENT |
| LOW | tests/inputs/issues/906/current_version.py | 228 | # Check if the extension already exists in master extension table | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/inputs/issues/906/previous_version.py | 260 | def list_file_extensions_all_branches(project): | CODE |
| LOW | tests/inputs/issues/906/previous_version.py | 304 | def list_file_extensions_recursive(project,branch_name, path=""): | CODE |
| LOW⚡ | tests/inputs/issues/906/current_version.py | 260 | def list_file_extensions_all_branches(project): | CODE |
| LOW | tests/inputs/issues/906/current_version.py | 304 | def list_file_extensions_recursive(project,branch_name, path=""): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 2 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 14 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 15 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 16 | CODE | |
| LOW | tests/inputs/issues/862/a.py | 2 | CODE | |
| LOW | tests/inputs/issues/862/b.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/inputs/utilities.R | 436 | ##' Does every level of f1 occur in conjunction with exactly one level | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/inputs/issues/906/previous_version.py | 80 | CODE | |
| LOW | tests/inputs/issues/906/previous_version.py | 304 | CODE |