Repository Analysis

cython/cython

The most widely used Python to C compiler

11.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cython/cython, a Cython project with 10,794 GitHub stars. SynthScan v2.0 examined 191,747 lines of code across 633 source files, recording 2330 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 11.2 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.2
Adjusted Score
11.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
10.8K
Stars
Cython
Language
191.7K
Lines of Code
633
Files
2.3K
Pattern Hits
2026-07-14
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 2162

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 2330 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 Identifiers1139 hits · 807 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.py486def 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
1079 more matches not shown…
Deep Nesting464 hits · 324 pts
SeverityFileLineSnippetContext
LOWsetup.py228CODE
LOWruntests.py165CODE
LOWruntests.py312CODE
LOWruntests.py536CODE
LOWruntests.py993CODE
LOWruntests.py2037CODE
LOWruntests.py2076CODE
LOWruntests.py2421CODE
LOWruntests.py2481CODE
LOWruntests.py2950CODE
LOWruntests.py2993CODE
LOWruntests.py313CODE
LOWruntests.py815CODE
LOWruntests.py1103CODE
LOWruntests.py1135CODE
LOWruntests.py1268CODE
LOWruntests.py1357CODE
LOWruntests.py1472CODE
LOWruntests.py1753CODE
LOWruntests.py2169CODE
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/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
LOWCython/Tempita/_tempita.py614CODE
404 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.py4528#------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ModuleNode.py4532#------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py890#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py894#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py955#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py959#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py964#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py968#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py973#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py978#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1054#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1058#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1066#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1076#------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1249 #------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1255 #------------------------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1273 #-------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/TypeSlots.py1278 #-------------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py85#------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py89#------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py1666#-------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py1670#-------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py4758#----------------------------------------------COMMENT
MEDIUMCython/Compiler/Parsing.py4762#----------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py1334#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py1338#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py8495#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py8499#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2064#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2068#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2913#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py2917#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py3789#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py3793#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4052#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4056#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4110#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py4114#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py11416#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py11420#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py12426#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py12430#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py14725#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/ExprNodes.py14734#-------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py42#------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py58#------------------------------------------------------------------COMMENT
MEDIUMCython/Compiler/Scanning.py122#------------------------------------------------------------------COMMENT
24 more matches not shown…
Over-Commented Block263 hits · 204 pts
SeverityFileLineSnippetContext
LOWsetup.cfg41# Disabled - see https://github.com/pypa/setuptools/issues/4759COMMENT
LOWruntests.py2001 #'W3',COMMENT
LOWTools/cython-generate-lexicon.py1#!/usr/bin/env python3COMMENT
LOWTools/site_scons/site_tools/pyext.py21#COMMENT
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/Optimize.py401 return self._optimise_for_loop(node, arg, reversed=True)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.py2121 # This is an externally defined type. Calling through theCOMMENT
LOWCython/Compiler/TypeSlots.py21 # Method slot signature descriptor.COMMENT
LOWCython/Compiler/TypeSlots.py41 # 'l' longCOMMENT
LOWCython/Compiler/TypeSlots.py881 return '{"__dictoffset__", T_PYSSIZET, %s, READONLY, NULL},' % dict_offsetCOMMENT
LOWCython/Compiler/TypeSlots.py961pyfunction_signature = Signature("-*", "O")COMMENT
LOWCython/Compiler/TypeSlots.py1061 '__get__': Signature("T", "O"),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 # c_includes {key: IncludeCode} C headers or verbatim code to be generatedCOMMENT
LOWCython/Compiler/Symtab.py1941 #print "...allocating other vtable related cnames" ###COMMENT
LOWCython/Compiler/Symtab.py1981 #print "ModuleScope.check_c_classes: allocating vtable cname for", self ###COMMENT
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.py1341COMMENT
LOWCython/Compiler/ExprNodes.py361 # into two sub-phases:COMMENT
LOWCython/Compiler/ExprNodes.py381 # Framework code in ExprNode provides much of the commonCOMMENT
LOWCython/Compiler/ExprNodes.py401 # - Call analyse_types on all sub-expressions.COMMENT
LOWCython/Compiler/ExprNodes.py421 # otherwise call not_const.COMMENT
LOWCython/Compiler/ExprNodes.py441 # - If result is temporary, call generate_disposal_codeCOMMENT
LOWCython/Compiler/ExprNodes.py461 # - If the assignment absorbed a reference, callCOMMENT
LOWCython/Compiler/ExprNodes.py601 # value, a constant C name or a constant C expression. If theCOMMENT
LOWCython/Compiler/ExprNodes.py1001 code.put_xgiveref(self.result(), self.ctype())COMMENT
LOWCython/Compiler/ExprNodes.py2721 # This might raise an exception in which case the assignment (doneCOMMENT
LOWCython/Compiler/ExprNodes.py2921 # Implements result =COMMENT
LOWCython/Compiler/ExprNodes.py6921class PyMethodCallNode(CallNode):COMMENT
LOWCython/Compiler/ExprNodes.py7281 # if some args are temps and others are not, they may getCOMMENT
203 more matches not shown…
Unused Imports171 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/for_in_iter.py4CODE
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
111 more matches not shown…
Cross-Language Confusion23 hits · 119 pts
SeverityFileLineSnippetContext
HIGHruntests.py667 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.py2416 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2485 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2496 code.putln("Py_ssize_t x = __Pyx_PyIndex_AsSsize_t(i); if (unlikely(x == -1 && PyErr_Occurred())) returnCODE
HIGHCython/Compiler/ModuleNode.py2592 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2617 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2647 code.putln("if (likely(ret && ret != Py_NotImplemented)) {")CODE
HIGHCython/Compiler/ModuleNode.py2773 "if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {")CODE
HIGHCython/Compiler/TypeSlots.py1239 ifdef="(!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && "CODE
HIGHCython/Compiler/TypeSlots.py1240 "(!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)",CODE
HIGHCython/Compiler/TypeSlots.py1246 EmptySlot("tp_pypy_flags", ifdef="CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x030a0000"),CODE
HIGHCython/Compiler/ExprNodes.py7318 f"{Naming.quick_temp_cname} == NULL && PyErr_Occurred()",CODE
HIGHCython/Compiler/ExprNodes.py11319 " exc_type != PyExc_StopIteration && exc_type != PyExc_GeneratorExit &&"CODE
HIGHCython/Compiler/Nodes.py4438 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {goto_error}")CODE
HIGHCython/Compiler/Nodes.py4453 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {goto_error}")CODE
HIGHCython/Compiler/Nodes.py4604 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {code.error_goto(self.pos)}")CODE
HIGHCython/Compiler/Nodes.py4610 code.putln(f"if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[{i}])) {code.error_goto(self.pos)}")CODE
HIGHCython/Compiler/Nodes.py5889 code.putln("/* PY_VERSION_HEX >= 0x03090000 || Py_LIMITED_API >= 0x030B0000 */")CODE
HIGHCython/Compiler/Nodes.py5948 code.putln("if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) &&"CODE
Self-Referential Comments27 hits · 68 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.py1688 # Create a new globally-unique nice name for a C string constant.STRING
MEDIUMCython/Compiler/Code.py2127 # Create a downsized config struct and build code objects from it.STRING
MEDIUMCython/Compiler/Code.py2956 # Initialize these variables to silence compiler warningsSTRING
MEDIUMCython/Compiler/ParseTreeTransforms.py2615 # 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.py1017 # This method is called during the analyse_expressionsCOMMENT
MEDIUMCython/Compiler/ExprNodes.py6415 # Create a call node for C property access.COMMENT
MEDIUMCython/Compiler/ExprNodes.py6425 # Create a call node for C property access.COMMENT
MEDIUMCython/Compiler/ExprNodes.py8073 # Create a temporary entry describing the unbound C method in `entry`COMMENT
MEDIUMCython/Compiler/ExprNodes.py8130 # Create a corresponding NameNode from this node and complete theCOMMENT
MEDIUMCython/Compiler/ExprNodes.py10822 # Create a PyCodeObject for a CyFunction instance.COMMENT
MEDIUMCython/Compiler/Nodes.py2160 # Initialize the return variable __pyx_rCOMMENT
MEDIUMCython/Compiler/PyrexTypes.py5523 # 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
Excessive Try-Catch Wrapping67 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUMruntests.py120def import_refnanny():CODE
LOWruntests.py610 except Exception:CODE
LOWruntests.py1547 except Exception as exc:CODE
LOWruntests.py1646 except Exception:CODE
LOWruntests.py1651 except Exception:CODE
LOWruntests.py1711 except Exception:CODE
LOWruntests.py1716 except Exception:CODE
LOWruntests.py3292 except Exception as exc:CODE
LOWruntests.py3357 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_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.py63 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.py829 except Exception:CODE
LOWCython/Build/Dependencies.py1249 except Exception:STRING
LOWCython/Build/Dependencies.py1270 except Exception:STRING
MEDIUMCython/Compiler/Optimize.py4220def _find_special_codec_name(self, encoding):CODE
LOWCython/Compiler/Optimize.py4503 except Exception:CODE
LOWCython/Compiler/Options.py617 except Exception:CODE
LOWCython/Compiler/Visitor.py179 except Exception as e:CODE
MEDIUMCython/Compiler/ExprNodes.py2175def compile_time_value(self, denv):CODE
MEDIUMCython/Compiler/ExprNodes.py12435def matmul_operator(a, b):CODE
LOWCython/Compiler/ExprNodes.py1234 except Exception:CODE
LOWCython/Compiler/ExprNodes.py4170 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py5681 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6107 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6173 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py6397 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7438 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7668 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7738 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py7958 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py9238 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py9756 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py9907 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py9958 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py11458 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py11601 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py12505 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py13124 except Exception as e:CODE
LOWCython/Compiler/ExprNodes.py13977 except Exception as e:CODE
7 more matches not shown…
AI Structural Patterns47 hits · 40 pts
SeverityFileLineSnippetContext
LOWruntests.py1041CODE
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.py1216CODE
LOWCython/Build/Inline.py148CODE
LOWCython/Compiler/MatchCaseNodes.py1963CODE
LOWCython/Compiler/Parsing.py2919CODE
LOWCython/Compiler/Parsing.py2960CODE
LOWCython/Compiler/Symtab.py920CODE
LOWCython/Compiler/Symtab.py1749CODE
LOWCython/Compiler/Symtab.py1798CODE
LOWCython/Compiler/Symtab.py2277CODE
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.py2524CODE
LOWCython/Compiler/AutoDocTransforms.py56CODE
LOWCython/Compiler/AutoDocTransforms.py62CODE
LOWCython/Compiler/AutoDocTransforms.py146CODE
LOWCython/Compiler/ExprNodes.py6746CODE
LOWCython/Compiler/ExprNodes.py12224CODE
LOWCython/Compiler/Builtin.py39CODE
LOWCython/Compiler/Nodes.py3249CODE
LOWCython/Compiler/PyrexTypes.py3611CODE
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 · 19 pts
SeverityFileLineSnippetContext
MEDIUMtests/run/test_grammar.py1951 # This is not intended to be a comprehensive test, rather just to be fewSTRING
LOWCython/Compiler/Symtab.py2345 # 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.py6949 # Essentially, if the signature matches PyObject_VectorcallMethodCOMMENT
MEDIUMCython/Compiler/ExprNodes.py7915 # Essentially it does:COMMENT
LOWCython/Compiler/ExprNodes.py7845 # 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.c885 // 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.py94 # 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.py5150 # 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.py1813 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.py5340 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.c509 // NOTE: This function decrefs 'number' if a conversion happens to replace the original object.COMMENT
LOWCython/Utility/TypeConversion.c558 // 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.py14346 # TODO: implement this for other types.COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWCython/Compiler/Optimize.py3174 # The purpose of this function is to handle calls to instance.__class__() so thatCOMMENT