Sampling profiler for Python programs
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 60 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 61 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/testdata/cython_test.c | 1 | /* Generated by Cython 0.28.5 */ | COMMENT |
| LOW | ci/testdata/cython_test.c | 21 | #define __cdecl | COMMENT |
| LOW | ci/testdata/cython_test.c | 41 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 61 | #undef CYTHON_USE_UNICODE_INTERNALS | COMMENT |
| LOW | ci/testdata/cython_test.c | 81 | #elif defined(PYSTON_VERSION) | COMMENT |
| LOW | ci/testdata/cython_test.c | 101 | #ifndef CYTHON_AVOID_BORROWED_REFS | COMMENT |
| LOW | ci/testdata/cython_test.c | 121 | #define CYTHON_COMPILING_IN_CPYTHON 1 | COMMENT |
| LOW | ci/testdata/cython_test.c | 141 | #define CYTHON_USE_PYLONG_INTERNALS 1 | COMMENT |
| LOW | ci/testdata/cython_test.c | 161 | #ifndef CYTHON_UNPACK_METHODS | COMMENT |
| LOW | ci/testdata/cython_test.c | 181 | #include "longintrepr.h" | COMMENT |
| LOW | ci/testdata/cython_test.c | 201 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 221 | # endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 241 | #else | COMMENT |
| LOW | ci/testdata/cython_test.c | 261 | #if defined(__clang__ ) && defined(__apple_build_version__) | COMMENT |
| LOW | ci/testdata/cython_test.c | 281 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 301 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 321 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 341 | #define __Pyx_PyThreadState_Current PyThreadState_GET() | COMMENT |
| LOW | ci/testdata/cython_test.c | 381 | #else | COMMENT |
| LOW | ci/testdata/cython_test.c | 401 | #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) | COMMENT |
| LOW | ci/testdata/cython_test.c | 421 | #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) | COMMENT |
| LOW | ci/testdata/cython_test.c | 441 | #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b | COMMENT |
| LOW | ci/testdata/cython_test.c | 461 | #else | COMMENT |
| LOW | ci/testdata/cython_test.c | 481 | #define PyInt_FromSize_t PyLong_FromSize_t | COMMENT |
| LOW | ci/testdata/cython_test.c | 501 | #define __Pyx_PyInt_AsHash_t PyInt_AsLong | COMMENT |
| LOW | ci/testdata/cython_test.c | 541 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 561 | COMMENT | |
| LOW | ci/testdata/cython_test.c | 581 | #define __Pyx_uchar_cast(c) ((unsigned char)c) | COMMENT |
| LOW | ci/testdata/cython_test.c | 601 | #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) | COMMENT |
| LOW | ci/testdata/cython_test.c | 621 | #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize | COMMENT |
| LOW | ci/testdata/cython_test.c | 641 | while (*u_end++) ; | COMMENT |
| LOW | ci/testdata/cython_test.c | 801 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) | COMMENT |
| LOW | ci/testdata/cython_test.c | 821 | #define __Pyx_XINCREF(r) Py_XINCREF(r) | COMMENT |
| LOW | ci/testdata/cython_test.c | 901 | #else | COMMENT |
| LOW | ci/testdata/cython_test.c | 921 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 941 | COMMENT | |
| LOW | ci/testdata/cython_test.c | 2041 | static int __Pyx_modinit_function_import_code(void) { | COMMENT |
| LOW | ci/testdata/cython_test.c | 2061 | #endif | COMMENT |
| LOW | ci/testdata/cython_test.c | 2161 | #ifdef __Pyx_StopAsyncIteration_USED | COMMENT |
| LOW | src/config.rs | 1 | #[cfg(feature = "cli")] | COMMENT |
| LOW | src/lib.rs | 1 | //! py-spy: a sampling profiler for python programs | COMMENT |
| LOW | src/lib.rs | 21 | //! println!("\t {} ({}:{})", frame.name, frame.filename, frame.line); | COMMENT |
| LOW | src/python_data_access.rs | 521 | } | COMMENT |
| LOW | src/python_bindings/v3_11_0.rs | 1 | // Generated bindings for python v3.11.0 | COMMENT |
| LOW | src/python_bindings/v3_10_0.rs | 1 | // Generated bindings for python v3.10.0rc1 | COMMENT |
| LOW | src/python_bindings/v3_6_6.rs | 1 | // Generated bindings for python v3.6.6 | COMMENT |
| LOW | src/python_bindings/v3_9_5.rs | 1 | // Generated bindings for python v3.9.5 | COMMENT |
| LOW | src/python_bindings/v3_8_0.rs | 1 | // Generated bindings for python v3.8.0 | COMMENT |
| LOW | src/python_bindings/v3_5_5.rs | 1 | // Generated bindings for python v3.5.5 | COMMENT |
| LOW | src/python_bindings/v2_7_15.rs | 1 | // Generated bindings for python v2.7.15 | COMMENT |
| LOW | src/python_bindings/v3_15_0.rs | 1 | // Generated bindings for python v3.15.0 | COMMENT |
| LOW | src/python_bindings/v3_14_0.rs | 1 | // Generated bindings for python v3.14.0 | COMMENT |
| LOW | src/python_bindings/v3_7_0.rs | 1 | // Generated bindings for python v3.7.0 | COMMENT |
| LOW | src/python_bindings/v3_13_0.rs | 1 | // Generated bindings for python v3.13.0 | COMMENT |
| LOW | src/python_bindings/v3_4_8.rs | 1 | // Generated bindings for python v3.4.8 | COMMENT |
| LOW | src/python_bindings/v3_3_7.rs | 1 | // Generated bindings for python v3.3.7 | COMMENT |
| LOW | src/python_bindings/v3_12_0.rs | 1 | // Generated bindings for python v3.12.0 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | generate_bindings.py | 41 | def calculate_pyruntime_offsets(cpython_path, version, configure=False): | STRING |
| LOW | ci/update_python_test_versions.py | 17 | def get_github_python_versions(): | CODE |
| LOW | ci/update_python_test_versions.py | 66 | def update_python_test_versions(force=False): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration_test.py | 1 | CODE |