This report presents the forensic synthetic code analysis of genlayerlabs/genlayer-project-boilerplate, a TypeScript project with 14,477 GitHub stars. SynthScan v2.0 examined 17,709 lines of code across 63 source files, recording 72 pattern matches distributed across 6 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).
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 72 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 | contracts/PatternTest.py | 24 | # ── Pattern 1 & 2: gl.vm.Return type check + partial field matching ────── | COMMENT |
| MEDIUM | contracts/PatternTest.py | 69 | # ── Pattern 4: u256 arithmetic ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 85 | # ── Pattern 5: Address constructor ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 94 | # ── Pattern 6: json.dumps sort_keys ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 101 | # ── Pattern 7: Nested TreeMap workaround ───────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 74 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 76 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 98 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 100 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/direct/test_patterns.py | 15 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/direct/test_patterns.py | 17 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/integration/test_new_features.py | 37 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/integration/test_new_features.py | 39 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/integration/test_new_features.py | 118 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 120 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 240 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 242 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/lib/genlayer/client.ts | 275 | export function createMetaMaskWalletClient(): WalletClient | null { | CODE |
| LOW | frontend/lib/genlayer/fees.ts | 32 | function transactionFeesFromEstimate(estimate: FeePresetEstimate["estimate"]) { | CODE |
| LOW | frontend/lib/genlayer/fees.ts | 51 | export function feePresetToTransactionFees(preset?: FeePresetEstimate) { | CODE |
| LOW | tests/direct/test_create_bet.py | 28 | def test_create_multiple_bets(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_create_bet.py | 42 | def test_create_duplicate_bet_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_create_bet.py | 52 | def test_different_users_can_bet_same_match( | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 44 | def test_json_with_backtick_fences(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 50 | def test_json_with_plain_backtick_fences(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 56 | def test_leading_trailing_whitespace(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 62 | def test_json_with_preamble_text(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 81 | def test_stable_across_two_calls(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 87 | def test_sort_keys_orders_alphabetically(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 92 | def test_insertion_order_dict_same_output(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 105 | def test_isinstance_return_on_success(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 241 | def test_add_multiple_items_same_key(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 250 | def test_different_keys_are_independent(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 258 | def test_empty_key_returns_empty_list(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 264 | def test_json_string_stored_and_retrieved(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 32 | def test_raw_dict_passthrough(self): | CODE |
| LOW | tests/direct/test_patterns.py | 119 | def test_validator_distinguishes_return_from_error(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 137 | def test_partial_match_ignores_analysis_field(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 170 | def test_increment_multiple_times(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 198 | def test_address_from_hex_str(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 208 | def test_address_from_raw_bytes(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 275 | def test_stable_json_same_output_twice(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 283 | def test_stable_json_sorts_keys(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_views.py | 18 | def test_get_player_points_default_zero(direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 39 | def test_resolve_losing_bet_no_points(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 74 | def test_resolve_already_resolved_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 87 | def test_resolve_unfinished_game_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 98 | def test_multiple_users_resolve_independently( | CODE |
| LOW⚡ | tests/integration/test_new_features.py | 123 | def test_run_validator_exists(direct_vm): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 129 | def test_run_validator_raises_without_captured(direct_vm): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 135 | def test_run_validator_false_when_mocks_differ(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 163 | def test_run_validator_true_when_mocks_agree(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 184 | def test_run_validator_respects_leader_result_override(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 206 | def test_run_validator_with_football_bets_skips_gracefully(direct_vm, direct_deploy): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 245 | def test_mock_web_intercepts_render_screenshot_call(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 260 | def test_web_render_screenshot_empty_bytes_causes_pil_error(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 279 | def test_exec_prompt_accepts_raw_image_bytes(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 294 | def test_web_render_text_mode_works(direct_vm, direct_deploy): | STRING |
| LOW | tests/integration/test_new_features.py | 316 | def test_image_object_structure(): | STRING |
| LOW | tests/integration/test_football_bets.py | 35 | def test_football_bets_success_win(): | CODE |
| LOW | tests/integration/test_football_bets.py | 66 | def test_football_bets_draw_success(): | CODE |
| LOW | tests/integration/test_football_bets.py | 99 | def test_football_bets_unsuccess(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contracts/PatternTest.py | 8 | CODE | |
| LOW | contracts/football_bets.py | 5 | CODE | |
| LOW | tests/direct/test_patterns.py | 11 | CODE | |
| LOW | tests/direct/test_patterns.py | 222 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | package-lock.json | 2822 | "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.8.tgz", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contracts/PatternTest.py | 52 | CODE | |
| LOW | contracts/PatternTest.py | 67 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration/test_new_features.py | 220 | except Exception: | STRING |
| LOW | tests/integration/test_new_features.py | 307 | except Exception: | STRING |
| LOW | tests/integration/test_new_features.py | 343 | except Exception: | STRING |