The Crystal Programming Language
This report presents the forensic synthetic code analysis of crystal-lang/crystal, a Crystal project with 20,327 GitHub stars. SynthScan v2.0 examined 21,869 lines of code across 152 source files, recording 53 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 3.6 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).
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 53 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 |
|---|---|---|---|---|
| MEDIUM | etc/lldb/crystal_formatters.py | 14 | def _env_int(name, default): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 61 | def _valid_child(value, index): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 74 | def _child_by_name(value, name): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 272 | def get_child_index(self, name): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 295 | def CrystalArray_SummaryProvider(value, dict): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 338 | def CrystalString_SummaryProvider(value, dict): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 431 | def CrystalHash_SummaryProvider(value, dict): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 455 | def CrystalSet_SummaryProvider(value, dict): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 581 | def CrystalUnion_SummaryProvider(value, dict): | CODE |
| MEDIUM | etc/lldb/crystal_formatters.py | 595 | def CrystalRange_SummaryProvider(value, dict): | CODE |
| LOW | etc/lldb/crystal_formatters.py | 19 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 42 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 51 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 64 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 79 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 90 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 133 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 290 | except Exception as e: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 326 | except Exception as e: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 366 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 426 | except Exception as e: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 451 | except Exception as e: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 479 | except Exception as e: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 591 | except Exception: | CODE |
| LOW | etc/lldb/crystal_formatters.py | 608 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .ameba.yml | 18 | # ========================= | COMMENT |
| MEDIUM | .ameba.yml | 25 | # ========================= | COMMENT |
| MEDIUM | .ameba.yml | 122 | # ========================= | COMMENT |
| MEDIUM | .ameba.yml | 129 | # ========================= | COMMENT |
| MEDIUM | .ameba.yml | 166 | # ========================= | COMMENT |
| MEDIUM | .ameba.yml | 176 | # ========================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .ameba.yml | 1 | # This configuration file was generated by `ameba --gen-config` | COMMENT |
| LOW | spec/generate_wasm32_spec.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | spec/compiler/data/visibility.h | 1 | #ifdef _WIN32 | COMMENT |
| LOW | spec/debug/test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | scripts/update-distribution-scripts.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | scripts/update-shards.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | scripts/update-changelog.sh | 1 | #! /bin/sh | COMMENT |
| LOW | scripts/release-update.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | .github/actionlint.yaml | 21 | # are ignored. This is similar to the "-ignore" command line option. | COMMENT |
| LOW | .github/workflows/smoke.yml | 1 | # These jobs are smoke tests for platforms where we don't run full tests. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 4 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 4 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 11 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 11 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 18 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW⚡ | spec/std/data/argf_test_file_3.xml | 18 | <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum lib | CODE |
| LOW | src/compiler/crystal/tools/playground/views/_about.html | 34 | s = "Lorem ipsum" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/update-distribution-scripts.sh | 6 | # Usage: | COMMENT |
| LOW | scripts/update-shards.sh | 5 | # Usage: | COMMENT |
| LOW | scripts/update-changelog.sh | 15 | # Usage: | COMMENT |
| LOW | scripts/release-update.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | spec/generate_wasm32_spec.sh | 36 | echo "# This file is autogenerated by \`${command% }\`" | CODE |