Repository Analysis

benfred/py-spy

Sampling profiler for Python programs

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
2026-05-12
Last Push
15,230
Stars
Rust
Language
77,865
Lines of Code
71
Files
60
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 60

Pattern Findings

60 matches across 3 categories. Click a row to expand file-level details.

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