Repository Analysis

crazyguitar/pysheeet

Python Cheat Sheet

17.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of crazyguitar/pysheeet, a Python project with 8,150 GitHub stars. SynthScan v2.0 examined 14,832 lines of code across 83 source files, recording 139 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 17.6 places this repository in the Moderate 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).

17.6
Adjusted Score
17.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.2K
Stars
Python
Language
14.8K
Lines of Code
83
Files
139
Pattern Hits
2026-07-14
Scan Date
0.19
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 16MEDIUM 9LOW 114

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 139 distinct pattern matches across 11 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.

Cross-Language Confusion16 hits · 110 pts
SeverityFileLineSnippetContext
HIGHsrc/basic/heap.py258 h.push("a", 3)CODE
HIGHsrc/basic/heap.py259 h.push("b", 1)CODE
HIGHsrc/basic/heap.py260 h.push("c", 2)CODE
HIGHsrc/basic/heap.py265 h.push("task1", 3)CODE
HIGHsrc/basic/heap.py266 h.push("task2", 1)CODE
HIGHsrc/basic/heap.py267 h.push("task1", 0) # update priorityCODE
HIGHsrc/basic/list.py181 s.push(1)CODE
HIGHsrc/basic/list.py182 s.push(2)CODE
HIGHsrc/basic/list.py188 s.push(1)CODE
HIGHsrc/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
HIGHsrc/cext/test_cext.py85 assert abs(v.length() - 5.0) < 1e-10CODE
HIGHsrc/cext/test_cext.py88 assert v.length() == 0CODE
HIGHsrc/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
LOWapp_test.py169 def test_redirect_legacy_rtd_paths_passthrough(self):CODE
LOWapp_test.py174 def test_redirect_legacy_rtd_paths_match(self):CODE
LOWapp_test.py181 def test_resolve_legacy_flat_target_known(self):CODE
LOWapp_test.py231 def test_resolve_legacy_flat_target_unknown(self):CODE
LOWapp_test.py241 def test_redirect_legacy_flat_paths_passthrough(self):CODE
LOWapp_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
LOWsrc/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
MEDIUMsrc/basic/sqlalchemy_core.py38# ============================================================================COMMENT
MEDIUMsrc/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
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