Repository Analysis

darklang/dark

Darklang main repo, including language, backend, and infra

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of darklang/dark, a F# project with 2,167 GitHub stars. SynthScan v2.0 examined 18,259 lines of code across 116 source files, recording 54 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.5 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).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.2K
Stars
F#
Language
18.3K
Lines of Code
116
Files
54
Pattern Hits
2026-08-09
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 3LOW 51

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 54 distinct pattern matches across 7 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 Identifiers32 hits · 36 pts
SeverityFileLineSnippetContext
LOWscripts/testing/test-build-planning.py104 def test_fsharp_source_takes_a_quick_build_in_dev_and_a_full_one_in_ci(self):CODE
LOWscripts/testing/test-build-planning.py114 def test_fsproj_takes_a_full_build(self):CODE
LOWscripts/testing/test-build-planning.py117 def test_dark_package_reloads_packages(self):CODE
LOWscripts/testing/test-build-planning.py121 def test_migration_runs_migrations(self):CODE
LOWscripts/testing/test-build-planning.py124 def test_unrecognised_file_routes_nowhere(self):CODE
LOWscripts/testing/test-build-planning.py138 def test_fsharp_change_reaches_the_package_reload(self):CODE
LOWscripts/testing/test-build-planning.py148 def test_full_build_replaces_the_quick_one(self):CODE
LOWscripts/testing/test-build-planning.py153 def test_tests_are_not_planned_unless_asked_for(self):CODE
LOWscripts/testing/test-build-planning.py161 def test_a_full_build_satisfies_a_file_wanting_a_quick_one(self):CODE
LOWscripts/testing/test-build-planning.py167 def test_a_quick_build_does_not_satisfy_a_file_wanting_a_full_one(self):CODE
LOWscripts/testing/test-build-planning.py174 def test_editor_temp_files_are_ignored(self):CODE
LOWscripts/testing/test-build-planning.py183 def test_gitignored_paths_are_ignored(self):CODE
LOWscripts/testing/test-build-planning.py191 def test_no_index_means_build_everything(self):CODE
LOWscripts/testing/test-build-planning.py195 def test_a_touched_file_with_the_same_contents_is_not_changed(self):CODE
LOWscripts/testing/test-build-planning.py204 def test_an_edited_file_is_changed(self):CODE
LOWscripts/testing/test-build-planning.py211 def test_a_deleted_file_is_changed(self):CODE
LOWscripts/testing/test-build-planning.py218 def test_roots_narrow_the_comparison(self):CODE
LOWscripts/testing/test-build-planning.py227 def test_a_file_needing_no_action_stops_being_offered(self):CODE
LOWscripts/testing/test-build-planning.py399 def test_a_lint_only_build_does_not_claim_the_tree_is_built(self):CODE
LOWscripts/testing/test-build-planning.py405 def test_a_skipped_build_step_does_not_count_as_built(self):CODE
LOWscripts/testing/test-build-planning.py411 def test_an_interrupted_build_is_reported_rather_than_believed(self):CODE
LOWscripts/testing/test-build-planning.py240 def test_recording_one_file_does_not_claim_the_others(self):CODE
LOWscripts/testing/test-build-planning.py251 def test_recording_with_no_baseline_is_a_no_op(self):CODE
LOWscripts/testing/test-build-planning.py259 def test_merge_refreshes_by_content_not_timestamp(self):CODE
LOWscripts/testing/test-build-planning.py283 def test_merge_leaves_uncovered_files_looking_changed(self):CODE
LOWscripts/testing/test-build-planning.py303 def test_a_finished_build_is_ok_and_the_tree_is_clean(self):CODE
LOWscripts/testing/test-build-planning.py315 def test_a_failed_build_is_fatal_for_anything_downstream(self):CODE
LOWscripts/testing/test-build-planning.py329 def test_reverting_a_change_that_broke_the_build_unsticks_you(self):CODE
LOWscripts/testing/test-build-planning.py354 def test_an_edit_after_a_build_warns_but_is_not_fatal(self):CODE
LOWscripts/testing/test-build-planning.py369 def test_either_configuration_counts_as_built(self):CODE
LOWscripts/testing/test-build-planning.py377 def test_a_wiped_build_directory_beats_a_clean_index(self):CODE
LOWscripts/testing/test-build-planning.py437 def test_release_dockerfile_sdk_matches_global_json(self):CODE
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWinstall.sh1#!/bin/shCOMMENT
LOWexperiments/armv7-aot/time64-shim.c1// Supplies the glibc __*_time64 symbols for 32-bit ARM builds against anCOMMENT
LOWexperiments/armv7-aot/time64-shim.c21//COMMENT
LOWbackend/testfiles/data/naughty-strings.txt101# Special CharactersCOMMENT
LOWbackend/testfiles/data/naughty-strings.txt121€‚ƒ„†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸCOMMENT
LOWbackend/testfiles/data/naughty-strings.txt201COMMENT
LOW.devcontainer/devcontainer.json81 "workspaceMount": "source=${localWorkspaceFolder},target=/home/dark/app,type=bind,consistency=delegated", // for localCOMMENT
LOW.circleci/config.yml121COMMENT
LOW.circleci/config.yml301 # uses for R2R.COMMENT
LOW.circleci/config.yml341 root: "."COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/perf/_bench.py87# `packages/` would be loaded as package items, and a loose file elsewhere drifts from the harness thatCOMMENT
MEDIUM.circleci/config.yml184 # TODO: think through an alternative or more nuanced approach.COMMENT
Excessive Try-Catch Wrapping4 hits · 5 pts
SeverityFileLineSnippetContext
LOWscripts/perf/_bench.py209 except Exception:CODE
LOWscripts/perf/_bench.py365 except Exception:CODE
LOWscripts/perf/_bench.py400 except Exception:CODE
MEDIUMscripts/perf/_bench.py394def commit():CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/perf/view-telemetry.py46CODE
LOWscripts/perf/_bench.py352CODE
LOWscripts/perf/_bench.py450CODE
LOWscripts/perf/_bench.py620CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/launch-extension.sh5# Usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/testing/test-interactive.py6CODE