AI Slop Code RIsk Monitor

crazyguitar/pysheeet

Python Cheat Sheet

18.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for crazyguitar/pysheeet, a Python project with 8,159 GitHub stars. SynthScan examined 14,928 lines of code across 84 source files, recording 142 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 18.5 (Elevated 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.

18.5
Adjusted Signal
18.5
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
8.2K
Stars
Python
Language
14.9K
Lines of Code
84
Files
142
Pattern Hits
2026-10-12
Scan Date
0.23
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 40.1/100 · MEDIUM

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

Agent Over-Engineering Ratio 26.6/100 · MEDIUM

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

PR Review Velocity Impact 57.4/100 · HIGH

Which changes need focused human review? 142 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

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

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 19MEDIUM 9LOW 114

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 142 distinct pattern matches across 12 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.

Cross-Language Confusion16 hits · 110 pts
SeverityFileLineSnippetContext
HIGH⚡src/basic/heap.py258 h.push("a", 3)CODE
HIGH⚡src/basic/heap.py259 h.push("b", 1)CODE
HIGH⚡src/basic/heap.py260 h.push("c", 2)CODE
HIGH⚡src/basic/heap.py265 h.push("task1", 3)CODE
HIGH⚡src/basic/heap.py266 h.push("task2", 1)CODE
HIGH⚡src/basic/heap.py267 h.push("task1", 0) # update priorityCODE
HIGH⚡src/basic/list.py181 s.push(1)CODE
HIGH⚡src/basic/list.py182 s.push(2)CODE
HIGH⚡src/basic/list.py188 s.push(1)CODE
HIGH⚡src/basic/list.py195 s.push(1)CODE
HIGHsrc/basic/typing_.py202 s.push(1)CODE
HIGHsrc/basic/typing_.py203 s.push(2)CODE
HIGHsrc/cext/test_cext.py8 mkdir build && cd build && cmake .. && makeSTRING
HIGH⚡src/cext/test_cext.py85 assert abs(v.length() - 5.0) < 1e-10CODE
HIGH⚡src/cext/test_cext.py88 assert v.length() == 0CODE
HIGH⚡src/cext/test_cext.py98 assert abs(n.length() - 1.0) < 1e-10CODE
Hyper-Verbose Identifiers52 hits · 56 pts
SeverityFileLineSnippetContext
LOWapp_test.py62 def test_index_redirection_req(self):CODE
LOWapp_test.py152 def test_legacy_rtd_path_redirect(self):CODE
LOW⚡app_test.py169 def test_redirect_legacy_rtd_paths_passthrough(self):CODE
LOW⚡app_test.py174 def test_redirect_legacy_rtd_paths_match(self):CODE
LOW⚡app_test.py181 def test_resolve_legacy_flat_target_known(self):CODE
LOW⚡app_test.py231 def test_resolve_legacy_flat_target_unknown(self):CODE
LOW⚡app_test.py241 def test_redirect_legacy_flat_paths_passthrough(self):CODE
LOW⚡app_test.py246 def test_redirect_legacy_flat_paths_match(self):CODE
LOWapp_test.py257 def test_redirect_canonical_host_bare(self):CODE
LOWapp_test.py271 def test_redirect_canonical_host_preserves_query(self):CODE
LOWapp_test.py284 def test_redirect_canonical_host_passthrough(self):CODE
LOWapp.py134def _resolve_legacy_flat_target(path):CODE
LOWapp.py223def redirect_legacy_rtd_paths():CODE
LOWapp.py231def redirect_legacy_flat_paths():CODE
LOWsrc/security/vulnerability_.py69 def test_vulnerable_query_building(self):CODE
LOWsrc/security/vulnerability_.py101 def test_vulnerable_shell_command(self):CODE
LOWsrc/security/vulnerability_.py136 def test_pickle_code_execution(self):CODE
LOWsrc/security/vulnerability_.py169 def test_environment_variables(self):CODE
LOWsrc/security/vulnerability_.py189 def test_ecb_mode_pattern_leak(self):CODE
LOWsrc/security/vulnerability_.py212 def test_cbc_needs_authentication(self):CODE
LOWsrc/security/vulnerability_.py240 def test_secure_password_hash(self):CODE
LOWsrc/basic/object.py364 def test_abstract_instantiation(self):CODE
LOWsrc/basic/fileio_.py253def test_zipfile_create_extract(tmp_path):CODE
LOWsrc/basic/fileio_.py346def test_shutil_copytree_ignore(tmp_path):CODE
LOWsrc/basic/fileio_.py362def test_shutil_copytree_dirs_exist_ok(tmp_path):CODE
LOWsrc/basic/fileio_.py450def test_shutil_unpack_archive(tmp_path):CODE
LOWsrc/basic/asyncio_.py58 def test_wait_first_completed(self):CODE
LOWsrc/basic/asyncio_.py132 def test_async_context_manager(self):CODE
LOWsrc/basic/asyncio_.py154 def test_asynccontextmanager_decorator(self):CODE
LOWsrc/basic/asyncio_.py299 def test_gather_return_exceptions(self):CODE
LOW⚡src/basic/sqlalchemy_core.py46 def test_create_sqlite_memory(self):CODE
LOWsrc/basic/socket_.py17 def test_gethostbyname_localhost(self):CODE
LOWsrc/basic/concurrency_.py52 def test_thread_with_return_value(self):CODE
LOWsrc/basic/concurrency_.py398 def test_basic_producer_consumer(self):CODE
LOWsrc/basic/cext_.py297 def test_python_fib_iterative(self):CODE
LOWsrc/basic/unicode_.py87 def test_encode_errors_ignore(self):CODE
LOWsrc/basic/unicode_.py90 def test_encode_errors_replace(self):CODE
LOWsrc/basic/unicode_.py121 def test_normalization_equality(self):CODE
LOWsrc/basic/dict.py22def create_dict_comprehension(n: int) -> dict:CODE
LOWsrc/basic/dict.py76def dict_comprehension_filter(n: int) -> dict:CODE
LOWsrc/basic/future_.py94 def test_annotations_are_strings(self):CODE
LOWsrc/basic/set.py36def set_comprehension_squares(n: int) -> set:CODE
LOWsrc/basic/set.py219 def test_symmetric_difference(self):CODE
LOWsrc/basic/datetime_.py34def test_timestamp_conversion():CODE
LOWsrc/basic/datetime_.py68def test_timedelta_arithmetic():CODE
LOWsrc/basic/func.py231 def test_keyword_only_default(self):CODE
LOWsrc/basic/crypto_.py89 def test_hmac_tamper_detection(self):CODE
LOWsrc/basic/crypto_.py158 def test_with_associated_data(self):CODE
LOWsrc/basic/crypto_.py238 def test_oaep_encrypt_decrypt(self):CODE
LOWsrc/basic/crypto_.py329 def test_hybrid_encrypt_decrypt(self):CODE
LOWsrc/cext/test_cext.py149 def test_add_arrays_length_mismatch(self):CODE
LOWsrc/cext/test_cext.py173 def test_slow_operation_parallel(self):CODE
Unused Imports41 hits · 41 pts
SeverityFileLineSnippetContext
LOWapp.py19CODE
LOWsrc/llm/vllm/offline_bench.py25CODE
LOWsrc/llm/vllm/offline_bench.py28CODE
LOWsrc/security/vulnerability_.py116CODE
LOWsrc/basic/heap.py8CODE
LOWsrc/basic/list.py12CODE
LOWsrc/basic/sqlalchemy_core.py3CODE
LOWsrc/basic/sqlalchemy_core.py4CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py5CODE
LOWsrc/basic/sqlalchemy_core.py29CODE
LOWsrc/basic/sqlalchemy_core.py29CODE
LOWsrc/basic/sqlalchemy_core.py29CODE
LOWsrc/basic/sqlalchemy_core.py29CODE
LOWsrc/basic/sqlalchemy_core.py29CODE
LOWsrc/basic/sqlalchemy_core.py36CODE
LOWsrc/basic/socket_.py5CODE
LOWsrc/basic/socket_.py6CODE
LOWsrc/basic/generator.py10CODE
LOWsrc/basic/sqlalchemy_orm.py3CODE
LOWsrc/basic/sqlalchemy_orm.py4CODE
LOWsrc/basic/sqlalchemy_query.py3CODE
LOWsrc/basic/sqlalchemy_query.py4CODE
LOWsrc/basic/sqlalchemy_query.py20CODE
LOWsrc/basic/rexp.py9CODE
LOWsrc/basic/cext_.py10CODE
LOWsrc/basic/cext_.py13CODE
LOWsrc/basic/unicode_.py6CODE
LOWsrc/basic/dict.py6CODE
LOWsrc/basic/future_.py9CODE
LOWsrc/basic/typing_.py6CODE
LOWsrc/basic/typing_.py7CODE
LOWsrc/basic/func.py8CODE
LOWsrc/cext/test_cext.py11CODE
LOWsrc/cext/setup.py10CODE
LOWsrc/megatron/viztracer_plugin.py15CODE
LOWsrc/megatron/viztracer_plugin.py18CODE
Decorative Section Separators6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM⚡src/basic/sqlalchemy_core.py38# ============================================================================COMMENT
MEDIUM⚡src/basic/sqlalchemy_core.py40# ============================================================================COMMENT
MEDIUMsrc/basic/sqlalchemy_orm.py27# ============================================================================COMMENT
MEDIUMsrc/basic/sqlalchemy_orm.py29# ============================================================================COMMENT
MEDIUMsrc/basic/sqlalchemy_query.py27# ============================================================================COMMENT
MEDIUMsrc/basic/sqlalchemy_query.py29# ============================================================================COMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/basic/asyncio_.py338except asyncio.CancelledError:CODE
HIGHsrc/basic/socket_.py216except OSError:CODE
HIGHsrc/basic/generator.py270except StopIteration:CODE
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/conf.py81# General information about the project.COMMENT
LOWdocs/conf.py101language = 'en'COMMENT
LOWdocs/conf.py121# unit titles (such as .. function::).COMMENT
LOWdocs/conf.py221#html_domain_indices = TrueCOMMENT
LOWdocs/conf.py241#html_use_opensearch = ''COMMENT
LOWdocs/conf.py261htmlhelp_basename = 'python-cheatsheetdoc'COMMENT
LOWdocs/conf.py281# author, documentclass [howto, manual, or own class]).COMMENT
LOWsrc/llm/vllm/sweep.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/cpp_from_python/cpp_from_py.cpp1/*COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMsrc/basic/dict.py11# Create a DictionaryCOMMENT
MEDIUMsrc/basic/set.py9# Create a SetCOMMENT
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/nixl/bench.sh3# Usage:COMMENT
LOWsrc/llm/vllm/bench.sh3# Usage:COMMENT
LOWsrc/llm/vllm/sweep.sh8# Usage:COMMENT
LOWsrc/llm/vllm/offline_bench.sh3# Usage:COMMENT
LOWsrc/llm/tensorrt-llm/bench.sh4# Usage:COMMENT
LOWsrc/llm/sglang/bench.sh3# Usage:COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/basic/rexp.py281 assert find_before_at("user@example.com") == ["user"]CODE
LOWsrc/basic/rexp.py304 assert is_valid_email("user@example.com")CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/llm/vllm/offline_bench.py328 # Check if detailed metrics are availableCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/security/vulnerability_.py144 # For safety, we just return a harmless functionCOMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/basic/object.py198 except Exception:CODE