Repository Analysis

genlayerlabs/genlayer-project-boilerplate

6.1 Low AI signal View on GitHub

Analysis Overview

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

6.1
Adjusted Score
6.1
Raw Score
100%
Time Factor
2026-07-26
Last Push
14.5K
Stars
TypeScript
Language
17.7K
Lines of Code
63
Files
72
Pattern Hits
2026-08-02
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 18LOW 54

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

Decorative Section Separators17 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMcontracts/PatternTest.py24 # ── Pattern 1 & 2: gl.vm.Return type check + partial field matching ──────COMMENT
MEDIUMcontracts/PatternTest.py69 # ── Pattern 4: u256 arithmetic ────────────────────────────────────────────COMMENT
MEDIUMcontracts/PatternTest.py85 # ── Pattern 5: Address constructor ────────────────────────────────────────COMMENT
MEDIUMcontracts/PatternTest.py94 # ── Pattern 6: json.dumps sort_keys ──────────────────────────────────────COMMENT
MEDIUMcontracts/PatternTest.py101 # ── Pattern 7: Nested TreeMap workaround ─────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py74# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py76# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py98# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py100# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py15# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/direct/test_patterns.py17# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/test_new_features.py37# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/test_new_features.py39# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/test_new_features.py118# ─────────────────────────────────────────────────────────────────────────────STRING
MEDIUMtests/integration/test_new_features.py120# ─────────────────────────────────────────────────────────────────────────────STRING
MEDIUMtests/integration/test_new_features.py240# ─────────────────────────────────────────────────────────────────────────────STRING
MEDIUMtests/integration/test_new_features.py242# ─────────────────────────────────────────────────────────────────────────────STRING
Hyper-Verbose Identifiers45 hits · 44 pts
SeverityFileLineSnippetContext
LOWfrontend/lib/genlayer/client.ts275export function createMetaMaskWalletClient(): WalletClient | null {CODE
LOWfrontend/lib/genlayer/fees.ts32function transactionFeesFromEstimate(estimate: FeePresetEstimate["estimate"]) {CODE
LOWfrontend/lib/genlayer/fees.ts51export function feePresetToTransactionFees(preset?: FeePresetEstimate) {CODE
LOWtests/direct/test_create_bet.py28def test_create_multiple_bets(direct_vm, direct_deploy, direct_alice):CODE
LOWtests/direct/test_create_bet.py42def test_create_duplicate_bet_fails(direct_vm, direct_deploy, direct_alice):CODE
LOWtests/direct/test_create_bet.py52def test_different_users_can_bet_same_match(CODE
LOWtests/direct/test_patterns.py44 def test_json_with_backtick_fences(self):CODE
LOWtests/direct/test_patterns.py50 def test_json_with_plain_backtick_fences(self):CODE
LOWtests/direct/test_patterns.py56 def test_leading_trailing_whitespace(self):CODE
LOWtests/direct/test_patterns.py62 def test_json_with_preamble_text(self):CODE
LOWtests/direct/test_patterns.py81 def test_stable_across_two_calls(self):CODE
LOWtests/direct/test_patterns.py87 def test_sort_keys_orders_alphabetically(self):CODE
LOWtests/direct/test_patterns.py92 def test_insertion_order_dict_same_output(self):CODE
LOWtests/direct/test_patterns.py105 def test_isinstance_return_on_success(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py241 def test_add_multiple_items_same_key(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py250 def test_different_keys_are_independent(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py258 def test_empty_key_returns_empty_list(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py264 def test_json_string_stored_and_retrieved(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py32 def test_raw_dict_passthrough(self):CODE
LOWtests/direct/test_patterns.py119 def test_validator_distinguishes_return_from_error(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py137 def test_partial_match_ignores_analysis_field(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py170 def test_increment_multiple_times(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py198 def test_address_from_hex_str(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py208 def test_address_from_raw_bytes(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py275 def test_stable_json_same_output_twice(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_patterns.py283 def test_stable_json_sorts_keys(self, direct_vm, direct_deploy):CODE
LOWtests/direct/test_views.py18def test_get_player_points_default_zero(direct_deploy, direct_alice):CODE
LOWtests/direct/test_resolve_bet.py39def test_resolve_losing_bet_no_points(direct_vm, direct_deploy, direct_alice):CODE
LOWtests/direct/test_resolve_bet.py74def test_resolve_already_resolved_fails(direct_vm, direct_deploy, direct_alice):CODE
LOWtests/direct/test_resolve_bet.py87def test_resolve_unfinished_game_fails(direct_vm, direct_deploy, direct_alice):CODE
LOWtests/direct/test_resolve_bet.py98def test_multiple_users_resolve_independently(CODE
LOWtests/integration/test_new_features.py123def test_run_validator_exists(direct_vm):STRING
LOWtests/integration/test_new_features.py129def test_run_validator_raises_without_captured(direct_vm):STRING
LOWtests/integration/test_new_features.py135def test_run_validator_false_when_mocks_differ(direct_vm, direct_deploy, nondet_contract_path):STRING
LOWtests/integration/test_new_features.py163def test_run_validator_true_when_mocks_agree(direct_vm, direct_deploy, nondet_contract_path):STRING
LOWtests/integration/test_new_features.py184def test_run_validator_respects_leader_result_override(direct_vm, direct_deploy, nondet_contract_path):STRING
LOWtests/integration/test_new_features.py206def test_run_validator_with_football_bets_skips_gracefully(direct_vm, direct_deploy):STRING
LOWtests/integration/test_new_features.py245def test_mock_web_intercepts_render_screenshot_call(direct_vm, direct_deploy, visual_contract_path):STRING
LOWtests/integration/test_new_features.py260def test_web_render_screenshot_empty_bytes_causes_pil_error(direct_vm, direct_deploy, visual_contract_path):STRING
LOWtests/integration/test_new_features.py279def test_exec_prompt_accepts_raw_image_bytes(direct_vm, direct_deploy, visual_contract_path):STRING
LOWtests/integration/test_new_features.py294def test_web_render_text_mode_works(direct_vm, direct_deploy):STRING
LOWtests/integration/test_new_features.py316def test_image_object_structure():STRING
LOWtests/integration/test_football_bets.py35def test_football_bets_success_win():CODE
LOWtests/integration/test_football_bets.py66def test_football_bets_draw_success():CODE
LOWtests/integration/test_football_bets.py99def test_football_bets_unsuccess():CODE
Unused Imports4 hits · 3 pts
SeverityFileLineSnippetContext
LOWcontracts/PatternTest.py8CODE
LOWcontracts/football_bets.py5CODE
LOWtests/direct/test_patterns.py11CODE
LOWtests/direct/test_patterns.py222CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackage-lock.json2822 "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.8.tgz",CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcontracts/PatternTest.py52CODE
LOWcontracts/PatternTest.py67CODE
Excessive Try-Catch Wrapping3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/integration/test_new_features.py220 except Exception:STRING
LOWtests/integration/test_new_features.py307 except Exception:STRING
LOWtests/integration/test_new_features.py343 except Exception:STRING