Repository Analysis

cython/cython

The most widely used Python to C compiler

11.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cython/cython, a Cython project with 10,836 GitHub stars. SynthScan v2.0 examined 195,158 lines of code across 636 source files, recording 2414 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 11.4 places this repository in the Low 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).

11.4
Adjusted Score
11.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.8K
Stars
Cython
Language
195.2K
Lines of Code
636
Files
2.4K
Pattern Hits
2026-08-29
Scan Date
0.04
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 1HIGH 23MEDIUM 144LOW 2246

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 2414 distinct pattern matches across 19 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.

Hyper-Verbose Identifiers1206 hits · 859 pts
SeverityFileLineSnippetContext
LOWruntests.py156def unpatch_inspect_isfunction():CODE
LOWruntests.py265def update_linetrace_extension(ext):CODE
LOWruntests.py312def update_language_extension(language, std, min_gcc_version=None, min_clang_version=None, min_macos_version=None):CODE
LOWruntests.py313 def _update_language_extension(ext):CODE
LOWruntests.py428def get_openmp_compiler_flags(language):CODE
LOWruntests.py487def iterate_matcher_fixer_dict(matchers_and_fixers):CODE
LOWTools/cython-generate-lexicon.py74def get_start_characters_as_number():STRING
LOWTools/cython-generate-lexicon.py78def get_continue_characters_as_number():STRING
LOWTools/cython-generate-lexicon.py82def get_continue_not_start_as_number():STRING
LOWTools/dataclass_test_data/test_dataclasses.py35 def test_no_fields_but_member_variable(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py43 def test_one_field_no_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py51 def test_field_default_default_factory_error(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1781 def test_dynamic_class_creation(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1794 def test_dynamic_class_creation_using_field(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2108 def test_existing_docstring_not_overridden(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2130 def test_docstring_two_fields(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2138 def test_docstring_three_fields(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2147 def test_docstring_one_field_with_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2154 def test_docstring_one_field_with_default_none(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2161 def test_docstring_list_field(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2168 def test_docstring_list_field_with_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2175 def test_docstring_deque_field(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py2182 def test_docstring_deque_field_with_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py3638 def test_non_identifier_field_names(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py3648 def test_underscore_field_names(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py3653 def test_funny_class_names_names(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py79 def test_two_fields_one_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py176 def test_overwrite_fields_in_derived_class(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py227 def test_field_named_object_frozen(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py234 def test_field_named_like_builtin(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py251 def test_field_named_like_builtin_frozen(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py505 def test_no_unhashable_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py557 def test_init_false_no_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py661 def test_disallowed_mutable_defaults(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py706 def test_deliberately_mutable_defaults(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py781 def test_function_annotations(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py872 def test_missing_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py897 def test_dont_include_other_annotations(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py989 def test_post_init_staticmethod(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1005 def test_post_init_classmethod(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1020 def test_post_init_not_auto_added(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1107 def test_class_var_no_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1115 def test_class_var_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1126 def test_class_var_with_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1173 def test_init_var_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1184 def test_init_var_with_default(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1209 def test_init_var_preserve_type(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1221 def test_init_var_inheritance(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1304 def test_default_factory_with_no_init(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1318 def test_default_factory_not_called_if_value_given(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1335 def test_default_factory_derived(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1354 def test_intermediate_non_dataclass(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1383 def test_classvar_default_factory(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1418 def test_is_dataclass_when_getattr_always_returns(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1444 def test_is_dataclass_genericalias(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1455 def test_helper_fields_with_class_instance(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1465 def test_helper_fields_exception(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1492 def test_helper_asdict_raises_on_classes(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1503 def test_helper_asdict_copy_values(self):CODE
LOWTools/dataclass_test_data/test_dataclasses.py1518 def test_helper_asdict_nested(self):CODE
1146 more matches not shown…
Deep Nesting465 hits · 324 pts
SeverityFileLineSnippetContext
LOWsetup.py247CODE
LOWruntests.py165CODE
LOWruntests.py312CODE
LOWruntests.py539CODE
LOWruntests.py996CODE
LOWruntests.py2042CODE
LOWruntests.py2081CODE
LOWruntests.py2474CODE
LOWruntests.py2534CODE
LOWruntests.py3003CODE
LOWruntests.py3046CODE
LOWruntests.py313CODE
LOWruntests.py818CODE
LOWruntests.py1106CODE
LOWruntests.py1138CODE
LOWruntests.py1271CODE
LOWruntests.py1360CODE
LOWruntests.py1475CODE
LOWruntests.py1758CODE
LOWruntests.py2174CODE
LOWTools/jedityper.py25CODE
LOWTools/jedityper.py71CODE
LOWTools/download_release.py64CODE
LOWTools/cevaltrace.py32CODE
LOWTools/cevaltrace.py86CODE
LOWTools/cython-generate-shadow-py.py20CODE
LOWTools/dataclass_test_data/test_dataclasses.py269CODE
LOWTools/dataclass_test_data/test_dataclasses.py297CODE
LOWTools/dataclass_test_data/test_dataclasses.py330CODE
LOWTools/dataclass_test_data/test_dataclasses.py409CODE
LOWTools/dataclass_test_data/test_dataclasses.py531CODE
LOWTools/dataclass_test_data/test_dataclasses.py2478CODE
LOWTools/dataclass_test_data/test_dataclasses.py2615CODE
LOWTools/dataclass_test_data/test_dataclasses.py3444CODE
LOWTools/dataclass_test_data/test_dataclasses.py2487CODE
LOWtests/run/carray_iteration.py8492CODE
LOWtests/run/carray_iteration.py8542CODE
LOWtests/run/carray_iteration.py8605CODE
LOWtests/run/pstats_profile_test_py.py171CODE
LOWtests/run/test_named_expressions.py34CODE
LOWtests/run/test_grammar.py220CODE
LOWtests/run/test_grammar.py901CODE
LOWtests/run/test_grammar.py1158CODE
LOWtests/run/test_grammar.py1362CODE
LOWtests/run/test_grammar.py1160CODE
LOWtests/run/test_grammar.py1174CODE
LOWtests/run/test_asyncgen.py250CODE
LOWtests/run/test_asyncgen.py263CODE
LOWCython/TestUtils.py336CODE
LOWCython/Coverage.py195CODE
LOWCython/Coverage.py288CODE
LOWCython/LZSS.py16CODE
LOWCython/LZSS.py37CODE
LOWCython/Utils.py264CODE
LOWCython/Utils.py415CODE
LOWCython/Utils.py585CODE
LOWCython/Shadow.py460CODE
LOWCython/Distutils/old_build_ext.py194CODE
LOWCython/Tests/TestShadow.py10CODE
LOWCython/Tests/TestShadow.py57CODE
405 more matches not shown…
Decorative Section Separators84 hits · 292 pts
SeverityFileLineSnippetContext
MEDIUMTools/cython-epydoc.py3# --------------------------------------------------------------------COMMENT
MEDIUMTools/cython-epydoc.py40# --------------------------------------------------------------------COMMENT
MEDIUMTools/cython-epydoc.py45# --------------------------------------------------------------------COMMENT
MEDIUMTools/make_dataclass_tests.py20 # ====================COMMENT
MEDIUMTools/make_dataclass_tests.py68 # =====================COMMENT
MEDIUMTools/make_dataclass_tests.py170 # ==========COMMENT
MEDIUMCython/Plex/Regexps.py174# -------------------------COMMENT
MEDIUMCython/Plex/Regexps.py393# -------------------------COMMENT
MEDIUMCython/Build/IpythonMagic.py38#-----------------------------------------------------------------------------COMMENT
MEDIUMCython/Build/IpythonMagic.py44#-----------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Options.py657# ------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Options.py797# ------------------------------------------------------------------------STRING
MEDIUMCython/Compiler/Options.py801# ------------------------------------------------------------------------STRING
MEDIUMCython/Compiler/ModuleNode.py4533#------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ModuleNode.py4537#------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py891#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py895#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py956#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py960#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py965#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py969#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py974#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py979#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1055#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1059#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1067#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1077#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1250 #------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1256 #------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1274 #-------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1279 #-------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py85#------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py89#------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py1659#-------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py1663#-------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py4775#----------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py4779#----------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py1340#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py1344#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py8567#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py8571#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2070#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2074#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2938#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2942#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py3815#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py3819#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4078#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4082#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4136#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4140#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py11709#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py11713#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py12725#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py12729#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py15007#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py15016#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py42#------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py58#------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py122#------------------------------------------------------------------COMMENT
24 more matches not shown…
Over-Commented Block270 hits · 213 pts
SeverityFileLineSnippetContext
LOWruntests.py2001 #'E502',COMMENT
LOWTools/cython-generate-lexicon.py1#!/usr/bin/env python3COMMENT
LOWTools/site_scons/site_tools/pyext.py21#COMMENT
LOWtests/bugs.txt61# Test doesn't actually activate the virtual env andCOMMENT
LOWtests/run/pstats_profile_test_py.py301# e = (x for x in range(10))COMMENT
LOWtests/run/complex_numbers_cxx_T398.h1#if defined(__cplusplus)COMMENT
LOWtests/run/test_grammar.py101COMMENT
LOWtests/run/test_grammar.py581 self.assertEqual(ns['x'], (1, 2, 3, 4, 5))COMMENT
LOWtests/run/qualname.py101 #>>> print(CdefClass.l["__qualname__"], CdefClass.l["__module__"])COMMENT
LOWtests/run/qualname.py141 # TODO del inside cdef class scope is brokenCOMMENT
LOWtests/run/genexpr_arg_order.py41# return (a for a in range(zero(), five()))COMMENT
LOWtests/run/define_macro_helper.h1#pragma onceCOMMENT
LOWtests/run/posonly.py41 """COMMENT
LOWtests/run/posonly.py61# a263,a264,a265,a266,a267,a268,a269,a270,a271,a272,a273,a274,a275,a276,a277,COMMENT
LOWCython/Distutils/old_build_ext.py201 new_sources = []COMMENT
LOWCython/Debugger/Tests/TestLibCython.py141 )COMMENT
LOWCython/Plex/DFA.py21def nfa_to_dfa(old_machine, debug=None):COMMENT
LOWCython/Plex/Scanners.py41 Causes scanner to change state.COMMENT
LOWCython/Plex/Scanners.py61 # current_scanner_position_tuple = ("", 0, 0)COMMENT
LOWCython/Compiler/MatchCaseNodes.py1181 # (DictProxyType is, but Cython doesn't know about that).COMMENT
LOWCython/Compiler/MatchCaseNodes.py1241 args=[COMMENT
LOWCython/Compiler/Options.py41#: will be smaller, but the ``__doc__`` attribute of any class or function will be anCOMMENT
LOWCython/Compiler/Options.py81#: them a compile time error. If you want full Python compatibility,COMMENT
LOWCython/Compiler/Options.py101#: time. This will prevent the module from getting imported if aCOMMENT
LOWCython/Compiler/Options.py121#: This will provide a C function which initialises the interpreter andCOMMENT
LOWCython/Compiler/Options.py741 # directives passed on to the C compiler do not influence the generated C codeCOMMENT
LOWCython/Compiler/ModuleNode.py201class ModuleNode(Nodes.Node, Nodes.BlockNode):COMMENT
LOWCython/Compiler/ModuleNode.py2121 # Undo the untracking above.COMMENT
LOWCython/Compiler/ModuleNode.py4541packed_struct_utility_code = UtilityCode(proto="""COMMENT
LOWCython/Compiler/TypeSlots.py21 # Method slot signature descriptor.COMMENT
LOWCython/Compiler/TypeSlots.py41 # 'l' longCOMMENT
LOWCython/Compiler/TypeSlots.py881 return NoneCOMMENT
LOWCython/Compiler/TypeSlots.py961COMMENT
LOWCython/Compiler/TypeSlots.py1061property_accessor_signatures = {COMMENT
LOWCython/Compiler/Symtab.py61 self.rcbuf_var = rcbuf_varCOMMENT
LOWCython/Compiler/Symtab.py81 # class constructionCOMMENT
LOWCython/Compiler/Symtab.py101 # doc_cname string or None C const holding the docstringCOMMENT
LOWCython/Compiler/Symtab.py121 # xdecref_cleanup boolean Use Py_XDECREF for error cleanupCOMMENT
LOWCython/Compiler/Symtab.py141 # inline_func_in_pxd boolean Hacky special case for inline function in pxd file.COMMENT
LOWCython/Compiler/Symtab.py341 # we wouldn't have been called if it was thereCOMMENT
LOWCython/Compiler/Symtab.py361 # cname_to_entry {string : Entry} Temp cname to entry mappingCOMMENT
LOWCython/Compiler/Symtab.py1381 # utility_code_list [UtilityCode] Queuing utility codes for forwarding to Code.pyCOMMENT
LOWCython/Compiler/Symtab.py1941 type.vtabslot_cname = Naming.vtabslot_cnameCOMMENT
LOWCython/Compiler/Symtab.py1981 # Allocate vtable name if necessaryCOMMENT
LOWCython/Compiler/Symtab.py2401 entry = self.global_scope().lookup_target(name)COMMENT
LOWCython/Compiler/Dataclass.py641 # | | |COMMENT
LOWCython/Compiler/Dataclass.py721 # __annotations__ dict, therefore it's safe to just returnCOMMENT
LOWCython/Compiler/Code.py121COMMENT
LOWCython/Compiler/Code.py1341 def __lt__(self, other):COMMENT
LOWCython/Compiler/Code.py2501 - filename_table, filename_list, input_file_contents: All codewritersCOMMENT
LOWCython/Compiler/ExprNodes.py361 use_borrowed_ref = FalseCOMMENT
LOWCython/Compiler/ExprNodes.py381 # being analysed. In that case, the above two phasesCOMMENT
LOWCython/Compiler/ExprNodes.py401 # Expression Analysis phaseCOMMENT
LOWCython/Compiler/ExprNodes.py421 # check_constCOMMENT
LOWCython/Compiler/ExprNodes.py441 # - Call generate_evaluation_code for sub-expressions.COMMENT
LOWCython/Compiler/ExprNodes.py461 # Called on the LHS of an assignment.COMMENT
LOWCython/Compiler/ExprNodes.py601 # can be called when the constant result code is requiredCOMMENT
LOWCython/Compiler/ExprNodes.py701 # Convenience routine performing both the TypeCOMMENT
LOWCython/Compiler/ExprNodes.py2741 if self.type.is_memoryviewslice:COMMENT
LOWCython/Compiler/ExprNodes.py2941#COMMENT
210 more matches not shown…
Unused Imports170 hits · 164 pts
SeverityFileLineSnippetContext
LOWcython.py26CODE
LOWcython.py28CODE
LOWcython.py29CODE
LOWcygdb.py3CODE
LOWruntests.py70CODE
LOWTools/jedityper.py5CODE
LOWTools/jedityper.py9CODE
LOWTools/cevaltrace.py8CODE
LOWTools/cevaltrace.py8CODE
LOWTools/dataclass_test_data/test_dataclasses.py5CODE
LOWTools/dataclass_test_data/test_dataclasses.py20CODE
LOWTools/dataclass_test_data/test_dataclasses.py21CODE
LOWtests/memoryview/memoryview_annotation_typing.py5CODE
LOWtests/memoryview/memoryview_annotation_typing.py12CODE
LOWtests/compile/cython_compiled_folding.py31CODE
LOWtests/compile/cython_compiled_folding.py9CODE
LOWtests/compile/cython_compiled_folding.py14CODE
LOWtests/compile/cython_compiled_folding.py28CODE
LOWtests/compile/cython_compiled_folding.py39CODE
LOWtests/compile/cython_compiled_folding.py21CODE
LOWtests/errors/e_invalid_special_cython_modules.py6CODE
LOWtests/errors/e_invalid_special_cython_modules.py7CODE
LOWtests/errors/e_invalid_special_cython_modules.py9CODE
LOWtests/errors/e_invalid_special_cython_modules.py14CODE
LOWtests/errors/e_invalid_special_cython_modules.py15CODE
LOWtests/errors/e_invalid_special_cython_modules.py17CODE
LOWtests/errors/e_invalid_special_cython_modules.py18CODE
LOWtests/errors/e_invalid_special_cython_modules.py19CODE
LOWtests/run/generators_py35.py4CODE
LOWtests/run/carray_iteration.py8540CODE
LOWtests/run/pyclass_annotations_pep526.py5CODE
LOWtests/run/pyclass_annotations_pep526.py7CODE
LOWtests/run/extra_patma_py.py4CODE
LOWtests/run/extra_patma_py.py4CODE
LOWtests/run/extra_patma_py.py6CODE
LOWtests/run/set_literals.py3CODE
LOWtests/run/import_error_T734.py10CODE
LOWtests/run/test_grammar.py108CODE
LOWtests/run/test_grammar.py111CODE
LOWtests/run/test_grammar.py113CODE
LOWtests/run/test_grammar.py1296CODE
LOWtests/run/test_grammar.py1297CODE
LOWtests/run/test_grammar.py1298CODE
LOWtests/run/pure_cdef_class_dataclass.py4CODE
LOWtests/run/pure_ctuple.py7CODE
LOWtests/run/type_inference_generics.py7CODE
LOWtests/run/extra_walrus.py8CODE
LOWtests/run/pure_py.py201CODE
LOWtests/run/generator_frame_cycle.py4CODE
LOWtests/run/pep526_variable_annotations.py7CODE
LOWtests/run/test_shadow_error.py9CODE
LOWtests/run/test_asyncgen.py5CODE
LOWtests/run/test_asyncgen.py121CODE
LOWtests/run/qualname.py5CODE
LOWtests/run/genexpr_arg_order.py4CODE
LOWtests/run/ref2global.py5CODE
LOWtests/run/pep563_annotations.py4CODE
LOWtests/run/posonly.py6CODE
LOWtests/run/builtin_types_class.py3CODE
LOWtests/run/pure_parallel.py5CODE
110 more matches not shown…
Cross-Language Confusion23 hits · 119 pts
SeverityFileLineSnippetContext
HIGHruntests.py670 self.push(item)CODE
HIGHtests/run/test_grammar.py805 @[..., null, ...][1]STRING
HIGHtests/run/test_grammar.py807 @null(null)(null)STRING
HIGHtests/run/test_grammar.py809 @[null][0].__call__.__call__STRING
HIGHCython/Build/IpythonMagic.py110 self.shell.push({k: mdict[k]})CODE
HIGHCython/Compiler/ModuleNode.py2424 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2493 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2504 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2602 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2627 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2657 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2783 "if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {")CODE
HIGHCython/Compiler/TypeSlots.py1240 ifdef="(!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && "CODE
HIGHCython/Compiler/TypeSlots.py1241 "(!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)",CODE
HIGHCython/Compiler/TypeSlots.py1247 EmptySlot("tp_pypy_flags", ifdef="CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x030a0000"),CODE
HIGHCython/Compiler/ExprNodes.py7364 f"{Naming.quick_temp_cname} == NULL && PyErr_Occurred()",CODE
HIGHCython/Compiler/ExprNodes.py11612 " exc_type != PyExc_StopIteration && exc_type != PyExc_GeneratorExit &&"CODE
HIGHCython/Compiler/Nodes.py4446 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {goto_error}")CODE
HIGHCython/Compiler/Nodes.py4461 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {goto_error}")CODE
HIGHCython/Compiler/Nodes.py4612 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {code.error_goto(self.pos)}")CODE
HIGHCython/Compiler/Nodes.py4618 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {code.error_goto(self.pos)}")CODE
HIGHCython/Compiler/Nodes.py5903 code.putln("/* PY_VERSION_HEX >= 0x03090000 || Py_LIMITED_API >= 0x030B0000 */")CODE
HIGHCython/Compiler/Nodes.py5962 code.putln("if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) &&"CODE
Excessive Try-Catch Wrapping78 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUMruntests.py120def import_refnanny():CODE
LOWruntests.py613 except Exception:CODE
LOWruntests.py1552 except Exception as exc:CODE
LOWruntests.py1651 except Exception:CODE
LOWruntests.py1656 except Exception:CODE
LOWruntests.py1716 except Exception:CODE
LOWruntests.py1721 except Exception:CODE
LOWruntests.py3345 except Exception as exc:CODE
LOWruntests.py3410 except Exception:CODE
LOWtests/run/pstats_profile_test_py.py152 except Exception as exc:STRING
MEDIUMtests/run/pstats_profile_test_py.py145def trace_function(frame, event, arg):CODE
MEDIUMtests/run/test_except_star.py167def f():CODE
LOWtests/run/test_except_star.py1076 except Exception as e:CODE
LOWtests/run/test_except_star.py270 except Exception:CODE
LOWtests/run/test_except_star.py1009 except Exception as e:CODE
LOWtests/run/test_except_star.py1034 except Exception as e:CODE
LOWtests/run/test_except_star.py1129 except Exception as e:CODE
LOWtests/run/test_except_star.py1180 except Exception as e:CODE
LOWtests/run/test_except_star.py1235 except Exception as e:CODE
MEDIUMtests/run/test_grammar.py58def eval(code):CODE
LOWtests/run/test_grammar.py466 except Exception as e:CODE
LOWtests/run/extra_walrus.py509 except Exception:CODE
LOWtests/run/extra_walrus.py524 except Exception:CODE
LOWtests/run/extra_walrus.py539 except Exception:CODE
LOWtests/run/extra_walrus.py561 except Exception:CODE
LOWtests/run/test_asyncgen.py259 except Exception as ex:STRING
LOWtests/run/test_asyncgen.py280 except Exception as ex:STRING
LOWtests/run/builtin_exceptions.py960 except Exception as e:CODE
LOWCython/TestUtils.py147 except Exception as exc:CODE
LOWCython/Distutils/old_build_ext.py32 except Exception:STRING
MEDIUMCython/Distutils/old_build_ext.py27def _check_stack(path):CODE
LOWCython/Tempita/_tempita.py312 except Exception as e:CODE
LOWCython/Tempita/_tempita.py324 except Exception as e:CODE
LOWCython/Tempita/_tempita.py347 except Exception as e:CODE
LOWCython/Debugger/Cygdb.py99 except Exception as ex:CODE
LOWCython/Debugger/libpython.py934 except Exception:CODE
LOWCython/Debugger/libpython.py1954 except Exception:CODE
MEDIUMCython/Debugger/libpython.py265def safe_tp_name(self):CODE
MEDIUMCython/Debugger/libpython.py1344def safe_name(self):CODE
LOWCython/Debugger/Tests/test_libcython_in_gdb.py43 except Exception:CODE
LOWCython/Build/Dependencies.py15except Exception:CODE
LOWCython/Build/Dependencies.py829 except Exception:CODE
LOWCython/Build/Dependencies.py1192 except Exception:CODE
LOWCython/Build/Dependencies.py1252 except Exception:STRING
LOWCython/Build/Dependencies.py1273 except Exception:STRING
LOWCython/Build/Tests/TestInline.py11except Exception:CODE
MEDIUMCython/Compiler/Optimize.py4237def _find_special_codec_name(self, encoding):CODE
LOWCython/Compiler/Optimize.py4520 except Exception:CODE
LOWCython/Compiler/Options.py617 except Exception:CODE
LOWCython/Compiler/Visitor.py179 except Exception as e:CODE
MEDIUMCython/Compiler/ExprNodes.py2187def compile_time_value(self, denv):CODE
MEDIUMCython/Compiler/ExprNodes.py12734def matmul_operator(a, b):CODE
LOWCython/Compiler/ExprNodes.py1240 except Exception:CODE
LOWCython/Compiler/ExprNodes.py4196 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py5706 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6132 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6198 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6429 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7484 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7715 except Exception as e:CODE
18 more matches not shown…
Self-Referential Comments26 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMTools/gen_tests_for_posix_pxds.py14 "# This file is generated by `Tools/gen_tests_for_posix_pxds.py`.\n"CODE
MEDIUMTools/dataclass_test_data/test_dataclasses.py1785 # Create the class.COMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py1799 # Create the class.COMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py937 # Creating the class won't raiseCOMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py2518 # Creating the class should cause an exception.COMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py3165 # Create a descriptor.COMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py3192 # Create a descriptor.COMMENT
MEDIUMTools/dataclass_test_data/test_dataclasses.py3209 # Create an attribute on the instance, not type.COMMENT
MEDIUMTools/site_scons/site_tools/pyext.py216 # Create the PythonObject builderCOMMENT
MEDIUMTools/site_scons/site_tools/pyext.py226 # Create the PythonExtension builderCOMMENT
MEDIUMCython/Tests/xmlrunner.py57 """This class is used to keep useful information about the execution of aSTRING
MEDIUMCython/Build/Dependencies.py853 # Create the new extensionCOMMENT
MEDIUMCython/Compiler/Code.py1690 # Create a new globally-unique nice name for a C string constant.STRING
MEDIUMCython/Compiler/Code.py2124 # Create a downsized config struct and build code objects from it.STRING
MEDIUMCython/Compiler/Code.py2985 # Initialize these variables to silence compiler warningsSTRING
MEDIUMCython/Compiler/ParseTreeTransforms.py2654 # Create a wrapper node if needed.STRING
MEDIUMCython/Compiler/Pipeline.py378 # Create a new wrapper for each step to show the name in profiles.COMMENT
MEDIUMCython/Compiler/ExprNodes.py1021 # This method is called during the analyse_expressionsCOMMENT
MEDIUMCython/Compiler/ExprNodes.py6447 # Create a call node for C property access.COMMENT
MEDIUMCython/Compiler/ExprNodes.py8120 # Create a temporary entry describing the unbound C method in `entry`COMMENT
MEDIUMCython/Compiler/ExprNodes.py8177 # Create a corresponding NameNode from this node and complete theCOMMENT
MEDIUMCython/Compiler/ExprNodes.py11110 # Create a PyCodeObject for a CyFunction instance.COMMENT
MEDIUMCython/Compiler/Nodes.py2160 # Initialize the return variable __pyx_rCOMMENT
MEDIUMCython/Compiler/PyrexTypes.py5590 # Create a reference type that we can use in the definitions of acquire and releaseCOMMENT
MEDIUMdocs/examples/userguide/memoryviews/not_none.py8 # Creating a default view, e.g.COMMENT
MEDIUM.github/workflows/wheels.yml51 # Create a matrix of all architectures & versions to build.COMMENT
AI Structural Patterns47 hits · 40 pts
SeverityFileLineSnippetContext
LOWruntests.py1044CODE
LOWtests/run/builtin_divmod.py54CODE
LOWtests/run/builtin_divmod.py86CODE
LOWtests/run/builtin_divmod.py130CODE
LOWtests/run/builtin_divmod.py174CODE
LOWtests/run/builtin_divmod.py233CODE
LOWtests/run/builtin_divmod.py256CODE
LOWtests/run/builtin_divmod.py283CODE
LOWtests/run/builtin_divmod.py376CODE
LOWtests/run/builtin_divmod.py420CODE
LOWtests/run/builtin_divmod.py464CODE
LOWtests/run/builtin_divmod.py508CODE
LOWtests/run/sys_monitoring.py703CODE
LOWCython/Shadow.py234CODE
LOWCython/Shadow.py593CODE
LOWCython/Distutils/extension.py14CODE
LOWCython/Tempita/_tempita.py100CODE
LOWCython/Debugger/libpython.py757CODE
LOWCython/Debugger/libpython.py1121CODE
LOWCython/Debugger/libpython.py1230CODE
LOWCython/Debugger/libpython.py2100CODE
LOWCython/Build/Dependencies.py879CODE
LOWCython/Build/Dependencies.py1219CODE
LOWCython/Build/Inline.py148CODE
LOWCython/Compiler/MatchCaseNodes.py1963CODE
LOWCython/Compiler/Parsing.py2936CODE
LOWCython/Compiler/Parsing.py2977CODE
LOWCython/Compiler/Symtab.py920CODE
LOWCython/Compiler/Symtab.py1751CODE
LOWCython/Compiler/Symtab.py1800CODE
LOWCython/Compiler/Symtab.py2279CODE
LOWCython/Compiler/Symtab.py2654CODE
LOWCython/Compiler/Symtab.py2761CODE
LOWCython/Compiler/Symtab.py2902CODE
LOWCython/Compiler/Dataclass.py191CODE
LOWCython/Compiler/UtilityCode.py77CODE
LOWCython/Compiler/Code.py566CODE
LOWCython/Compiler/Code.py2550CODE
LOWCython/Compiler/AutoDocTransforms.py56CODE
LOWCython/Compiler/AutoDocTransforms.py62CODE
LOWCython/Compiler/AutoDocTransforms.py146CODE
LOWCython/Compiler/ExprNodes.py6855CODE
LOWCython/Compiler/ExprNodes.py12523CODE
LOWCython/Compiler/Builtin.py39CODE
LOWCython/Compiler/Nodes.py3257CODE
LOWCython/Compiler/PyrexTypes.py3658CODE
LOWpyximport/pyximport.py368CODE
Dead Code12 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtests/run/test_asyncgen.py532CODE
MEDIUMtests/run/test_asyncgen.py565CODE
MEDIUMtests/run/test_asyncgen.py743CODE
MEDIUMtests/run/test_asyncgen.py804CODE
MEDIUMtests/run/test_asyncgen.py1751CODE
MEDIUMtests/run/test_asyncgen.py1772CODE
MEDIUMtests/run/test_asyncgen.py1796CODE
MEDIUMCython/Debugger/libpython.py2139CODE
MEDIUMCython/Debugger/libpython.py2141CODE
MEDIUMCython/Debugger/Tests/test_libcython_in_gdb.py451CODE
MEDIUMCython/Debugger/Tests/test_libcython_in_gdb.py458CODE
MEDIUMCython/Debugger/Tests/test_libcython_in_gdb.py459CODE
AI Slop Vocabulary10 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/run/test_grammar.py1948 # This is not intended to be a comprehensive test, rather just to be fewSTRING
LOWCython/Compiler/Symtab.py2347 # the type definition, so we just return the right entry.COMMENT
MEDIUMCython/Compiler/Naming.py6# Collected here to facilitate ensuring uniqueness.COMMENT
LOWCython/Compiler/Dataclass.py721 # __annotations__ dict, therefore it's safe to just returnSTRING
MEDIUMCython/Compiler/ExprNodes.py6995 # Essentially, if the signature matches PyObject_VectorcallMethodCOMMENT
MEDIUMCython/Compiler/ExprNodes.py7962 # Essentially it does:COMMENT
LOWCython/Compiler/ExprNodes.py7892 # simple case, just add all entriesCOMMENT
MEDIUMCython/Compiler/PyrexTypes.py55 # This is not entirely robust.COMMENT
MEDIUMCython/Compiler/Tests/TestParseTreeTransforms.py202# TODO: Re-enable once they're more robust.STRING
MEDIUMCython/Utility/Exceptions.c965 // DW - this is a horrendous hack, but I'm quite proud of it. EssentiallyCOMMENT
Redundant / Tautological Comments6 hits · 6 pts
SeverityFileLineSnippetContext
LOWCython/StringIOTree.py127 # Print the result of allmarkers in a nice human-readable form. Use it only for debugging.STRING
LOWCython/Tests/xmlrunner.py368 # Print resultsCOMMENT
LOWCython/Debugger/Cygdb.py131 # Check if the Python executable provides a symbol table.COMMENT
LOWCython/Debugger/Tests/test_libcython_in_gdb.py537 # Check if the Python executable provides a symbol table.STRING
LOWCython/Compiler/ExprNodes.py5175 # Assign indices to temps of at least (s)size_t to allow further index calculations.COMMENT
LOWdocs/conf.py61 # Set both to enable "Edit page source"COMMENT
Hallucination Indicators1 hit · 5 pts
SeverityFileLineSnippetContext
CRITICALCython/Compiler/ParseTreeTransforms.py1852 name_node.entry = self.gen_node.def_node.gbody.local_scope.lookup(name_node.name)STRING
Modern Structural Boilerplate5 hits · 4 pts
SeverityFileLineSnippetContext
LOWCython/Tempita/_looper.py21__all__ = ['looper']CODE
LOWCython/Tempita/_tempita.py42__all__ = ['TemplateError', 'Template', 'sub', 'bunch']CODE
LOWCython/Debugger/Cygdb.py23logger = logging.getLogger(__name__)CODE
LOWCython/Build/__init__.py3__all__ = ["cythonize"]CODE
LOWCython/Compiler/PyrexTypes.py5391 def set_python_type_constructor_name(self, name: str) -> None:CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWTools/dataclass_test_data/test_dataclasses.py2114 self.assertEqual(C.__doc__, "Lorem ipsum")CODE
LOWTools/dataclass_test_data/test_dataclasses.py2111 """Lorem ipsum"""STRING
LOWtests/run/extra_patma_py.py349 AttributeError: ...'Namespace'... has no attribute 'fake_name'CODE
LOWtests/run/extra_patma_py.py352 case Namespace.fake_name | _:STRING
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWCython/Utility/TypeConversion.c513 // NOTE: This function decrefs 'number' if a conversion happens to replace the original object.COMMENT
LOWCython/Utility/TypeConversion.c568 // NOTE: This function decrefs 'number' if a conversion happens to replace the original object.COMMENT
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMCython/Build/IpythonMagic.py121 in the user's namespace, here is a simple example that returnsSTRING
LOWCython/Compiler/Code.py399 # Don't forget to add the last utility codeCOMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWCython/Compiler/Parsing.py610 # TODO: implement a faster way to join tuples than creating each one and adding themCOMMENT
LOWCython/Compiler/ExprNodes.py14662 # TODO: implement this for other types.COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWCython/Compiler/Optimize.py3191 # The purpose of this function is to handle calls to instance.__class__() so thatCOMMENT