Repository Analysis

RustPython/RustPython

A Python Interpreter written in Rust

13.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of RustPython/RustPython, a Rust project with 22,187 GitHub stars. SynthScan v2.0 examined 1,292,060 lines of code across 2926 source files, recording 15674 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 13.1 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).

13.1
Adjusted Score
13.1
Raw Score
100%
Time Factor
2026-07-13
Last Push
22.2K
Stars
Rust
Language
1.3M
Lines of Code
2.9K
Files
15.7K
Pattern Hits
2026-07-14
Scan Date
0.16
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 32HIGH 434MEDIUM 1094LOW 14114

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 15674 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 Identifiers10148 hits · 7675 pts
SeverityFileLineSnippetContext
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py483def _call_with_frames_removed(f, *args, **kwds):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py504 def _requires_builtin_wrapper(self, fullname):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py878def _load_backward_compatible(spec):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1565def _install_external_importers():CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1534def _get_supported_file_loaders():CODE
LOWscripts/dis_dump.py195 def _metadata_cache_slot_offsets(inst):CODE
LOWscripts/whats_left.py345 def method_incompatibility_reason(typ, method_name, real_method_value):STRING
LOWscripts/update_lib/deps.py245def clear_import_graph_caches() -> None:CODE
LOWscripts/update_lib/deps.py1323def _parse_test_submodule_imports(content: str) -> dict[str, set[str]]:CODE
LOWscripts/update_lib/deps.py1527def _get_lib_modules_importing(CODE
LOWscripts/update_lib/deps.py1608def find_dependent_tests_tree(CODE
LOWscripts/update_lib/cmd_auto_mark.py253def _expand_stripped_to_children(CODE
LOWscripts/update_lib/cmd_auto_mark.py620def strip_reasonless_expected_failures(CODE
LOWscripts/update_lib/cmd_deps.py276def _format_dependent_tests_tree(CODE
LOWscripts/update_lib/patch_spec.py268def modification_from_node_specs(node, specs):CODE
LOWscripts/update_lib/tests/test_deps.py29 def test_from_test_dot_module(self):STRING
LOWscripts/update_lib/tests/test_deps.py47 def test_regular_imports_ignored(self):STRING
LOWscripts/update_lib/tests/test_deps.py57 def test_syntax_error_returns_empty(self):STRING
LOWscripts/update_lib/tests/test_deps.py67 def test_auto_detect_py_module(self):CODE
LOWscripts/update_lib/tests/test_deps.py167 def test_transitive_data_dependency(self):CODE
LOWscripts/update_lib/tests/test_deps.py238 def test_syntax_error_returns_empty(self):STRING
LOWscripts/update_lib/tests/test_deps.py244 def test_relative_import_skipped(self):CODE
LOWscripts/update_lib/tests/test_deps.py316 def test_identical_directories(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py655 def test_partial_children_fail_marks_children(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py660 def test_child_with_own_override_not_consolidated(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py665 def test_strip_then_consolidate_restores_parent_marker(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py69 def test_parse_fail_and_error(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py260 def test_collect_unexpected_successes(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py272 def test_module_prefix_filtering(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py296 def test_collect_init_module_matching(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py726 def test_filters_across_classes(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py865 def test_auto_mark_directory_crashed_run(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py938 def test_stripped_markers_restored_when_crash(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py1037 def test_stripped_markers_restored_when_crash(self):CODE
LOWscripts/update_lib/tests/test_auto_mark.py645 def test_all_children_fail_marks_parent_with_message(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py85 def test_parse_unexpected_success(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py103 def test_parse_crashed_run_no_tests_result(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py119 def test_parse_crashed_run_has_unexpected_success(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py131 def test_parse_error_messages(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py161 def test_parse_directory_test_multiple_submodules(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py198 def test_parse_multiline_test_with_docstring(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py232 def test_collect_failures_and_error_messages(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py330 def test_extract_syntax_error_returns_empty(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py335 def test_remove_comment_before(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py348 def test_remove_inline_comment(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py359 def test_remove_super_call_method(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py372 def test_remove_async_super_call_override(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py392 def test_remove_with_comment_after(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py407 def test_no_removal_without_comment(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py421 def test_strip_reason_formats(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py464 def test_strip_with_comment_after(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py479 def test_strip_super_call_override(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py519 def test_no_strip_without_comment(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py532 def test_mixed_with_and_without_reason(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py575 def test_child_with_own_override_excluded(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py597 def test_apply_removes_unexpected_success(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py627 def test_apply_with_error_message(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py801 def test_auto_mark_file_crashed_run(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py838 def test_auto_mark_file_no_results_at_all_raises(self):STRING
LOWscripts/update_lib/tests/test_auto_mark.py909 def test_auto_mark_directory_no_results_raises(self):STRING
10088 more matches not shown…
Cross-Language Confusion347 hits · 2022 pts
SeverityFileLineSnippetContext
HIGHLib/code.py276 more = self.push(line)CODE
HIGHLib/numbers.py53## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But,COMMENT
HIGHLib/turtle.py2037 self.undobuffer.push(["seq"])CODE
HIGHLib/turtle.py2494 self.undobuffer.push(("pen", _p_buf))CODE
HIGHLib/turtle.py3194 self.undobuffer.push(("stamp", stitem))CODE
HIGHLib/turtle.py3280 self.undobuffer.push(undo_entry)CODE
HIGHLib/turtle.py3384 self.undobuffer.push(("rot", angle, self._degreesPerAU))CODE
HIGHLib/turtle.py3463 self.undobuffer.push(("beginfill", self._fillitem))CODE
HIGHLib/turtle.py3482 self.undobuffer.push(("dofill", self._fillitem))CODE
HIGHLib/turtle.py3515 self.undobuffer.push(["seq"])CODE
HIGHLib/turtle.py3537 self.undobuffer.push(("wri", item))CODE
HIGHLib/turtle.py3560 self.undobuffer.push(["seq"])CODE
HIGHLib/locale.py1952 print('Language: ', lang or '(undefined)')CODE
HIGHLib/locale.py1953 print('Encoding: ', enc or '(undefined)')CODE
HIGHLib/locale.py1961 print(' Language: ', lang or '(undefined)')CODE
HIGHLib/locale.py1962 print(' Encoding: ', enc or '(undefined)')CODE
HIGHLib/locale.py1978 print(' Language: ', lang or '(undefined)')CODE
HIGHLib/locale.py1979 print(' Encoding: ', enc or '(undefined)')CODE
HIGHLib/test/test_poplib.py80 self.push('-ERR unrecognized POP3 command "%s".' %cmd)CODE
HIGHLib/test/test_poplib.py86 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')CODE
HIGHLib/test/test_poplib.py90 self.push(arg)CODE
HIGHLib/test/test_poplib.py94 self.push("-ERR no such user")CODE
HIGHLib/test/test_poplib.py95 self.push('+OK password required')CODE
HIGHLib/test/test_poplib.py99 self.push("-ERR wrong password")CODE
HIGHLib/test/test_poplib.py100 self.push('+OK 10 messages')CODE
HIGHLib/test/test_poplib.py103 self.push('+OK 10 100')CODE
HIGHLib/test/test_poplib.py107 self.push('+OK %s %s' % (arg, arg))CODE
HIGHLib/test/test_poplib.py109 self.push('+OK')CODE
HIGHLib/test/test_poplib.py110 asynchat.async_chat.push(self, LIST_RESP)CODE
HIGHLib/test/test_poplib.py115 self.push('+OK %s bytes' %len(RETR_RESP))CODE
HIGHLib/test/test_poplib.py116 asynchat.async_chat.push(self, RETR_RESP)CODE
HIGHLib/test/test_poplib.py121 self.push('+OK message marked for deletion.')CODE
HIGHLib/test/test_poplib.py124 self.push('+OK done nothing.')CODE
HIGHLib/test/test_poplib.py127 self.push('+OK done nothing.')CODE
HIGHLib/test/test_poplib.py130 self.push('+OK done nothing.')CODE
HIGHLib/test/test_poplib.py133 self.push('+OK closing.')CODE
HIGHLib/test/test_poplib.py143 self.push('+OK Capability list follows')CODE
HIGHLib/test/test_poplib.py149 self.push(' '.join(_ln))CODE
HIGHLib/test/test_poplib.py150 self.push('.')CODE
HIGHLib/test/test_poplib.py153 self.push('+OK I know RFC6856'CODE
HIGHLib/test/test_poplib.py161 self.push('+OK Begin TLS negotiation')CODE
HIGHLib/test/test_poplib.py59 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHLib/test/test_poplib.py175 self.push('-ERR Command not permitted when TLS active')CODE
HIGHLib/test/test_poplib.py434 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHLib/test/test_gettext.py530 f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py536 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py536 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py542 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py542 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py548 f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py554 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py554 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHLib/test/test_gettext.py560 f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3')CODE
HIGHLib/test/test_gettext.py566 f = gettext.c2py('n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5')CODE
HIGHLib/test/test_gettext.py511 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2')CODE
HIGHLib/test/test_contextlib.py756 stack.push(_expect_ok)CODE
HIGHLib/test/test_contextlib.py759 stack.push(cm)CODE
HIGHLib/test/test_contextlib.py761 stack.push(_suppress_exc)CODE
HIGHLib/test/test_contextlib.py764 stack.push(cm)CODE
HIGHLib/test/test_contextlib.py766 stack.push(_expect_exc)CODE
287 more matches not shown…
Decorative Section Separators617 hits · 1653 pts
SeverityFileLineSnippetContext
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt140# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt147# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt154# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt160# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt166# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt173# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt179# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt186# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt192# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt199# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt209# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt215# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt223# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt229# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt241# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt247# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt254# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt263# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt273# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt281# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt310# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt316# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt322# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt328# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt351# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt357# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt363# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt369# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt395# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt401# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt409# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt415# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt421# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1967# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1973# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1979# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1985# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1991# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt1997# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2003# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2009# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2015# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2021# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2045# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2051# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2057# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2063# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2069# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2075# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2081# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2087# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2093# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2099# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2122# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2128# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2134# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2140# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2146# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2152# ================================================COMMENT
MEDIUMcrates/unicode/unicode/latest/DerivedNumericValues.txt2158# ================================================COMMENT
557 more matches not shown…
Deep Nesting1325 hits · 1130 pts
SeverityFileLineSnippetContext
LOWtools/opcode_metadata/utils.py70CODE
LOWcrates/wasm/Lib/_microdistlib.py13CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py429CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py736CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py848CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py914CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1243CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1409CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1517CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py304CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py560CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py101CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py826CODE
LOWcrates/vm/Lib/core_modules/copyreg.py112CODE
LOWcrates/vm/Lib/core_modules/codecs.py457CODE
LOWcrates/vm/Lib/core_modules/codecs.py537CODE
LOWscripts/dis_dump.py142CODE
LOWscripts/dis_dump.py188CODE
LOWscripts/dis_dump.py335CODE
LOWscripts/crawl_sourcecode.py29CODE
LOWscripts/whats_left.py334CODE
LOWscripts/check_redundant_patches.py38CODE
LOWscripts/compare_bytecode.py67CODE
LOWscripts/compare_bytecode.py295CODE
LOWscripts/compare_bytecode.py385CODE
LOWscripts/generate_checklist.py44CODE
LOWscripts/generate_checklist.py156CODE
LOWscripts/update_lib/deps.py1135CODE
LOWscripts/update_lib/deps.py1261CODE
LOWscripts/update_lib/deps.py1323CODE
LOWscripts/update_lib/deps.py1370CODE
LOWscripts/update_lib/deps.py1454CODE
LOWscripts/update_lib/cmd_auto_mark.py87CODE
LOWscripts/update_lib/cmd_auto_mark.py175CODE
LOWscripts/update_lib/cmd_auto_mark.py291CODE
LOWscripts/update_lib/cmd_auto_mark.py479CODE
LOWscripts/update_lib/cmd_auto_mark.py548CODE
LOWscripts/update_lib/cmd_auto_mark.py620CODE
LOWscripts/update_lib/cmd_auto_mark.py842CODE
LOWscripts/update_lib/cmd_deps.py332CODE
LOWscripts/update_lib/patch_spec.py231CODE
LOWscripts/update_lib/patch_spec.py277CODE
LOWscripts/update_lib/patch_spec.py367CODE
LOWscripts/update_lib/cmd_todo.py450CODE
LOWscripts/update_lib/cmd_migrate.py80CODE
LOWscripts/update_lib/cmd_quick.py76CODE
LOWscripts/update_lib/cmd_quick.py325CODE
LOWLib/shutil.py137CODE
LOWLib/shutil.py229CODE
LOWLib/shutil.py283CODE
LOWLib/shutil.py409CODE
LOWLib/shutil.py493CODE
LOWLib/shutil.py545CODE
LOWLib/shutil.py733CODE
LOWLib/shutil.py810CODE
LOWLib/shutil.py876CODE
LOWLib/shutil.py996CODE
LOWLib/shutil.py1068CODE
LOWLib/shutil.py1561CODE
LOWLib/tempfile.py184CODE
1265 more matches not shown…
Excessive Try-Catch Wrapping666 hits · 750 pts
SeverityFileLineSnippetContext
LOWcrates/codegen/src/symboltable.rs3701 except Exception:CODE
MEDIUMcrates/codegen/src/symboltable.rs3698def f(x):CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1529 except Exception:CODE
LOWcrates/stdlib/src/_opcode.rs308 except Exception as ex:CODE
LOWwasm/tests/conftest.py106 except Exception as e:STRING
MEDIUMwasm/tests/conftest.py107 print(f"Error waiting for page to load: {e}")STRING
LOWscripts/dis_dump.py103 except Exception:CODE
LOWscripts/dis_dump.py183 except Exception:CODE
LOWscripts/dis_dump.py192 except Exception as e:CODE
LOWscripts/dis_dump.py331 except Exception as e:CODE
MEDIUMscripts/dis_dump.py89def _unescape(m):CODE
LOWscripts/whats_left.py122 except Exception as e:CODE
LOWscripts/whats_left.py257 except Exception as e:CODE
LOWscripts/find_eq.py82 except Exception as e:CODE
LOWscripts/compare_bytecode.py120 except Exception:CODE
MEDIUMscripts/compare_bytecode.py441 print("Error: %s" % exc, file=sys.stderr)CODE
MEDIUMscripts/compare_bytecode.py444 print("Error: RustPython binary not found.", file=sys.stderr)CODE
MEDIUMscripts/compare_bytecode.py449 print("Error: disassembler helper not found: %s" % DIS_DUMP, file=sys.stderr)CODE
MEDIUMscripts/compare_bytecode.py460 print("Error: --sample must be >= 1", file=sys.stderr)CODE
MEDIUMscripts/compare_bytecode.py471 print("Error: no Python files matched", file=sys.stderr)CODE
LOWscripts/update_lib/deps.py233 except Exception:CODE
LOWscripts/update_lib/deps.py1154 except Exception:CODE
LOWscripts/update_lib/deps.py1404 except Exception:CODE
LOWscripts/update_lib/deps.py1444 except Exception:CODE
LOWscripts/update_lib/deps.py1480 except Exception:CODE
LOWscripts/update_lib/deps.py1520 except Exception:CODE
MEDIUMscripts/update_lib/deps.py61def visit_ImportFrom(self, node):CODE
MEDIUMscripts/update_lib/cmd_auto_mark.py1039 print(f"Error: {e}", file=sys.stderr)CODE
LOWscripts/update_lib/cmd_deps.py457 except Exception as e:CODE
MEDIUMscripts/update_lib/cmd_deps.py458 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_copy_lib.py103 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_copy_lib.py106 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_patches.py101 print(f"Error: {e}", file=sys.stderr)CODE
LOWscripts/update_lib/cmd_todo.py697 except Exception as e:CODE
MEDIUMscripts/update_lib/cmd_todo.py698 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_migrate.py141 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_migrate.py144 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_quick.py462 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_quick.py465 print(f"Error: {e}", file=sys.stderr)CODE
LOWscripts/update_lib/cmd_quick.py467 except Exception as e:CODE
MEDIUMscripts/update_lib/cmd_quick.py472 print(f"Error: {e}", file=sys.stderr)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.py80 except Exception:CODE
LOWLib/rlcompleter.py159 except Exception:CODE
LOWLib/zipimport.py621 except Exception:CODE
LOWLib/zipimport.py669 except Exception:CODE
MEDIUMLib/zipimport.py346def _read_directory(archive):CODE
LOWLib/wave.py405 except Exception:CODE
LOWLib/weakref.py567 except Exception:CODE
LOWLib/traceback.py1070 except Exception as e:CODE
LOWLib/traceback.py1303 except Exception:CODE
LOWLib/traceback.py1617 except Exception:CODE
LOWLib/traceback.py1625 except Exception:CODE
LOWLib/traceback.py1648 except Exception:CODE
MEDIUMLib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)CODE
MEDIUMLib/pydoc.py636def repr_instance(self, x, level):CODE
LOWLib/pydoc.py993 except Exception:CODE
LOWLib/pydoc.py1039 except Exception:CODE
606 more matches not shown…
Over-Commented Block732 hits · 682 pts
SeverityFileLineSnippetContext
LOWdeny.toml1# This template contains all of the possible sections and their default valuesCOMMENT
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets inCOMMENT
LOWdeny.toml41#exclude = []COMMENT
LOWdeny.toml61COMMENT
LOWdeny.toml101 "BSD-3-Clause",COMMENT
LOWdeny.toml121# The package spec the clarification applies toCOMMENT
LOWdeny.toml141# One or more private registries that you might publish crates to, if a crateCOMMENT
LOWdeny.toml161highlight = "all"COMMENT
LOWdeny.toml181 #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] },COMMENT
LOWdeny.toml221]COMMENT
LOWpdc.sh1COMMENT
LOWcrates/sre_engine/benches/benches.rs21 let state = State::default();COMMENT
LOWcrates/sre_engine/benches/benches.rs41 // START GENERATED by generate_tests.pyCOMMENT
LOWcrates/sre_engine/benches/benches.rs61 // START GENERATED by generate_tests.pyCOMMENT
LOWcrates/sre_engine/src/string.rs221///COMMENT
LOWcrates/compiler-core/src/bytecode.rs561 units: UnsafeCell<Box<[CodeUnit]>>,COMMENT
LOWcrates/compiler-core/src/bytecode.rs781 /// # SafetyCOMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs121 }COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs141/// Each variant is assigned a value using one of two forms:COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs161/// }COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs301 };COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs321 /// Converts by calling `str(<value>)`.COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs561 Self::NotEqual => "!=",COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs581 /// - [_PyEval_BinaryOps](https://github.com/python/cpython/blob/8183fa5e3f78ca6ab862de7fb8b14f3d929421e0/Python/cevCOMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs641impl BinaryOperator {COMMENT
LOWcrates/compiler-core/src/bytecode/instruction.rs21 #[repr($typ)]COMMENT
LOWcrates/compiler-core/src/bytecode/instruction.rs1041 _ => None,COMMENT
LOWcrates/compiler-core/src/bytecode/instruction.rs1141 _ => None,COMMENT
LOWcrates/literal/src/escape.rs41/// Represents string types that can be escape-printed.COMMENT
LOWcrates/host_env/src/os.rs341 #[cfg(windows)]COMMENT
LOWcrates/host_env/src/crt_fd.rs161 ///COMMENT
LOWcrates/host_env/src/crt_fd_unsupported.rs101 ///COMMENT
LOWcrates/host_env/src/ctypes.rs1861/// All valid ctypes simple type codes on this platform.COMMENT
LOWcrates/unicode/unicode/latest/DerivedNumericValues.txt1# DerivedNumericValues-17.0.0.txtCOMMENT
LOWcrates/unicode/unicode/latest/DerivedNumericValues.txt21# This field is empty; it used to be a copy of the numeric type.COMMENT
LOW…es/unicode/unicode/latest/NormalizationCorrections.txt1# NormalizationCorrections-17.0.0.txtCOMMENT
LOW…es/unicode/unicode/latest/NormalizationCorrections.txt21# Whenever such an error may be found, and if it meets theCOMMENT
LOWcrates/unicode/unicode/ucd32/DerivedBidiClass-3.2.0.txt1# DerivedBidiClass-3.2.0.txtCOMMENT
LOW…nicode/unicode/ucd32/DerivedBinaryProperties-3.2.0.txt1# DerivedBinaryProperties-3.2.0.txtCOMMENT
LOW…/unicode/unicode/ucd32/DerivedCombiningClass-3.2.0.txt1# DerivedCombiningClass-3.2.0.txtCOMMENT
LOW…s/unicode/unicode/ucd32/DerivedNumericValues-3.2.0.txt1# DerivedNumericValues-3.2.0.txtCOMMENT
LOW…unicode/unicode/ucd32/DerivedGeneralCategory-3.2.0.txt1# DerivedGeneralCategory-3.2.0.txtCOMMENT
LOW…/unicode/unicode/ucd32/DerivedEastAsianWidth-3.2.0.txt1# DerivedEastAsianWidth-3.2.0.txtCOMMENT
LOW…tes/unicode/unicode/ucd32/DerivedNumericType-3.2.0.txt1# DerivedNumericType-3.2.0.txtCOMMENT
LOWcrates/unicode/tests/differential.rs1//! Differential sweep of the classification predicates over the full scalarCOMMENT
LOW…icode/tests/data/version_skew_mappings_cpython3.14.txt1# Code points whose simple case mapping differs between CPython 3.14COMMENT
LOWcrates/unicode/src/classify.rs61COMMENT
LOWcrates/unicode/src/case.rs1//! Case mapping, case folding, and casing predicates for Python string casing.COMMENT
LOWcrates/wasm/src/lib.rs81 ///COMMENT
LOWcrates/wasm/src/lib.rs101 /// Evaluate Python codeCOMMENT
LOWcrates/codegen/src/ir.rs2741 }COMMENT
LOWcrates/codegen/src/string_parser.rs181 // f"\{foo} \{bar:\}"COMMENT
LOWcrates/derive/src/lib.rs21/// - `module`: the module which contains the class -- can be omitted if in a `#[pymodule]`.COMMENT
LOWcrates/derive/src/lib.rs41///COMMENT
LOWcrates/derive/src/lib.rs61/// The last parameter can optionally be of the type `&VirtualMachine` to access the VM.COMMENT
LOWcrates/derive/src/lib.rs81/// ```rust, ignoreCOMMENT
LOWcrates/derive/src/lib.rs101/// This helps inherit attributes from a parent class.COMMENT
LOWcrates/derive/src/lib.rs121/// Note that associated functions that are annotated with `#[pymethod]` or similar **must**COMMENT
LOWcrates/derive/src/lib.rs141 let item = parse_macro_input!(item);COMMENT
LOWcrates/derive/src/lib.rs161/// mod submodule {COMMENT
672 more matches not shown…
Unused Imports670 hits · 622 pts
SeverityFileLineSnippetContext
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py2CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py4CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py7CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py10CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py11CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py13CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py15CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py15CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py15CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py17CODE
LOWtools/opcode_metadata/opcodes.py1CODE
LOWtools/opcode_metadata/cpython.py17CODE
LOWtools/opcode_metadata/cpython.py17CODE
LOWtools/opcode_metadata/cpython.py17CODE
LOWtools/opcode_metadata/cpython.py18CODE
LOWtools/opcode_metadata/utils.py4CODE
LOWtools/opcode_metadata/generate_py_opcode_metadata.py12CODE
LOWtools/opcode_metadata/generate_py_opcode_metadata.py15CODE
LOWcrates/unicode/tests/generate_reference.py15CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py1CODE
LOWcrates/wasm/Lib/browser.py10CODE
LOWcrates/wasm/Lib/browser.py10CODE
LOWcrates/vm/Lib/core_modules/codecs.py16CODE
LOWcrates/vm/Lib/core_modules/codecs.py1125CODE
LOWcrates/doc/generate.py2CODE
LOWcrates/doc/generate.py17CODE
LOWwasm/demo/snippets/import_pypi.py4CODE
LOWexamples/call_between_rust_and_python.py1CODE
LOWscripts/make_ssl_data_rs.py20CODE
LOWscripts/update_lib/deps.py17CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/__init__.py5CODE
LOWscripts/update_lib/patch_spec.py9CODE
LOWscripts/update_lib/file_utils.py13CODE
LOWLib/_pyio.py19CODE
LOWLib/_pyio.py19CODE
LOWLib/_pyio.py19CODE
LOWLib/lzma.py28CODE
LOWLib/lzma.py29CODE
LOWLib/lzma.py29CODE
LOWLib/dis.py8CODE
LOWLib/tty.py5CODE
LOWLib/signal.py2CODE
610 more matches not shown…
Self-Referential Comments249 hits · 602 pts
SeverityFileLineSnippetContext
MEDIUMtools/opcode_metadata/generate_py_opcode_metadata.py45# This file is generated by {script_path}COMMENT
MEDIUMcrates/vm/Lib/python_builtins/_frozen_importlib.py233 # Create an RLock for protecting the import process for theCOMMENT
MEDIUMcrates/vm/Lib/python_builtins/_frozen_importlib.py695 # This function is meant for use in _setup().COMMENT
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py762 """This method is deprecated."""STRING
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1153# This class is actually exposed publicly in a namespace package's __loader__COMMENT
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1510 # This function is used by PyImport_ExecCodeModuleObject().COMMENT
MEDIUMscripts/update_lib/tests/test_deps.py154 # Create the dependency fileSTRING
MEDIUMscripts/update_lib/tests/test_deps.py264 # Create a module that imports another moduleCOMMENT
MEDIUMscripts/update_lib/tests/test_deps.py269 # Create the imported modulesSTRING
MEDIUMscripts/update_lib/tests/test_deps.py283 # Create a module that imports itself (circular)COMMENT
MEDIUMscripts/update_lib/tests/test_deps.py301 # Create a module that imports nonexistent moduleCOMMENT
MEDIUMscripts/update_lib/tests/test_quick.py275 # Create a fake test file with Lib/test structureCOMMENT
MEDIUMLib/_pyio.py274# Define a default pure-Python implementation for open_code()STRING
MEDIUMLib/ipaddress.py1485 """This class represents and manipulates 32-bit IPv4 network + addresses..STRING
MEDIUMLib/ipaddress.py2279 """This class represents and manipulates 128-bit IPv6 networks.STRING
MEDIUMLib/webbrowser.py702 # 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.py894 # The following methods can be called by clients to useCOMMENT
MEDIUMLib/bdb.py945 # 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/base64.py439# The following code is originally taken (with permission) from MercurialSTRING
MEDIUMLib/gettext.py13# This module represents the integration of work, contributions, feedback, andCOMMENT
MEDIUMLib/modulefinder.py649 # Create the module finder and turn its crankCOMMENT
MEDIUMLib/subprocess.py1998 # This method is called (indirectly) by __del__, so it cannotCOMMENT
MEDIUMLib/subprocess.py2206 # This method is called from the _communicate_with_*() methodsCOMMENT
MEDIUMLib/profile.py429 # This method is more useful to profile a single function call.COMMENT
MEDIUMLib/code.py162 # This method is being overwritten inCOMMENT
MEDIUMLib/pydoc.py802 # Create a link for methods like 'self.method(...)'COMMENT
MEDIUMLib/types.py319 # The following code is primarily to support functions thatCOMMENT
MEDIUMLib/pdb.py543 """This method is called when there is the remote possibilitySTRING
MEDIUMLib/pdb.py552 """This function is called when we stop or break at this line."""STRING
MEDIUMLib/pdb.py585 """This function is called when a return trap is set here."""STRING
MEDIUMLib/pdb.py594 """This function is called if an exception occurs,STRING
MEDIUMLib/threading.py147 """This class implements reentrant lock objects.STRING
MEDIUMLib/threading.py330 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMLib/threading.py460 """This class implements semaphore objects.STRING
MEDIUMLib/threading.py1309 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMLib/threading.py1553# 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.py321 # The following functions support actual printing of reportsCOMMENT
MEDIUMLib/pstats.py520 """This class provides a generic function for comparing any two tuples.STRING
MEDIUMLib/pstats.py563# The following functions combine statistics for pairs functions.COMMENT
MEDIUMLib/pstats.py600# 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/opcode_metadata/generate_py_opcode_metadata.pyCOMMENT
MEDIUMLib/annotationlib.py167 # Create a new locals dict if necessary,COMMENT
MEDIUMLib/fractions.py183 """This class implements rational numbers.STRING
MEDIUMLib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined hereCOMMENT
MEDIUMLib/mailbox.py615 # This method is for backward compatibility only.COMMENT
MEDIUMLib/ast.py592 # The following code is for backward compatibility.COMMENT
MEDIUMLib/doctest.py154 # Create a new flag unless `name` is already known.STRING
MEDIUMLib/doctest.py682 # Create an Example, and add it to the list.STRING
MEDIUMLib/doctest.py1279 # 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.py388# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMLib/dataclasses.py537 # Create an __annotate__ function for a dataclassCOMMENT
MEDIUMLib/dataclasses.py1190 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMLib/dataclasses.py1218 # Create a class doc-string.COMMENT
189 more matches not shown…
Hallucination Indicators32 hits · 370 pts
SeverityFileLineSnippetContext
CRITICALcrates/vm/src/frame.rs9237 let object_new = vm.ctx.types.object_type.slots.new.load();CODE
CRITICALcrates/vm/src/frame.rs9239 let object_alloc = vm.ctx.types.object_type.slots.alloc.load();CODE
CRITICALcrates/vm/src/class.rs205 let object_new = ctx.types.object_type.slots.new.load();CODE
CRITICALcrates/vm/src/builtins/float.rs561 context.types.float_type.slots.vectorcall.store(Some(vectorcall_float));CODE
CRITICALcrates/vm/src/builtins/object.rs543 ctx.types.object_type.slots.alloc.store(Some(generic_alloc));CODE
CRITICALcrates/vm/src/vm/mod.rs928 let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| {CODE
CRITICALcrates/vm/src/vm/mod.rs1074 let encoding = self.state.config.settings.stdio_encoding.as_deref();CODE
CRITICALcrates/vm/src/vm/mod.rs1085 Some(if self.state.config.settings.stdio_encoding.is_some() {CODE
CRITICALcrates/vm/src/vm/mod.rs1169 || !self.state.config.paths.module_search_paths.is_empty();CODE
CRITICALcrates/vm/src/vm/mod.rs1841 optimize: self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/vm/compile.rs271 -1 => self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/builtins.rs216 -1 => vm.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/_imp.rs191 .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string())CODE
CRITICALcrates/vm/src/stdlib/_io.rs5279 && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref()CODE
CRITICALcrates/vm/src/stdlib/marshal.rs426 Ok(self.0.ctx.exceptions.stop_iteration.to_owned().into())CODE
CRITICALcrates/vm/src/stdlib/sys.rs265 vm.state.config.paths.prefix.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs269 vm.state.config.paths.base_prefix.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs273 vm.state.config.paths.exec_prefix.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs277 vm.state.config.paths.base_exec_prefix.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs285 vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm)CODE
CRITICALcrates/vm/src/stdlib/sys.rs637 vm.state.config.paths.base_executable.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs647 vm.state.config.paths.executable.clone()CODE
CRITICALcrates/stdlib/src/syslog.rs28 if let Some(argv) = vm.state.config.settings.argv.first()CODE
CRITICALLib/test/test_urllib2net.py383 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py394 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICALLib/test/test_urllib2net.py406 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py413 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)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
Cross-File Repetition56 hits · 280 pts
SeverityFileLineSnippetContext
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGHLib/importlib/_bootstrap.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGHLib/importlib/_bootstrap_external.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py0find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchiSTRING
HIGHLib/importlib/_bootstrap_external.py0find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchiSTRING
HIGHLib/importlib/metadata/__init__.py0find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchiSTRING
HIGHcrates/vm/Lib/core_modules/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_8.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHcrates/vm/Lib/core_modules/encodings_ascii.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/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_16_be.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
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tesSTRING
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tesSTRING
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass # {comment} @unittest.expectedfailure def tesSTRING
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): passSTRING
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): passSTRING
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass def test_two(self): passSTRING
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/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_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_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
HIGHLib/test/test_importlib/_path.py0build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents theSTRING
HIGHLib/test/test_importlib/resources/_path.py0build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents theSTRING
HIGHLib/test/test_importlib/metadata/_path.py0build a set of files/directories, as described by the spec. each key represents a pathname, and the value represents theSTRING
Modern Structural Boilerplate248 hits · 240 pts
SeverityFileLineSnippetContext
LOWcrates/wasm/Lib/browser.py13__all__ = [CODE
LOWcrates/vm/Lib/python_builtins/_thread.py17__all__ = [CODE
LOWcrates/vm/Lib/core_modules/copyreg.py7__all__ = ["pickle", "constructor",CODE
LOWcrates/vm/Lib/core_modules/codecs.py20__all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE",CODE
LOWwasm/tests/test_inject_module.py8__all__ = ['get_thing']STRING
LOWexamples/package_embed.py4__all__ = ["context"]CODE
LOWscripts/update_lib/__init__.py22__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.py12__all__ = [CODE
LOWLib/_dummy_thread.py17__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.py11__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.py25__all__ = ["check", "NannyNag", "process_tokens"]CODE
LOWLib/zipimport.py24__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.py11__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.py80__all__ = ["open", "Error", "Wave_read", "Wave_write"]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
LOWLib/codeop.py41__all__ = ["compile_command", "Compile", "CommandCompiler"]STRING
LOWLib/fnmatch.py19__all__ = ["filter", "filterfalse", "fnmatch", "fnmatchcase", "translate"]CODE
LOWLib/traceback.py17__all__ = ['extract_stack', 'extract_tb', 'format_exception',CODE
LOWLib/warnings.py3__all__ = [CODE
LOWLib/subprocess.py63__all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",STRING
LOWLib/profile.py32__all__ = ["run", "runctx", "Profile"]CODE
LOWLib/filecmp.py18__all__ = ['clear_cache', 'cmp', 'dircmp', 'cmpfiles', 'DEFAULT_IGNORES']CODE
LOWLib/codecs.py20__all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE",CODE
LOWLib/_weakrefset.py8__all__ = ['WeakSet']CODE
LOWLib/io.py44__all__ = ["BlockingIOError", "open", "open_code", "IOBase", "RawIOBase",CODE
LOWLib/code.py13__all__ = ["InteractiveInterpreter", "InteractiveConsole", "interact",CODE
LOWLib/operator.py13__all__ = ['abs', 'add', 'and_', 'attrgetter', 'call', 'concat', 'contains', 'countOf',CODE
LOWLib/fileinput.py72__all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno",CODE
LOWLib/os.py36__all__ = ["altsep", "curdir", "pardir", "sep", "pathsep", "linesep",STRING
LOWLib/difflib.py29__all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',CODE
LOWLib/pydoc.py39__all__ = ['help']CODE
LOWLib/socketserver.py134__all__ = ["BaseServer", "TCPServer", "UDPServer",CODE
LOWLib/copy.py60__all__ = ["Error", "copy", "deepcopy", "replace"]CODE
LOWLib/genericpath.py9__all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime',CODE
LOWLib/linecache.py8__all__ = ["getline", "clearcache", "checkcache", "lazycache"]CODE
LOWLib/types.py345__all__ = [n for n in globals() if not n.startswith('_')] # for pydocCODE
LOWLib/mimetypes.py36__all__ = [CODE
188 more matches not shown…
AI Slop Vocabulary75 hits · 150 pts
SeverityFileLineSnippetContext
LOWpdc.sh10# If you want to customize it or adapt the checks, just add or remove it from/ to the ACTIONSCOMMENT
MEDIUMcrates/codegen/src/ir.rs1247 /// Definitely reachable outside exception-only paths (b_warm)COMMENT
MEDIUMcrates/stdlib/src/ssl/compat.rs1315 // This is more robust than just checking made_progress, because:COMMENT
LOWLib/shutil.py1629 # 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.py1413 # Handle case where no user markup is to be added, just return line ofSTRING
LOWLib/difflib.py1780 # if blank line or context separator, just add it to the output listCOMMENT
LOWLib/difflib.py1785 # 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.py3166 # No logic applied whatsoever, just pass the raw reply back.COMMENT
LOWLib/threading.py299 # these override the default implementations (which just callCOMMENT
MEDIUMLib/turtle.py700 """Set focus on canvas (in order to collect key-events)STRING
MEDIUMLib/turtle.py1457 """Set focus on TurtleScreen (in order to collect key-events)STRING
MEDIUMLib/doctest.py1750 # in conjunction with the ELLIPSIS flag.STRING
LOWLib/argparse.py2367 # for regular arguments, just add them back into the listCOMMENT
LOWLib/dataclasses.py581 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOWLib/dataclasses.py637 # just use the class attribute that contains the default.COMMENT
LOWLib/tarfile.py1551 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWLib/_pydecimal.py3312 # 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.py444 # 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.py1148 # 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.py516 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMLib/test/test_os.py2219 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
MEDIUMLib/test/test_decimal.py5879 """The C Context docstrings use 'x' in order to prevent confusionSTRING
MEDIUMLib/test/test_grammar.py1965 # This is not intended to be a comprehensive test, rather just to be fewSTRING
MEDIUMLib/test/test_bytes.py2244 # comprehensive for things like partition, etc.COMMENT
LOWLib/test/test_py_compile.py249 # assert_python_* helpers don't return proc object. We'll just useCOMMENT
LOWLib/test/test_subprocess.py1454 # Subsequent invocations should just return the returncodeSTRING
LOWLib/test/test_subprocess.py1460 # 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_signal.py1396 # a signal is ignored due to the aforementionedSTRING
MEDIUMLib/test/test_socketserver.py52 # 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
MEDIUMLib/test/test_c_locale_coercion.py49 # TODO: Work out a robust dynamic test for this that doesn't rely onCOMMENT
LOWLib/test/test_long.py1242 # nonnegative second argument: round(x, n) should just return xCOMMENT
LOWLib/test/test_argparse.py172 # redirected, simply call the function and let the enclosing functionCOMMENT
LOWLib/test/test_types.py525 # 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_pyrepl/test_windows_console.py599 # because for simplicity we just useCOMMENT
LOWLib/test/test_unittest/test_loader.py671 # 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
LOWLib/zipfile/__init__.py292 # end-of-archive record, so just return the end record we were given.COMMENT
LOWLib/tkinter/__init__.py3882 # right. Instead just set the command to build a list of triplesCOMMENT
MEDIUMLib/xml/dom/minicompat.py18# defproperty -- function used in conjunction with GetattrMagic;COMMENT
MEDIUMLib/xml/etree/ElementPath.py37# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/xml/etree/__init__.py19# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/xml/etree/ElementInclude.py31# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/xml/etree/ElementTree.py60# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/http/cookies.py12# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/http/server.py690 # Essentially static class variablesCOMMENT
MEDIUMLib/_pyrepl/reader.py267 # facilitate the tab completion hack implemented forCOMMENT
MEDIUMLib/xmlrpc/client.py76# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMLib/idlelib/mainmenu.py20# TODO: Make this more robustCOMMENT
15 more matches not shown…
Docstring Block Structure27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHLib/ipaddress.py29Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py58Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py87Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py121Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representatSTRING
HIGHLib/ipaddress.py305Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), STRING
HIGHLib/ipaddress.py441Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded biSTRING
HIGHLib/ipaddress.py471Return prefix length from a numeric string Args: prefixlen_str: The string to be converted STRING
HIGHLib/ipaddress.py496Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converSTRING
HIGHLib/ipaddress.py792Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') STRING
HIGHLib/ipaddress.py867Compare two IP objects. This is only concerned about the comparison of the integer representation of thSTRING
HIGHLib/ipaddress.py925The subnets which join to make the current subnet. In the case that self contains only one IP (self._prSTRING
HIGHLib/ipaddress.py978The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefiSTRING
HIGHLib/ipaddress.py1184Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHLib/ipaddress.py1210Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHLib/ipaddress.py1649Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHLib/ipaddress.py1762Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHLib/ipaddress.py1836Turns 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.py30Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: STRING
HIGHLib/concurrent/futures/_base.py200An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHLib/concurrent/futures/_base.py429Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHLib/concurrent/futures/_base.py464Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHLib/concurrent/futures/_base.py584Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHLib/concurrent/futures/process.py814Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Redundant / Tautological Comments84 hits · 116 pts
SeverityFileLineSnippetContext
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1378 # Check if the module is the name of a directory (and thus a package).COMMENT
LOWscripts/update_lib/deps.py1659 # Check if it's a test fileCOMMENT
LOWscripts/update_lib/cmd_auto_mark.py661 # Check if there's a reason (on either the decorator or before)COMMENT
LOWscripts/update_lib/cmd_auto_mark.py759 # Check if test run failed entirely (e.g., import error, crash)COMMENT
LOWscripts/update_lib/cmd_auto_mark.py892 # Check if test run failed entirely (e.g., import error, crash)COMMENT
LOWscripts/update_lib/cmd_deps.py305 # Check if module is up-to-dateCOMMENT
LOWscripts/update_lib/cmd_deps.py363 # Check if it's a valid moduleCOMMENT
LOWscripts/update_lib/cmd_todo.py203 # Check if file belongs to a tracked moduleCOMMENT
LOWscripts/update_lib/cmd_todo.py215 # Check if this is a hard_dep of a tracked moduleCOMMENT
LOWscripts/update_lib/cmd_todo.py219 # Check if exists in local libCOMMENT
LOWscripts/update_lib/cmd_todo.py352 # Check if corresponding lib is up-to-dateCOMMENT
LOWscripts/update_lib/cmd_quick.py251 # Check if there are staged changesCOMMENT
LOWLib/dis.py584 # 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.py358 # 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/traceback.py1359 # Check if it worksCOMMENT
LOWLib/types.py305 # Check if 'func' is a coroutine function.COMMENT
LOWLib/types.py310 # Check if 'func' is a generator function.COMMENT
LOWLib/pdb.py227 # Open the file each time because the file may be modifiedCOMMENT
LOWLib/pdb.py2798 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWLib/poplib.py230 # Check if the response has enough elementsCOMMENT
LOWLib/plistlib.py683 # Write file headerCOMMENT
LOWLib/_py_warnings.py446 # Check if message is already a Warning objectCOMMENT
LOWLib/_py_warnings.py566 # Print message and contextCOMMENT
LOWLib/_osx_support.py412 # 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.py1803 # Check if we should use diff.STRING
LOWLib/doctest.py2200 # 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.py1243 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWLib/tarfile.py1528 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWLib/typing.py1249 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWLib/typing.py2068 # Check if the members appears in the class dictionary...COMMENT
LOWLib/tokenize.py389 # Check if the line matches the encoding.COMMENT
LOWLib/ctypes/util.py256 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/util.py429 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/__init__.py149 # Check if sizeof(ctypes_type) against struct.calcsize. ThisCOMMENT
LOWLib/unittest/mock.py456 # Check if spec is an async object or functionCOMMENT
LOWLib/test/test_gzip.py204 # Open the file for writing, then close it.STRING
LOWLib/test/test_logging.py6246 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWLib/test/test_difflib.py258 # Check if the problem described in patch #1413711 exists.COMMENT
LOWLib/test/test_type_cache.py32 # Check if global version tag has already overflowed.COMMENT
LOWLib/test/test_typing.py4933 # Check if a dictionary conforms to Dict typeCOMMENT
LOWLib/test/test_typing.py4948 # Check if an instance conforms to the generic classCOMMENT
LOWLib/test/test_typing.py4960 # Check if list conforms to a List subclassCOMMENT
LOWLib/test/test_http_cookies.py104 # Check if the cookie is loaded correctlyCOMMENT
LOWLib/test/test_io.py3387 # Check if the BOM is written only once (see issue1753).COMMENT
LOWLib/test/test_compile.py1389 # Check if bytecode containing jumps that simply point to the next lineSTRING
LOWLib/test/test_annotationlib.py2351 # Check if the passed in mutable arguments equal the originalsCOMMENT
LOWLib/test/test_memoryio.py849 bytearray(state[0]) # Check if state[0] supports the buffer interface.CODE
LOWLib/test/test_codecs.py2931 # Check if the BOM is written only onceCOMMENT
LOWLib/test/test_pyrepl/test_terminfo.py595 # Check if standard curses can setup this terminal in subprocessCOMMENT
LOWLib/test/test_ctypes/test_c_simple_type_meta.py346 # Check if PyCPointerType.__init__() caches a pointer typeCOMMENT
LOWLib/test/test_ctypes/test_c_simple_type_meta.py368 # Check if PyCPointerType.__init__() caches a pointer typeCOMMENT
24 more matches not shown…
Structural Annotation Overuse56 hits · 98 pts
SeverityFileLineSnippetContext
LOWcrates/vm/src/getpath.rs111 // Step 0: Get executable pathCOMMENT
LOWcrates/vm/src/getpath.rs118 // Step 1: Check for __PYVENV_LAUNCHER__ environment variableCOMMENT
LOWcrates/vm/src/getpath.rs134 // Step 2: Check for venv (pyvenv.cfg) and get 'home'COMMENT
LOWcrates/vm/src/getpath.rs138 // Step 3: Check for build directoryCOMMENT
LOWcrates/vm/src/getpath.rs141 // Step 4: Calculate prefix via landmark searchCOMMENT
LOWcrates/vm/src/getpath.rs145 // Step 5: Set prefix and base_prefixCOMMENT
LOWcrates/vm/src/getpath.rs159 // Step 6: Calculate exec_prefixCOMMENT
LOWcrates/vm/src/getpath.rs168 // Step 7: Calculate base_executable (if not already set by __PYVENV_LAUNCHER__)COMMENT
LOWcrates/vm/src/getpath.rs173 // Step 8: Build module_search_pathsCOMMENT
LOWcrates/vm/src/getpath.rs177 // Step 9: Calculate stdlib_dirCOMMENT
LOWcrates/vm/src/gc_state.rs508 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs552 // Step 2: Build gc_refs map (copy reference counts)COMMENT
LOWcrates/vm/src/gc_state.rs564 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs594 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs628 // Step 5: Find unreachable objectsCOMMENT
LOWcrates/vm/src/gc_state.rs728 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs461 // Step 1: Unpack argsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs464 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs480 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs498 // Step 4: Replace all type variablesCOMMENT
LOWcrates/stdlib/src/ssl.rs4126 // Step 1: Send our close_notify if not already sentCOMMENT
LOWcrates/stdlib/src/ssl.rs4166 // Step 2: Try to read and process peer's close_notifyCOMMENT
LOWcrates/stdlib/src/ssl.rs4321 // Step 3: Check again if peer has sent close_notify (non-blocking/BIO mode only)COMMENT
LOWcrates/stdlib/src/ssl/compat.rs495 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs528 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs672 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs766 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOWscripts/libc_posix.py190 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOWscripts/libc_posix.py197 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOWscripts/libc_posix.py207 # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}'COMMENT
LOWscripts/libc_posix.py220 # Step 4: Build outputCOMMENT
LOWscripts/update_lib/cmd_quick.py115 # Step 1: MigrateCOMMENT
LOWscripts/update_lib/cmd_quick.py157 # Step 2: Auto-markCOMMENT
LOWscripts/update_lib/cmd_quick.py449 # Step 3: Git commitCOMMENT
LOW.github/workflows/upgrade-pylib.md63## Step 1: Set up the environmentCOMMENT
LOW.github/workflows/upgrade-pylib.md75## Step 2: Determine module nameCOMMENT
LOW.github/workflows/upgrade-pylib.md93## Step 3: Run the upgradeCOMMENT
LOW.github/workflows/upgrade-pylib.md105## Step 4: Verify the resultCOMMENT
LOW.github/workflows/upgrade-pylib.md116## Step 5: Create the pull requestCOMMENT
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
Verbosity Indicators51 hits · 91 pts
SeverityFileLineSnippetContext
LOWcrates/vm/src/getpath.rs111 // Step 0: Get executable pathCOMMENT
LOWcrates/vm/src/getpath.rs118 // Step 1: Check for __PYVENV_LAUNCHER__ environment variableCOMMENT
LOWcrates/vm/src/getpath.rs134 // Step 2: Check for venv (pyvenv.cfg) and get 'home'COMMENT
LOWcrates/vm/src/getpath.rs138 // Step 3: Check for build directoryCOMMENT
LOWcrates/vm/src/getpath.rs141 // Step 4: Calculate prefix via landmark searchCOMMENT
LOWcrates/vm/src/getpath.rs145 // Step 5: Set prefix and base_prefixCOMMENT
LOWcrates/vm/src/getpath.rs159 // Step 6: Calculate exec_prefixCOMMENT
LOWcrates/vm/src/getpath.rs168 // Step 7: Calculate base_executable (if not already set by __PYVENV_LAUNCHER__)COMMENT
LOWcrates/vm/src/getpath.rs173 // Step 8: Build module_search_pathsCOMMENT
LOWcrates/vm/src/getpath.rs177 // Step 9: Calculate stdlib_dirCOMMENT
LOWcrates/vm/src/gc_state.rs508 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs552 // Step 2: Build gc_refs map (copy reference counts)COMMENT
LOWcrates/vm/src/gc_state.rs564 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs594 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs628 // Step 5: Find unreachable objectsCOMMENT
LOWcrates/vm/src/gc_state.rs728 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs461 // Step 1: Unpack argsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs464 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs480 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs498 // Step 4: Replace all type variablesCOMMENT
LOWcrates/stdlib/src/ssl.rs4126 // Step 1: Send our close_notify if not already sentCOMMENT
LOWcrates/stdlib/src/ssl.rs4166 // Step 2: Try to read and process peer's close_notifyCOMMENT
LOWcrates/stdlib/src/ssl.rs4321 // Step 3: Check again if peer has sent close_notify (non-blocking/BIO mode only)COMMENT
LOWcrates/stdlib/src/ssl/compat.rs495 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs528 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs672 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/stdlib/src/ssl/compat.rs766 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOWscripts/libc_posix.py190 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOWscripts/libc_posix.py197 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOWscripts/libc_posix.py207 # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}'COMMENT
LOWscripts/libc_posix.py220 # Step 4: Build outputCOMMENT
LOWscripts/update_lib/cmd_quick.py115 # Step 1: MigrateCOMMENT
LOWscripts/update_lib/cmd_quick.py157 # Step 2: Auto-markCOMMENT
LOWscripts/update_lib/cmd_quick.py449 # Step 3: Git commitCOMMENT
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
AI Structural Patterns82 hits · 68 pts
SeverityFileLineSnippetContext
LOWLib/tempfile.py558CODE
LOWLib/tempfile.py631CODE
LOWLib/tempfile.py713CODE
LOWLib/lzma.py279CODE
LOWLib/trace.py391CODE
LOWLib/dis.py896CODE
LOWLib/textwrap.py112CODE
LOWLib/functools.py622CODE
LOWLib/traceback.py1043CODE
LOWLib/subprocess.py817CODE
LOWLib/pydoc.py1411CODE
LOWLib/ftplib.py711CODE
LOWLib/optparse.py1168CODE
LOWLib/pdb.py362CODE
LOWLib/configparser.py654CODE
LOWLib/reprlib.py51CODE
LOWLib/compileall.py48CODE
LOWLib/compileall.py132CODE
LOWLib/_pydatetime.py1754CODE
LOWLib/_pydatetime.py2043CODE
LOWLib/doctest.py1986CODE
LOWLib/doctest.py2091CODE
LOWLib/argparse.py880CODE
LOWLib/argparse.py967CODE
LOWLib/argparse.py1067CODE
LOWLib/argparse.py1866CODE
LOWLib/dataclasses.py391CODE
LOWLib/dataclasses.py1422CODE
LOWLib/dataclasses.py1635CODE
LOWLib/tarfile.py988CODE
LOWLib/tarfile.py1757CODE
LOWLib/ssl.py730CODE
LOWLib/_pydecimal.py3869CODE
LOWLib/_pycodecs.py1453CODE
LOWLib/unittest/runner.py189CODE
LOWLib/unittest/main.py66CODE
LOWLib/unittest/mock.py446CODE
LOWLib/unittest/mock.py465CODE
LOWLib/unittest/mock.py1154CODE
LOWLib/test/test_faulthandler.py108CODE
LOWLib/test/test_decimal.py4322CODE
LOWLib/test/test_code.py862CODE
LOWLib/test/mock_socket.py54CODE
LOWLib/test/test_ssl.py273CODE
LOWLib/test/test_ssl.py312CODE
LOWLib/test/test_ssl.py2673CODE
LOWLib/test/test_graphlib.py254CODE
LOWLib/test/test_embed.py941CODE
LOWLib/test/test_regrtest.py643CODE
LOWLib/test/test_zipfile/test_core.py897CODE
LOWLib/test/test_zoneinfo/data/update_test_data.py99CODE
LOWLib/test/test_asyncio/test_tasks.py939CODE
LOWLib/test/test_asyncio/test_tasks.py1768CODE
LOWLib/urllib/request.py1028CODE
LOWLib/urllib/request.py1043CODE
LOWLib/tkinter/__init__.py4061CODE
LOWLib/json/__init__.py120CODE
LOWLib/json/__init__.py185CODE
LOWLib/json/encoder.py265CODE
LOWLib/json/encoder.py105CODE
22 more matches not shown…
Dead Code28 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMLib/test/test_fractions.py175CODE
MEDIUMLib/test/test_itertools.py2445CODE
MEDIUMLib/test/test_array.py1094CODE
MEDIUMLib/test/test_generators.py580CODE
MEDIUMLib/test/test_generators.py591CODE
MEDIUMLib/test/test_exceptions.py1835CODE
MEDIUMLib/test/test_compile.py899CODE
MEDIUMLib/test/test_set.py21CODE
MEDIUMLib/test/test_set.py1115CODE
MEDIUMLib/test/test_deque.py16CODE
MEDIUMLib/test/test_sys_settrace.py2907CODE
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.py2055CODE
MEDIUMLib/test/test_asyncgen.py2076CODE
MEDIUMLib/test/test_asyncgen.py2100CODE
MEDIUMLib/test/test_asyncgen.py837CODE
MEDIUMLib/test/test_asyncgen.py911CODE
MEDIUMLib/test/test_builtin.py1370CODE
MEDIUMLib/test/test_dict.py292CODE
MEDIUMLib/test/dtracedata/call_stack.py15CODE
MEDIUMLib/test/test_unittest/test_async_case.py362CODE
Overly Generic Function Names106 hits · 50 pts
SeverityFileLineSnippetContext
LOWLib/socketserver.py276 def handle_request(self):CODE
LOWLib/contextlib.py304 def helper(*args, **kwds):CODE
LOWLib/contextlib.py337 def helper(*args, **kwds):CODE
LOWLib/test/test_unparse.py922 def test_function(self):CODE
LOWLib/test/test_gc.py228 def test_function(self):CODE
LOWLib/test/test_logging.py2155 def handle_request(self, request):CODE
LOWLib/test/test_with.py44 def helper(*args, **kwds):CODE
LOWLib/test/test_marshal.py19 def helper(self, sample, *extra):CODE
LOWLib/test/test_pdb.py720def do_something():CODE
LOWLib/test/test_pdb.py52 >>> def test_function(foo, bar):STRING
LOWLib/test/test_pdb.py97 >>> def test_function():STRING
LOWLib/test/test_pdb.py233 >>> def test_function():STRING
LOWLib/test/test_pdb.py364 >>> def test_function():STRING
LOWLib/test/test_pdb.py415 >>> def test_function():STRING
LOWLib/test/test_pdb.py440 >>> def test_function():STRING
LOWLib/test/test_pdb.py486 >>> def test_function():STRING
LOWLib/test/test_pdb.py519 >>> def test_function():STRING
LOWLib/test/test_pdb.py641 >>> def test_function():STRING
LOWLib/test/test_pdb.py667 >>> def test_function():STRING
LOWLib/test/test_pdb.py688 >>> def test_function():STRING
LOWLib/test/test_pdb.py742 >>> def test_function():STRING
LOWLib/test/test_pdb.py769 1 def test_function():STRING
LOWLib/test/test_pdb.py815 ... def do_something():STRING
LOWLib/test/test_pdb.py833 >>> def test_function():STRING
LOWLib/test/test_pdb.py866 >>> def test_function():STRING
LOWLib/test/test_pdb.py936 >>> def test_function():STRING
LOWLib/test/test_pdb.py1008 >>> def test_function():STRING
LOWLib/test/test_pdb.py1093 >>> def test_function():STRING
LOWLib/test/test_pdb.py1114 >>> def test_function():STRING
LOWLib/test/test_pdb.py1132 >>> def test_function():STRING
LOWLib/test/test_pdb.py1189 >>> def test_function():STRING
LOWLib/test/test_pdb.py1285 >>> def test_function():STRING
LOWLib/test/test_pdb.py1367 >>> def test_function():STRING
LOWLib/test/test_pdb.py1421 >>> def test_function():STRING
LOWLib/test/test_pdb.py1494 >>> def test_function():STRING
LOWLib/test/test_pdb.py1527 >>> def test_function():STRING
LOWLib/test/test_pdb.py1559 >>> def test_function():STRING
LOWLib/test/test_pdb.py1634 >>> def test_function():STRING
LOWLib/test/test_pdb.py1686 >>> def test_function():STRING
LOWLib/test/test_pdb.py1723 1 def test_function():STRING
LOWLib/test/test_pdb.py1753 >>> def test_function():STRING
LOWLib/test/test_pdb.py1823 >>> def test_function():STRING
LOWLib/test/test_pdb.py1911 >>> def test_function():STRING
LOWLib/test/test_pdb.py2004 >>> def test_function():STRING
LOWLib/test/test_pdb.py2068 >>> def test_function():STRING
LOWLib/test/test_pdb.py2133 >>> def test_function():STRING
LOWLib/test/test_pdb.py2165 >>> def test_function():STRING
LOWLib/test/test_pdb.py2227 >>> def test_function():STRING
LOWLib/test/test_pdb.py2280 >>> def test_function():STRING
LOWLib/test/test_pdb.py2335 >>> def test_function():STRING
LOWLib/test/test_pdb.py2396 >>> def test_function():STRING
LOWLib/test/test_pdb.py2449 >>> def test_function():STRING
LOWLib/test/test_pdb.py2514 >>> def test_function():STRING
LOWLib/test/test_pdb.py2552 >>> def test_function():STRING
LOWLib/test/test_pdb.py2611 >>> def test_function():STRING
LOWLib/test/test_pdb.py2647 >>> def test_function():STRING
LOWLib/test/test_pdb.py2692 >>> def test_function():STRING
LOWLib/test/test_pdb.py2738 >>> def test_function():STRING
LOWLib/test/test_pdb.py2768 >>> def test_function():STRING
LOWLib/test/test_pdb.py2804 >>> def test_function():STRING
46 more matches not shown…
Fake / Example Data42 hits · 28 pts
SeverityFileLineSnippetContext
LOWLib/test/test_xml_etree.py1950 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWLib/test/test_xml_etree.py2118 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOWLib/test/test_ssl.py534 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py541 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py555 ('email', 'user@example.org'),CODE
LOWLib/test/test_urlparse.py414 self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'),CODE
LOWLib/test/test_urlparse.py415 ('mailto', '', '1337@example.org', '', '', ''))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/certdata/make_ssl_certs.py285 'email.1 = user@example.org',STRING
LOWLib/test/test_dataclasses/__init__.py2289 self.assertEqual(C.__doc__, "Lorem ipsum")CODE
LOWLib/test/test_dataclasses/__init__.py2286 """Lorem ipsum"""STRING
LOWLib/test/test_email/test_generator.py539 msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo")STRING
LOWLib/test/test_email/test_email.py3439 address = '"Alice, alice@example.org" <bob@example.com>'STRING
LOWLib/test/test_email/test_email.py3440 expected_strict = ('Alice, alice@example.org', 'bob@example.com')STRING
LOWLib/test/test_email/test_email.py3449 expected_strict = ('Alice', 'alice@example.org')STRING
LOWLib/test/test_email/test_email.py3460 [('', 'alice@example.org'), ('', ''), ('', 'Alice')])STRING
LOWLib/test/test_email/test_email.py3466 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOWLib/test/test_email/test_email.py3466 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOWLib/test/test_email/test_email.py3468 [('Jane Doe', 'jane@example.net'),STRING
LOWLib/test/test_email/test_email.py3469 ('John Doe', 'john@example.net')])STRING
LOWLib/test/test_email/test_email.py3471 [('Jane Doe', 'jane@example.net'),STRING
LOWLib/test/test_email/test_email.py3472 ('John Doe', 'john@example.net')])STRING
LOWLib/test/test_email/test_email.py3528 eq(addrs[0][1], 'foo@bar.com')STRING
LOWLib/test/test_email/test_email.py3728 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOWLib/test/test_email/test_email.py3728 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOWLib/test/test_email/test_email.py3394 alice = 'alice@example.org'STRING
LOWLib/test/test_email/test_email.py4239 ('From: foo@bar.com', ('From', 'foo@bar.com')),STRING
LOWLib/test/test_email/test_email.py4272 ['foo@bar.com',STRING
LOWLib/test/test_email/test_email.py4283 [('From', 'foo@bar.com'),STRING
LOWLib/test/test_email/test_email.py4295 ['foo@bar.com',STRING
LOWLib/test/test_email/test_message.py581 ('To', 'foo@bar.com'),STRING
LOWextra_tests/snippets/stdlib_pwd.py12 fake_name = "fake_user"CODE
LOWextra_tests/snippets/stdlib_pwd.py13 while pwd.getpwnam(fake_name):CODE
LOWextra_tests/snippets/stdlib_pwd.py14 fake_name += "1"CODE
LOWextra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")CODE
LOWextra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")CODE
LOWextra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",CODE
LOWextra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",CODE
TODO Padding17 hits · 25 pts
SeverityFileLineSnippetContext
LOWcrates/vm/src/exceptions.rs37 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/list.rs44 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/object.rs156// TODO: implement _PyType_GetSlotNames properlyCOMMENT
LOWcrates/vm/src/builtins/tuple.rs36 // TODO: implement more informational, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/dict.rs60 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs147 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs154 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs1333 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/stdlib/_io.rs2496 // TODO: implement legit fast-paths for other encodingsCOMMENT
LOWcrates/vm/src/stdlib/time.rs63 // TODO: implement proper monotonic time for wasm/wasi.COMMENT
LOWcrates/vm/src/stdlib/time.rs69 // TODO: implement proper perf time for wasm/wasi.COMMENT
LOWcrates/vm/src/stdlib/_types.rs109 // TODO: implement as separate typeCOMMENT
LOWcrates/vm/src/stdlib/_signal.rs324 // TODO: implement warn_on_full_bufferCOMMENT
LOWcrates/vm/src/stdlib/_codecs.rs242 // TODO: implement these codecs in Rust!COMMENT
LOWcrates/stdlib/src/pystruct.rs336 // TODO: implement a format code->spec cache like CPython does?COMMENT
LOWcrates/stdlib/src/mmap.rs987 // TODO: implement using mremap on LinuxCOMMENT
LOWLib/test/test_smtplib.py1285 #TODO: add tests for correct AUTH method fallback now that theCOMMENT
Slop Phrases10 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUM.github/actions/install-macos-deps/action.yml12# repository before you can use this action.COMMENT
MEDIUM.github/actions/install-linux-deps/action.yml12# repository before you can use this action.COMMENT
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.py1660 # make sure to always test gc.enable()STRING
LOWLib/test/_test_multiprocessing.py1491 q.join_thread() # make sure to join the feeder threadCODE
MEDIUMLib/test/test_logging.py411# level values which do not fit into these limitations, you can use aCOMMENT
LOWLib/test/test_bigmem.py50# - 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
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/stdlib/src/ssl.rs14//! Warning: This library contains AI-generated code and comments. Do not trust any code or comment without verificationCOMMENT
HIGHLib/subprocess.py258 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHLib/imaplib.py1312 # 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 Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOWLib/test/test_unittest/testmock/testmock.py600 # Usage exampleCOMMENT
LOWLib/zipfile/__init__.py717# Usage:COMMENT