Repository Analysis

AlDanial/cloc

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

6.1 Low AI signal View on GitHub

Analysis Overview

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

6.1
Adjusted Score
6.1
Raw Score
100%
Time Factor
2026-07-11
Last Push
23.3K
Stars
Perl
Language
32.4K
Lines of Code
684
Files
104
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 1HIGH 5MEDIUM 24LOW 74

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

Self-Referential Comments13 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMtests/inputs/utilities.R286 ## Create the interaction terms for nested effectsCOMMENT
MEDIUMtests/inputs/nomad_job.hcl33 # Create an individual task (unit of work). This particularCOMMENT
MEDIUMtests/inputs/issues/906/previous_version.py267 # Create a partial function with 'project' as a fixed argumentCOMMENT
MEDIUMtests/inputs/issues/906/previous_version.py273 # Create a ThreadPoolExecutor with the specified number of threadsCOMMENT
MEDIUMtests/inputs/issues/906/previous_version.py90 # Create a metadata objectCOMMENT
MEDIUMtests/inputs/issues/906/previous_version.py93 # Define the tbl_orcode_extension_mapping tableCOMMENT
MEDIUMtests/inputs/issues/906/previous_version.py114 # Create a connectionCOMMENT
MEDIUMtests/inputs/issues/906/current_version.py267 # Create a partial function with 'project' as a fixed argumentCOMMENT
MEDIUMtests/inputs/issues/906/current_version.py273 # Create a ThreadPoolExecutor with the specified number of threadsCOMMENT
MEDIUMtests/inputs/issues/906/current_version.py90 # Create a metadata objectCOMMENT
MEDIUMtests/inputs/issues/906/current_version.py93 # Define the tbl_orcode_extension_mapping tableCOMMENT
MEDIUMtests/inputs/issues/906/current_version.py114 # Create a connectionCOMMENT
MEDIUMtests/inputs/issues/606/in/nomad_job.hcl33 # Create an individual task (unit of work). This particularCOMMENT
Excessive Try-Catch Wrapping26 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMtests/inputs/issues/906/previous_version.py333 # print(f"An error occurred for branch {branch_name}: {e}")COMMENT
MEDIUMtests/inputs/issues/906/previous_version.py283 print(f"An error occurred: {e}")CODE
MEDIUMtests/inputs/issues/906/previous_version.py172 print(f"An error occurred for project {git_project_id}: {e}")CODE
MEDIUMtests/inputs/issues/906/previous_version.py80def mapTechExtensions(engine,or_code,logger):CODE
MEDIUMtests/inputs/issues/906/previous_version.py296def wrapper_function(branch_name, project):CODE
LOWtests/inputs/issues/906/previous_version.py256 except Exception as e:CODE
LOWtests/inputs/issues/906/previous_version.py281 except Exception as e:CODE
LOWtests/inputs/issues/906/previous_version.py331 except Exception as e:CODE
LOWtests/inputs/issues/906/previous_version.py342 except Exception as ex:CODE
LOWtests/inputs/issues/906/previous_version.py119 except Exception as e:CODE
LOWtests/inputs/issues/906/previous_version.py171 except Exception as e:CODE
LOWtests/inputs/issues/906/previous_version.py364 except Exception as ex:CODE
LOWtests/inputs/issues/906/previous_version.py377 except Exception as ex:CODE
MEDIUMtests/inputs/issues/906/current_version.py333 # print(f"An error occurred for branch {branch_name}: {e}")COMMENT
MEDIUMtests/inputs/issues/906/current_version.py283 print(f"An error occurred: {e}")CODE
MEDIUMtests/inputs/issues/906/current_version.py172 print(f"An error occurred for project {git_project_id}: {e}")CODE
MEDIUMtests/inputs/issues/906/current_version.py80def mapTechExtensions(engine,or_code,logger):CODE
MEDIUMtests/inputs/issues/906/current_version.py296def wrapper_function(branch_name, project):CODE
LOWtests/inputs/issues/906/current_version.py256 except Exception as e:CODE
LOWtests/inputs/issues/906/current_version.py281 except Exception as e:CODE
LOWtests/inputs/issues/906/current_version.py331 except Exception as e:CODE
LOWtests/inputs/issues/906/current_version.py342 except Exception as ex:CODE
LOWtests/inputs/issues/906/current_version.py119 except Exception as e:CODE
LOWtests/inputs/issues/906/current_version.py171 except Exception as e:CODE
LOWtests/inputs/issues/906/current_version.py364 except Exception as ex:CODE
LOWtests/inputs/issues/906/current_version.py377 except Exception as ex:CODE
Over-Commented Block42 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/inputs/Application_Data_Test.feature.cs1// ------------------------------------------------------------------------------COMMENT
LOWtests/inputs/csharp-designer.designer.cs1//------------------------------------------------------------------------------COMMENT
LOWtests/inputs/tour.swift1// https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedToCOMMENT
LOWtests/inputs/utilities.R1# from https://github.com/lme4/lme4COMMENT
LOWtests/inputs/utilities.R141 fl <- do.call(data.frame, c(fl, check.names = FALSE))COMMENT
LOWtests/inputs/utilities.R241COMMENT
LOWtests/inputs/utilities.R261##' ## => list of length 2: list ( 1 | cask:batch , 1 | batch)COMMENT
LOWtests/inputs/utilities.R321##' expand terms with the double vertical bar operatorCOMMENT
LOWtests/inputs/utilities.R361COMMENT
LOWtests/inputs/utilities.R401##' model.frame function.COMMENT
LOWtests/inputs/utilities.R661## (2) otherwise, if formula has an environment, use itCOMMENT
LOWtests/inputs/utilities.R741## }COMMENT
LOWtests/inputs/utilities.R761##' Not exported.COMMENT
LOWtests/inputs/messages.rb1#!/usr/local/bin/rubyCOMMENT
LOWtests/inputs/messages.rb21# along with this program; if not, write to the Free SoftwareCOMMENT
LOWtests/inputs/hello_app_autogen.go1// Code generated by manual copy DO NOT EDIT.COMMENT
LOWtests/inputs/TypeScript.ts1//COMMENT
LOWtests/inputs/hello_app.go1// https://raw.githubusercontent.com/golang/example/master/appengine-hello/app.goCOMMENT
LOWtests/inputs/locale_facets.h1// Locale support -*- C++ -*-COMMENT
LOWtests/inputs/locale_facets.h21// USA.COMMENT
LOWtests/inputs/locale_facets.h41#ifndef _LOCALE_FACETS_HCOMMENT
LOWtests/inputs/dd/bb/ee/TeapotRenderer.cpp21//--------------------------------------------------------------------------------COMMENT
LOWtests/inputs/dd/bb/cc/MoreTeapotsRenderer.cpp21//--------------------------------------------------------------------------------COMMENT
LOWtests/inputs/aa/bb/cc/plasma.c61#define FIXED_FROM_FLOAT(x) ((Fixed)((x)*FIXED_ONE))COMMENT
LOWtests/inputs/aa/bb/cc/plasma.c81#endifCOMMENT
LOW…sts/inputs/issues/753/Application_Data_Test.feature.cs1// ------------------------------------------------------------------------------COMMENT
LOWtests/inputs/issues/753/csharp-designer.designer.cs1//------------------------------------------------------------------------------COMMENT
LOWtests/inputs/issues/280/R/locale_facets.h1// Locale support -*- C++ -*-COMMENT
LOWtests/inputs/issues/280/R/locale_facets.h21// USA.COMMENT
LOWtests/inputs/issues/280/R/locale_facets.h41#ifndef _LOCALE_FACETS_HCOMMENT
LOWtests/inputs/issues/280/L/locale_facets.h1// Locale support -*- C++ -*-COMMENT
LOWtests/inputs/issues/280/L/locale_facets.h21// USA.COMMENT
LOWtests/inputs/issues/280/L/locale_facets.h41#ifndef _LOCALE_FACETS_HCOMMENT
LOWtests/inputs/issues/513/R/locale_facets.h1// Locale support -*- C++ -*-COMMENT
LOWtests/inputs/issues/513/R/locale_facets.h21// USA.COMMENT
LOWtests/inputs/issues/513/R/locale_facets.h41#ifndef _LOCALE_FACETS_HCOMMENT
LOWtests/inputs/issues/513/L/locale_facets.h1// Locale support -*- C++ -*-COMMENT
LOWtests/inputs/issues/513/L/locale_facets.h21// USA.COMMENT
LOWtests/inputs/issues/513/L/locale_facets.h41#ifndef _LOCALE_FACETS_HCOMMENT
LOWtests/inputs/issues/579/csharp-autogen.cs1//------------------------------------------------------------------------------COMMENT
LOWtests/inputs/issues/577/tour.swift1// https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedToCOMMENT
LOWtests/inputs/issues/577/tour2.swift1// https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedToCOMMENT
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHtests/inputs/Application_Data_Test.feature.cs3// This code was generated by SpecFlow (https://www.specflow.org/).COMMENT
HIGHtests/inputs/csharp-designer.designer.cs3// This code was generated by a tool.COMMENT
HIGH…sts/inputs/issues/753/Application_Data_Test.feature.cs3// This code was generated by SpecFlow (https://www.specflow.org/).COMMENT
HIGHtests/inputs/issues/753/csharp-designer.designer.cs3// This code was generated by a tool.COMMENT
HIGHtests/inputs/issues/579/csharp-autogen.cs3// This code was generated by a tool.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/inputs/issues/365/RSpecTests.java27 org.assertj.core.util.Files.currentFolder().getParent(), "lib/bootstrap/rspec.rb"CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/inputs/issues/906/previous_version.py195 # Check if the combination of or_code and extension already existsCOMMENT
LOWtests/inputs/issues/906/previous_version.py228 # Check if the extension already exists in master extension tableCOMMENT
LOWtests/inputs/issues/906/current_version.py195 # Check if the combination of or_code and extension already existsCOMMENT
LOWtests/inputs/issues/906/current_version.py228 # Check if the extension already exists in master extension tableCOMMENT
Hyper-Verbose Identifiers4 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/inputs/issues/906/previous_version.py260def list_file_extensions_all_branches(project):CODE
LOWtests/inputs/issues/906/previous_version.py304def list_file_extensions_recursive(project,branch_name, path=""):CODE
LOWtests/inputs/issues/906/current_version.py260def list_file_extensions_all_branches(project):CODE
LOWtests/inputs/issues/906/current_version.py304def list_file_extensions_recursive(project,branch_name, path=""):CODE
Unused Imports6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/inputs/issues/906/previous_version.py2CODE
LOWtests/inputs/issues/906/previous_version.py14CODE
LOWtests/inputs/issues/906/previous_version.py15CODE
LOWtests/inputs/issues/906/previous_version.py16CODE
LOWtests/inputs/issues/862/a.py2CODE
LOWtests/inputs/issues/862/b.py4CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/inputs/utilities.R436##' Does every level of f1 occur in conjunction with exactly one levelCOMMENT
Deep Nesting2 hits · 1 pts
SeverityFileLineSnippetContext
LOWtests/inputs/issues/906/previous_version.py80CODE
LOWtests/inputs/issues/906/previous_version.py304CODE