AI Slop Code RIsk Monitor

yidao620c/python3-cookbook

《Python Cookbook》 3rd Edition Translation

6.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for yidao620c/python3-cookbook, a Jupyter Notebook project with 12,022 GitHub stars. SynthScan examined 9,463 lines of code across 265 source files, recording 28 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 6.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

6.6
Adjusted Signal
6.6
Raw Pattern Score
100%
Time Factor
2026-09-22
Last Push
12.0K
Stars
Jupyter Notebook
Language
9.5K
Lines of Code
265
Files
28
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 19 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.1/100 · LOW

Are imports declared and package/API names verified? 6 finding(s).

Agent Over-Engineering Ratio 5.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 3 finding(s).

PR Review Velocity Impact 29.4/100 · MEDIUM

Which changes need focused human review? 28 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 4MEDIUM 9LOW 15

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 28 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Self-Referential Comments9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMsource/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMcookbook/c08/p15_delegate_attribute.py92# Create an instanceCOMMENT
MEDIUMcookbook/c08/p15_delegate_attribute.py94# Create a proxy around itCOMMENT
MEDIUMcookbook/c01/p18_nameseq.py41# Create a prototype instanceCOMMENT
MEDIUMcookbook/c09/p08_inclass_decorator.py29 # Create a property instanceCOMMENT
MEDIUMcookbook/c05/p18_file_descriptor.py20 # Create a binary-mode file for stdoutCOMMENT
MEDIUMcookbook/c04/p03_generator_pattern.py30 # Create the generator, notice no output appearsCOMMENT
MEDIUMcookbook/c04/p10_iterate_index.py41 # Create a list of words in current lineCOMMENT
MEDIUMcookbook/c03/p10_matrix_linear.py22 # Create a vector and multiplyCOMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcookbook/c06/p04_huge_xml.py31except IndexError:CODE
HIGHcookbook/c04/p01_manual_iterator.py15except StopIteration:CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcookbook/c07/p12_closure_access.py62s.push(10)CODE
HIGHcookbook/c07/p12_closure_access.py63s.push(20)CODE
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexts/smallseg.py72CODE
LOWcookbook/c08/p22_vistor_norecursiion.py16CODE
LOWcookbook/c06/p04_huge_xml.py12CODE
LOWcookbook/c04/p06_generator_extrastate.py24CODE
LOWnotebook/fetch_cookbook.py102CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWexts/smallseg.py2CODE
LOWcookbook/c06/p08_database.py8CODE
LOWcookbook/c04/p08_skip_iterable.py7CODE
LOWcookbook/c03/p13_last_friday.py9CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsource/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWsource/conf.py21#sys.path.insert(0, os.path.abspath('.'))COMMENT
LOWcookbook/c02/p19_descent_parser.py121 # exprval = self.expr()COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcookbook/c09/p24_analyze_source.py25# Sample usageCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcookbook/c04/p16_iterate_while.py10def process_data():CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcookbook/c10/p02_control_import.py19__all__ = ['spam', 'grok']CODE