Introduce technologies on blockchain and distributed ledger, from theory to practice with bitcoin, ethereum and hyperledger.
This report presents the forensic synthetic code analysis of yeasy/blockchain_guide, a Python project with 7,075 GitHub stars. SynthScan v2.0 examined 23,726 lines of code across 193 source files, recording 62 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 3.7 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 62 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 |
|---|---|---|---|---|
| LOW | check_project_rules.py | 136 | def iter_markdown_link_targets(body: str): | CODE |
| LOW | tools/render_mermaid.py | 28 | def validate_output_directory(book_dir: str, svg_out: str) -> tuple[Path, Path]: | CODE |
| LOW | tools/publication_sources.py | 116 | def _is_unapproved_remote_image(raw_target: str) -> bool: | CODE |
| LOW | tools/publication_sources.py | 282 | def find_unapproved_remote_images(source_root: Path) -> list[tuple[Path, int, str]]: | CODE |
| LOW | tools/verify_release_artifacts.py | 139 | def verify_publication_images(source_root: Path) -> None: | CODE |
| LOW | tests/test_workflows.py | 160 | def test_all_actions_are_full_sha_pinned_with_version_comments(self): | STRING |
| LOW | tests/test_workflows.py | 169 | def test_checkout_drops_credentials_and_permissions_are_minimal(self): | STRING |
| LOW | tests/test_workflows.py | 182 | def test_downloads_mermaid_and_artifacts_have_integrity_gates(self): | STRING |
| LOW | tests/test_workflows.py | 194 | def test_pandoc_is_installed_and_verified_before_publication_source_checks(self): | STRING |
| LOW | tests/test_workflows.py | 203 | def test_every_publication_workflow_builds_pdf_html_and_checksums(self): | STRING |
| LOW⚡ | tests/test_workflows.py | 214 | def test_ci_runs_each_chaincode_package_as_a_matrix(self): | STRING |
| LOW⚡ | tests/test_workflows.py | 222 | def test_renderer_does_not_kill_unrelated_processes_and_can_fail_closed(self): | STRING |
| LOW⚡ | tests/test_workflows.py | 229 | def test_renderer_rejects_outputs_from_every_failed_command(self): | STRING |
| LOW⚡ | tests/test_workflows.py | 238 | def test_renderer_promotes_only_a_successful_retry(self): | STRING |
| LOW⚡ | tests/test_workflows.py | 247 | def test_preview_release_notes_preserve_markdown_literals(self): | STRING |
| LOW | tests/test_workflows.py | 297 | def test_preview_existing_and_missing_paths_use_exact_order(self): | STRING |
| LOW | tests/test_workflows.py | 305 | def test_preview_fails_closed_before_publish(self): | STRING |
| LOW | tests/test_publication_sources.py | 56 | def test_publication_scan_matches_real_pandoc_image_nodes(self): | CODE |
| LOW⚡ | tests/test_publication_sources.py | 85 | def test_missing_pandoc_fails_closed_with_source_context(self): | CODE |
| LOW⚡ | tests/test_publication_sources.py | 90 | def test_pandoc_parse_failure_fails_closed_with_command_context(self): | CODE |
| LOW⚡ | tests/test_publication_sources.py | 96 | def test_multiple_publication_sources_use_one_pandoc_batch(self): | CODE |
| LOW | tests/test_publication_sources.py | 119 | def test_markdown_image_srcset_checks_every_candidate(self): | CODE |
| LOW | tests/test_publication_sources.py | 130 | def test_raw_html_img_srcset_handles_quoted_and_escaped_urls(self): | CODE |
| LOW | tests/test_publication_sources.py | 141 | def test_picture_source_checks_src_and_srcset_without_splitting_data_commas(self): | CODE |
| LOW⚡ | tests/test_project_rules.py | 26 | def test_checker_rejects_unapproved_remote_images_in_publication_sources(self): | CODE |
| LOW⚡ | tests/test_project_rules.py | 33 | def test_checker_allows_explicitly_whitelisted_badges(self): | CODE |
| LOW⚡ | tests/test_project_rules.py | 39 | def test_checker_rejects_full_reference_image_with_normalized_multiline_label(self): | CODE |
| LOW | tests/test_project_rules.py | 51 | def test_checker_rejects_collapsed_and_shortcut_reference_images(self): | CODE |
| LOW | tests/test_project_rules.py | 63 | def test_checker_rejects_pandoc_reference_labels_with_escaped_punctuation(self): | CODE |
| LOW | tests/test_project_rules.py | 113 | def test_checker_applies_badge_allowlist_to_reference_images(self): | CODE |
| LOW | tests/test_project_rules.py | 121 | def test_checker_ignores_non_image_markdown_syntax(self): | CODE |
| LOW | tests/test_release_artifacts.py | 23 | def test_html_title_and_every_published_mermaid_are_verified(self): | CODE |
| LOW | tests/test_release_artifacts.py | 44 | def test_pdf_signature_and_title_are_mandatory(self): | CODE |
| LOW | tests/test_release_artifacts.py | 58 | def test_manifest_covers_both_artifacts_and_detects_tampering(self): | CODE |
| LOW | tests/test_release_artifacts.py | 73 | def test_mermaid_count_only_uses_unique_summary_chapters(self): | CODE |
| LOW | tests/test_release_artifacts.py | 82 | def test_artifact_main_rejects_unapproved_remote_publication_images(self): | CODE |
| LOW | tests/test_release_artifacts.py | 173 | def test_html_reader_disables_ambiguous_pandoc_block_syntax(self): | CODE |
| LOW | tests/test_html_list_rendering.py | 58 | def test_reader_declares_the_no_blank_line_list_extension(self): | CODE |
| LOW | tests/test_html_list_rendering.py | 68 | def test_bold_lead_in_list_renders_as_ul_under_real_pandoc(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | 07_ethereum/smart_contract_labs.md | 457 | anvil --fork-url https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY | CODE |
| HIGH⚡ | 07_ethereum/smart_contract_labs.md | 565 | export SEPOLIA_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/YOUR_API_KEY" | CODE |
| HIGH⚡ | 07_ethereum/smart_contract_labs.md | 567 | export MAINNET_RPC_URL="https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY" | CODE |
| HIGH⚡ | 07_ethereum/smart_contract_labs.md | 568 | export POLYGON_AMOY_RPC_URL="https://polygon-amoy.g.alchemy.com/v2/YOUR_API_KEY" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | check_emphasis.py | 17 | CODE | |
| LOW | check_project_rules.py | 4 | CODE | |
| LOW | tools/render_mermaid.py | 4 | CODE | |
| LOW | tools/publication_sources.py | 3 | CODE | |
| LOW | tools/verify_release_artifacts.py | 4 | CODE | |
| LOW | tests/test_workflows.py | 1 | CODE | |
| LOW | tests/test_publication_sources.py | 1 | CODE | |
| LOW | tests/test_project_rules.py | 1 | CODE | |
| LOW | tests/test_release_artifacts.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | check_emphasis.py | 146 | CODE | |
| LOW | check_emphasis.py | 188 | CODE | |
| LOW | check_project_rules.py | 53 | CODE | |
| LOW | tools/publication_sources.py | 29 | CODE | |
| LOW | tools/publication_sources.py | 204 | CODE | |
| LOW | tools/publication_sources.py | 282 | CODE | |
| LOW | tools/build_html_reader.py | 22 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/build_html_reader.py | 161 | function show(id){var i=order.indexOf(id);if(i<0){i=0;id=order[0]}for(var k=0;k<pages.length;k++)pages[k].classList.tog | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/build_html_reader.py | 2 | """Build a single self-contained, GitBook-style PAGED mobile reader — offline-robust. | STRING |
| MEDIUM | tools/mermaid/package-lock.json | 2048 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |