AI Slop Code Risk Monitor

benfred/py-spy

SlopCodeMonitor badge for benfred/py-spy Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Sampling profiler for Python programs

0.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for benfred/py-spy, a Rust project with 15,619 GitHub stars. SynthScan examined 98,912 lines of code across 74 source files, recording 61 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low 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.

0.5
Adjusted Signal
0.5
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
15.6K
Stars
Rust
Language
98.9K
Lines of Code
74
Files
61
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 3.0/100 · LOW

Which changes need focused human review? 61 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 0MEDIUM 0LOW 61

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 61 distinct pattern matches across 3 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.

Over-Commented Block57 hits · 48 pts
SeverityFileLineSnippetContext
LOWci/testdata/cython_test.c1/* Generated by Cython 0.28.5 */COMMENT
LOWci/testdata/cython_test.c21 #define __cdeclCOMMENT
LOWci/testdata/cython_test.c41#endifCOMMENT
LOWci/testdata/cython_test.c61 #undef CYTHON_USE_UNICODE_INTERNALSCOMMENT
LOWci/testdata/cython_test.c81#elif defined(PYSTON_VERSION)COMMENT
LOWci/testdata/cython_test.c101 #ifndef CYTHON_AVOID_BORROWED_REFSCOMMENT
LOWci/testdata/cython_test.c121 #define CYTHON_COMPILING_IN_CPYTHON 1COMMENT
LOWci/testdata/cython_test.c141 #define CYTHON_USE_PYLONG_INTERNALS 1COMMENT
LOWci/testdata/cython_test.c161 #ifndef CYTHON_UNPACK_METHODSCOMMENT
LOWci/testdata/cython_test.c181 #include "longintrepr.h"COMMENT
LOWci/testdata/cython_test.c201 #endifCOMMENT
LOWci/testdata/cython_test.c221# endifCOMMENT
LOWci/testdata/cython_test.c241#elseCOMMENT
LOWci/testdata/cython_test.c261 #if defined(__clang__ ) && defined(__apple_build_version__)COMMENT
LOWci/testdata/cython_test.c281#endifCOMMENT
LOWci/testdata/cython_test.c301#endifCOMMENT
LOWci/testdata/cython_test.c321#endifCOMMENT
LOWci/testdata/cython_test.c341 #define __Pyx_PyThreadState_Current PyThreadState_GET()COMMENT
LOWci/testdata/cython_test.c381#elseCOMMENT
LOWci/testdata/cython_test.c401 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)COMMENT
LOWci/testdata/cython_test.c421 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))COMMENT
LOWci/testdata/cython_test.c441#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, bCOMMENT
LOWci/testdata/cython_test.c461#elseCOMMENT
LOWci/testdata/cython_test.c481 #define PyInt_FromSize_t PyLong_FromSize_tCOMMENT
LOWci/testdata/cython_test.c501 #define __Pyx_PyInt_AsHash_t PyInt_AsLongCOMMENT
LOWci/testdata/cython_test.c541#endifCOMMENT
LOWci/testdata/cython_test.c561COMMENT
LOWci/testdata/cython_test.c581#define __Pyx_uchar_cast(c) ((unsigned char)c)COMMENT
LOWci/testdata/cython_test.c601 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))COMMENT
LOWci/testdata/cython_test.c621 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSizeCOMMENT
LOWci/testdata/cython_test.c641 while (*u_end++) ;COMMENT
LOWci/testdata/cython_test.c801 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)COMMENT
LOWci/testdata/cython_test.c821 #define __Pyx_XINCREF(r) Py_XINCREF(r)COMMENT
LOWci/testdata/cython_test.c901#elseCOMMENT
LOWci/testdata/cython_test.c921#endifCOMMENT
LOWci/testdata/cython_test.c941COMMENT
LOWci/testdata/cython_test.c2041static int __Pyx_modinit_function_import_code(void) {COMMENT
LOWci/testdata/cython_test.c2061#endifCOMMENT
LOWci/testdata/cython_test.c2161 #ifdef __Pyx_StopAsyncIteration_USEDCOMMENT
LOWsrc/config.rs1#[cfg(feature = "cli")]COMMENT
LOWsrc/lib.rs1//! py-spy: a sampling profiler for python programsCOMMENT
LOWsrc/lib.rs21//! println!("\t {} ({}:{})", frame.name, frame.filename, frame.line);COMMENT
LOWsrc/python_data_access.rs521 }COMMENT
LOWsrc/python_bindings/v3_11_0.rs1// Generated bindings for python v3.11.0COMMENT
LOWsrc/python_bindings/v3_10_0.rs1// Generated bindings for python v3.10.0rc1COMMENT
LOWsrc/python_bindings/v3_6_6.rs1// Generated bindings for python v3.6.6COMMENT
LOWsrc/python_bindings/v3_9_5.rs1// Generated bindings for python v3.9.5COMMENT
LOWsrc/python_bindings/v3_8_0.rs1// Generated bindings for python v3.8.0COMMENT
LOWsrc/python_bindings/v3_5_5.rs1// Generated bindings for python v3.5.5COMMENT
LOWsrc/python_bindings/v2_7_15.rs1// Generated bindings for python v2.7.15COMMENT
LOWsrc/python_bindings/v3_15_0.rs1// Generated bindings for python v3.15.0COMMENT
LOWsrc/python_bindings/v3_14_0.rs1// Generated bindings for python v3.14.0COMMENT
LOWsrc/python_bindings/v3_7_0.rs1// Generated bindings for python v3.7.0COMMENT
LOWsrc/python_bindings/v3_13_0.rs1// Generated bindings for python v3.13.0COMMENT
LOWsrc/python_bindings/v3_4_8.rs1// Generated bindings for python v3.4.8COMMENT
LOWsrc/python_bindings/v3_3_7.rs1// Generated bindings for python v3.3.7COMMENT
LOWsrc/python_bindings/v3_12_0.rs1// Generated bindings for python v3.12.0COMMENT
Hyper-Verbose Identifiers3 hits · 2 pts
SeverityFileLineSnippetContext
LOWgenerate_bindings.py41def calculate_pyruntime_offsets(cpython_path, version, configure=False):STRING
LOWci/update_python_test_versions.py17def get_github_python_versions():CODE
LOWci/update_python_test_versions.py66def update_python_test_versions(force=False):CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/integration_test.py1CODE