AI Slop Code RIsk Monitor

RustPython/RustPython

A Python Interpreter written in Rust

17.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for RustPython/RustPython, a Rust project with 22,393 GitHub stars. SynthScan examined 1,447,094 lines of code across 3092 source files, recording 17683 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 17.1 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

17.1
Adjusted Signal
17.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
22.4K
Stars
Rust
Language
1.4M
Lines of Code
3.1K
Files
17.7K
Pattern Hits
2026-10-12
Scan Date
0.68
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 31.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.9/100 · LOW

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

Agent Over-Engineering Ratio 47.3/100 · MEDIUM

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

PR Review Velocity Impact 65.1/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 30HIGH 2063MEDIUM 1101LOW 14489

Directory Score Breakdown

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

Pattern Findings

The scanner identified 17683 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Empty Error Handlers1628 hits · 7928 pts
SeverityFileLineSnippetContext
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py475except _DeadlockError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py698except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py782except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py708except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py743except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py771except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py777except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py895except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py905except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py910except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py1167except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py790except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py797except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py804except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py942except KeyError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py1067except AttributeError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py1529except Exception:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py373except NotImplementedError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py587except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py1499except AttributeError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py217except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py581except ImportError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py615except ImportError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py846except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py907except NotImplementedError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py852except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py883except (ImportError, EOFError):CODE
HIGHcrates/vm/Lib/python_builtins/_thread.py72except SystemExit:CODE
HIGHcrates/vm/Lib/python_builtins/_thread.py94except SystemExit:CODE
HIGHcrates/vm/Lib/core_modules/copyreg.py158except:CODE
HIGHscripts/dis_dump.py183except Exception:CODE
HIGHscripts/codspeed-environment.py154except OSError:CODE
HIGHscripts/generate_sre_constants.py12except (OSError, ValueError):CODE
HIGHscripts/update_lib/deps.py233except Exception:CODE
HIGHscripts/update_lib/deps.py1404except Exception:CODE
HIGHscripts/update_lib/deps.py1444except Exception:CODE
HIGHscripts/update_lib/deps.py1480except Exception:CODE
HIGHscripts/update_lib/deps.py1520except Exception:CODE
HIGHscripts/update_lib/patch_spec.py468except SyntaxError:CODE
HIGHLib/shutil.py453except NotImplementedError:CODE
HIGHLib/shutil.py708except FileNotFoundError:CODE
HIGHLib/shutil.py299except OSError:CODE
HIGHLib/shutil.py788except OSError:CODE
HIGHLib/shutil.py321except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py330except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py336except _GiveupOnFastCopy:CODE
HIGHLib/tempfile.py279except AttributeError:CODE
HIGHLib/tempfile.py213except FileExistsError:CODE
HIGHLib/tempfile.py677except OSError:CODE
HIGHLib/tempfile.py948except FileNotFoundError:CODE
HIGHLib/tempfile.py468except FileNotFoundError:CODE
HIGHLib/_pyio.py2145except AttributeError:CODE
HIGHLib/_pyio.py2151except AttributeError:CODE
HIGHLib/_pyio.py1596except AttributeError:CODE
HIGHLib/_pyio.py2503except LookupError:CODE
HIGHLib/_pyio.py1713except OSError:CODE
HIGHLib/_pyio.py2127except LookupError:CODE
HIGHLib/pkgutil.py206except ImportError:CODE
HIGHLib/pkgutil.py228except ImportError:CODE
HIGHLib/_dummy_thread.py72except SystemExit:CODE
1568 more matches not shown…
Hyper-Verbose Identifiers10340 hits · 7614 pts
SeverityFileLineSnippetContext
LOWtools/opcode_metadata/opcodes.py119def properties_with_pseudo_flags(instr):CODE
LOWcrates/capi/src/ceval.rs262def optimized_with_custom_locals():CODE
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
LOWcrates/doc/generate.py259def iter_native_on_python_modules(CODE
LOW⚡scripts/dis_dump.py195 def _metadata_cache_slot_offsets(inst):CODE
LOWscripts/whats_left.py374def _is_decimal_fallback_item(item):CODE
LOWscripts/whats_left.py509 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
LOW⚡scripts/update_lib/tests/test_deps.py47 def test_regular_imports_ignored(self):STRING
LOW⚡scripts/update_lib/tests/test_deps.py57 def test_syntax_error_returns_empty(self):STRING
LOW⚡scripts/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
LOW⚡scripts/update_lib/tests/test_auto_mark.py655 def test_partial_children_fail_marks_children(self):CODE
LOW⚡scripts/update_lib/tests/test_auto_mark.py660 def test_child_with_own_override_not_consolidated(self):CODE
LOW⚡scripts/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
LOW⚡scripts/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
10280 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
HIGH⚡Lib/locale.py1946 print('Language: ', lang or '(undefined)')CODE
HIGH⚡Lib/locale.py1947 print('Encoding: ', enc or '(undefined)')CODE
HIGH⚡Lib/locale.py1955 print(' Language: ', lang or '(undefined)')CODE
HIGH⚡Lib/locale.py1956 print(' Encoding: ', enc or '(undefined)')CODE
HIGHLib/locale.py1972 print(' Language: ', lang or '(undefined)')CODE
HIGHLib/locale.py1973 print(' Encoding: ', enc or '(undefined)')CODE
HIGH⚡Lib/test/test_poplib.py80 self.push('-ERR unrecognized POP3 command "%s".' %cmd)CODE
HIGH⚡Lib/test/test_poplib.py86 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')CODE
HIGH⚡Lib/test/test_poplib.py90 self.push(arg)CODE
HIGH⚡Lib/test/test_poplib.py94 self.push("-ERR no such user")CODE
HIGH⚡Lib/test/test_poplib.py95 self.push('+OK password required')CODE
HIGH⚡Lib/test/test_poplib.py99 self.push("-ERR wrong password")CODE
HIGH⚡Lib/test/test_poplib.py100 self.push('+OK 10 messages')CODE
HIGH⚡Lib/test/test_poplib.py103 self.push('+OK 10 100')CODE
HIGH⚡Lib/test/test_poplib.py107 self.push('+OK %s %s' % (arg, arg))CODE
HIGH⚡Lib/test/test_poplib.py109 self.push('+OK')CODE
HIGH⚡Lib/test/test_poplib.py110 asynchat.async_chat.push(self, LIST_RESP)CODE
HIGH⚡Lib/test/test_poplib.py115 self.push('+OK %s bytes' %len(RETR_RESP))CODE
HIGH⚡Lib/test/test_poplib.py116 asynchat.async_chat.push(self, RETR_RESP)CODE
HIGH⚡Lib/test/test_poplib.py121 self.push('+OK message marked for deletion.')CODE
HIGH⚡Lib/test/test_poplib.py124 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py127 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py130 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py133 self.push('+OK closing.')CODE
HIGH⚡Lib/test/test_poplib.py143 self.push('+OK Capability list follows')CODE
HIGH⚡Lib/test/test_poplib.py149 self.push(' '.join(_ln))CODE
HIGH⚡Lib/test/test_poplib.py150 self.push('.')CODE
HIGH⚡Lib/test/test_poplib.py153 self.push('+OK I know RFC6856'CODE
HIGH⚡Lib/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
HIGH⚡Lib/test/test_gettext.py530 f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2')CODE
HIGH⚡Lib/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
HIGH⚡Lib/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
HIGH⚡Lib/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
HIGH⚡Lib/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
HIGH⚡Lib/test/test_gettext.py548 f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2')CODE
HIGH⚡Lib/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
HIGH⚡Lib/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
HIGH⚡Lib/test/test_gettext.py560 f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3')CODE
HIGH⚡Lib/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
HIGH⚡Lib/test/test_contextlib.py756 stack.push(_expect_ok)CODE
HIGH⚡Lib/test/test_contextlib.py759 stack.push(cm)CODE
HIGH⚡Lib/test/test_contextlib.py761 stack.push(_suppress_exc)CODE
HIGH⚡Lib/test/test_contextlib.py764 stack.push(cm)CODE
HIGH⚡Lib/test/test_contextlib.py766 stack.push(_expect_exc)CODE
287 more matches not shown…
Decorative Section Separators619 hits · 1620 pts
SeverityFileLineSnippetContext
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt140# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt147# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt154# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt160# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt166# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt173# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt179# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt186# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt192# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt199# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt209# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt215# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt223# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt229# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt241# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt247# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt254# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt263# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt273# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt281# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt310# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt316# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt322# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt328# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt351# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt357# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt363# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt369# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt395# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt401# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt409# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt415# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt421# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1967# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1973# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1979# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1985# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1991# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt1997# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2003# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2009# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2015# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2021# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2045# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2051# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2057# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2063# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2069# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2075# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2081# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2087# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2093# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2099# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2122# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2128# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2134# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2140# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2146# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2152# ================================================COMMENT
MEDIUM⚡crates/unicode/unicode/latest/DerivedNumericValues.txt2158# ================================================COMMENT
559 more matches not shown…
Deep Nesting1337 hits · 1084 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/codspeed-environment.py147CODE
LOWscripts/codspeed-environment.py217CODE
LOWscripts/whats_left.py417CODE
LOWscripts/whats_left.py492CODE
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
1277 more matches not shown…
Over-Commented Block886 hits · 814 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/tests/tests.rs141 #[test]COMMENT
LOWcrates/sre_engine/tests/tests.rs241 // END GENERATEDCOMMENT
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.rs21 }COMMENT
LOWcrates/sre_engine/src/string.rs41/// So a drive over a variable-width encoding pays for the mapping: `count`COMMENT
LOWcrates/sre_engine/src/string.rs301COMMENT
LOWcrates/compiler-core/src/marshal.rs601 /// instruction storage.COMMENT
LOWcrates/compiler-core/src/bytecode.rs541/// `align(2)` so that the whole unit can be read with one alignedCOMMENT
LOWcrates/compiler-core/src/bytecode.rs781 /// Atomically read the opcode at `index` with Acquire ordering.COMMENT
LOWcrates/compiler-core/src/bytecode.rs821COMMENT
LOWcrates/compiler-core/src/bytecode.rs881 }COMMENT
LOWcrates/compiler-core/src/bytecode.rs901 /// # 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/float.rs61/// internal precision limit. User-supplied precision can legally reach farCOMMENT
LOWcrates/host_env/src/crt_fd.rs161 ///COMMENT
LOWcrates/host_env/src/crt_fd_unsupported.rs101 ///COMMENT
LOWcrates/host_env/src/time.rs21/// Not available under MSVC (which exposes these only via theCOMMENT
LOWcrates/host_env/src/ctypes.rs1861/// All valid ctypes simple type codes on this platform.COMMENT
LOWcrates/host_env/src/socket.rs501/// same bits as signed C longs (`INADDR_*_GROUP` below).COMMENT
LOWcrates/host_env/src/socket.rs521COMMENT
LOWcrates/host_env/src/socket.rs681pub const IPV6_RTHDR_TYPE_0: i32 = 0;COMMENT
LOWcrates/host_env/src/ssl/oid.rs1// spell-checker: disableCOMMENT
LOWcrates/host_env/src/ssl/verify.rs741 }COMMENT
LOWcrates/host_env/src/ssl/verify.rs881COMMENT
LOWcrates/host_env/src/ssl/verify.rs921///COMMENT
LOWcrates/host_env/src/ssl/verify.rs1161/// to add partial chain support when the flag is set.COMMENT
LOWcrates/host_env/src/ssl/providers.rs1//! Utilities for user-settable cryptography providers.COMMENT
LOWcrates/host_env/src/ssl/cipher.rs1//! OpenSSL cipher strings, as `man openssl-ciphers` defines them.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/latest/NameAliases.txt1# NameAliases-17.0.0.txtCOMMENT
LOWcrates/unicode/unicode/latest/NameAliases.txt21# 1. correctionCOMMENT
LOWcrates/unicode/unicode/latest/NameAliases.txt41# control codes (which for historical reasons have no Unicode character name)COMMENT
LOWcrates/unicode/unicode/latest/NamedSequences.txt1# NamedSequences-17.0.0.txtCOMMENT
LOWcrates/unicode/unicode/latest/NamedSequences.txt21# comma delimitation and angle brackets. Thus, a UnicodeCOMMENT
826 more matches not shown…
Excessive Try-Catch Wrapping680 hits · 743 pts
SeverityFileLineSnippetContext
LOWcrates/codegen/src/symboltable.rs3720 except Exception:CODE
MEDIUMcrates/codegen/src/symboltable.rs3717def f(x):CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1529 except Exception:CODE
LOWcrates/stdlib/src/_opcode.rs323 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
LOW⚡scripts/dis_dump.py183 except Exception:CODE
LOW⚡scripts/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.py176 except Exception as e:CODE
LOWscripts/whats_left.py338 except Exception as e:CODE
LOWscripts/find_eq.py82 except Exception as e:CODE
LOWscripts/compare_bytecode.py120 except Exception:CODE
MEDIUM⚡scripts/compare_bytecode.py441 print("Error: %s" % exc, file=sys.stderr)CODE
MEDIUM⚡scripts/compare_bytecode.py444 print("Error: RustPython binary not found.", file=sys.stderr)CODE
MEDIUM⚡scripts/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
MEDIUMscripts/update_lib/deps.py61def visit_ImportFrom(self, node):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/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
MEDIUM⚡scripts/update_lib/cmd_quick.py462 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUM⚡scripts/update_lib/cmd_quick.py465 print(f"Error: {e}", file=sys.stderr)CODE
LOW⚡scripts/update_lib/cmd_quick.py467 except Exception as e:CODE
MEDIUM⚡scripts/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
620 more matches not shown…
Unused Imports680 hits · 615 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.py18CODE
LOWwasm/demo/snippets/import_pypi.py4CODE
LOWexamples/call_between_rust_and_python.py1CODE
LOWscripts/port_cjk_mappings.py9CODE
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
LOWscripts/pyperformance/pr_diff.py23CODE
LOWscripts/pyperformance/run_all.py50CODE
LOWscripts/pyperformance/compare.py20CODE
LOWLib/_pyio.py19CODE
LOWLib/_pyio.py19CODE
LOWLib/_pyio.py19CODE
LOWLib/lzma.py28CODE
LOWLib/lzma.py29CODE
620 more matches not shown…
Self-Referential Comments249 hits · 594 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.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
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py762 """This method is deprecated."""STRING
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
MEDIUM⚡Lib/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.py330 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMLib/threading.py1309 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMLib/threading.py1553# Create the main thread object,COMMENT
MEDIUMLib/threading.py147 """This class implements reentrant lock objects.STRING
MEDIUMLib/threading.py460 """This class implements semaphore objects.STRING
MEDIUMLib/platform.py9# This module is maintained by Marc-Andre Lemburg <mal@egenix.com>.COMMENT
MEDIUMLib/pstats.py74 """This class is used for creating reports from data generated by theSTRING
MEDIUMLib/pstats.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 Indicators30 hits · 350 pts
SeverityFileLineSnippetContext
CRITICALcrates/vm/src/vm/mod.rs1314 let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| {CODE
CRITICALcrates/vm/src/vm/mod.rs1466 let encoding = self.state.config.settings.stdio_encoding.as_deref();CODE
CRITICALcrates/vm/src/vm/mod.rs1477 Some(if self.state.config.settings.stdio_encoding.is_some() {CODE
CRITICALcrates/vm/src/vm/mod.rs1559 || !self.state.config.paths.module_search_paths.is_empty();CODE
CRITICALcrates/vm/src/vm/mod.rs3041 optimize: self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/vm/compile.rs417 -1 => self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/builtins.rs209 -1 => vm.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/_imp.rs216 .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string())CODE
CRITICALcrates/vm/src/stdlib/_io.rs5850 && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref()CODE
CRITICALcrates/vm/src/stdlib/marshal.rs606 Ok(self.vm.ctx.exceptions.stop_iteration.to_owned().into())CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs271 vm.state.config.paths.prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs275 vm.state.config.paths.base_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs279 vm.state.config.paths.exec_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs283 vm.state.config.paths.base_exec_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs291 vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm)CODE
CRITICALcrates/vm/src/stdlib/sys.rs644 vm.state.config.paths.base_executable.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs654 vm.state.config.paths.executable.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs1273 vm.state.config.settings.cpu_count.map_or(-1, |n| n.get())CODE
CRITICALcrates/jit/src/lib.rs65 self.ctx.func.signature.params.push(AbiParam::new(arg));CODE
CRITICALcrates/jit/src/lib.rs69 self.ctx.func.signature.returns.push(AbiParam::new(ret));CODE
CRITICALcrates/stdlib/src/syslog.rs53 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
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)CODE
CRITICAL⚡Lib/idlelib/idle_test/test_textview.py211 self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'),CODE
Cross-File Repetition57 hits · 285 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_latin_1.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
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/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 Boilerplate251 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
191 more matches not shown…
AI Slop Vocabulary74 hits · 146 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.rs1423 /// Definitely reachable outside exception-only paths (b_warm)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.py2370 # 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.py1579 # 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.py1177 # required, so just use a dummy one to instantiateCOMMENT
MEDIUMLib/test/test_pdb.py1# A test suite for pdb; not very comprehensive at the moment.COMMENT
MEDIUM⚡Lib/test/test_lzma.py514 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMLib/test/test_os.py2240 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
MEDIUMLib/test/test_decimal.py5875 """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.py2237 # comprehensive for things like partition, etc.COMMENT
LOWLib/test/test_py_compile.py252 # 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
MEDIUMLib/idlelib/pyparse.py51# so that we're robust in the face of incomplete program text.STRING
14 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.py194An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHLib/concurrent/futures/_base.py425Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHLib/concurrent/futures/_base.py462Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHLib/concurrent/futures/_base.py584Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHLib/concurrent/futures/process.py824Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Redundant / Tautological Comments87 hits · 118 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
LOW⚡Lib/_py_abc.py131 # Check if it's a direct subclassCOMMENT
LOW⚡Lib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)COMMENT
LOW⚡Lib/_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
LOW⚡Lib/types.py305 # Check if 'func' is a coroutine function.COMMENT
LOW⚡Lib/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.py1271 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWLib/tarfile.py1556 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWLib/typing.py1252 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWLib/typing.py2076 # 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.py6243 # 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.py4952 # Check if a dictionary conforms to Dict typeCOMMENT
LOWLib/test/test_typing.py4967 # Check if an instance conforms to the generic classCOMMENT
LOWLib/test/test_typing.py4979 # 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.py3386 # Check if the BOM is written only once (see issue1753).COMMENT
LOWLib/test/test_compile.py1391 # 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.py844 bytearray(state[0]) # Check if state[0] supports the buffer interface.CODE
LOWLib/test/test_codecs.py2920 # Check if the BOM is written only onceCOMMENT
LOWLib/test/test_tarfile.py4494 # Set UID to 0 so chown() is attempted.COMMENT
LOWLib/test/test_tarfile.py4530 # Set UID to 0 so chown() is attempted.COMMENT
LOWLib/test/test_pyrepl/test_terminfo.py595 # Check if standard curses can setup this terminal in subprocessCOMMENT
27 more matches not shown…
Structural Annotation Overuse52 hits · 89 pts
SeverityFileLineSnippetContext
LOWcrates/host_env/src/ssl/config.rs129 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs165 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/host_env/src/ssl/config.rs333 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs435 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOW⚡crates/vm/src/getpath.rs111 // Step 0: Get executable pathCOMMENT
LOW⚡crates/vm/src/getpath.rs118 // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__COMMENT
LOW⚡crates/vm/src/getpath.rs132 // Step 2: Check for venv (pyvenv.cfg) and get 'home'COMMENT
LOW⚡crates/vm/src/getpath.rs136 // Step 3: Check for build directoryCOMMENT
LOW⚡crates/vm/src/getpath.rs139 // Step 4: Calculate prefix via landmark searchCOMMENT
LOW⚡crates/vm/src/getpath.rs143 // Step 5: Set prefix and base_prefixCOMMENT
LOW⚡crates/vm/src/getpath.rs157 // Step 6: Calculate exec_prefixCOMMENT
LOW⚡crates/vm/src/getpath.rs166 // Step 7: Calculate base_executable (if not already set by an env override)COMMENT
LOW⚡crates/vm/src/getpath.rs171 // Step 8: Build module_search_pathsCOMMENT
LOW⚡crates/vm/src/getpath.rs175 // Step 9: Calculate stdlib_dirCOMMENT
LOWcrates/vm/src/gc_state.rs633 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs711 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs743 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs779 // Step 5: Split the candidates on what step 4 concluded, and hand theCOMMENT
LOWcrates/vm/src/gc_state.rs884 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs483 // Step 1: Unpack argsCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs486 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs502 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs520 // Step 4: Replace all type variablesCOMMENT
LOW⚡scripts/libc_posix.py190 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOW⚡scripts/libc_posix.py197 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOW⚡scripts/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
LOW⚡Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOW⚡Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOW⚡Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOW⚡Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOW⚡Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOW⚡Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡Lib/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 Indicators47 hits · 83 pts
SeverityFileLineSnippetContext
LOWcrates/host_env/src/ssl/config.rs129 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs165 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/host_env/src/ssl/config.rs333 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs435 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOW⚡crates/vm/src/getpath.rs111 // Step 0: Get executable pathCOMMENT
LOW⚡crates/vm/src/getpath.rs118 // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__COMMENT
LOW⚡crates/vm/src/getpath.rs132 // Step 2: Check for venv (pyvenv.cfg) and get 'home'COMMENT
LOW⚡crates/vm/src/getpath.rs136 // Step 3: Check for build directoryCOMMENT
LOW⚡crates/vm/src/getpath.rs139 // Step 4: Calculate prefix via landmark searchCOMMENT
LOW⚡crates/vm/src/getpath.rs143 // Step 5: Set prefix and base_prefixCOMMENT
LOW⚡crates/vm/src/getpath.rs157 // Step 6: Calculate exec_prefixCOMMENT
LOW⚡crates/vm/src/getpath.rs166 // Step 7: Calculate base_executable (if not already set by an env override)COMMENT
LOW⚡crates/vm/src/getpath.rs171 // Step 8: Build module_search_pathsCOMMENT
LOW⚡crates/vm/src/getpath.rs175 // Step 9: Calculate stdlib_dirCOMMENT
LOWcrates/vm/src/gc_state.rs633 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs711 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs743 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs779 // Step 5: Split the candidates on what step 4 concluded, and hand theCOMMENT
LOWcrates/vm/src/gc_state.rs884 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs483 // Step 1: Unpack argsCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs486 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs502 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs520 // Step 4: Replace all type variablesCOMMENT
LOW⚡scripts/libc_posix.py190 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOW⚡scripts/libc_posix.py197 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOW⚡scripts/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⚡Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOW⚡Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOW⚡Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOW⚡Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOW⚡Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOW⚡Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOW⚡Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡Lib/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 · 66 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.py1755CODE
LOWLib/_pydatetime.py2044CODE
LOWLib/doctest.py1986CODE
LOWLib/doctest.py2091CODE
LOWLib/argparse.py880CODE
LOWLib/argparse.py967CODE
LOWLib/argparse.py1067CODE
LOWLib/argparse.py1869CODE
LOWLib/dataclasses.py391CODE
LOWLib/dataclasses.py1423CODE
LOWLib/dataclasses.py1636CODE
LOWLib/tarfile.py1016CODE
LOWLib/tarfile.py1785CODE
LOWLib/ssl.py730CODE
LOWLib/_pydecimal.py3869CODE
LOWLib/_pycodecs.py1455CODE
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.py4318CODE
LOWLib/test/test_code.py858CODE
LOWLib/test/mock_socket.py54CODE
LOWLib/test/test_ssl.py273CODE
LOWLib/test/test_ssl.py312CODE
LOWLib/test/test_ssl.py2668CODE
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…
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.py2154 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…
Dead Code29 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMLib/test/test_fractions.py175CODE
MEDIUMLib/test/test_itertools.py2440CODE
MEDIUMLib/test/test_array.py1115CODE
MEDIUMLib/test/test_generators.py578CODE
MEDIUMLib/test/test_generators.py589CODE
MEDIUMLib/test/test_exceptions.py1823CODE
MEDIUMLib/test/test_compile.py901CODE
MEDIUMLib/test/test_set.py21CODE
MEDIUMLib/test/test_set.py1111CODE
MEDIUMLib/test/test_deque.py16CODE
MEDIUMLib/test/test_sys_settrace.py2766CODE
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.py2051CODE
MEDIUMLib/test/test_asyncgen.py2072CODE
MEDIUMLib/test/test_asyncgen.py2096CODE
MEDIUMLib/test/test_asyncgen.py837CODE
MEDIUMLib/test/test_asyncgen.py911CODE
MEDIUMLib/test/test_builtin.py1367CODE
MEDIUMLib/test/test_dict.py291CODE
MEDIUMLib/test/dtracedata/call_stack.py15CODE
MEDIUMLib/test/test_unittest/test_async_case.py362CODE
MEDIUMextra_tests/snippets/stdlib_itertools.py624CODE
Fake / Example Data48 hits · 30 pts
SeverityFileLineSnippetContext
LOWcrates/common/src/compression/zlib.rs832 let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
LOWcrates/common/src/compression/zlib.rs832 let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
LOWLib/test/test_xml_etree.py1934 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWLib/test/test_xml_etree.py2100 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOWLib/test/test_imaplib.py1682 typ, data = client.setacl('INBOX', 'John Doe', 'a b')CODE
LOWLib/test/test_imaplib.py1684 self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"'])CODE
LOWLib/test/test_imaplib.py1695 typ, data = client.deleteacl('New folder', 'John Doe')CODE
LOWLib/test/test_imaplib.py1697 self.assertEqual(server.args, ['"New folder"', '"John Doe"'])CODE
LOWLib/test/test_ssl.py533 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py540 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py554 ('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
LOW⚡Lib/test/test_dataclasses/__init__.py2289 self.assertEqual(C.__doc__, "Lorem ipsum")CODE
LOW⚡Lib/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
LOW⚡Lib/test/test_email/test_email.py3436 address = '"Alice, alice@example.org" <bob@example.com>'STRING
LOW⚡Lib/test/test_email/test_email.py3437 expected_strict = ('Alice, alice@example.org', 'bob@example.com')STRING
LOW⚡Lib/test/test_email/test_email.py3446 expected_strict = ('Alice', 'alice@example.org')STRING
LOW⚡Lib/test/test_email/test_email.py3457 [('', 'alice@example.org'), ('', ''), ('', 'Alice')])STRING
LOW⚡Lib/test/test_email/test_email.py3463 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOW⚡Lib/test/test_email/test_email.py3463 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOW⚡Lib/test/test_email/test_email.py3465 [('Jane Doe', 'jane@example.net'),STRING
LOW⚡Lib/test/test_email/test_email.py3466 ('John Doe', 'john@example.net')])STRING
LOW⚡Lib/test/test_email/test_email.py3468 [('Jane Doe', 'jane@example.net'),STRING
LOW⚡Lib/test/test_email/test_email.py3469 ('John Doe', 'john@example.net')])STRING
LOW⚡Lib/test/test_email/test_email.py3525 eq(addrs[0][1], 'foo@bar.com')STRING
LOW⚡Lib/test/test_email/test_email.py3725 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOW⚡Lib/test/test_email/test_email.py3725 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOWLib/test/test_email/test_email.py3391 alice = 'alice@example.org'STRING
LOWLib/test/test_email/test_email.py4232 ('From: foo@bar.com', ('From', 'foo@bar.com')),STRING
LOWLib/test/test_email/test_email.py4265 ['foo@bar.com',STRING
LOWLib/test/test_email/test_email.py4276 [('From', 'foo@bar.com'),STRING
LOWLib/test/test_email/test_email.py4288 ['foo@bar.com',STRING
LOWLib/test/test_email/test_message.py581 ('To', 'foo@bar.com'),STRING
LOW⚡extra_tests/snippets/stdlib_pwd.py12 fake_name = "fake_user"CODE
LOW⚡extra_tests/snippets/stdlib_pwd.py13 while pwd.getpwnam(fake_name):CODE
LOW⚡extra_tests/snippets/stdlib_pwd.py14 fake_name += "1"CODE
LOW⚡extra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")CODE
LOW⚡extra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")CODE
LOW⚡extra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",CODE
LOW⚡extra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",CODE
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.py1662 # 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.py45# - Don't forget to test for large indices, offsets and results and such,COMMENT
MEDIUM⚡Lib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
TODO Padding11 hits · 16 pts
SeverityFileLineSnippetContext
LOWcrates/vm/src/exceptions.rs39 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/list.rs45 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/tuple.rs85 // 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.rs150 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs157 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs1671 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/stdlib/_io.rs2812 // TODO: implement legit fast-paths for other encodingsCOMMENT
LOWcrates/vm/src/stdlib/_signal.rs347 // TODO: implement warn_on_full_bufferCOMMENT
LOWcrates/stdlib/src/mmap.rs1092 // TODO: implement using mremap on LinuxCOMMENT
LOWLib/test/test_smtplib.py1285 #TODO: add tests for correct AUTH method fallback now that theCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/stdlib/src/ssl.rs13//! 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.py1391 # 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
LOW⚡Lib/test/test_unittest/testmock/testmock.py600 # Usage exampleCOMMENT
LOWLib/zipfile/__init__.py717# Usage:COMMENT