Darklang main repo, including language, backend, and infra
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | scripts/testing/test-build-planning.py | 104 | def test_fsharp_source_takes_a_quick_build_in_dev_and_a_full_one_in_ci(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 114 | def test_fsproj_takes_a_full_build(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 117 | def test_dark_package_reloads_packages(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 121 | def test_migration_runs_migrations(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 124 | def test_unrecognised_file_routes_nowhere(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 138 | def test_fsharp_change_reaches_the_package_reload(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 148 | def test_full_build_replaces_the_quick_one(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 153 | def test_tests_are_not_planned_unless_asked_for(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 161 | def test_a_full_build_satisfies_a_file_wanting_a_quick_one(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 167 | def test_a_quick_build_does_not_satisfy_a_file_wanting_a_full_one(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 174 | def test_editor_temp_files_are_ignored(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 183 | def test_gitignored_paths_are_ignored(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 191 | def test_no_index_means_build_everything(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 195 | def test_a_touched_file_with_the_same_contents_is_not_changed(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 204 | def test_an_edited_file_is_changed(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 211 | def test_a_deleted_file_is_changed(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 218 | def test_roots_narrow_the_comparison(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 227 | def test_a_file_needing_no_action_stops_being_offered(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 399 | def test_a_lint_only_build_does_not_claim_the_tree_is_built(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 405 | def test_a_skipped_build_step_does_not_count_as_built(self): | CODE |
| LOW⚡ | scripts/testing/test-build-planning.py | 411 | def test_an_interrupted_build_is_reported_rather_than_believed(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 240 | def test_recording_one_file_does_not_claim_the_others(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 251 | def test_recording_with_no_baseline_is_a_no_op(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 259 | def test_merge_refreshes_by_content_not_timestamp(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 283 | def test_merge_leaves_uncovered_files_looking_changed(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 303 | def test_a_finished_build_is_ok_and_the_tree_is_clean(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 315 | def test_a_failed_build_is_fatal_for_anything_downstream(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 329 | def test_reverting_a_change_that_broke_the_build_unsticks_you(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 354 | def test_an_edit_after_a_build_warns_but_is_not_fatal(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 369 | def test_either_configuration_counts_as_built(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 377 | def test_a_wiped_build_directory_beats_a_clean_index(self): | CODE |
| LOW | scripts/testing/test-build-planning.py | 437 | def test_release_dockerfile_sdk_matches_global_json(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | experiments/armv7-aot/time64-shim.c | 1 | // Supplies the glibc __*_time64 symbols for 32-bit ARM builds against an | COMMENT |
| LOW | experiments/armv7-aot/time64-shim.c | 21 | // | COMMENT |
| LOW | backend/testfiles/data/naughty-strings.txt | 101 | # Special Characters | COMMENT |
| LOW | backend/testfiles/data/naughty-strings.txt | 121 | | COMMENT |
| LOW | backend/testfiles/data/naughty-strings.txt | 201 | COMMENT | |
| LOW | .devcontainer/devcontainer.json | 81 | "workspaceMount": "source=${localWorkspaceFolder},target=/home/dark/app,type=bind,consistency=delegated", // for local | COMMENT |
| LOW | .circleci/config.yml | 121 | COMMENT | |
| LOW | .circleci/config.yml | 301 | # uses for R2R. | COMMENT |
| LOW | .circleci/config.yml | 341 | root: "." | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/perf/_bench.py | 87 | # `packages/` would be loaded as package items, and a loose file elsewhere drifts from the harness that | COMMENT |
| MEDIUM | .circleci/config.yml | 184 | # TODO: think through an alternative or more nuanced approach. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/perf/_bench.py | 209 | except Exception: | CODE |
| LOW | scripts/perf/_bench.py | 365 | except Exception: | CODE |
| LOW | scripts/perf/_bench.py | 400 | except Exception: | CODE |
| MEDIUM | scripts/perf/_bench.py | 394 | def commit(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/perf/view-telemetry.py | 46 | CODE | |
| LOW | scripts/perf/_bench.py | 352 | CODE | |
| LOW | scripts/perf/_bench.py | 450 | CODE | |
| LOW | scripts/perf/_bench.py | 620 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/launch-extension.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/testing/test-interactive.py | 6 | CODE |