AI Slop Code RIsk Monitor

python/cpython

The Python programming language

12.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for python/cpython, a Python project with 77,608 GitHub stars. SynthScan examined 2,299,003 lines of code across 4031 source files, recording 24365 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 12.6 (Moderate 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.

12.6
Adjusted Signal
12.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
77.6K
Stars
Python
Language
2.3M
Lines of Code
4.0K
Files
24.4K
Pattern Hits
2026-10-12
Scan Date
0.53
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 28.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.8/100 · LOW

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

Agent Over-Engineering Ratio 35.1/100 · MEDIUM

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

PR Review Velocity Impact 55.3/100 · HIGH

Which changes need focused human review? 24365 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 10HIGH 2126MEDIUM 967LOW 21262

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 24365 distinct pattern matches across 26 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.

Hyper-Verbose Identifiers13311 hits · 9621 pts
SeverityFileLineSnippetContext
LOWPC/layout/support/appxmanifest.py384def disable_registry_virtualization(xml):CODE
LOWPC/layout/support/nuspec.py64def _get_nuspec_data_overrides(ns):STRING
LOWPlatforms/Apple/__main__.py1059def print_called_process_error(e: subprocess.CalledProcessError) -> None:CODE
LOWPlatforms/emscripten/__main__.py41def required_emscripten_version():CODE
LOW⚡Platforms/emscripten/__main__.py466def configure_emscripten_python(context, working_dir):CODE
LOWPlatforms/emscripten/__main__.py611def pythoninfo_emscripten_python(context):CODE
LOWPlatforms/emscripten/__main__.py658def add_cross_build_dir_option(subcommand):CODE
LOWPlatforms/emscripten/web_example/server.py22class MyHTTPRequestHandler(server.SimpleHTTPRequestHandler):CODE
LOWPlatforms/Android/__main__.py1052def print_called_process_error(e):CODE
LOWTools/picklebench/memory_dos_impact.py507 def _extract_json_from_output(output: str) -> Dict[str, Dict[str, Any]]:CODE
LOWTools/picklebench/memory_dos_impact.py666 def format_antagonistic_comparison(CODE
LOWTools/gdb/libpython.py83def interp_frame_has_tlbc_index():CODE
LOWTools/gdb/libpython.py750def items_from_keys_and_values(keys, values):CODE
LOWTools/gdb/libpython.py1283 def print_traceback_until_shim(self, frame_index=None):CODE
LOWTools/gdb/libpython.py1890 def get_selected_python_frame(cls):CODE
LOWTools/gdb/libpython.py1908 def get_selected_bytecode_frame(cls):CODE
LOWTools/c-analyzer/distutils/ccompiler.py299# def runtime_library_dir_option(self, dir):COMMENT
LOWTools/c-analyzer/distutils/msvc9compiler.py190def normalize_and_reduce_paths(paths):CODE
LOWTools/c-analyzer/distutils/msvccompiler.py181def normalize_and_reduce_paths(paths):CODE
LOWTools/c-analyzer/cpython/_analyzer.py297def _has_other_supported_type(decl):CODE
LOWTools/c-analyzer/c_common/scriptutil.py336def add_failure_filtering_cli(parser, pool, *, default=False):CODE
LOWTools/c-analyzer/c_common/tables.py203def _normalize_table_file_props(header, sep):CODE
LOWTools/cases_generator/opcode_metadata_generator.py81def emit_stack_effect_function(CODE
LOWTools/cases_generator/opcode_metadata_generator.py98def generate_stack_effect_functions(analysis: Analysis, out: CWriter) -> None:CODE
LOWTools/cases_generator/opcode_metadata_generator.py138def generate_instruction_formats(analysis: Analysis, out: CWriter) -> None:CODE
LOWTools/cases_generator/analyzer.py770def escaping_call_in_simple_stmt(stmt: SimpleStmt, result: dict[SimpleStmt, EscapingCall]) -> None:CODE
LOWTools/cases_generator/analyzer.py926def stmt_has_jump_on_unpredictable_path_body(stmts: list[Stmt] | None, branches_seen: int) -> tuple[bool, int]:CODE
LOWTools/cases_generator/analyzer.py937def stmt_has_jump_on_unpredictable_path(stmt: Stmt, branches_seen: int) -> tuple[bool, int]:CODE
LOWTools/cases_generator/analyzer.py1305def get_instruction_size_for_uop(instructions: dict[str, Instruction], uop: Uop) -> int | None:CODE
LOWTools/cases_generator/record_function_generator.py71def get_instruction_record_names(inst: Instruction) -> list[str]:CODE
LOWTools/cases_generator/record_function_generator.py113def get_record_consumer_layout(CODE
LOWTools/cases_generator/record_function_generator.py142def get_record_transform_input(uop: Uop) -> str:CODE
LOWTools/cases_generator/record_function_generator.py151def generate_record_transform_function(uop: Uop, out: CWriter) -> None:CODE
LOWTools/cases_generator/record_function_generator.py169def generate_recorder_functions(filenames: list[str], analysis: Analysis, out: CWriter) -> None:CODE
LOWTools/cases_generator/record_function_generator.py277def generate_record_transform_dispatcher(CODE
LOWTools/cases_generator/generators_common.py380 def stackref_close_specialized(STRING
LOWTools/cases_generator/py_metadata_generator.py46def generate_specialized_opmap(analysis: Analysis, out: CWriter) -> None:CODE
LOWTools/cases_generator/target_generator.py50def write_tailcall_dispatch_table(analysis: Analysis, out: CWriter) -> None:CODE
LOWTools/cases_generator/optimizer_generator.py174 def replace_opcode_if_evaluates_pure(CODE
LOWTools/cases_generator/optimizer_generator.py458def generate_abstract_interpreter(CODE
LOWTools/inspection/snippets.py455def classify_async_running_task(unit):STRING
LOWTools/inspection/snippets.py502def classify_code_object_reuse(frames):STRING
LOWTools/jit/example_trace_dump.py103def short_loop_with_side_exits(n):CODE
LOWTools/jit/example_trace_dump.py137 ["def long_loop_with_side_exits(n):"]CODE
LOWTools/jit/_dwarf.py109 def _parse_objdump_instructions(dump: str) -> list[tuple[int, str]]:CODE
LOWTools/jit/_optimizers.py609 def _fixup_small_constant_pair(CODE
LOWTools/jit/_optimizers.py683 def _fixup_large_constant_pair(CODE
LOWTools/jit/_stencils.py259 def convert_labels_to_relocations(self) -> None:CODE
LOWTools/jit/_stencils.py402 def _emit_global_offset_table(self) -> None:CODE
LOWTools/scripts/var_access_benchmark.py75def read_classvar_from_instance(trials=trials, A=A):CODE
LOW⚡Tools/scripts/sortperf.py58def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]:CODE
LOW⚡Tools/scripts/sortperf.py68def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]:CODE
LOW⚡Tools/scripts/sortperf.py76def list_sort_ascending_one_percent(size: int, rand: random.Random) -> list[float]:CODE
LOWTools/scripts/summarize_stats.py54def _load_metadata_from_source():CODE
LOW⚡Tools/scripts/summarize_stats.py271 def get_specialization_success_failure(self, opcode: str) -> dict[str, int]:STRING
LOW⚡Tools/scripts/summarize_stats.py280 def get_specialization_failure_total(self, opcode: str) -> int:STRING
LOW⚡Tools/scripts/summarize_stats.py283 def get_specialization_failure_kinds(self, opcode: str) -> dict[str, int]:STRING
LOWTools/scripts/summarize_stats.py205 def get_total_execution_count(self) -> int:STRING
LOWTools/scripts/summarize_stats.py251 def get_specialization_counts(self, opcode: str) -> dict[str, int]:STRING
LOWTools/scripts/summarize_stats.py324 def get_specialized_total_counts(self) -> tuple[int, int, int]:STRING
13251 more matches not shown…
Empty Error Handlers1617 hits · 7858 pts
SeverityFileLineSnippetContext
HIGHPC/layout/main.py119except FileNotFoundError:CODE
HIGHPC/layout/main.py517except shutil.SameFileError:CODE
HIGHPC/layout/support/constants.py19except (TypeError, ValueError):CODE
HIGHPC/layout/support/constants.py30except (IndexError, ValueError):CODE
HIGHPC/layout/support/constants.py32except OSError:CODE
HIGHPC/layout/support/constants.py24except OSError:CODE
HIGHPC/layout/support/constants.py61except ValueError:CODE
HIGHPC/layout/support/pip.py86except OSError:CODE
HIGHPC/layout/support/pip.py92except OSError:CODE
HIGHPlatforms/emscripten/__main__.py134except subprocess.CalledProcessError:CODE
HIGHPlatforms/WASI/_package.py82except ValueError:CODE
HIGHPlatforms/WASI/_build.py58except subprocess.CalledProcessError:CODE
HIGHTools/gdb/libpython.py395except RuntimeError:CODE
HIGHTools/gdb/libpython.py506except RuntimeError:CODE
HIGHTools/freeze/bkfile.py10except OSError:CODE
HIGHTools/c-analyzer/distutils/msvc9compiler.py411except OSError:CODE
HIGHTools/c-analyzer/distutils/msvc9compiler.py114except UnicodeError:CODE
HIGHTools/c-analyzer/distutils/msvccompiler.py94except UnicodeError:CODE
HIGHTools/c-analyzer/c_common/scriptutil.py222except BrokenPipeError:CODE
HIGHTools/c-analyzer/c_analyzer/info.py180except KeyError:CODE
HIGHTools/jit/_stencils.py443except KeyError:CODE
HIGHTools/patchcheck/untabify.py41except OSError:CODE
HIGHTools/patchcheck/untabify.py45except OSError:CODE
HIGHTools/clinic/libclinic/dsl_parser.py1092except NameError:CODE
HIGHTools/clinic/libclinic/app.py239except FileNotFoundError:CODE
HIGHTools/clinic/libclinic/codegen.py289except KeyError:CODE
HIGHMac/BuildScript/build-installer.py917except OSError:CODE
HIGHMac/BuildScript/build-installer.py793except OSError:CODE
HIGHPCbuild/prepare_ssl.py137except FileNotFoundError:CODE
HIGHLib/shutil.py469except NotImplementedError:CODE
HIGHLib/shutil.py724except FileNotFoundError:CODE
HIGHLib/shutil.py307except OSError:CODE
HIGHLib/shutil.py805except OSError:CODE
HIGHLib/shutil.py337except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py346except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py352except _GiveupOnFastCopy:CODE
HIGHLib/tempfile.py285except AttributeError:CODE
HIGHLib/tempfile.py219except FileExistsError:CODE
HIGHLib/tempfile.py330except OSError:CODE
HIGHLib/tempfile.py749except OSError:CODE
HIGHLib/tempfile.py1041except FileNotFoundError:CODE
HIGHLib/tempfile.py527except FileNotFoundError:CODE
HIGHLib/_pyio.py2186except AttributeError:CODE
HIGHLib/_pyio.py2192except AttributeError:CODE
HIGHLib/_pyio.py1634except AttributeError:CODE
HIGHLib/_pyio.py2544except LookupError:CODE
HIGHLib/_pyio.py1751except OSError:CODE
HIGHLib/_pyio.py2168except LookupError:CODE
HIGHLib/_sitebuiltins.py24except:CODE
HIGHLib/_sitebuiltins.py53except OSError:CODE
HIGHLib/copyreg.py158except:CODE
HIGHLib/rlcompleter.py112except ValueError:CODE
HIGHLib/ipaddress.py43except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py48except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py72except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py77except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py106except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py111except (AddressValueError, NetmaskValueError):CODE
HIGHLib/ipaddress.py515except ValueError:CODE
HIGHLib/trace.py743except SystemExit:CODE
1557 more matches not shown…
Over-Commented Block4205 hits · 3028 pts
SeverityFileLineSnippetContext
LOWPC/venvlauncher.c21#define MS_WINDOWSCOMMENT
LOWPC/zconf-ng.h61 */COMMENT
LOWPC/zconf-ng.h121#include <stddef.h> /* for wchar_t and NULL */COMMENT
LOWPC/zconf-ng.h141# define Z_LFS64COMMENT
LOWPC/zconf-ng.h161COMMENT
LOWPC/zbuild.h1#ifndef _ZBUILD_HCOMMENT
LOWPC/zbuild.h21#ifdef __STDC_VERSION__COMMENT
LOWPC/zbuild.h41COMMENT
LOWPC/zbuild.h61 typedef __int64 ssize_t;COMMENT
LOWPC/zbuild.h81# define PREFIX2(x) ZLIB_ ## xCOMMENT
LOWPC/zbuild.h121 */COMMENT
LOWPC/zbuild.h141# define ZSWAP16(q) _byteswap_ushort(q)COMMENT
LOWPC/zbuild.h161# define ZSWAP64(q) bswap64(q)COMMENT
LOWPC/zbuild.h181 ((q & 0x000000FF00000000u) >> 8u) | \COMMENT
LOWPC/zbuild.h201#elif defined(_MSC_VER)COMMENT
LOWPC/zbuild.h221#define PADSZ(bpos, pad) (((pad) - ((uintptr_t)(bpos) % (pad))) % (pad))COMMENT
LOWPC/zbuild.h261# elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)COMMENT
LOWPC/zbuild.h301void __asan_storeN(void *, long);COMMENT
LOWPC/pyconfig.h41 would be ISO C conforming). Neither renaming is feasible, soCOMMENT
LOWPC/pyconfig.h61#define HAVE_STRFTIMECOMMENT
LOWPC/pyconfig.h81#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)COMMENT
LOWPC/pyconfig.h161 * win32 MSVC (i686-pc-windows-msvc): 1COMMENT
LOWPC/pyconfig.h181#define PY_SUPPORT_TIER 0COMMENT
LOWPC/pyconfig.h201 allow a single source file to override this - they may need access toCOMMENT
LOWPC/pyconfig.h221COMMENT
LOWPC/pyconfig.h241#define _Py_COMPILER _Py_PASTE_VERSION("32 bit (Intel)")COMMENT
LOWPC/pyconfig.h301#define _Py_COMPILER "[lcc-win32]"COMMENT
LOWPC/pyconfig.h341# pragma comment(lib,"python316t_d.lib")COMMENT
LOWPC/pyconfig.h361/* maintain "win32" sys.platform for backward compatibility of Python code,COMMENT
LOWPC/pyconfig.h381# define HAVE_LARGEFILE_SUPPORTCOMMENT
LOWPC/pyconfig.h401#define SIZEOF_LONG 4COMMENT
LOWPC/pyconfig.h741/* Define to 1 if you have the `erfc' function. */COMMENT
LOWPC/msvcrtmodule.c21#include "malloc.h"COMMENT
LOWPC/_wmimodule.cpp1//COMMENT
LOWPC/python_uwp.cpp1/* Main program when embedded in a UWP application on Windows */COMMENT
LOWPC/python_ver_rc.h1// Resource script for Python core DLL.COMMENT
LOWPC/python_ver_rc.h21#define PYTHON_VERSION PY_VERSION "\0"COMMENT
LOWPC/zconf.h21# define z_const constCOMMENT
LOWPC/zconf.h61#endifCOMMENT
LOWPC/zconf.h81 */COMMENT
LOWPC/zconf.h101#endifCOMMENT
LOWPC/zconf.h161#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)COMMENT
LOWPC/zconf.h181# define SEEK_SET 0 /* Seek from beginning of file. */COMMENT
LOWPC/clinic/msvcrtmodule.c.h721#endif /* !defined(MSVCRT_GETWCHE_METHODDEF) */COMMENT
LOWPC/clinic/msvcrtmodule.c.h741#endif /* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */COMMENT
LOWPC/clinic/winreg.c.h1721COMMENT
LOWPC/clinic/winreg.c.h1741 #define WINREG_HKEYTYPE___EXIT___METHODDEFCOMMENT
LOWPC/clinic/winreg.c.h1761 #define WINREG_DELETEKEY_METHODDEFCOMMENT
LOWPC/clinic/winreg.c.h1781 #define WINREG_EXPANDENVIRONMENTSTRINGS_METHODDEFCOMMENT
LOWPC/clinic/winreg.c.h1801 #define WINREG_QUERYINFOKEY_METHODDEFCOMMENT
LOWPC/clinic/winreg.c.h1821 #define WINREG_SETVALUEEX_METHODDEFCOMMENT
LOWMisc/platform_triplet.c1/* Detect platform triplet from builtin definesCOMMENT
LOWMisc/platform_triplet.c21# elif defined(__aarch64__)COMMENT
LOWMisc/platform_triplet.c41# define LIBC_X32 gnux32COMMENT
LOWMisc/platform_triplet.c61# define LIBC_MIPS gnuCOMMENT
LOWMisc/platform_triplet.c81# if defined(__SPE__)COMMENT
LOWMisc/platform_triplet.c101# define LIBC_LA muslf32COMMENT
LOWMisc/platform_triplet.c121# define LIBC_MIPS muslsfCOMMENT
LOWMisc/platform_triplet.c141# if defined(__x86_64__) && defined(__LP64__)COMMENT
LOWMisc/platform_triplet.c161# elif defined(__ARM_EABI__)COMMENT
4145 more matches not shown…
Cross-Language Confusion417 hits · 2350 pts
SeverityFileLineSnippetContext
HIGH⚡Platforms/emscripten/__main__.py447 f"source ~/.nvm/nvm.sh && nvm install {node_version}",CODE
HIGH⚡Platforms/emscripten/__main__.py456 f"source ~/.nvm/nvm.sh && nvm which {node_version}",CODE
HIGHPlatforms/emscripten/__main__.py543 elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNUCODE
HIGHTools/unicode/genmap_schinese.py105 print("Generating GB2312 && GBK encode map...")CODE
HIGHTools/unicode/genmap_japanese.py180 print("Generating JIS X 0208 && JIS X 0212 encode map...")CODE
HIGHTools/cases_generator/opcode_metadata_generator.py349 out.emit(f"if (pseudo < 256 || pseudo >= {256+table_size}) {{\n")CODE
HIGHTools/cases_generator/tier1_generator.py267 if reachable: # type: ignore[possibly-undefined]STRING
HIGHTools/cases_generator/uop_metadata_generator.py128 stack.pop(var, null)STRING
HIGHTools/cases_generator/stack.py231 self.push(Local.register(f"_stack_item_{i}"))CODE
HIGHTools/cases_generator/stack.py293 self.logical_sp = self.logical_sp.push(var.item)CODE
HIGHTools/cases_generator/stack.py329 var_offset = var_offset.push(var.item)CODE
HIGHTools/cases_generator/stack.py479 local = stack.pop(var, null)CODE
HIGHTools/cases_generator/stack.py487 stack.push(local)CODE
HIGHTools/cases_generator/stack.py563 f"Expected '{undefined}' to be defined before '{out.name}'"CODE
HIGHTools/cases_generator/stack.py568 self.stack.push(out)CODE
HIGHTools/cases_generator/stack.py638 offset = offset.push(ouput)CODE
HIGHTools/cases_generator/stack.py640 stack.push(var)CODE
HIGHTools/cases_generator/stack.py717 self.stack.push(out)CODE
HIGHTools/cases_generator/stack.py787 self.stack.push(output)CODE
HIGHTools/cases_generator/stack.py815 self.stack.push(output)CODE
HIGHTools/cases_generator/tier2_generator.py55 stack.pop(var, null)CODE
HIGHTools/cases_generator/tier2_generator.py57 stack.push(Local.undefined(var))CODE
HIGH⚡Tools/cases_generator/optimizer_generator.py118 stack.pop(var, null)CODE
HIGH⚡Tools/cases_generator/optimizer_generator.py124 offset = offset.push(var)CODE
HIGH⚡Tools/cases_generator/optimizer_generator.py127 stack.push(local)CODE
HIGHTools/cases_generator/optimizer_generator.py441 for var in storage.inputs: # type: ignore[possibly-undefined]CODE
HIGH⚡Tools/clinic/libclinic/clanguage.py255 condition = f"kwnames && PyTuple_Size(kwnames) && {condition}"STRING
HIGH⚡Tools/clinic/libclinic/clanguage.py257 condition = f"kwnames && PyTuple_GET_SIZE(kwnames) && {condition}"STRING
HIGH⚡Tools/clinic/libclinic/clanguage.py260 condition = f"kwargs && PyDict_Size(kwargs) && {condition}"STRING
HIGH⚡Tools/clinic/libclinic/clanguage.py262 condition = f"kwargs && PyDict_GET_SIZE(kwargs) && {condition}"STRING
HIGHTools/clinic/libclinic/parse_args.py516 if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {{CODE
HIGHTools/clinic/libclinic/converters.py125 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py237 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py274 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py336 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py384 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py413 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py484 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py500 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py540 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py557 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py579 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py675 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py684 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py708 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py717 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/peg_generator/pegen/c_generator_rules.py66 self._print("if (_n == 0 || p->error_indicator) {")CODE
HIGHTools/peg_generator/pegen/c_generator_rules.py158 self._print("if (_raw == NULL || p->mark <= _resmark)")CODE
HIGHTools/peg_generator/pegen/c_generator_rules.py306 self._print("if ((_res == NULL || p->error_indicator) && PyErr_Occurred()) {")CODE
HIGHTools/peg_generator/pegen/c_generator_rules.py320 self._print("if (p->mark == p->fill && _PyPegen_fill_token(p) < 0) {")CODE
HIGHTools/peg_generator/pegen/c_generator_rules.py348 self._print("if (p->level++ == MAXSTACK || _PyPegen_stack_exhausted(p)) {")CODE
HIGHParser/asdl_c.py556 self.emit("if (!isinstance && field != NULL) {", 1)CODE
HIGHParser/asdl_c.py672 self.emit("if (tmp == NULL || tmp == Py_None) {", depth)CODE
HIGHParser/asdl_c.py1409 if (kwargs && PyDict_Update(payload, kwargs) < 0) {STRING
HIGHParser/asdl_c.py1514 if (i == 0 && length > 2) {STRING
HIGHParser/asdl_c.py1834 if (i == -1 && PyErr_Occurred())STRING
HIGHParser/asdl_c.py2203 assert(0 <= mode && mode <= 3);CODE
HIGHMac/BuildScript/build-installer.py288 install='make TCL_LIBRARY=%(TCL_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBRARY)s DESTDIR=%(DESTDIR)s'STRING
HIGHMac/BuildScript/build-installer.py306 install='make TCL_LIBRARY=%(TCL_LIBRARY)s TK_LIBRARY=%(TK_LIBRARY)s && make install TCL_LIBRARY=%(TCL_LIBRSTRING
HIGHMac/BuildScript/build-installer.py355 install='make && make install DESTDIR=%s && cd %s/usr/local/lib && ln -fs ../../../Library/Frameworks/PythSTRING
357 more matches not shown…
Deep Nesting1592 hits · 1319 pts
SeverityFileLineSnippetContext
LOWPC/layout/main.py129CODE
LOWPC/layout/main.py385CODE
LOWPC/layout/main.py459CODE
LOWPC/layout/support/constants.py45CODE
LOWPC/layout/support/appxmanifest.py336CODE
LOWPC/layout/support/filesets.py42CODE
LOWPlatforms/Apple/__main__.py284CODE
LOWPlatforms/Apple/__main__.py295CODE
LOWPlatforms/Apple/__main__.py788CODE
LOWPlatforms/Apple/testbed/__main__.py292CODE
LOWPlatforms/emscripten/wasm_assets.py136CODE
LOWPlatforms/Android/__main__.py465CODE
LOWPlatforms/Android/__main__.py488CODE
LOWPlatforms/Android/__main__.py771CODE
LOWPlatforms/WASI/_build.py101CODE
LOWPlatforms/WASI/_shared.py111CODE
LOWTools/picklebench/memory_dos_impact.py79CODE
LOWTools/picklebench/memory_dos_impact.py666CODE
LOWTools/picklebench/memory_dos_impact.py828CODE
LOWTools/ssl/multissltests.py526CODE
LOWTools/gdb/libpython.py674CODE
LOWTools/gdb/libpython.py2079CODE
LOWTools/gdb/libpython.py478CODE
LOWTools/gdb/libpython.py1397CODE
LOWTools/gdb/libpython.py1517CODE
LOWTools/freeze/parsesetup.py48CODE
LOWTools/freeze/makefreeze.py32CODE
LOWTools/freeze/freeze.py111CODE
LOWTools/freeze/checkextensions.py8CODE
LOWTools/freeze/makeconfig.py9CODE
LOWTools/freeze/test/freeze.py77CODE
LOWTools/c-analyzer/table-file.py19CODE
LOWTools/c-analyzer/table-file.py59CODE
LOWTools/c-analyzer/distutils/_msvccompiler.py26CODE
LOWTools/c-analyzer/distutils/ccompiler.py428CODE
LOWTools/c-analyzer/distutils/msvc9compiler.py250CODE
LOWTools/c-analyzer/distutils/util.py12CODE
LOWTools/c-analyzer/distutils/util.py112CODE
LOWTools/c-analyzer/distutils/cygwinccompiler.py57CODE
LOWTools/c-analyzer/c_parser/info.py365CODE
LOWTools/c-analyzer/c_parser/info.py724CODE
LOWTools/c-analyzer/c_parser/info.py47CODE
LOWTools/c-analyzer/c_parser/info.py77CODE
LOWTools/c-analyzer/c_parser/info.py163CODE
LOWTools/c-analyzer/c_parser/info.py265CODE
LOWTools/c-analyzer/c_parser/info.py327CODE
LOWTools/c-analyzer/c_parser/info.py523CODE
LOWTools/c-analyzer/c_parser/info.py640CODE
LOWTools/c-analyzer/c_parser/info.py664CODE
LOWTools/c-analyzer/c_parser/info.py1175CODE
LOWTools/c-analyzer/c_parser/info.py1403CODE
LOWTools/c-analyzer/c_parser/info.py1498CODE
LOWTools/c-analyzer/c_parser/info.py1606CODE
LOWTools/c-analyzer/c_parser/__main__.py63CODE
LOWTools/c-analyzer/c_parser/match.py61CODE
LOWTools/c-analyzer/c_parser/match.py144CODE
LOWTools/c-analyzer/c_parser/parser/_compound_decl_body.py51CODE
LOWTools/c-analyzer/c_parser/parser/_common.py10CODE
LOWTools/c-analyzer/c_parser/parser/__init__.py169CODE
LOWTools/c-analyzer/c_parser/parser/_global.py56CODE
1532 more matches not shown…
Decorative Section Separators402 hits · 952 pts
SeverityFileLineSnippetContext
MEDIUMTools/unicode/makeunicodedata.py47# --------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py181# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py510# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py723# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py1069# --------------------------------------------------------------------STRING
MEDIUMTools/scripts/sortperf.py28# ===============COMMENT
MEDIUMTools/scripts/sortperf.py30# ===============COMMENT
MEDIUMParser/asdl.py1#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡Parser/asdl.py21#-------------------------------------------------------------------------------COMMENT
MEDIUMLib/heapq.py412# ==============================================COMMENT
MEDIUMLib/heapq.py442# -----------------------------------------------COMMENT
MEDIUMLib/heapq.py462# ----------------------COMMENT
MEDIUMLib/heapq.py469# ----------------------COMMENT
MEDIUMLib/numbers.py50## ----------------COMMENT
MEDIUMLib/random.py203 ## -------------------------------------------------------COMMENT
MEDIUMLib/random.py277 ## --------------------------------------------------------COMMENT
MEDIUMLib/random.py893## ------------------------------------------------------------------COMMENT
MEDIUMLib/random.py934# ----------------------------------------------------------------------COMMENT
MEDIUMLib/random.py968## ------------------------------------------------------COMMENT
MEDIUMLib/random.py1009## ------------------------------------------------------COMMENT
MEDIUMLib/random.py1016# ------------------------------------------------------COMMENT
MEDIUMLib/argparse.py111# =============================COMMENT
MEDIUMLib/argparse.py113# =============================COMMENT
MEDIUMLib/argparse.py160# ===============COMMENT
MEDIUMLib/argparse.py162# ===============COMMENT
MEDIUMLib/argparse.py241 # ===============================COMMENT
MEDIUMLib/argparse.py243 # ===============================COMMENT
MEDIUMLib/argparse.py293 # ========================COMMENT
MEDIUMLib/argparse.py295 # ========================COMMENT
MEDIUMLib/argparse.py337 # =======================COMMENT
MEDIUMLib/argparse.py339 # =======================COMMENT
MEDIUM⚡Lib/argparse.py892# =====================STRING
MEDIUM⚡Lib/argparse.py894# =====================STRING
MEDIUM⚡Lib/argparse.py1607 # ====================STRING
MEDIUM⚡Lib/argparse.py1609 # ====================STRING
MEDIUM⚡Lib/argparse.py1618 # ==================================STRING
MEDIUM⚡Lib/argparse.py1620 # ==================================STRING
MEDIUMLib/argparse.py944# ==============STRING
MEDIUMLib/argparse.py946# ==============STRING
MEDIUMLib/argparse.py1465# ==============STRING
MEDIUMLib/argparse.py1467# ==============STRING
MEDIUMLib/argparse.py1525# ===========================STRING
MEDIUMLib/argparse.py1527# ===========================STRING
MEDIUMLib/argparse.py1638 # =======================STRING
MEDIUMLib/argparse.py1640 # =======================STRING
MEDIUMLib/argparse.py2073 # =======================STRING
MEDIUMLib/argparse.py2075 # =======================STRING
MEDIUMLib/argparse.py2088 # ==================================STRING
MEDIUMLib/argparse.py2090 # ==================================STRING
MEDIUMLib/argparse.py2146 # =====================================STRING
MEDIUMLib/argparse.py2148 # =====================================STRING
MEDIUMLib/argparse.py2709 # ========================STRING
MEDIUMLib/argparse.py2711 # ========================STRING
MEDIUMLib/argparse.py2741 # ========================STRING
MEDIUMLib/argparse.py2743 # ========================STRING
MEDIUMLib/argparse.py2840 # =======================STRING
MEDIUMLib/argparse.py2842 # =======================STRING
MEDIUMLib/argparse.py2891 # =====================STRING
MEDIUMLib/argparse.py2893 # =====================STRING
MEDIUMLib/argparse.py2937 # ===============STRING
342 more matches not shown…
Excessive Try-Catch Wrapping756 hits · 802 pts
SeverityFileLineSnippetContext
LOWMisc/mypy/_colorize.py570 except Exception:CODE
MEDIUMTools/picklebench/memory_dos_impact.py529 print("Error: Could not find JSON output from baseline", file=sys.stderr)CODE
MEDIUMTools/picklebench/memory_dos_impact.py536 print(f"Error: Could not parse baseline JSON output: {e}", file=sys.stderr)CODE
MEDIUMTools/picklebench/memory_dos_impact.py569 print(f"Error running baseline benchmark:", file=sys.stderr)CODE
MEDIUMTools/picklebench/memory_dos_impact.py577 print("Error: Baseline benchmark timed out", file=sys.stderr)CODE
MEDIUMTools/picklebench/memory_dos_impact.py1012 print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr)CODE
MEDIUMTools/picklebench/memory_dos_impact.py1048 print(f"Error: Baseline Python not found: {args.baseline}", file=sys.stderr)CODE
LOWTools/ssl/multissltests.py578 except Exception as e:CODE
LOWTools/gdb/libpython.py1214 except Exception as ex:CODE
MEDIUMTools/gdb/libpython.py257def safe_tp_name(self):CODE
LOWTools/c-analyzer/c_parser/__init__.py28 except Exception:CODE
LOWTools/c-analyzer/c_parser/info.py215 except Exception:CODE
MEDIUMTools/c-analyzer/c_parser/info.py212def _make(cls, iterable):CODE
LOWTools/c-analyzer/c_parser/source.py29 except Exception:CODE
LOWTools/c-analyzer/cpython/_capi.py365 except Exception as exc:STRING
LOWTools/c-analyzer/cpython/__main__.py174 except Exception:STRING
LOWTools/c-analyzer/c_common/scriptutil.py227 except Exception as exc:CODE
LOWTools/unicode/listcodecs.py25 except Exception as reason:CODE
LOWTools/cases_generator/generators_common.py318 except Exception as ex:STRING
LOWTools/inspection/benchmark_external_inspection.py352 except Exception as e:CODE
LOWTools/clinic/libclinic/dsl_parser.py1094 except Exception as e:CODE
LOWTools/peg_generator/pegen/first_sets.py139 except Exception as err:CODE
LOWTools/peg_generator/pegen/grammar_visualizer.py55 except Exception as err:CODE
LOWTools/peg_generator/pegen/__main__.py42 except Exception as err:CODE
LOWTools/peg_generator/pegen/__main__.py67 except Exception as err:CODE
LOWParser/asdl.py153 except Exception as e:CODE
MEDIUMParser/asdl.py154 print("Error visiting %r: %s" % (obj, e))CODE
LOWLib/shutil.py110 except Exception as err:CODE
LOWLib/shutil.py152 except Exception as err:CODE
LOWLib/shutil.py201 except Exception as err:CODE
LOWLib/pkgutil.py83 except Exception:CODE
LOWLib/rlcompleter.py162 except Exception:CODE
LOWLib/zipimport.py575 except Exception:CODE
LOWLib/zipimport.py605 except Exception:CODE
LOWLib/zipimport.py669 except Exception:CODE
LOWLib/zipimport.py675 except Exception:CODE
MEDIUMLib/zipimport.py295def _read_directory(archive):CODE
LOWLib/wave.py413 except Exception:CODE
LOWLib/weakref.py569 except Exception:CODE
LOWLib/traceback.py1160 except Exception as e:CODE
LOWLib/traceback.py1440 except Exception:CODE
LOWLib/traceback.py1933 except Exception:CODE
LOWLib/traceback.py1945 except Exception:CODE
LOWLib/traceback.py1953 except Exception:CODE
LOWLib/traceback.py1978 except Exception:CODE
LOWLib/code.py65 except Exception:CODE
MEDIUMLib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)CODE
MEDIUMLib/pydoc.py593def repr_instance(self, x, level):CODE
LOWLib/pydoc.py2672 except Exception as exc:CODE
LOWLib/pydoc.py953 except Exception:STRING
LOWLib/pydoc.py1003 except Exception:STRING
LOWLib/pydoc.py1462 except Exception:STRING
LOWLib/pydoc.py2275 except Exception:STRING
LOWLib/pydoc.py2439 except Exception as err:STRING
LOWLib/socketserver.py316 except Exception:CODE
LOWLib/socketserver.py629 except Exception:CODE
LOWLib/socketserver.py695 except Exception:CODE
MEDIUMLib/pdb.py205 print(f'Error: {target} does not exist')CODE
MEDIUMLib/pdb.py208 print(f'Error: {target} is a directory')CODE
MEDIUMLib/pdb.py954def _enable_multiline_input(self):CODE
696 more matches not shown…
Self-Referential Comments305 hits · 762 pts
SeverityFileLineSnippetContext
MEDIUMPC/layout/support/appxmanifest.py154# This file is no longer included in our repo, but we keep the logic here forCOMMENT
MEDIUMPlatforms/Apple/__main__.py644 # Create a simlink for the fat libraryCOMMENT
MEDIUMPlatforms/Apple/__main__.py719 # Create an XCframeworkCOMMENT
MEDIUMTools/freeze/freeze.py440 # Create a module definition for the bootstrap C code.COMMENT
MEDIUMTools/freeze/checkextensions_win32.py58 # Create a table of frozen extensionsCOMMENT
MEDIUMTools/unicode/dawg.py18# This class represents a node in the directed acyclic word graph (DAWG). ItCOMMENT
MEDIUMTools/unicode/mkstringprep.py113print("""# This file is generated by mkstringprep.py. DO NOT EDIT.CODE
MEDIUM⚡Parser/asdl.py30# The following classes define nodes into which the ASDL description is parsed.COMMENT
MEDIUMMac/BuildScript/build-installer.py1756 # Create the installerSTRING
MEDIUMLib/_pyio.py274# Define a default pure-Python implementation for open_code()STRING
MEDIUMLib/ipaddress.py1529 """This class represents and manipulates 32-bit IPv4 network + addresses..STRING
MEDIUMLib/ipaddress.py2338 """This class represents and manipulates 128-bit IPv6 networks.STRING
MEDIUMLib/webbrowser.py780 # Create an NSURL object representing the URLSTRING
MEDIUMLib/_compat_pickle.py1# This module is used to map the old Python 2 names to the new names used inCOMMENT
MEDIUMLib/bdb.py885 # The following methods can be called by clients to useCOMMENT
MEDIUMLib/bdb.py936 # This method is more useful to debug a single function call.COMMENT
MEDIUMLib/zipapp.py134 # Create the list of files to add to the archive now, in caseCOMMENT
MEDIUMLib/gettext.py13# This module represents the integration of work, contributions, feedback, andCOMMENT
MEDIUMLib/modulefinder.py658 # Create the module finder and turn its crankCOMMENT
MEDIUM⚡Lib/hashlib.py133 # This function is only used until the module has been initialized.STRING
MEDIUMLib/hashlib.py273 # The following code can be simplified in Python 3.19STRING
MEDIUMLib/subprocess.py2188 # This method is called (indirectly) by __del__, so it cannotCOMMENT
MEDIUMLib/subprocess.py2482 # This method is called from the _communicate_with_*() methodsCOMMENT
MEDIUMLib/profile.py438 # This method is more useful to profile a single function call.COMMENT
MEDIUMLib/code.py162 # This method is being overwritten inCOMMENT
MEDIUMLib/pydoc.py745 # Create a link for methods like 'self.method(...)'STRING
MEDIUM⚡Lib/types.py329 # The following code is primarily to support functions thatCOMMENT
MEDIUMLib/pdb.py698 """This method is called when there is the remote possibilitySTRING
MEDIUMLib/pdb.py707 """This function is called when we stop or break at this line."""STRING
MEDIUMLib/pdb.py740 """This function is called when a return trap is set here."""STRING
MEDIUMLib/pdb.py749 """This function is called if an exception occurs,STRING
MEDIUMLib/threading.py324 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMLib/threading.py1445 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMLib/threading.py1689# Create the main thread object,COMMENT
MEDIUMLib/threading.py141 """This class implements reentrant lock objects.STRING
MEDIUMLib/threading.py454 """This class implements semaphore objects.STRING
MEDIUMLib/platform.py9# This module is maintained by Marc-Andre Lemburg <mal@egenix.com>.COMMENT
MEDIUMLib/pstats.py74 """This class is used for creating reports from data generated by theSTRING
MEDIUMLib/pstats.py326 # The following functions support actual printing of reportsCOMMENT
MEDIUMLib/pstats.py557 """This class provides a generic function for comparing any two tuples.STRING
MEDIUMLib/pstats.py600# The following functions combine statistics for pairs functions.COMMENT
MEDIUMLib/pstats.py637# The following functions support printing of reportsCOMMENT
MEDIUMLib/inspect.py29# This module is in the public domain. No warranties.COMMENT
MEDIUMLib/_opcode_metadata.py1# This file is generated by Tools/cases_generator/py_metadata_generator.pyCOMMENT
MEDIUMLib/annotationlib.py167 # Create a new locals dict if necessary,COMMENT
MEDIUMLib/_pydatetime.py505 # This function is intended to validate datetimes, but becauseCOMMENT
MEDIUMLib/fractions.py183 """This class implements rational numbers.STRING
MEDIUMLib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined hereCOMMENT
MEDIUMLib/mailbox.py622 # This method is for backward compatibility only.COMMENT
MEDIUMLib/ast.py628 # The following code is for backward compatibility.COMMENT
MEDIUMLib/doctest.py153 # Create a new flag unless `name` is already known.STRING
MEDIUMLib/doctest.py677 # Create an Example, and add it to the list.STRING
MEDIUMLib/doctest.py1312 # Create a fake output target for capturing doctest output.COMMENT
MEDIUMLib/_pylong.py147 # This function implements a divide-and-conquer algorithm that isCOMMENT
MEDIUMLib/_pylong.py231 # This function implements a divide-and-conquer algorithm making useCOMMENT
MEDIUMLib/dataclasses.py381# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMLib/dataclasses.py530 # Create an __annotate__ function for a dataclassCOMMENT
MEDIUMLib/dataclasses.py1207 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMLib/dataclasses.py1233 # Create a class doc-string lazily via descriptor protocolCOMMENT
MEDIUMLib/dataclasses.py1354 # Create a new dict for our new class.COMMENT
245 more matches not shown…
Unused Imports761 hits · 677 pts
SeverityFileLineSnippetContext
LOWPC/layout/main.py24CODE
LOWPC/layout/main.py25CODE
LOWPC/layout/main.py26CODE
LOWPC/layout/main.py27CODE
LOWPC/layout/main.py28CODE
LOWPC/layout/main.py29CODE
LOWPC/layout/main.py30CODE
LOWPC/layout/main.py31CODE
LOWPC/layout/main.py32CODE
LOWPC/layout/main.py33CODE
LOWPC/layout/main.py34CODE
LOWPC/layout/__main__.py4CODE
LOWPC/layout/support/pymanager.py1CODE
LOWPC/layout/support/arch.py1CODE
LOWPC/layout/support/arch.py2CODE
LOWPC/layout/support/arch.py3CODE
LOWPC/layout/support/appxmanifest.py16CODE
LOWPC/layout/support/props.py7CODE
LOWPC/layout/support/pip.py14CODE
LOWPC/layout/support/nuspec.py8CODE
LOWMisc/mypy/make_symlinks.py2CODE
LOWPlatforms/Apple/__main__.py36CODE
LOWTools/ssl/multissltests.py25CODE
LOWTools/c-analyzer/c_parser/__init__.py76CODE
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py264CODE
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py264CODE
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py271CODE
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py271CODE
LOWTools/c-analyzer/c_parser/preprocessor/common.py9CODE
LOWTools/c-analyzer/c_parser/preprocessor/common.py9CODE
LOWTools/unicode/genmap_korean.py9CODE
LOWTools/unicode/genmap_schinese.py10CODE
LOWTools/unicode/genmap_tchinese.py8CODE
LOWTools/unicode/genmap_japanese.py9CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/cases_generator/parser.py1CODE
LOWTools/scripts/sortperf.py21CODE
LOWTools/scripts/summarize_stats.py5CODE
LOWTools/clinic/libclinic/dsl_parser.py1CODE
LOWTools/clinic/libclinic/converter.py1CODE
LOWTools/clinic/libclinic/__init__.py3CODE
LOWTools/clinic/libclinic/__init__.py3CODE
LOWTools/clinic/libclinic/__init__.py3CODE
LOWTools/clinic/libclinic/__init__.py8CODE
LOWTools/clinic/libclinic/__init__.py8CODE
LOWTools/clinic/libclinic/__init__.py8CODE
LOWTools/clinic/libclinic/__init__.py8CODE
701 more matches not shown…
Modern Structural Boilerplate283 hits · 272 pts
SeverityFileLineSnippetContext
LOWPC/layout/support/catalog.py9__all__ = ["PYTHON_CAT_NAME", "PYTHON_CDF_NAME"]CODE
LOWPC/layout/support/options.py9__all__ = []CODE
LOWPC/layout/support/logging.py11__all__ = []CODE
LOWPC/layout/support/appxmanifest.py18__all__ = ["get_appx_layout"]CODE
LOWPC/layout/support/props.py9__all__ = ["get_props_layout"]CODE
LOWPC/layout/support/pip.py16__all__ = ["extract_pip_files", "get_pip_layout"]CODE
LOWPC/layout/support/nuspec.py10__all__ = ["get_nuspec_layout"]CODE
LOWMisc/mypy/token.py4__all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF',CODE
LOWMisc/mypy/_colorize.py639def set_theme(t: Theme) -> None:CODE
LOWTools/ssl/make_ssl_data.py80logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_parser/__main__.py22logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_parser/preprocessor/__init__.py23logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_parser/preprocessor/common.py18logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_parser/preprocessor/__main__.py30logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/cpython/_capi.py14logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/cpython/__main__.py25logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_common/scriptutil.py92logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_common/strutil.py4logger = logging.getLogger(__name__)CODE
LOWTools/c-analyzer/c_analyzer/__main__.py41logger = logging.getLogger(__name__)CODE
LOWTools/cases_generator/cwriter.py25 def set_position(self, tkn: Token) -> None:CODE
LOWTools/cases_generator/lexer.py239__all__ = []CODE
LOWTools/clinic/libclinic/converter.py575 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/clinic/libclinic/__init__.py45__all__ = [CODE
LOWTools/clinic/libclinic/cpp.py9__all__ = ["Monitor"]CODE
LOWTools/clinic/libclinic/converters.py158 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/clinic/libclinic/converters.py1306 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/peg_generator/pegen/keywordgen.py24__all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"]CODE
LOW⚡Parser/asdl.py26__all__ = [CODE
LOWLib/shutil.py70__all__ = ["copyfileobj", "copyfile", "copymode", "copystat", "copy", "copy2",CODE
LOWLib/tempfile.py26__all__ = [CODE
LOWLib/queue.py13__all__ = [CODE
LOWLib/pkgutil.py15__all__ = [CODE
LOWLib/lzma.py11__all__ = [CODE
LOWLib/copyreg.py7__all__ = ["pickle", "constructor",CODE
LOWLib/rlcompleter.py41__all__ = ["Completer"]CODE
LOWLib/gzip.py18__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]CODE
LOWLib/trace.py48__all__ = ['Trace', 'CoverageResults']CODE
LOWLib/webbrowser.py12__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]CODE
LOWLib/dis.py24__all__ = ["code_info", "dis", "disassemble", "distb", "disco",CODE
LOWLib/bdb.py11__all__ = ["BdbQuit", "Bdb", "Breakpoint"]CODE
LOWLib/zipapp.py9__all__ = ['ZipAppError', 'create_archive', 'get_interpreter']CODE
LOWLib/cmd.py47__all__ = ["Cmd"]CODE
LOWLib/tty.py7__all__ = ["cfmakeraw", "cfmakecbreak", "setraw", "setcbreak"]CODE
LOWLib/tabnanny.py23__all__ = ["check", "NannyNag", "process_tokens"]CODE
LOWLib/cProfile.py9__all__ = ["run", "runctx", "Profile"]CODE
LOWLib/zipimport.py21__all__ = ['ZipImportError', 'zipimporter']CODE
LOWLib/token.py4__all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF',CODE
LOWLib/textwrap.py10__all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten']CODE
LOWLib/base64.py10__all__ = [CODE
LOWLib/bz2.py7__all__ = ["BZ2File", "BZ2Compressor", "BZ2Decompressor",CODE
LOWLib/_threading_local.py12__all__ = ["local"]CODE
LOWLib/pyclbr.py48__all__ = ["readmodule", "readmodule_ex", "Class", "Function"]CODE
LOWLib/gettext.py51__all__ = ['NullTranslations', 'GNUTranslations', 'Catalog',CODE
LOWLib/_pybuiltins.py8__all__ = ['anext']CODE
LOWLib/wave.py82__all__ = [CODE
LOWLib/weakref.py30__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",CODE
LOWLib/opcode.py8__all__ = ["cmp_op", "stack_effect", "hascompare", "opname", "opmap",CODE
LOWLib/netrc.py7__all__ = ["netrc", "NetrcParseError"]CODE
LOWLib/heapq.py129__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'heappushpop',STRING
LOWLib/functools.py12__all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES',CODE
223 more matches not shown…
Cross-File Repetition52 hits · 260 pts
SeverityFileLineSnippetContext
HIGHTools/c-analyzer/distutils/_msvccompiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program sSTRING
HIGHTools/c-analyzer/distutils/msvc9compiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program sSTRING
HIGHTools/c-analyzer/distutils/msvccompiler.py0return path to an msvc executable program. tries to find the program in several places: first, one of the msvc program sSTRING
HIGHTools/c-analyzer/distutils/_msvccompiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.STRING
HIGHTools/c-analyzer/distutils/msvc9compiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.STRING
HIGHTools/c-analyzer/distutils/msvccompiler.py0concrete class that implements an interface to microsoft visual c++, as defined by the ccompiler abstract class.STRING
HIGHLib/lzma.py0return the file descriptor for the underlying file.STRING
HIGHLib/bz2.py0return the file descriptor for the underlying file.STRING
HIGHLib/compression/zstd/_zstdfile.py0return the file descriptor for the underlying file.STRING
HIGHLib/lzma.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the eSTRING
HIGHLib/bz2.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the eSTRING
HIGHLib/compression/zstd/_zstdfile.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the eSTRING
HIGHLib/lzma.py0read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b''STRING
HIGHLib/bz2.py0read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b''STRING
HIGHLib/compression/zstd/_zstdfile.py0read up to size uncompressed bytes from the file. if size is negative or omitted, read until eof is reached. returns b''STRING
HIGHLib/lzma.py0read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to STRING
HIGHLib/bz2.py0read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to STRING
HIGHLib/compression/zstd/_zstdfile.py0read up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. reads up to STRING
HIGHLib/lzma.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negatiSTRING
HIGHLib/bz2.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negatiSTRING
HIGHLib/compression/zstd/_zstdfile.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negatiSTRING
HIGHLib/lzma.py0change the file position. the new position is specified by offset, relative to the position indicated by whence. possiblSTRING
HIGHLib/bz2.py0change the file position. the new position is specified by offset, relative to the position indicated by whence. possiblSTRING
HIGHLib/compression/zstd/_zstdfile.py0change the file position. the new position is specified by offset, relative to the position indicated by whence. possiblSTRING
HIGHLib/encodings/raw_unicode_escape.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/utf_8.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/utf_16_be.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/ascii.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/latin_1.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/unicode_escape.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/utf_16_le.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/encodings/utf_16.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHLib/test/test_external_inspection.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_threading.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_sys.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_import/__init__.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_capi/test_misc.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_pickle.py0dedent *string* and strip it from its surrounding whitespaces. this method is used by the other utility functions so thaSTRING
HIGHLib/test/test_dis.py0dedent *string* and strip it from its surrounding whitespaces. this method is used by the other utility functions so thaSTRING
HIGHLib/test/test_tokenize.py0dedent *string* and strip it from its surrounding whitespaces. this method is used by the other utility functions so thaSTRING
HIGHLib/test/test_repl.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/test_inspect/test_inspect.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/support/script_helper.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/test_profiling/test_heatmap.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGH…ling/test_sampling_profiler/_live_collector_helpers.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGHLib/test/test_profiling/test_sampling_profiler/mocks.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGHLib/test/test_peg_generator/test_pegen.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_c_parser.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_first_sets.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_pegen.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
HIGHLib/test/test_peg_generator/test_c_parser.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
HIGHLib/test/test_peg_generator/test_first_sets.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
AI Slop Vocabulary89 hits · 169 pts
SeverityFileLineSnippetContext
MEDIUMTools/picklebench/memory_dos_impact.py280 """Run all benchmarks and return comprehensive results."""STRING
MEDIUMTools/picklebench/memory_dos_impact.py388 """Run comprehensive antagonistic test suite."""STRING
MEDIUMTools/picklebench/memory_dos_impact.py445 """Run comprehensive test suite across all sizes and types."""STRING
LOWTools/c-analyzer/distutils/unixccompiler.py23# * optimization/debug/warning flags; we just use whatever's in Python'sCOMMENT
LOWTools/unicode/dawg.py347 # we don't know position of the edge yet, just use something big asCOMMENT
LOWTools/cases_generator/generators_common.py53 # Not relative to root, just return original path.COMMENT
MEDIUMTools/inspection/benchmark_external_inspection.py114 """Print comprehensive benchmark results"""STRING
LOWTools/patchcheck/patchcheck.py142 # We just use an existence check here as:COMMENT
LOWTools/peg_generator/pegen/build.py58 # To further add to the shared builds fun on Unix, we can't just addCOMMENT
MEDIUMInclude/internal/pycore_object.h793 // Essentially _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET():COMMENT
MEDIUMObjects/mimalloc/prim/osx/alloc-override-zone.c400// it seems less robust than using interpose.COMMENT
LOWMac/BuildScript/build-installer.py1187 # by child processes from their parents. We used to just setSTRING
MEDIUMMac/BuildScript/build-installer.py1341 # TODO: make this more robust! test_sysconfig_module ofSTRING
LOWLib/shutil.py1649 # what file suffixes are executable, so just pass on cmd as-is.COMMENT
MEDIUMLib/trace.py25# Bioreason or Mojam Media be used in advertising or publicity pertaining toCOMMENT
LOWLib/difflib.py1440 # Handle case where no user markup is to be added, just return line ofSTRING
LOWLib/difflib.py1830 # if blank line or context separator, just add it to the output listCOMMENT
LOWLib/difflib.py1835 # if line text doesn't need wrapping, just add it to the output listCOMMENT
LOWLib/ftplib.py405 # then we'll just use anonymous@COMMENT
LOWLib/optparse.py558 # Check all the attributes we just set. There are lots ofCOMMENT
LOWLib/pdb.py3384 # No logic applied whatsoever, just pass the raw reply back.COMMENT
LOWLib/threading.py293 # these override the default implementations (which just callCOMMENT
MEDIUMLib/turtle.py657 """Set focus on canvas (in order to collect key-events)STRING
MEDIUMLib/turtle.py1430 """Set focus on TurtleScreen (in order to collect key-events)STRING
MEDIUMLib/doctest.py1783 # in conjunction with the ELLIPSIS flag.COMMENT
LOWLib/argparse.py2513 # for regular arguments, just add them back into the listSTRING
LOWLib/dataclasses.py574 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOWLib/dataclasses.py630 # just use the class attribute that contains the default.COMMENT
LOWLib/graphlib.py287# successors, so when backtracking to a shallower level we can just callCOMMENT
LOWLib/tarfile.py1583 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWLib/_pydecimal.py3316 # otherwise, simply return the adjusted exponent of self, as aCOMMENT
LOWLib/ntpath.py593 # just return the old path.COMMENT
LOWLib/test/test_winsound.py19# even *should* play. Instead of guessing, just call the function and assumeCOMMENT
MEDIUMLib/test/test_wsgiref.py554 # Not comprehensive, just a few random header namesCOMMENT
MEDIUMLib/test/test_logging.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
LOWLib/test/test_urllib2.py1238 # required, so just use a dummy one to instantiateCOMMENT
MEDIUMLib/test/test_pdb.py1# A test suite for pdb; not very comprehensive at the moment.COMMENT
MEDIUM⚡Lib/test/test_lzma.py517 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMLib/test/test_decimal.py5976 """The C Context docstrings use 'x' in order to prevent confusionSTRING
MEDIUMLib/test/test_grammar.py1970 # This is not intended to be a comprehensive test, rather just to be fewSTRING
MEDIUMLib/test/test_bytes.py2645 # comprehensive for things like partition, etc.COMMENT
LOWLib/test/test_py_compile.py250 # assert_python_* helpers don't return proc object. We'll just useCOMMENT
LOWLib/test/test_subprocess.py1487 # Subsequent invocations should just return the returncodeSTRING
LOWLib/test/test_subprocess.py1493 # Subsequent invocations should just return the returncodeSTRING
MEDIUMLib/test/test_urllib2net.py35# Connecting to remote hosts is flaky. Make it more robust by retryingCOMMENT
MEDIUMLib/test/test_startfile.py29 # means the test harness provided directory isn't a safe option.COMMENT
MEDIUMLib/test/test_signal.py1396 # a signal is ignored due to the aforementionedSTRING
MEDIUMLib/test/test_socketserver.py54 # Don't raise an exception; it would be caught by the test harness.COMMENT
LOWLib/test/test_unicode_file.py120 # The 'test' functions are unittest entry points, and simply call ourCOMMENT
LOWLib/test/test_long.py1240 # nonnegative second argument: round(x, n) should just return xCOMMENT
LOWLib/test/test_argparse.py294 # redirected, simply call the function and let the enclosing functionCOMMENT
LOWLib/test/test_types.py522 # So, just use a sign flagCOMMENT
LOWLib/test/test_multiprocessing_main_handling.py81# so we just use "int" as a passthrough operation belowCOMMENT
MEDIUMLib/test/test_os/test_os.py2533 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
LOWLib/test/test_pyrepl/test_windows_console.py626 # because for simplicity we just useCOMMENT
LOWLib/test/test_unittest/test_loader.py706 # XXX Should this raise a ValueError or just return an empty TestSuite?COMMENT
LOWLib/test/test_unittest/testmock/testmock.py1204 # need to do this because MagicMock.mock_calls used to just returnCOMMENT
MEDIUMLib/test/support/asyncore.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
MEDIUMLib/test/support/asynchat.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
MEDIUMLib/test/test_capi/test_long.py41 # Essentially randomCOMMENT
29 more matches not shown…
Docstring Block Structure33 hits · 165 pts
SeverityFileLineSnippetContext
HIGHTools/picklebench/memory_dos_impact.py508Extract JSON data from subprocess output. Skips any print statements before the JSON output and parses the JSONSTRING
HIGHLib/ipaddress.py26Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py55Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py84Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py118Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representatSTRING
HIGHLib/ipaddress.py302Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), STRING
HIGHLib/ipaddress.py438Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded biSTRING
HIGHLib/ipaddress.py468Return prefix length from a numeric string Args: prefixlen_str: The string to be converted STRING
HIGHLib/ipaddress.py493Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converSTRING
HIGHLib/ipaddress.py789Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') STRING
HIGHLib/ipaddress.py864Compare two IP objects. This is only concerned about the comparison of the integer representation of thSTRING
HIGHLib/ipaddress.py922The subnets which join to make the current subnet. In the case that self contains only one IP (self._prSTRING
HIGHLib/ipaddress.py975The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefiSTRING
HIGHLib/ipaddress.py1123Get the next closest network with a specific prefix. Args: next_prefix: The desired next prefix lenSTRING
HIGHLib/ipaddress.py1224Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHLib/ipaddress.py1250Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHLib/ipaddress.py1704Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHLib/ipaddress.py1817Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHLib/ipaddress.py1891Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. STRING
HIGHLib/selectors.py22Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor ReturnsSTRING
HIGHLib/selectors.py101Register a file object. Parameters: fileobj -- file object or file descriptor events -- eventsSTRING
HIGHLib/selectors.py124Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: STRING
HIGHLib/selectors.py142Change a registered file object monitored events or attached data. Parameters: fileobj -- file object oSTRING
HIGHLib/getpass.py69Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: STRING
HIGHLib/test/test_external_inspection.py86 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected STRING
HIGHLib/test/test_external_inspection.py128 Wait for N occurrences of a signal pattern. Args: sock: Connected socket to read from signal_pSTRING
HIGH…/test/test_profiling/test_sampling_profiler/helpers.py42 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected STRING
HIGHLib/profiling/sampling/_sync_coordinator.py39 Validate and parse command line arguments. Args: args: Command line arguments including script name STRING
HIGHLib/concurrent/futures/_base.py194An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHLib/concurrent/futures/_base.py432Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHLib/concurrent/futures/_base.py469Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHLib/concurrent/futures/_base.py619Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHLib/concurrent/futures/process.py941Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Redundant / Tautological Comments112 hits · 149 pts
SeverityFileLineSnippetContext
LOWTools/c-analyzer/c_common/scriptutil.py26 # Check if "installed".COMMENT
LOWTools/cases_generator/stack.py9# Set this to true for voluminous output showing state of stack and localsCOMMENT
LOWTools/inspection/benchmark_external_inspection.py260 # Check if it's still runningCOMMENT
LOWTools/inspection/benchmark_external_inspection.py341 # Print resultsCOMMENT
LOWTools/peg_generator/pegen/grammar.py31 # Check if there are repeated rules in "rules"COMMENT
LOWPCbuild/get_external.py134 # Check if the dependency already exists in externals/ directoryCOMMENT
LOWLib/dis.py589 # Set argval to the dereferenced value of the argument whenCOMMENT
LOW⚡Lib/_py_abc.py136 # Check if it's a direct subclassCOMMENT
LOW⚡Lib/_py_abc.py140 # Check if it's a subclass of a registered class (recursive)COMMENT
LOW⚡Lib/_py_abc.py145 # Check if it's a subclass of a subclass (recursive)COMMENT
LOWLib/zipimport.py307 # Check if there's a comment.COMMENT
LOWLib/pyclbr.py143 # Check if it is a built-in module; we don't do much for these.COMMENT
LOWLib/heapq.py281 # Set childpos to index of smaller child.COMMENT
LOWLib/heapq.py317 # Set childpos to index of larger child.COMMENT
LOW⚡Lib/hashlib.py142 # Check if the context security policy blocks the digest or notSTRING
LOWLib/traceback.py1516 # Check if it worksCOMMENT
LOWLib/traceback.py1852 # Check if attr_name is a descriptor - if so, skip itCOMMENT
LOW⚡Lib/types.py316 # Check if 'func' is a coroutine function.COMMENT
LOW⚡Lib/types.py321 # Check if 'func' is a generator function.COMMENT
LOWLib/pdb.py232 # Open the file each time because the file may be modifiedCOMMENT
LOWLib/pdb.py3007 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWLib/poplib.py232 # Check if the response has enough elementsCOMMENT
LOWLib/plistlib.py691 # Write file headerCOMMENT
LOWLib/_py_warnings.py468 # Check if message is already a Warning objectCOMMENT
LOWLib/_py_warnings.py622 # Print message and contextCOMMENT
LOWLib/_osx_support.py413 # Check if the SDK that is used during compilation actually exists,COMMENT
LOWLib/compileall.py87 # Check if this is a system where ProcessPoolExecutor can function.COMMENT
LOWLib/doctest.py1836 # Check if we should use diff.COMMENT
LOWLib/doctest.py2233 # Read the file, convert it to a test, and run it.STRING
LOWLib/smtplib.py427 # Check if multiline response.COMMENT
LOWLib/graphlib.py174 # Check if we know about this node (it was added previously using add()COMMENT
LOWLib/tarfile.py1275 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWLib/tarfile.py1560 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWLib/typing.py1301 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWLib/typing.py2135 # Check if the members appears in the class dictionary...COMMENT
LOWLib/tokenize.py390 # Check if the line matches the encoding.COMMENT
LOWLib/ctypes/util.py228 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/util.py400 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/__init__.py150 # Check if sizeof(ctypes_type) against struct.calcsize. ThisCOMMENT
LOWLib/unittest/mock.py454 # Check if spec is an async object or functionCOMMENT
LOWLib/test/test_external_inspection.py107 # Check if all expected signals are in bufferCOMMENT
LOWLib/test/test__interpchannels.py1412 # Set this to True to avoid creating interpreters, e.g. whenSTRING
LOWLib/test/pythoninfo.py1296 # Check if the process in running in a containerCOMMENT
LOWLib/test/test_gzip.py204 # Open the file for writing, then close it.STRING
LOWLib/test/test_logging.py6431 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWLib/test/test_pdb.py3684 # Check if the custom prefix appeared in the outputCOMMENT
LOWLib/test/test_difflib.py362 # Check if the problem described in patch #1413711 exists.COMMENT
LOWLib/test/test_type_cache.py36 # Check if global version tag has already overflowed.COMMENT
LOWLib/test/test_typing.py5118 # Check if a dictionary conforms to Dict typeCOMMENT
LOWLib/test/test_typing.py5133 # Check if an instance conforms to the generic classCOMMENT
LOWLib/test/test_typing.py5145 # Check if list conforms to a List subclassCOMMENT
LOWLib/test/test_remote_pdb.py986 # Add commands to the queueCOMMENT
LOWLib/test/test_remote_pdb.py1011 # Check if prompt was sent to clientCOMMENT
LOWLib/test/test_remote_pdb.py1206 # Check if we got the expected outputCOMMENT
LOWLib/test/test_http_cookies.py104 # Check if the cookie is loaded correctlyCOMMENT
LOWLib/test/test_compile.py1595 # Check if bytecode containing jumps that simply point to the next lineSTRING
LOWLib/test/test_dtrace.py405 # Check if bpftrace is available and can attach to USDT probesCOMMENT
LOWLib/test/test_annotationlib.py2510 # Check if the passed in mutable arguments equal the originalsCOMMENT
LOWLib/test/test_codecs.py3042 # Check if the BOM is written only onceCOMMENT
LOWLib/test/test_tarfile.py4758 # Set UID to 0 so chown() is attempted.COMMENT
52 more matches not shown…
Hallucination Indicators10 hits · 130 pts
SeverityFileLineSnippetContext
CRITICALLib/test/test_urllib2net.py362 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py373 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICALLib/test/test_urllib2net.py385 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py392 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICAL⚡Lib/test/test_lazy_import/__init__.py614 g = test.test_lazy_import.data.pkg.c.get_globals()CODE
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)CODE
CRITICAL⚡Lib/idlelib/idle_test/test_textview.py211 self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'),CODE
Fake / Example Data98 hits · 79 pts
SeverityFileLineSnippetContext
LOWLib/test/test_xml_etree.py2398 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWLib/test/test_xml_etree.py2564 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOW⚡Lib/test/test_curses.py1402 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡Lib/test/test_curses.py1405 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')CODE
LOW⚡Lib/test/test_curses.py1411 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡Lib/test/test_curses.py1421 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py1361 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py1491 win.addstr(2, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1492 win.addstr(3, 0, 'dolor sit amet')CODE
LOWLib/test/test_curses.py1526 win.addstr(0, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1649 win.addstr(2, 1, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1657 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')CODE
LOWLib/test/test_curses.py3167 'Lorem ipsum',CODE
LOWLib/test/test_curses.py3168 'dolor sit amet,',CODE
LOWLib/test/test_imaplib.py2135 typ, data = client.setacl('INBOX', 'John Doe', 'a b')CODE
LOWLib/test/test_imaplib.py2137 self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"'])CODE
LOWLib/test/test_imaplib.py2148 typ, data = client.deleteacl('New folder', 'John Doe')CODE
LOWLib/test/test_imaplib.py2150 self.assertEqual(server.args, ['"New folder"', '"John Doe"'])CODE
LOWLib/test/test_ssl.py578 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py585 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py599 ('email', 'user@example.org'),CODE
LOW⚡Lib/test/test_urlparse.py450 self.assertEqual(urlparse('mailto:1337@example.org'),CODE
LOW⚡Lib/test/test_urlparse.py451 ('mailto', '', '1337@example.org', '', '', ''))CODE
LOW⚡Lib/test/test_urlparse.py452 self.assertEqual(urlparse('mailto:1337@example.org', missing_as_none=True),CODE
LOW⚡Lib/test/test_urlparse.py453 ('mailto', None, '1337@example.org', None, None, None))CODE
LOWLib/test/test_pickletools.py583 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py587 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py608 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py612 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py624 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py628 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py640 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py644 11: \x8c SHORT_BINUNICODE 'fake_data' Push a Python Unicode string object.CODE
LOW⚡Lib/test/test_pickletools.py656 data = ('fake_data',)STRING
LOW⚡Lib/test/test_pickletools.py661 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOW⚡Lib/test/test_pickletools.py670 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_smtplib.py518 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py555 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py584 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py644 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py681 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_ttk/test_widgets.py345 'placeholder', 'placeholderforeground',CODE
LOWLib/test/test_ttk/test_widgets.py495 'justify', 'placeholder', 'placeholderforeground', 'postcommand',CODE
LOWLib/test/test_ttk/test_widgets.py1308 'placeholder', 'placeholderforeground',CODE
LOW⚡Lib/test/test_tkinter/test_text.py69 text.insert('1.0', 'Lorem ipsum')CODE
LOW⚡Lib/test/test_tkinter/test_text.py70 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py76 self.assertEqual(text.get('1.0', 'end'), '*** Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py79 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py179 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOW⚡Lib/test/test_tkinter/test_text.py179 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOW⚡Lib/test/test_tkinter/test_text.py742 'Lorem ipsum dolor sit amet,\n'CODE
LOW⚡Lib/test/test_tkinter/test_text.py742 'Lorem ipsum dolor sit amet,\n'CODE
LOWLib/test/test_tkinter/test_text.py43 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py43 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py56 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py56 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py97 text.insert('1.0', 'Lorem ipsum')CODE
LOWLib/test/test_tkinter/test_text.py109 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py109 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py131 text.insert('1.0', 'Lorem ipsum')CODE
38 more matches not shown…
AI Structural Patterns87 hits · 74 pts
SeverityFileLineSnippetContext
LOWPC/layout/support/pymanager.py259CODE
LOWTools/gdb/libpython.py887CODE
LOWTools/gdb/libpython.py1444CODE
LOWTools/gdb/libpython.py1515CODE
LOWTools/c-analyzer/cpython/__main__.py334CODE
LOWTools/c-analyzer/c_analyzer/__main__.py296CODE
LOWMac/BuildScript/build-installer.py504CODE
LOWLib/tempfile.py630CODE
LOWLib/tempfile.py703CODE
LOWLib/tempfile.py785CODE
LOWLib/lzma.py281CODE
LOWLib/trace.py394CODE
LOWLib/dis.py86CODE
LOWLib/dis.py916CODE
LOWLib/textwrap.py112CODE
LOWLib/functools.py635CODE
LOWLib/subprocess.py991CODE
LOWLib/pydoc.py1386CODE
LOWLib/ftplib.py711CODE
LOWLib/optparse.py1167CODE
LOWLib/configparser.py656CODE
LOWLib/reprlib.py51CODE
LOWLib/compileall.py48CODE
LOWLib/compileall.py132CODE
LOWLib/_pydatetime.py1797CODE
LOWLib/_pydatetime.py2091CODE
LOWLib/tarfile.py1018CODE
LOWLib/tarfile.py1802CODE
LOWLib/ssl.py744CODE
LOWLib/_pydecimal.py3873CODE
LOWLib/unittest/main.py66CODE
LOWLib/unittest/mock.py444CODE
LOWLib/unittest/mock.py463CODE
LOWLib/unittest/mock.py1152CODE
LOWLib/test/test_pdb.py5100CODE
LOWLib/test/test_faulthandler.py113CODE
LOWLib/test/test_decimal.py4375CODE
LOWLib/test/test_code.py850CODE
LOWLib/test/test_remote_pdb.py88CODE
LOWLib/test/mock_socket.py54CODE
LOWLib/test/test_ssl.py281CODE
LOWLib/test/test_ssl.py322CODE
LOWLib/test/test_ssl.py3043CODE
LOWLib/test/test_graphlib.py254CODE
LOWLib/test/test_embed.py1001CODE
LOWLib/test/test_regrtest.py681CODE
LOWLib/test/test_inspect/test_inspect.py1371CODE
LOWLib/test/test_zipfile/test_core.py909CODE
LOWLib/test/test_zoneinfo/data/update_test_data.py99CODE
LOWLib/test/test_asyncio/test_tasks.py939CODE
LOWLib/test/test_asyncio/test_tasks.py1831CODE
LOWLib/urllib/request.py1043CODE
LOWLib/urllib/request.py1058CODE
LOWLib/tkinter/__init__.py4404CODE
LOWLib/tkinter/__init__.py4427CODE
LOWLib/tkinter/ttk.py1636CODE
LOWLib/tkinter/ttk.py1679CODE
LOWLib/tkinter/ttk.py1705CODE
LOWLib/tkinter/ttk.py1720CODE
LOWLib/tkinter/ttk.py1735CODE
27 more matches not shown…
Dead Code40 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMTools/c-analyzer/c_parser/parser/_func_body.py49CODE
MEDIUMTools/c-analyzer/c_parser/parser/_func_body.py50CODE
MEDIUMTools/c-analyzer/cpython/_analyzer.py121CODE
MEDIUMTools/c-analyzer/cpython/_analyzer.py133CODE
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py119CODE
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py121CODE
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py124CODE
MEDIUMTools/c-analyzer/c_analyzer/datafiles.py125CODE
MEDIUMLib/test/test__interpchannels.py611CODE
MEDIUMLib/test/test__interpchannels.py613CODE
MEDIUMLib/test/test_fractions.py175CODE
MEDIUMLib/test/test_threading.py2502CODE
MEDIUMLib/test/test_itertools.py2439CODE
MEDIUMLib/test/test_array.py1168CODE
MEDIUMLib/test/test_generators.py577CODE
MEDIUMLib/test/test_generators.py588CODE
MEDIUMLib/test/test_exceptions.py1917CODE
MEDIUMLib/test/test_compile.py951CODE
MEDIUMLib/test/test_set.py21CODE
MEDIUMLib/test/test_set.py1109CODE
MEDIUMLib/test/test_deque.py16CODE
MEDIUMLib/test/test_sys_settrace.py2762CODE
MEDIUMLib/test/test_yield_from.py203CODE
MEDIUMLib/test/test_yield_from.py204CODE
MEDIUMLib/test/test_yield_from.py205CODE
MEDIUMLib/test/test_asyncgen.py419CODE
MEDIUMLib/test/test_asyncgen.py452CODE
MEDIUMLib/test/test_asyncgen.py589CODE
MEDIUMLib/test/test_asyncgen.py1098CODE
MEDIUMLib/test/test_asyncgen.py1230CODE
MEDIUMLib/test/test_asyncgen.py2315CODE
MEDIUMLib/test/test_asyncgen.py2336CODE
MEDIUMLib/test/test_asyncgen.py2360CODE
MEDIUMLib/test/test_asyncgen.py1033CODE
MEDIUMLib/test/test_asyncgen.py1141CODE
MEDIUMLib/test/test_builtin.py1452CODE
MEDIUMLib/test/test_dict.py311CODE
MEDIUMLib/test/dtracedata/call_stack.py15CODE
MEDIUMLib/test/test_unittest/test_async_case.py362CODE
MEDIUMLib/test/test_capi/test_misc.py1624CODE
Overly Generic Function Names106 hits · 49 pts
SeverityFileLineSnippetContext
LOWLib/socketserver.py273 def handle_request(self):CODE
LOWLib/contextlib.py364 def helper(*args, **kwds):CODE
LOWLib/contextlib.py397 def helper(*args, **kwds):CODE
LOWLib/test/test_unparse.py962 def test_function(self):CODE
LOWLib/test/test_gc.py220 def test_function(self):CODE
LOWLib/test/test_logging.py2243 def handle_request(self, request):CODE
LOWLib/test/test_with.py45 def helper(*args, **kwds):CODE
LOWLib/test/test_marshal.py19 def helper(self, sample, *extra):CODE
LOWLib/test/test_pdb.py721def do_something():CODE
LOWLib/test/test_pdb.py53 >>> def test_function(foo, bar):STRING
LOWLib/test/test_pdb.py98 >>> def test_function():STRING
LOWLib/test/test_pdb.py234 >>> def test_function():STRING
LOWLib/test/test_pdb.py365 >>> def test_function():STRING
LOWLib/test/test_pdb.py416 >>> def test_function():STRING
LOWLib/test/test_pdb.py441 >>> def test_function():STRING
LOWLib/test/test_pdb.py487 >>> def test_function():STRING
LOWLib/test/test_pdb.py520 >>> def test_function():STRING
LOWLib/test/test_pdb.py642 >>> def test_function():STRING
LOWLib/test/test_pdb.py668 >>> def test_function():STRING
LOWLib/test/test_pdb.py689 >>> def test_function():STRING
LOWLib/test/test_pdb.py743 >>> def test_function():STRING
LOWLib/test/test_pdb.py770 1 def test_function():STRING
LOWLib/test/test_pdb.py816 ... def do_something():STRING
LOWLib/test/test_pdb.py834 >>> def test_function():STRING
LOWLib/test/test_pdb.py867 >>> def test_function():STRING
LOWLib/test/test_pdb.py937 >>> def test_function():STRING
LOWLib/test/test_pdb.py1009 >>> def test_function():STRING
LOWLib/test/test_pdb.py1094 >>> def test_function():STRING
LOWLib/test/test_pdb.py1115 >>> def test_function():STRING
LOWLib/test/test_pdb.py1133 >>> def test_function():STRING
LOWLib/test/test_pdb.py1190 >>> def test_function():STRING
LOWLib/test/test_pdb.py1286 >>> def test_function():STRING
LOWLib/test/test_pdb.py1368 >>> def test_function():STRING
LOWLib/test/test_pdb.py1422 >>> def test_function():STRING
LOWLib/test/test_pdb.py1495 >>> def test_function():STRING
LOWLib/test/test_pdb.py1528 >>> def test_function():STRING
LOWLib/test/test_pdb.py1560 >>> def test_function():STRING
LOWLib/test/test_pdb.py1635 >>> def test_function():STRING
LOWLib/test/test_pdb.py1687 >>> def test_function():STRING
LOWLib/test/test_pdb.py1724 1 def test_function():STRING
LOWLib/test/test_pdb.py1754 >>> def test_function():STRING
LOWLib/test/test_pdb.py1824 >>> def test_function():STRING
LOWLib/test/test_pdb.py1912 >>> def test_function():STRING
LOWLib/test/test_pdb.py2005 >>> def test_function():STRING
LOWLib/test/test_pdb.py2069 >>> def test_function():STRING
LOWLib/test/test_pdb.py2134 >>> def test_function():STRING
LOWLib/test/test_pdb.py2166 >>> def test_function():STRING
LOWLib/test/test_pdb.py2228 >>> def test_function():STRING
LOWLib/test/test_pdb.py2281 >>> def test_function():STRING
LOWLib/test/test_pdb.py2336 >>> def test_function():STRING
LOWLib/test/test_pdb.py2397 >>> def test_function():STRING
LOWLib/test/test_pdb.py2450 >>> def test_function():STRING
LOWLib/test/test_pdb.py2515 >>> def test_function():STRING
LOWLib/test/test_pdb.py2553 >>> def test_function():STRING
LOWLib/test/test_pdb.py2612 >>> def test_function():STRING
LOWLib/test/test_pdb.py2648 >>> def test_function():STRING
LOWLib/test/test_pdb.py2693 >>> def test_function():STRING
LOWLib/test/test_pdb.py2739 >>> def test_function():STRING
LOWLib/test/test_pdb.py2769 >>> def test_function():STRING
LOWLib/test/test_pdb.py2805 >>> def test_function():STRING
46 more matches not shown…
Verbosity Indicators25 hits · 42 pts
SeverityFileLineSnippetContext
LOW⚡Lib/encodings/idna.py105 # Step 2: nameprepCOMMENT
LOW⚡Lib/encodings/idna.py108 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡Lib/encodings/idna.py109 # Step 4: try ASCIICOMMENT
LOW⚡Lib/encodings/idna.py123 # Step 5: Check ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py128 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py131 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py134 # Step 8: Check sizeCOMMENT
LOW⚡Lib/encodings/idna.py141 # Step 1: Check for ASCIICOMMENT
LOW⚡Lib/encodings/idna.py152 # Step 2: Perform nameprepCOMMENT
LOW⚡Lib/encodings/idna.py160 # Step 3: Check for ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py170 # Step 4: Remove ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py173 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py180 # Step 6: Apply ToASCIICOMMENT
LOW⚡Lib/encodings/idna.py183 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡Lib/encodings/idna.py189 # Step 8: return the result of step 5COMMENT
LOWLib/encodings/idna.py91 # Step 1: try ASCIICOMMENT
LOWLib/test/test_curses.py2235 # range may be restricted, so we need to check if the limit is stillCOMMENT
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
LOW⚡Modules/expat/refresh.sh22# Step 1: download and copy filesCOMMENT
LOW⚡Modules/expat/refresh.sh26# Step 2: Pull files from the libexpat distributionCOMMENT
LOW⚡Modules/expat/refresh.sh61# Step 3: Add the namespacing include to expat_external.hCOMMENT
LOW⚡Modules/expat/refresh.sh71# Step 4: Skip the Windows rand_s entropy path in xmlparse.c whenCOMMENT
LOWModules/_hacl/refresh.sh39# Step 1: copy filesCOMMENT
LOWModules/_hacl/refresh.sh116# Step 2: some in-place modifications to keep things simple and minimalCOMMENT
LOWModules/_hacl/refresh.sh151# Step 3: trim whitespace (for the linter)COMMENT
Structural Annotation Overuse24 hits · 39 pts
SeverityFileLineSnippetContext
LOW⚡Lib/encodings/idna.py105 # Step 2: nameprepCOMMENT
LOW⚡Lib/encodings/idna.py108 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡Lib/encodings/idna.py109 # Step 4: try ASCIICOMMENT
LOW⚡Lib/encodings/idna.py123 # Step 5: Check ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py128 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py131 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py134 # Step 8: Check sizeCOMMENT
LOW⚡Lib/encodings/idna.py141 # Step 1: Check for ASCIICOMMENT
LOW⚡Lib/encodings/idna.py152 # Step 2: Perform nameprepCOMMENT
LOW⚡Lib/encodings/idna.py160 # Step 3: Check for ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py170 # Step 4: Remove ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py173 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py180 # Step 6: Apply ToASCIICOMMENT
LOW⚡Lib/encodings/idna.py183 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡Lib/encodings/idna.py189 # Step 8: return the result of step 5COMMENT
LOWLib/encodings/idna.py91 # Step 1: try ASCIICOMMENT
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
LOW⚡Modules/expat/refresh.sh22# Step 1: download and copy filesCOMMENT
LOW⚡Modules/expat/refresh.sh26# Step 2: Pull files from the libexpat distributionCOMMENT
LOW⚡Modules/expat/refresh.sh61# Step 3: Add the namespacing include to expat_external.hCOMMENT
LOW⚡Modules/expat/refresh.sh71# Step 4: Skip the Windows rand_s entropy path in xmlparse.c whenCOMMENT
LOWModules/_hacl/refresh.sh39# Step 1: copy filesCOMMENT
LOWModules/_hacl/refresh.sh116# Step 2: some in-place modifications to keep things simple and minimalCOMMENT
LOWModules/_hacl/refresh.sh151# Step 3: trim whitespace (for the linter)COMMENT
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHInclude/internal/pycore_global_strings.h934/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_unicodeobject_generated.h913/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_runtime_init_generated.h2462/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_global_objects_fini_generated.h939/* End auto-generated code */COMMENT
HIGHLib/subprocess.py334 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
Slop Phrases19 hits · 34 pts
SeverityFileLineSnippetContext
LOWTools/clinic/libclinic/block_parser.py179 # make sure to recognize stop line even if itSTRING
LOWPython/jit.c170 // Do NOT ever leave the memory writable! Also, don't forget to flush theCOMMENT
LOWPython/jit.c642// Compiles executor in-place. Don't forget to call _PyJIT_Free later!COMMENT
MEDIUMPython/hamt.c420 Also it's worth noting that it would be possible to adapt the treeCODE
LOWObjects/exceptions.c39/* NOTE: If the exception class hierarchy changes, don't forget to updateCOMMENT
MEDIUMLib/heapq.py267# you can use it.COMMENT
LOWLib/quopri.py91 # Don't forget to include the soft line break `=' sign in theCOMMENT
MEDIUMLib/ntpath.py402# XXX With COMMAND.COM you can use any characters in a variable name,COMMENT
LOWLib/test/test_gc.py1744 # make sure to always test gc.enable()STRING
LOWLib/test/_test_multiprocessing.py1522 q.join_thread() # make sure to join the feeder threadCODE
MEDIUMLib/test/test_logging.py425# level values which do not fit into these limitations, you can use aCOMMENT
LOWLib/test/test_tempfile.py2154 # platforms, but don't forget to update the docs.COMMENT
LOWLib/test/test_tempfile.py2154 # platforms, but don't forget to update the docs.COMMENT
LOWLib/test/test_bigmem.py45# - Don't forget to test for large indices, offsets and results and such,COMMENT
MEDIUM⚡Lib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
LOWLib/_pyrepl/fancycompleter.py172 # sort the words now to make sure to return completions inCOMMENT
LOWModules/arraymodule.c733 * Don't forget to update typecode_to_mformat_code() if you add a newCOMMENT
MEDIUMModules/xxsubtype.c106 PyDoc_STR("an int variable for demonstration purposes")},CODE
MEDIUMModules/xxsubtype.c204 PyDoc_STR("an int variable for demonstration purposes")},CODE
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHLib/imaplib.py1655 # I'll update the code in '_get_response()'.COMMENT
HIGHLib/test/test_asyncgen.py76 # all methods of the iterator protocol. In this implementationCOMMENT
Example Usage Blocks6 hits · 10 pts
SeverityFileLineSnippetContext
LOWInclude/critical_section.h29// Example usage:COMMENT
LOWInclude/pyport.h647// Usage example:COMMENT
LOWInclude/internal/pycore_parking_lot.h53// Example usage:COMMENT
LOWInclude/internal/pycore_parking_lot.h82// Example usage:COMMENT
LOW⚡Lib/test/test_unittest/testmock/testmock.py600 # Usage exampleCOMMENT
LOWLib/zipfile/__init__.py725# Usage:COMMENT
TODO Padding8 hits · 10 pts
SeverityFileLineSnippetContext
LOWInclude/internal/pycore_object.h256// TODO: implement Py_DECREF specializations for Py_GIL_DISABLED buildCOMMENT
LOWObjects/genericaliasobject.c332 if (PyType_Check(arg)) { // TODO: Add testCODE
LOWObjects/mimalloc/options.c500// TODO: implement ourselves to reduce dependencies on the C runtimeCOMMENT
LOWLib/test/test_smtplib.py1285 #TODO: add tests for correct AUTH method fallback now that theCOMMENT
LOW⚡Lib/test/test_tkinter/test_text.py737 # TODO: Add test for elide=TrueCOMMENT
LOWLib/test/test_tkinter/test_text.py675 # TODO: Add test for elide=TrueCOMMENT
LOWLib/test/test_capi/test_unicode.py2559# TODO: Add tests to the following codec functions:STRING
LOWLib/test/test_capi/test_unicode.py2600# TODO: Add tests to the following character functions:STRING