Repository Analysis

python/cpython

The Python programming language

9.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of python/cpython, a Python project with 73,786 GitHub stars. SynthScan v2.0 examined 2,264,120 lines of code across 3984 source files, recording 21949 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 9.3 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).

9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
73.8K
Stars
Python
Language
2.3M
Lines of Code
4.0K
Files
21.9K
Pattern Hits
2026-07-14
Scan Date
0.13
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 10HIGH 517MEDIUM 954LOW 20468

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 21949 distinct pattern matches across 25 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 Identifiers12546 hits · 9416 pts
SeverityFileLineSnippetContext
LOWPC/layout/support/appxmanifest.py382def 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
LOWPlatforms/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__.py1051def 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.py81def 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.py1882 def get_selected_python_frame(cls):CODE
LOWTools/gdb/libpython.py1900 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.py1304def 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/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
LOWTools/scripts/sortperf.py58def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]:CODE
LOWTools/scripts/sortperf.py68def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]:CODE
LOWTools/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
LOWTools/scripts/summarize_stats.py271 def get_specialization_success_failure(self, opcode: str) -> dict[str, int]:STRING
LOWTools/scripts/summarize_stats.py280 def get_specialization_failure_total(self, opcode: str) -> int:STRING
LOWTools/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
LOWTools/scripts/summarize_stats.py745def calc_execution_count_table(prefix: str) -> RowCalculator:STRING
LOWTools/scripts/summarize_stats.py833 def iter_pre_succ_pairs_tables(base_stats: Stats, head_stats: Stats | None = None):STRING
12486 more matches not shown…
Over-Commented Block4184 hits · 3021 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/launcher2.c21#define MS_WINDOWSCOMMENT
LOWPC/launcher2.c401 // pointer and length into cmdline or a static string with theCOMMENT
LOWPC/launcher2.c421 // if true, treats 'tag' as a non-PEP 514 filterCOMMENT
LOWPC/pyshellext.cpp1// Support back to VistaCOMMENT
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#define _Py_COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")COMMENT
LOWPC/pyconfig.h201#define _WIN32_WINNT Py_WINVERCOMMENT
LOWPC/pyconfig.h221#if defined(_M_IX86)COMMENT
LOWPC/pyconfig.h301COMMENT
LOWPC/pyconfig.h321#ifdef MS_COREDLLCOMMENT
LOWPC/pyconfig.h341# pragma comment(lib,"python316_d.lib")COMMENT
LOWPC/pyconfig.h361# define SIZEOF_OFF_T 4COMMENT
LOWPC/pyconfig.h381# define ALIGNOF_SIZE_T 4COMMENT
LOWPC/pyconfig.h401/* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.COMMENT
LOWPC/pyconfig.h741#define HAVE_GETHOSTBYNAME 1COMMENT
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
4124 more matches not shown…
Cross-Language Confusion418 hits · 2346 pts
SeverityFileLineSnippetContext
HIGHPlatforms/emscripten/prepare_external_wasm.py16 bytes.push(parseInt(hex.substr(i, 2), 16));CODE
HIGHPlatforms/emscripten/__main__.py447 f"source ~/.nvm/nvm.sh && nvm install {node_version}",CODE
HIGHPlatforms/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
HIGHTools/cases_generator/optimizer_generator.py118 stack.pop(var, null)CODE
HIGHTools/cases_generator/optimizer_generator.py124 offset = offset.push(var)CODE
HIGHTools/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
HIGHTools/clinic/libclinic/clanguage.py195 condition = f"kwnames && PyTuple_Size(kwnames) && {condition}"STRING
HIGHTools/clinic/libclinic/clanguage.py197 condition = f"kwnames && PyTuple_GET_SIZE(kwnames) && {condition}"STRING
HIGHTools/clinic/libclinic/clanguage.py200 condition = f"kwargs && PyDict_Size(kwargs) && {condition}"STRING
HIGHTools/clinic/libclinic/clanguage.py202 condition = f"kwargs && PyDict_GET_SIZE(kwargs) && {condition}"STRING
HIGHTools/clinic/libclinic/parse_args.py405 if (nargs || (kwnames && PyTuple_GET_SIZE(kwnames))) {{CODE
HIGHTools/clinic/libclinic/converters.py124 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py236 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py273 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py335 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py383 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py412 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py483 if (ival == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py499 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py539 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py556 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py578 if ({paramname} == -1 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py620 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py629 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py653 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/clinic/libclinic/converters.py662 if ({paramname} == -1.0 && PyErr_Occurred()) {{{{CODE
HIGHTools/peg_generator/pegen/c_generator.py399 self.print("if (p->level++ == MAXSTACK || _Py_ReachedRecursionLimitWithMargin(PyThreadState_Get(), 1)) {")STRING
HIGHTools/peg_generator/pegen/c_generator.py537 self.print("if (p->mark == p->fill && _PyPegen_fill_token(p) < 0) {")STRING
HIGHTools/peg_generator/pegen/c_generator.py586 self.print("if (_raw == NULL || p->mark <= _resmark)")STRING
HIGHTools/peg_generator/pegen/c_generator.py660 self.print("if (_n == 0 || p->error_indicator) {")STRING
HIGHTools/peg_generator/pegen/c_generator.py742 self.print("if ((_res == NULL || p->error_indicator) && PyErr_Occurred()) {")STRING
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.py1348 if (kwargs && PyDict_Update(payload, kwargs) < 0) {STRING
HIGHParser/asdl_c.py1453 if (i == 0 && length > 2) {STRING
HIGHParser/asdl_c.py1774 if (i == -1 && PyErr_Occurred())STRING
HIGHParser/asdl_c.py2140 assert(0 <= mode && mode <= 2);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
358 more matches not shown…
Deep Nesting1577 hits · 1352 pts
SeverityFileLineSnippetContext
LOWPC/layout/main.py129CODE
LOWPC/layout/main.py385CODE
LOWPC/layout/main.py459CODE
LOWPC/layout/support/constants.py45CODE
LOWPC/layout/support/appxmanifest.py334CODE
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__.py770CODE
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.py2071CODE
LOWTools/gdb/libpython.py478CODE
LOWTools/gdb/libpython.py1393CODE
LOWTools/gdb/libpython.py1504CODE
LOWTools/freeze/parsesetup.py48CODE
LOWTools/freeze/makefreeze.py32CODE
LOWTools/freeze/freeze.py111CODE
LOWTools/freeze/checkextensions.py8CODE
LOWTools/freeze/makeconfig.py9CODE
LOWTools/freeze/test/freeze.py67CODE
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
LOWTools/c-analyzer/c_parser/parser/_func_body.py46CODE
LOWTools/c-analyzer/c_parser/parser/_func_body.py190CODE
1517 more matches not shown…
Decorative Section Separators400 hits · 988 pts
SeverityFileLineSnippetContext
MEDIUMTools/unicode/makeunicodedata.py43# --------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py174# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py503# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py716# --------------------------------------------------------------------COMMENT
MEDIUMTools/unicode/makeunicodedata.py1021# --------------------------------------------------------------------STRING
MEDIUMTools/scripts/sortperf.py28# ===============COMMENT
MEDIUMTools/scripts/sortperf.py30# ===============COMMENT
MEDIUMParser/asdl.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMParser/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.py889## ------------------------------------------------------------------COMMENT
MEDIUMLib/random.py930# ----------------------------------------------------------------------COMMENT
MEDIUMLib/random.py964## ------------------------------------------------------COMMENT
MEDIUMLib/random.py1005## ------------------------------------------------------COMMENT
MEDIUMLib/random.py1012# ------------------------------------------------------COMMENT
MEDIUMLib/argparse.py106# =============================COMMENT
MEDIUMLib/argparse.py108# =============================COMMENT
MEDIUMLib/argparse.py157# ===============COMMENT
MEDIUMLib/argparse.py159# ===============COMMENT
MEDIUMLib/argparse.py239 # ===============================COMMENT
MEDIUMLib/argparse.py241 # ===============================COMMENT
MEDIUMLib/argparse.py291 # ========================COMMENT
MEDIUMLib/argparse.py293 # ========================COMMENT
MEDIUMLib/argparse.py335 # =======================COMMENT
MEDIUMLib/argparse.py337 # =======================COMMENT
MEDIUMLib/argparse.py866# =====================STRING
MEDIUMLib/argparse.py868# =====================STRING
MEDIUMLib/argparse.py1576 # ====================STRING
MEDIUMLib/argparse.py1578 # ====================STRING
MEDIUMLib/argparse.py1587 # ==================================STRING
MEDIUMLib/argparse.py1589 # ==================================STRING
MEDIUMLib/argparse.py918# ==============STRING
MEDIUMLib/argparse.py920# ==============STRING
MEDIUMLib/argparse.py1439# ==============STRING
MEDIUMLib/argparse.py1441# ==============STRING
MEDIUMLib/argparse.py1500# ===========================STRING
MEDIUMLib/argparse.py1502# ===========================STRING
MEDIUMLib/argparse.py1607 # =======================STRING
MEDIUMLib/argparse.py1609 # =======================STRING
MEDIUMLib/argparse.py2040 # =======================STRING
MEDIUMLib/argparse.py2042 # =======================STRING
MEDIUMLib/argparse.py2055 # ==================================STRING
MEDIUMLib/argparse.py2057 # ==================================STRING
MEDIUMLib/argparse.py2113 # =====================================STRING
MEDIUMLib/argparse.py2115 # =====================================STRING
MEDIUMLib/argparse.py2676 # ========================STRING
MEDIUMLib/argparse.py2678 # ========================STRING
MEDIUMLib/argparse.py2708 # ========================STRING
MEDIUMLib/argparse.py2710 # ========================STRING
MEDIUMLib/argparse.py2808 # =======================STRING
MEDIUMLib/argparse.py2810 # =======================STRING
MEDIUMLib/argparse.py2859 # =====================STRING
MEDIUMLib/argparse.py2861 # =====================STRING
MEDIUMLib/argparse.py2902 # ===============STRING
340 more matches not shown…
Excessive Try-Catch Wrapping739 hits · 811 pts
SeverityFileLineSnippetContext
LOWMisc/mypy/_colorize.py569 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.py550 except Exception as e:STRING
LOWTools/clinic/libclinic/dsl_parser.py1005 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.py105 except Exception as err:CODE
LOWLib/shutil.py147 except Exception as err:CODE
LOWLib/shutil.py196 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
MEDIUMLib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)CODE
MEDIUMLib/pydoc.py591def repr_instance(self, x, level):CODE
LOWLib/pydoc.py948 except Exception:CODE
LOWLib/pydoc.py994 except Exception:CODE
LOWLib/pydoc.py1452 except Exception:CODE
LOWLib/pydoc.py2674 except Exception as exc:CODE
LOWLib/pydoc.py2264 except Exception:STRING
LOWLib/pydoc.py2428 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.py204 print(f'Error: {target} does not exist')CODE
MEDIUMLib/pdb.py207 print(f'Error: {target} is a directory')CODE
MEDIUMLib/pdb.py904def _get_asyncio_task(self):CODE
MEDIUMLib/pdb.py1391def _complete_indentation(self, text, line, begidx, endidx):CODE
679 more matches not shown…
Self-Referential Comments297 hits · 750 pts
SeverityFileLineSnippetContext
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.py112print("""# This file is generated by mkstringprep.py. DO NOT EDIT.CODE
MEDIUMParser/asdl.py30# The following classes define nodes into which the ASDL description is parsed.COMMENT
MEDIUMMac/BuildScript/build-installer.py1755 # Create the installerSTRING
MEDIUMLib/_pyio.py274# Define a default pure-Python implementation for open_code()STRING
MEDIUMLib/ipaddress.py1527 """This class represents and manipulates 32-bit IPv4 network + addresses..STRING
MEDIUMLib/ipaddress.py2321 """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
MEDIUMLib/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.py2158 # This method is called (indirectly) by __del__, so it cannotCOMMENT
MEDIUMLib/subprocess.py2431 # 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.py757 # Create a link for methods like 'self.method(...)'COMMENT
MEDIUMLib/types.py329 # The following code is primarily to support functions thatCOMMENT
MEDIUMLib/pdb.py697 """This method is called when there is the remote possibilitySTRING
MEDIUMLib/pdb.py706 """This function is called when we stop or break at this line."""STRING
MEDIUMLib/pdb.py739 """This function is called when a return trap is set here."""STRING
MEDIUMLib/pdb.py748 """This function is called if an exception occurs,STRING
MEDIUMLib/threading.py141 """This class implements reentrant lock objects.STRING
MEDIUMLib/threading.py324 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMLib/threading.py454 """This class implements semaphore objects.STRING
MEDIUMLib/threading.py1445 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMLib/threading.py1689# Create the main thread object,COMMENT
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.py495 # 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.py676 # Create an Example, and add it to the list.STRING
MEDIUMLib/doctest.py1299 # Create a fake output target for capturing doctest output.STRING
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.py1203 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMLib/dataclasses.py1229 # Create a class doc-string lazily via descriptor protocolCOMMENT
MEDIUMLib/dataclasses.py1350 # Create a new dict for our new class.COMMENT
MEDIUMLib/dataclasses.py1823 # Create the new object, which calls __init__() andCOMMENT
237 more matches not shown…
Unused Imports781 hits · 714 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
721 more matches not shown…
Cross-File Repetition60 hits · 300 pts
SeverityFileLineSnippetContext
HIGHPC/_testconsole.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHPC/msvcrtmodule.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHModules/overlapped.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHModules/_multiprocessing/multiprocessing.c0{paramname} = pylong_asvoidptr({argname}); if (!{paramname} && pyerr_occurred()) {{{{ goto exit; }}}}STRING
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
HIGHTools/c-analyzer/distutils/msvc9compiler.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.vSTRING
HIGHTools/c-analyzer/distutils/msvccompiler.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.vSTRING
HIGHLib/ctypes/util.py0return the version of msvc that was used to build python. for python 2.3 and up, the version number is included in sys.vSTRING
HIGHTools/clinic/libclinic/converters.py0{paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHModules/resource.c0{paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHModules/_posixsubprocess.c0{paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}}STRING
HIGHModules/posixmodule.c0{paramname} = pylong_aspid({argname}); if ({paramname} == (pid_t)(-1) && pyerr_occurred()) {{{{ goto exit; }}}}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_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
Modern Structural Boilerplate287 hits · 276 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.py638def 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.py548 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/clinic/libclinic/__init__.py42__all__ = [CODE
LOWTools/clinic/libclinic/cpp.py9__all__ = ["Monitor"]CODE
LOWTools/clinic/libclinic/converters.py157 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/clinic/libclinic/converters.py1233 def set_template_dict(self, template_dict: TemplateDict) -> None:STRING
LOWTools/peg_generator/pegen/keywordgen.py24__all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"]CODE
LOWTools/peg_generator/pegen/c_generator.py506 def _setup_keywords(self) -> None:STRING
LOWTools/peg_generator/pegen/c_generator.py527 def _setup_soft_keywords(self) -> None:STRING
LOWTools/peg_generator/pegen/c_generator.py536 def _set_up_token_start_metadata_extraction(self) -> None:STRING
LOWTools/peg_generator/pegen/c_generator.py547 def _set_up_token_end_metadata_extraction(self) -> None:STRING
LOWTools/peg_generator/pegen/c_generator.py564 def _set_up_rule_memoization(self, node: Rule, result_type: str) -> None:STRING
LOWParser/asdl.py26__all__ = [CODE
LOWLib/shutil.py65__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/wave.py82__all__ = [CODE
LOWLib/weakref.py30__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",CODE
227 more matches not shown…
AI Slop Vocabulary90 hits · 171 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.py312 """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.h795 // 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.py1186 # by child processes from their parents. We used to just setSTRING
MEDIUMMac/BuildScript/build-installer.py1340 # TODO: make this more robust! test_sysconfig_module ofSTRING
LOWLib/shutil.py1634 # 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.py1427 # Handle case where no user markup is to be added, just return line ofSTRING
LOWLib/difflib.py1816 # if blank line or context separator, just add it to the output listCOMMENT
LOWLib/difflib.py1821 # 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.py565 # Check all the attributes we just set. There are lots ofCOMMENT
LOWLib/pdb.py3366 # No logic applied whatsoever, just pass the raw reply back.COMMENT
LOWLib/threading.py293 # these override the default implementations (which just callCOMMENT
MEDIUMLib/turtle.py710 """Set focus on canvas (in order to collect key-events)STRING
MEDIUMLib/turtle.py1467 """Set focus on TurtleScreen (in order to collect key-events)STRING
MEDIUMLib/doctest.py1777 # in conjunction with the ELLIPSIS flag.STRING
LOWLib/argparse.py2480 # 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.py1574 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWLib/_pydecimal.py3315 # 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.py445 # 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.py1194 # 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
MEDIUMLib/test/test_lzma.py517 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMLib/test/test_decimal.py5888 """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.py2356 # comprehensive for things like partition, etc.COMMENT
LOWLib/test/test_py_compile.py287 # 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.py273 # 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
LOWLib/test/test_gdb/test_pretty_print.py117 # We cannot simply call locale.getpreferredencoding() here,COMMENT
MEDIUMLib/test/test_os/test_os.py2519 # 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.py1200 # 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
30 more matches not shown…
Docstring Block Structure32 hits · 160 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.py1222Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHLib/ipaddress.py1248Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHLib/ipaddress.py1691Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHLib/ipaddress.py1804Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHLib/ipaddress.py1878Turns 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.py85 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected STRING
HIGHLib/test/test_external_inspection.py127 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.py425Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHLib/concurrent/futures/_base.py462Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHLib/concurrent/futures/_base.py611Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHLib/concurrent/futures/process.py933Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Redundant / Tautological Comments112 hits · 148 pts
SeverityFileLineSnippetContext
LOWTools/c-analyzer/c_common/scriptutil.py26 # Check if "installed".COMMENT
LOWTools/msi/csv_to_wxs.py112 # Check if the file matches. If so, we don't want to touch it soCOMMENT
LOWTools/cases_generator/stack.py9# Set this to true for voluminous output showing state of stack and localsCOMMENT
LOWTools/inspection/benchmark_external_inspection.py458 # Check if it's still runningSTRING
LOWTools/inspection/benchmark_external_inspection.py539 # Print resultsSTRING
LOWTools/peg_generator/pegen/grammar.py30 # 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
LOWLib/_py_abc.py131 # Check if it's a direct subclassCOMMENT
LOWLib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)COMMENT
LOWLib/_py_abc.py140 # 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
LOWLib/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
LOWLib/types.py316 # Check if 'func' is a coroutine function.COMMENT
LOWLib/types.py321 # Check if 'func' is a generator function.COMMENT
LOWLib/pdb.py231 # Open the file each time because the file may be modifiedCOMMENT
LOWLib/pdb.py2998 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWLib/poplib.py232 # Check if the response has enough elementsCOMMENT
LOWLib/plistlib.py676 # 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.py1830 # Check if we should use diff.STRING
LOWLib/doctest.py2227 # 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.py1266 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWLib/tarfile.py1551 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWLib/typing.py1279 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWLib/typing.py2113 # Check if the members appears in the class dictionary...COMMENT
LOWLib/tokenize.py390 # Check if the line matches the encoding.COMMENT
LOWLib/ctypes/util.py257 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/util.py430 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/__init__.py144 # 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.py106 # 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.py1257 # 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.py6345 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWLib/test/test_pdb.py3667 # Check if the custom prefix appeared in the outputCOMMENT
LOWLib/test/test_difflib.py260 # Check if the problem described in patch #1413711 exists.COMMENT
LOWLib/test/test_type_cache.py33 # Check if global version tag has already overflowed.COMMENT
LOWLib/test/test_typing.py5098 # Check if a dictionary conforms to Dict typeCOMMENT
LOWLib/test/test_typing.py5113 # Check if an instance conforms to the generic classCOMMENT
LOWLib/test/test_typing.py5125 # Check if list conforms to a List subclassCOMMENT
LOWLib/test/test_remote_pdb.py980 # Add commands to the queueCOMMENT
LOWLib/test/test_remote_pdb.py1005 # Check if prompt was sent to clientCOMMENT
LOWLib/test/test_remote_pdb.py1161 # Check if we got the expected outputCOMMENT
LOWLib/test/test_http_cookies.py104 # Check if the cookie is loaded correctlyCOMMENT
LOWLib/test/test_compile.py1395 # Check if bytecode containing jumps that simply point to the next lineSTRING
LOWLib/test/test_dtrace.py314 # Check if bpftrace is available and can attach to USDT probesCOMMENT
LOWLib/test/test_annotationlib.py2351 # Check if the passed in mutable arguments equal the originalsCOMMENT
LOWLib/test/test_codecs.py2998 # Check if the BOM is written only onceCOMMENT
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
CRITICALLib/test/test_lazy_import/__init__.py468 g = test.test_lazy_import.data.pkg.c.get_globals()CODE
CRITICALLib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICALLib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICALLib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)CODE
CRITICALLib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)CODE
CRITICALLib/idlelib/idle_test/test_textview.py211 self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'),CODE
Fake / Example Data98 hits · 84 pts
SeverityFileLineSnippetContext
LOWLib/test/test_xml_etree.py2030 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWLib/test/test_xml_etree.py2196 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOWLib/test/test_curses.py1111 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOWLib/test/test_curses.py1114 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py1120 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOWLib/test/test_curses.py1130 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py1070 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py1195 win.addstr(2, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1196 win.addstr(3, 0, 'dolor sit amet')CODE
LOWLib/test/test_curses.py1230 win.addstr(0, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1357 win.addstr(2, 1, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py1365 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')CODE
LOWLib/test/test_curses.py2791 'Lorem ipsum',CODE
LOWLib/test/test_curses.py2792 'dolor sit amet,',CODE
LOWLib/test/test_imaplib.py1929 typ, data = client.setacl('INBOX', 'John Doe', 'a b')CODE
LOWLib/test/test_imaplib.py1931 self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"'])CODE
LOWLib/test/test_imaplib.py1942 typ, data = client.deleteacl('New folder', 'John Doe')CODE
LOWLib/test/test_imaplib.py1944 self.assertEqual(server.args, ['"New folder"', '"John Doe"'])CODE
LOWLib/test/test_ssl.py545 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py552 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py566 ('email', 'user@example.org'),CODE
LOWLib/test/test_urlparse.py450 self.assertEqual(urlparse('mailto:1337@example.org'),CODE
LOWLib/test/test_urlparse.py451 ('mailto', '', '1337@example.org', '', '', ''))CODE
LOWLib/test/test_urlparse.py452 self.assertEqual(urlparse('mailto:1337@example.org', missing_as_none=True),CODE
LOWLib/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
LOWLib/test/test_pickletools.py656 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py661 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/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.py338 'placeholder', 'placeholderforeground',CODE
LOWLib/test/test_ttk/test_widgets.py469 'justify', 'placeholder', 'placeholderforeground', 'postcommand',CODE
LOWLib/test/test_ttk/test_widgets.py1263 'placeholder', 'placeholderforeground',CODE
LOWLib/test/test_tkinter/test_text.py69 text.insert('1.0', 'Lorem ipsum')CODE
LOWLib/test/test_tkinter/test_text.py70 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOWLib/test/test_tkinter/test_text.py76 self.assertEqual(text.get('1.0', 'end'), '*** Lorem ipsum\n')CODE
LOWLib/test/test_tkinter/test_text.py79 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOWLib/test/test_tkinter/test_text.py179 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py179 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py742 'Lorem ipsum dolor sit amet,\n'CODE
LOWLib/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…
Dead Code40 hits · 78 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.py2488CODE
MEDIUMLib/test/test_itertools.py2440CODE
MEDIUMLib/test/test_array.py1134CODE
MEDIUMLib/test/test_generators.py577CODE
MEDIUMLib/test/test_generators.py588CODE
MEDIUMLib/test/test_exceptions.py1836CODE
MEDIUMLib/test/test_compile.py905CODE
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.py417CODE
MEDIUMLib/test/test_asyncgen.py450CODE
MEDIUMLib/test/test_asyncgen.py587CODE
MEDIUMLib/test/test_asyncgen.py868CODE
MEDIUMLib/test/test_asyncgen.py996CODE
MEDIUMLib/test/test_asyncgen.py2046CODE
MEDIUMLib/test/test_asyncgen.py2067CODE
MEDIUMLib/test/test_asyncgen.py2091CODE
MEDIUMLib/test/test_asyncgen.py837CODE
MEDIUMLib/test/test_asyncgen.py911CODE
MEDIUMLib/test/test_builtin.py1429CODE
MEDIUMLib/test/test_dict.py291CODE
MEDIUMLib/test/dtracedata/call_stack.py15CODE
MEDIUMLib/test/test_unittest/test_async_case.py362CODE
MEDIUMLib/test/test_capi/test_misc.py1624CODE
AI Structural Patterns87 hits · 76 pts
SeverityFileLineSnippetContext
LOWPC/layout/support/pymanager.py259CODE
LOWTools/gdb/libpython.py887CODE
LOWTools/gdb/libpython.py1440CODE
LOWTools/gdb/libpython.py1502CODE
LOWTools/c-analyzer/cpython/__main__.py334CODE
LOWTools/c-analyzer/c_analyzer/__main__.py296CODE
LOWMac/BuildScript/build-installer.py503CODE
LOWLib/tempfile.py572CODE
LOWLib/tempfile.py645CODE
LOWLib/tempfile.py727CODE
LOWLib/lzma.py280CODE
LOWLib/trace.py391CODE
LOWLib/dis.py86CODE
LOWLib/dis.py916CODE
LOWLib/textwrap.py112CODE
LOWLib/functools.py635CODE
LOWLib/subprocess.py985CODE
LOWLib/pydoc.py1376CODE
LOWLib/ftplib.py711CODE
LOWLib/optparse.py1168CODE
LOWLib/pdb.py499CODE
LOWLib/configparser.py654CODE
LOWLib/reprlib.py51CODE
LOWLib/compileall.py48CODE
LOWLib/compileall.py132CODE
LOWLib/_pydatetime.py1790CODE
LOWLib/_pydatetime.py2084CODE
LOWLib/tarfile.py1011CODE
LOWLib/tarfile.py1780CODE
LOWLib/ssl.py729CODE
LOWLib/_pydecimal.py3872CODE
LOWLib/unittest/main.py66CODE
LOWLib/unittest/mock.py444CODE
LOWLib/unittest/mock.py463CODE
LOWLib/unittest/mock.py1152CODE
LOWLib/test/test_pdb.py5073CODE
LOWLib/test/test_faulthandler.py113CODE
LOWLib/test/test_decimal.py4323CODE
LOWLib/test/test_code.py850CODE
LOWLib/test/test_remote_pdb.py82CODE
LOWLib/test/mock_socket.py54CODE
LOWLib/test/test_ssl.py278CODE
LOWLib/test/test_ssl.py319CODE
LOWLib/test/test_ssl.py2802CODE
LOWLib/test/test_graphlib.py254CODE
LOWLib/test/test_embed.py1033CODE
LOWLib/test/test_regrtest.py654CODE
LOWLib/test/test_inspect/test_inspect.py1355CODE
LOWLib/test/test_zipfile/test_core.py898CODE
LOWLib/test/test_zoneinfo/data/update_test_data.py99CODE
LOWLib/test/test_asyncio/test_tasks.py939CODE
LOWLib/test/test_asyncio/test_tasks.py1781CODE
LOWLib/urllib/request.py1030CODE
LOWLib/urllib/request.py1045CODE
LOWLib/tkinter/__init__.py4401CODE
LOWLib/tkinter/__init__.py4424CODE
LOWLib/tkinter/ttk.py1636CODE
LOWLib/tkinter/ttk.py1679CODE
LOWLib/tkinter/ttk.py1705CODE
LOWLib/tkinter/ttk.py1720CODE
27 more matches not shown…
Overly Generic Function Names105 hits · 48 pts
SeverityFileLineSnippetContext
LOWLib/socketserver.py273 def handle_request(self):CODE
LOWLib/contextlib.py366 def helper(*args, **kwds):CODE
LOWLib/contextlib.py399 def helper(*args, **kwds):CODE
LOWLib/test/test_unparse.py927 def test_function(self):CODE
LOWLib/test/test_gc.py228 def test_function(self):CODE
LOWLib/test/test_logging.py2169 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
45 more matches not shown…
Verbosity Indicators25 hits · 44 pts
SeverityFileLineSnippetContext
LOWLib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOWLib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOWLib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOWLib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOWLib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOWLib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOWLib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOWLib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOWLib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOWLib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOWLib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOWLib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOWLib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOWLib/encodings/idna.py173 # Step 8: return the result of step 5COMMENT
LOWLib/encodings/idna.py68 # Step 1: try ASCIICOMMENT
LOWLib/encodings/idna.py130 # Step 1: Check for ASCIICOMMENT
LOWLib/test/test_curses.py1937 # 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
LOWModules/expat/refresh.sh22# Step 1: download and copy filesCOMMENT
LOWModules/expat/refresh.sh26# Step 2: Pull files from the libexpat distributionCOMMENT
LOWModules/expat/refresh.sh60# Step 3: Add the namespacing include to expat_external.hCOMMENT
LOWModules/expat/refresh.sh70# 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 · 41 pts
SeverityFileLineSnippetContext
LOWLib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOWLib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOWLib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOWLib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOWLib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOWLib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOWLib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOWLib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOWLib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOWLib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOWLib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOWLib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOWLib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOWLib/encodings/idna.py173 # Step 8: return the result of step 5COMMENT
LOWLib/encodings/idna.py68 # Step 1: try ASCIICOMMENT
LOWLib/encodings/idna.py130 # Step 1: Check for ASCIICOMMENT
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
LOWModules/expat/refresh.sh22# Step 1: download and copy filesCOMMENT
LOWModules/expat/refresh.sh26# Step 2: Pull files from the libexpat distributionCOMMENT
LOWModules/expat/refresh.sh60# Step 3: Add the namespacing include to expat_external.hCOMMENT
LOWModules/expat/refresh.sh70# 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.h913/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_unicodeobject_generated.h3484/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_runtime_init_generated.h2441/* End auto-generated code */COMMENT
HIGHInclude/internal/pycore_global_objects_fini_generated.h2444/* End auto-generated code */COMMENT
HIGHLib/subprocess.py334 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
Slop Phrases17 hits · 31 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.c413 Also it's worth noting that it would be possible to adapt the treeCODE
LOWObjects/exceptions.c37/* 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.py1729 # make sure to always test gc.enable()STRING
LOWLib/test/_test_multiprocessing.py1520 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_bigmem.py45# - Don't forget to test for large indices, offsets and results and such,COMMENT
MEDIUMLib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
LOWLib/_pyrepl/fancycompleter.py177 # sort the words now to make sure to return completions inCOMMENT
LOWModules/arraymodule.c724 * 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.py1519 # I'll update the code in '_get_response()'.COMMENT
HIGHLib/test/test_asyncgen.py74 # all methods of the iterator protocol. In this implementationCOMMENT
Example Usage Blocks7 hits · 11 pts
SeverityFileLineSnippetContext
LOWTools/msi/purge.py3# Usage:COMMENT
LOWInclude/critical_section.h29// Example usage:COMMENT
LOWInclude/pyport.h630// Usage example:COMMENT
LOWInclude/internal/pycore_parking_lot.h53// Example usage:COMMENT
LOWInclude/internal/pycore_parking_lot.h82// Example usage:COMMENT
LOWLib/test/test_unittest/testmock/testmock.py600 # Usage exampleCOMMENT
LOWLib/zipfile/__init__.py725# Usage:COMMENT
TODO Padding6 hits · 8 pts
SeverityFileLineSnippetContext
LOWInclude/internal/pycore_object.h256// TODO: implement Py_DECREF specializations for Py_GIL_DISABLED buildCOMMENT
LOWObjects/genericaliasobject.c328 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
LOWLib/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