AI Slop Code Risk Monitor

RustPython/RustPython

SlopCodeMonitor badge for RustPython/RustPython Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A Python Interpreter written in Rust

16.4 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for RustPython/RustPython, a Rust project with 22,443 GitHub stars. SynthScan examined 1,644,144 lines of code across 3365 source files, recording 20103 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 16.4 (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.

16.4
Adjusted Signal
16.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
22.4K
Stars
Rust
Language
1.6M
Lines of Code
3.4K
Files
20.1K
Pattern Hits
2026-10-31
Scan Date
0.64
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 31.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.4/100 · LOW

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

Agent Over-Engineering Ratio 46.2/100 · MEDIUM

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

PR Review Velocity Impact 63.8/100 · HIGH

Which changes need focused human review? 20103 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 36HIGH 2121MEDIUM 1186LOW 16760

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 20103 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers12313 hits · 9079 pts
SeverityFileLineSnippetContext
LOWtools/opcode_metadata/opcodes.py131def properties_with_pseudo_flags(instr):CODE
LOWcrates/capi/src/ceval.rs267def optimized_with_custom_locals():CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py560def _get_zlib_decompress_func():CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py590def _get_zstd_decompressor_class():CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py764def _get_mtime_and_size_of_source(self, path):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py541def _call_with_frames_removed(f, *args, **kwds):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py562 def _requires_builtin_wrapper(self, fullname):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1374def _find_and_load_lazy_submodule(name, import_):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1549def _install_external_importers():CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1559def _get_supported_file_loaders():CODE
LOWcrates/doc/generate.py263def iter_native_on_python_modules(CODE
LOW⚡scripts/dis_dump.py205 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.py1319def _parse_test_submodule_imports(content: str) -> dict[str, set[str]]:CODE
LOWscripts/update_lib/deps.py1523def _get_lib_modules_importing(CODE
LOWscripts/update_lib/deps.py1604def 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.py288def modification_from_node_specs(node, specs):CODE
LOWscripts/update_lib/patch_spec.py436def _expand_inline_class_suites(contents: str, patches: Patches) -> str: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.py119 def test_file_alias_uses_io_package(self):CODE
LOWscripts/update_lib/tests/test_deps.py179 def test_transitive_data_dependency(self):CODE
LOWscripts/update_lib/tests/test_deps.py250 def test_syntax_error_returns_empty(self):STRING
LOWscripts/update_lib/tests/test_deps.py256 def test_relative_import_skipped(self):CODE
LOWscripts/update_lib/tests/test_deps.py348 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
12253 more matches not shown…
Empty Error Handlers1678 hits · 8165 pts
SeverityFileLineSnippetContext
HIGHcrates/vm/Lib/python_builtins/zipimport.py806except KeyError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py533except _DeadlockError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py737except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py816except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py747except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py778except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py805except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py811except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py1141except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py824except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py831except AttributeError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py919except KeyError:CODE
HIGHcrates/vm/Lib/python_builtins/_frozen_importlib.py1041except AttributeError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py1554except Exception:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py362except NotImplementedError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py575except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py1525except AttributeError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py217except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py569except ImportError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py603except ImportError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py830except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py891except NotImplementedError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py836except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py1469except OSError:CODE
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py867except (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.py193except 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.py1400except Exception:CODE
HIGHscripts/update_lib/deps.py1440except Exception:CODE
HIGHscripts/update_lib/deps.py1476except Exception:CODE
HIGHscripts/update_lib/deps.py1516except Exception:CODE
HIGHscripts/update_lib/patch_spec.py537except SyntaxError:CODE
HIGHLib/shutil.py453except NotImplementedError:CODE
HIGHLib/shutil.py708except FileNotFoundError:CODE
HIGHLib/shutil.py299except OSError:CODE
HIGHLib/shutil.py789except OSError:CODE
HIGHLib/shutil.py321except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py330except _GiveupOnFastCopy:CODE
HIGHLib/shutil.py336except _GiveupOnFastCopy:CODE
HIGHLib/tempfile.py280except AttributeError:CODE
HIGHLib/tempfile.py214except FileExistsError:CODE
HIGHLib/tempfile.py325except OSError:CODE
HIGHLib/tempfile.py731except OSError:CODE
HIGHLib/tempfile.py1023except FileNotFoundError:CODE
HIGHLib/tempfile.py522except FileNotFoundError:CODE
HIGHLib/_pyio.py2169except AttributeError:CODE
HIGHLib/_pyio.py2175except AttributeError:CODE
HIGHLib/_pyio.py1617except AttributeError:CODE
HIGHLib/_pyio.py2527except LookupError:CODE
HIGHLib/_pyio.py1734except OSError:CODE
HIGHLib/_pyio.py2151except LookupError:CODE
HIGHLib/_sitebuiltins.py24except:CODE
HIGHLib/_sitebuiltins.py53except OSError:CODE
HIGHLib/copyreg.py158except:CODE
HIGHLib/rlcompleter.py109except ValueError:CODE
1618 more matches not shown…
Cross-Language Confusion350 hits · 2035 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.py1985 self.undobuffer.push(["seq"])CODE
HIGHLib/turtle.py2446 self.undobuffer.push(("pen", _p_buf))CODE
HIGHLib/turtle.py3146 self.undobuffer.push(("stamp", stitem))CODE
HIGHLib/turtle.py3232 self.undobuffer.push(undo_entry)CODE
HIGHLib/turtle.py3336 self.undobuffer.push(("rot", angle, self._degreesPerAU))CODE
HIGHLib/turtle.py3416 self.undobuffer.push(("beginfill", self._fillitem))CODE
HIGHLib/turtle.py3435 self.undobuffer.push(("dofill", self._fillitem))CODE
HIGHLib/turtle.py3468 self.undobuffer.push(["seq"])CODE
HIGHLib/turtle.py3490 self.undobuffer.push(("wri", item))CODE
HIGHLib/turtle.py3513 self.undobuffer.push(["seq"])CODE
HIGH⚡Lib/locale.py1961 print('Language: ', lang or '(undefined)')CODE
HIGH⚡Lib/locale.py1962 print('Encoding: ', enc or '(undefined)')CODE
HIGH⚡Lib/locale.py1970 print(' Language: ', lang or '(undefined)')CODE
HIGH⚡Lib/locale.py1971 print(' Encoding: ', enc or '(undefined)')CODE
HIGHLib/locale.py1987 print(' Language: ', lang or '(undefined)')CODE
HIGHLib/locale.py1988 print(' Encoding: ', enc or '(undefined)')CODE
HIGH⚡Lib/test/test_poplib.py81 self.push('-ERR unrecognized POP3 command "%s".' %cmd)CODE
HIGH⚡Lib/test/test_poplib.py87 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')CODE
HIGH⚡Lib/test/test_poplib.py91 self.push(arg)CODE
HIGH⚡Lib/test/test_poplib.py95 self.push("-ERR no such user")CODE
HIGH⚡Lib/test/test_poplib.py96 self.push('+OK password required')CODE
HIGH⚡Lib/test/test_poplib.py100 self.push("-ERR wrong password")CODE
HIGH⚡Lib/test/test_poplib.py101 self.push('+OK 10 messages')CODE
HIGH⚡Lib/test/test_poplib.py104 self.push('+OK 10 100')CODE
HIGH⚡Lib/test/test_poplib.py108 self.push('+OK %s %s' % (arg, arg))CODE
HIGH⚡Lib/test/test_poplib.py110 self.push('+OK')CODE
HIGH⚡Lib/test/test_poplib.py111 asynchat.async_chat.push(self, LIST_RESP)CODE
HIGH⚡Lib/test/test_poplib.py116 self.push('+OK %s bytes' %len(RETR_RESP))CODE
HIGH⚡Lib/test/test_poplib.py117 asynchat.async_chat.push(self, RETR_RESP)CODE
HIGH⚡Lib/test/test_poplib.py122 self.push('+OK message marked for deletion.')CODE
HIGH⚡Lib/test/test_poplib.py125 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py128 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py131 self.push('+OK done nothing.')CODE
HIGH⚡Lib/test/test_poplib.py134 self.push('+OK closing.')CODE
HIGH⚡Lib/test/test_poplib.py144 self.push('+OK Capability list follows')CODE
HIGH⚡Lib/test/test_poplib.py150 self.push(' '.join(_ln))CODE
HIGH⚡Lib/test/test_poplib.py151 self.push('.')CODE
HIGH⚡Lib/test/test_poplib.py154 self.push('+OK I know RFC6856'CODE
HIGH⚡Lib/test/test_poplib.py162 self.push('+OK Begin TLS negotiation')CODE
HIGHLib/test/test_poplib.py60 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHLib/test/test_poplib.py176 self.push('-ERR Command not permitted when TLS active')CODE
HIGHLib/test/test_poplib.py444 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.py904 stack.push(_expect_ok)CODE
HIGH⚡Lib/test/test_contextlib.py907 stack.push(cm)CODE
HIGH⚡Lib/test/test_contextlib.py909 stack.push(_suppress_exc)CODE
HIGH⚡Lib/test/test_contextlib.py912 stack.push(cm)CODE
HIGH⚡Lib/test/test_contextlib.py914 stack.push(_expect_exc)CODE
290 more matches not shown…
Decorative Section Separators644 hits · 1647 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
584 more matches not shown…
Deep Nesting1402 hits · 1137 pts
SeverityFileLineSnippetContext
LOWtools/opcode_metadata/utils.py69CODE
LOWcrates/unicode/tests/generate_reference.py25CODE
LOWcrates/wasm/Lib/_microdistlib.py13CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py295CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py798CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py487CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py771CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py876CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py899CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1198CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1393CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1501CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py304CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py448CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py548CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py101CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py810CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1452CODE
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.py198CODE
LOWscripts/dis_dump.py345CODE
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.py1131CODE
LOWscripts/update_lib/deps.py1257CODE
LOWscripts/update_lib/deps.py1319CODE
LOWscripts/update_lib/deps.py1366CODE
LOWscripts/update_lib/deps.py1450CODE
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.py297CODE
LOWscripts/update_lib/patch_spec.py407CODE
LOWscripts/update_lib/patch_spec.py607CODE
LOWscripts/update_lib/cmd_todo.py450CODE
LOWscripts/update_lib/cmd_migrate.py157CODE
LOWscripts/update_lib/cmd_quick.py76CODE
LOWscripts/update_lib/cmd_quick.py325CODE
LOWscripts/update_lib/tests/test_migrate.py123CODE
LOWscripts/update_lib/tests/test_migrate.py706CODE
LOWLib/shutil.py137CODE
LOWLib/shutil.py229CODE
LOWLib/shutil.py283CODE
1342 more matches not shown…
Excessive Try-Catch Wrapping784 hits · 860 pts
SeverityFileLineSnippetContext
LOWcrates/codegen/src/symboltable.rs3757 except Exception:CODE
MEDIUMcrates/codegen/src/symboltable.rs3754def f(x):CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py575 except Exception:CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py605 except Exception:CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py669 except Exception:CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py675 except Exception:CODE
MEDIUMcrates/vm/Lib/python_builtins/zipimport.py295def _read_directory(archive):CODE
MEDIUMcrates/vm/Lib/python_builtins/_frozen_importlib.py23def _object_name(obj):CODE
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1324 except Exception as e:CODE
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1554 except Exception:CODE
LOWcrates/stdlib/src/_opcode.rs310 except Exception as ex:CODE
LOWcrates/stdlib/src/_opcode.rs984except Exception:CODE
LOWcrates/stdlib/src/_opcode.rs989except Exception: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.py193 except Exception:CODE
LOW⚡scripts/dis_dump.py202 except Exception as e:CODE
LOWscripts/dis_dump.py341 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.py1150 except Exception:CODE
LOWscripts/update_lib/deps.py1400 except Exception:CODE
LOWscripts/update_lib/deps.py1440 except Exception:CODE
LOWscripts/update_lib/deps.py1476 except Exception:CODE
LOWscripts/update_lib/deps.py1516 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.py119 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_copy_lib.py122 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.py436 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMscripts/update_lib/cmd_migrate.py439 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.py83 except Exception:CODE
LOWLib/rlcompleter.py159 except Exception:CODE
LOWLib/zipimport.py575 except Exception:CODE
LOWLib/zipimport.py605 except Exception:CODE
LOWLib/zipimport.py669 except Exception:CODE
LOWLib/zipimport.py675 except Exception:CODE
MEDIUMLib/zipimport.py295def _read_directory(archive):CODE
724 more matches not shown…
Over-Commented Block890 hits · 820 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/source_location.rs1/// A Python source range with signed line and column coordinates.COMMENT
LOWcrates/compiler-core/src/bytecode.rs821 #[must_use]COMMENT
LOWcrates/compiler-core/src/bytecode.rs841 arg: OpArgByte::from(arg),COMMENT
LOWcrates/compiler-core/src/bytecode.rs921 /// values (e.g. dict keys-version stamps) that must never be observedCOMMENT
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.rs581 /// let (op, _) = Arg::new(BinaryOperator::Add);COMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs641 /// `[]` subscriptCOMMENT
LOWcrates/compiler-core/src/bytecode/oparg.rs901 #[derive(Clone, Copy)]COMMENT
LOWcrates/compiler-core/src/bytecode/instruction.rs21 #[repr($typ)]COMMENT
LOWcrates/literal/src/float.rs61/// internal precision limit. User-supplied precision can legally reach farCOMMENT
LOWcrates/host_env/src/os.rs681 // directly instead of round-tripping through a Win32 error code.COMMENT
LOWcrates/host_env/src/crt_fd.rs161impl Owned {COMMENT
LOWcrates/host_env/src/crt_fd.rs261 /// `fd` must be a valid file descriptor.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/socket.rs501pub const IPPORT_USERRESERVED: i32 = 5000;COMMENT
LOWcrates/host_env/src/socket.rs681#[cfg(target_vendor = "apple")]COMMENT
LOWcrates/host_env/src/ssl/oid.rs1// spell-checker: disableCOMMENT
LOWcrates/host_env/src/ssl/handshake.rs41}COMMENT
LOWcrates/host_env/src/ssl/verify.rs761}COMMENT
LOWcrates/host_env/src/ssl/verify.rs901 }COMMENT
LOWcrates/host_env/src/ssl/verify.rs1181/// OpenSSL's X509_V_FLAG_PARTIAL_CHAIN allows verification to succeed if any certificateCOMMENT
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
LOWcrates/unicode/unicode/latest/Blocks.txt1# Blocks-17.0.0.txtCOMMENT
LOWcrates/unicode/unicode/latest/Blocks.txt21# All block ranges start with a value where (cp MOD 16) = 0,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
LOWcrates/unicode/unicode/ucd32/DerivedBidiClass-3.2.0.txt1# DerivedBidiClass-3.2.0.txtCOMMENT
LOW…nicode/unicode/ucd32/DerivedBinaryProperties-3.2.0.txt1# DerivedBinaryProperties-3.2.0.txtCOMMENT
830 more matches not shown…
Self-Referential Comments278 hits · 686 pts
SeverityFileLineSnippetContext
MEDIUMtools/opcode_metadata/generate_py_opcode_metadata.py43# 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.py734 # This function is meant for use in _setup().COMMENT
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1143# This class is actually exposed publicly in a namespace package's __loader__COMMENT
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1536 # This function is used by PyImport_ExecCodeModuleObject().COMMENT
MEDIUMscripts/update_lib/tests/test_deps.py166 # Create the dependency fileSTRING
MEDIUMscripts/update_lib/tests/test_deps.py276 # Create a module that imports another moduleCOMMENT
MEDIUMscripts/update_lib/tests/test_deps.py281 # Create the imported modulesSTRING
MEDIUMscripts/update_lib/tests/test_deps.py295 # Create a module that imports itself (circular)COMMENT
MEDIUMscripts/update_lib/tests/test_deps.py313 # 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.py1486 """This class represents and manipulates 32-bit IPv4 network + addresses..STRING
MEDIUMLib/ipaddress.py2280 """This class represents and manipulates 128-bit IPv6 networks.STRING
MEDIUMLib/webbrowser.py780 # Create an NSURL object representing the URLSTRING
MEDIUMLib/_compat_pickle.py1# This module is used to map the old Python 2 names to the new names used inCOMMENT
MEDIUMLib/bdb.py885 # The following methods can be called by clients to useCOMMENT
MEDIUMLib/bdb.py936 # This method is more useful to debug a single function call.COMMENT
MEDIUMLib/zipapp.py134 # Create the list of files to add to the archive now, in caseCOMMENT
MEDIUMLib/gettext.py13# This module represents the integration of work, contributions, feedback, andCOMMENT
MEDIUMLib/modulefinder.py658 # Create the module finder and turn its crankCOMMENT
MEDIUM⚡Lib/hashlib.py133 # This function is only used until the module has been initialized.STRING
MEDIUMLib/hashlib.py273 # The following code can be simplified in Python 3.19STRING
MEDIUMLib/subprocess.py2164 # This method is called (indirectly) by __del__, so it cannotCOMMENT
MEDIUMLib/subprocess.py2458 # This method is called from the _communicate_with_*() methodsCOMMENT
MEDIUMLib/profile.py438 # This method is more useful to profile a single function call.COMMENT
MEDIUMLib/code.py162 # This method is being overwritten inCOMMENT
MEDIUMLib/pydoc.py763 # Create a link for methods like 'self.method(...)'COMMENT
MEDIUM⚡Lib/types.py329 # The following code is primarily to support functions thatCOMMENT
MEDIUMLib/pdb.py697 """This method is called when there is the remote possibilitySTRING
MEDIUMLib/pdb.py706 """This function is called when we stop or break at this line."""STRING
MEDIUMLib/pdb.py739 """This function is called when a return trap is set here."""STRING
MEDIUMLib/pdb.py748 """This function is called if an exception occurs,STRING
MEDIUMLib/threading.py324 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMLib/threading.py1445 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMLib/threading.py1689# Create the main thread object,COMMENT
MEDIUMLib/threading.py141 """This class implements reentrant lock objects.STRING
MEDIUMLib/threading.py454 """This class implements semaphore objects.STRING
MEDIUMLib/platform.py9# This module is maintained by Marc-Andre Lemburg <mal@egenix.com>.COMMENT
MEDIUMLib/pstats.py74 """This class is used for creating reports from data generated by theSTRING
MEDIUMLib/pstats.py326 # The following functions support actual printing of reportsCOMMENT
MEDIUMLib/pstats.py557 """This class provides a generic function for comparing any two tuples.STRING
MEDIUMLib/pstats.py600# The following functions combine statistics for pairs functions.COMMENT
MEDIUMLib/pstats.py637# The following functions support printing of reportsCOMMENT
MEDIUMLib/inspect.py29# This module is in the public domain. No warranties.COMMENT
MEDIUMLib/_opcode_metadata.py1# This file is generated by tools/opcode_metadata/generate_py_opcode_metadata.pyCOMMENT
MEDIUMLib/annotationlib.py167 # Create a new locals dict if necessary,COMMENT
MEDIUMLib/_pydatetime.py495 # This function is intended to validate datetimes, but becauseCOMMENT
MEDIUMLib/fractions.py183 """This class implements rational numbers.STRING
MEDIUMLib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined hereCOMMENT
MEDIUMLib/mailbox.py622 # This method is for backward compatibility only.COMMENT
MEDIUMLib/ast.py628 # The following code is for backward compatibility.COMMENT
MEDIUMLib/doctest.py153 # Create a new flag unless `name` is already known.STRING
MEDIUMLib/doctest.py676 # Create an Example, and add it to the list.STRING
MEDIUMLib/doctest.py1299 # Create a fake output target for capturing doctest output.STRING
MEDIUMLib/_pylong.py147 # This function implements a divide-and-conquer algorithm that isCOMMENT
MEDIUMLib/_pylong.py231 # This function implements a divide-and-conquer algorithm making useCOMMENT
MEDIUMLib/dataclasses.py381# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMLib/dataclasses.py530 # Create an __annotate__ function for a dataclassCOMMENT
MEDIUMLib/dataclasses.py1203 # Create a comparison function. If the fields in the object areCOMMENT
218 more matches not shown…
Unused Imports759 hits · 682 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.py12CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14CODE
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py16CODE
LOWtools/opcode_metadata/opcodes.py1CODE
LOWtools/opcode_metadata/cpython.py18CODE
LOWtools/opcode_metadata/cpython.py18CODE
LOWtools/opcode_metadata/cpython.py18CODE
LOWtools/opcode_metadata/cpython.py19CODE
LOWtools/opcode_metadata/utils.py4CODE
LOWtools/opcode_metadata/generate_py_opcode_metadata.py10CODE
LOWtools/opcode_metadata/generate_py_opcode_metadata.py13CODE
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.py22CODE
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
699 more matches not shown…
Hallucination Indicators36 hits · 430 pts
SeverityFileLineSnippetContext
CRITICALcrates/vm/src/vm/mod.rs1434 if self.state.config.settings.home.is_some() {CODE
CRITICALcrates/vm/src/vm/mod.rs1440 let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| {CODE
CRITICALcrates/vm/src/vm/mod.rs1627 Some(if self.state.config.settings.stdio_encoding.is_some() {CODE
CRITICALcrates/vm/src/vm/mod.rs1710 || !self.state.config.paths.module_search_paths.is_empty();CODE
CRITICALcrates/vm/src/vm/mod.rs1715 if self.state.config.settings.home.is_some() {CODE
CRITICALcrates/vm/src/vm/mod.rs3314 optimize: self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/vm/compile.rs501 -1 => self.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/builtins.rs211 -1 => vm.state.config.settings.optimize.min(2),CODE
CRITICALcrates/vm/src/stdlib/_imp.rs225 .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string())CODE
CRITICALcrates/vm/src/stdlib/_io.rs5968 && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref()CODE
CRITICALcrates/vm/src/stdlib/marshal.rs663 Ok(self.vm.ctx.exceptions.stop_iteration.to_owned().into())CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs279 vm.state.config.paths.prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs283 vm.state.config.paths.base_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs287 vm.state.config.paths.exec_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs291 vm.state.config.paths.base_exec_prefix.clone()CODE
CRITICAL⚡crates/vm/src/stdlib/sys.rs299 vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm)CODE
CRITICALcrates/vm/src/stdlib/sys.rs664 vm.state.config.paths.base_executable.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs674 vm.state.config.paths.executable.clone()CODE
CRITICALcrates/vm/src/stdlib/sys.rs1429 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.py362 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py373 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICALLib/test/test_urllib2net.py385 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALLib/test/test_urllib2net.py392 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICAL⚡Lib/test/test_lazy_import/__init__.py609 g = test.test_lazy_import.data.pkg.c.get_globals()CODE
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)CODE
CRITICAL⚡Lib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)CODE
CRITICAL⚡Lib/idlelib/idle_test/test_textview.py211 self.assertEqual(self.view.viewframe.textframe.text.get('1.0', '1.end'),CODE
CRITICALsrc/lib.rs255 let program_name = vm.fsdecode(vm.state.config.paths.program_name.clone());CODE
CRITICAL⚡src/interpreter.rs104 vm.state.config.settings.under_pth.is_none()CODE
CRITICAL⚡src/interpreter.rs105 && vm.state.config.paths.stdlib_dir.is_none()CODE
CRITICAL⚡src/interpreter.rs106 && vm.state.config.settings.home.as_deref().is_none_or(|home| {CODE
Cross-File Repetition58 hits · 290 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_external_inspection.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_threading.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_sys.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_import/__init__.py0decorator to skip a test if subinterpreters are not supported.STRING
HIGHLib/test/test_repl.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/test_inspect/test_inspect.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/support/script_helper.py0run a python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.popen. returns a popen STRING
HIGHLib/test/test_profiling/test_heatmap.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGH…ling/test_sampling_profiler/_live_collector_helpers.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGHLib/test/test_profiling/test_sampling_profiler/mocks.py0mock frameinfo for testing. frame format: (filename, location, funcname, opcode) where: - location is a tuple (lineno, eSTRING
HIGHLib/test/test_peg_generator/test_pegen.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_c_parser.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_first_sets.py0start: foo 'e' foo: bar 'a' | 'b' bar: foo 'c' | 'd'STRING
HIGHLib/test/test_peg_generator/test_pegen.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
HIGHLib/test/test_peg_generator/test_c_parser.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
HIGHLib/test/test_peg_generator/test_first_sets.py0start: target '=' target: maybe '+' | name maybe: maybe '-' | targetSTRING
Modern Structural Boilerplate258 hits · 248 pts
SeverityFileLineSnippetContext
LOWcrates/wasm/Lib/browser.py13__all__ = [CODE
LOWcrates/vm/Lib/python_builtins/zipimport.py21__all__ = ['ZipImportError', 'zipimporter']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.py15__all__ = [CODE
LOWLib/lzma.py11__all__ = [CODE
LOWLib/copyreg.py7__all__ = ["pickle", "constructor",CODE
LOWLib/rlcompleter.py41__all__ = ["Completer"]CODE
LOWLib/gzip.py18__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]CODE
LOWLib/trace.py48__all__ = ['Trace', 'CoverageResults']CODE
LOWLib/webbrowser.py12__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]CODE
LOWLib/dis.py24__all__ = ["code_info", "dis", "disassemble", "distb", "disco",CODE
LOWLib/bdb.py11__all__ = ["BdbQuit", "Bdb", "Breakpoint"]CODE
LOWLib/zipapp.py9__all__ = ['ZipAppError', 'create_archive', 'get_interpreter']CODE
LOWLib/cmd.py47__all__ = ["Cmd"]CODE
LOWLib/tty.py7__all__ = ["cfmakeraw", "cfmakecbreak", "setraw", "setcbreak"]CODE
LOWLib/tabnanny.py23__all__ = ["check", "NannyNag", "process_tokens"]CODE
LOWLib/cProfile.py9__all__ = ["run", "runctx", "Profile"]CODE
LOWLib/zipimport.py21__all__ = ['ZipImportError', 'zipimporter']CODE
LOWLib/token.py4__all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF',CODE
LOWLib/textwrap.py10__all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten']CODE
LOWLib/base64.py10__all__ = [CODE
LOWLib/bz2.py7__all__ = ["BZ2File", "BZ2Compressor", "BZ2Decompressor",CODE
LOWLib/_threading_local.py12__all__ = ["local"]CODE
LOWLib/pyclbr.py48__all__ = ["readmodule", "readmodule_ex", "Class", "Function"]CODE
LOWLib/gettext.py51__all__ = ['NullTranslations', 'GNUTranslations', 'Catalog',CODE
LOWLib/wave.py82__all__ = [CODE
LOWLib/weakref.py30__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",CODE
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.py28__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.py33__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.py131__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.py355__all__ = [n for n in globals() if not n.startswith('_')] # for pydocCODE
198 more matches not shown…
Docstring Block Structure31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHLib/ipaddress.py26Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py55Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py84Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHLib/ipaddress.py118Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representatSTRING
HIGHLib/ipaddress.py302Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), STRING
HIGHLib/ipaddress.py438Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded biSTRING
HIGHLib/ipaddress.py468Return prefix length from a numeric string Args: prefixlen_str: The string to be converted STRING
HIGHLib/ipaddress.py493Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converSTRING
HIGHLib/ipaddress.py789Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') STRING
HIGHLib/ipaddress.py864Compare two IP objects. This is only concerned about the comparison of the integer representation of thSTRING
HIGHLib/ipaddress.py922The subnets which join to make the current subnet. In the case that self contains only one IP (self._prSTRING
HIGHLib/ipaddress.py975The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefiSTRING
HIGHLib/ipaddress.py1181Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHLib/ipaddress.py1207Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHLib/ipaddress.py1650Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHLib/ipaddress.py1763Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHLib/ipaddress.py1837Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. STRING
HIGHLib/selectors.py22Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor ReturnsSTRING
HIGHLib/selectors.py101Register a file object. Parameters: fileobj -- file object or file descriptor events -- eventsSTRING
HIGHLib/selectors.py124Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: STRING
HIGHLib/selectors.py142Change a registered file object monitored events or attached data. Parameters: fileobj -- file object oSTRING
HIGHLib/getpass.py69Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: STRING
HIGHLib/test/test_external_inspection.py86 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected STRING
HIGHLib/test/test_external_inspection.py128 Wait for N occurrences of a signal pattern. Args: sock: Connected socket to read from signal_pSTRING
HIGH…/test/test_profiling/test_sampling_profiler/helpers.py42 Wait for expected signal(s) from a socket with proper timeout and EOF handling. Args: sock: Connected STRING
HIGHLib/profiling/sampling/_sync_coordinator.py39 Validate and parse command line arguments. Args: args: Command line arguments including script name STRING
HIGHLib/concurrent/futures/_base.py194An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHLib/concurrent/futures/_base.py425Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHLib/concurrent/futures/_base.py462Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHLib/concurrent/futures/_base.py611Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHLib/concurrent/futures/process.py934Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Redundant / Tautological Comments116 hits · 155 pts
SeverityFileLineSnippetContext
LOWcrates/vm/Lib/python_builtins/zipimport.py307 # Check if there's a comment.COMMENT
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1321 # Set attributes to lazy submodules on the module.COMMENT
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1373 # Check if the module is the name of a directory (and thus a package).COMMENT
LOWscripts/update_lib/deps.py1655 # 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.py136 # Check if it's a direct subclassCOMMENT
LOW⚡Lib/_py_abc.py140 # Check if it's a subclass of a registered class (recursive)COMMENT
LOW⚡Lib/_py_abc.py145 # Check if it's a subclass of a subclass (recursive)COMMENT
LOWLib/zipimport.py307 # Check if there's a comment.COMMENT
LOWLib/pyclbr.py143 # Check if it is a built-in module; we don't do much for these.COMMENT
LOWLib/heapq.py281 # Set childpos to index of smaller child.COMMENT
LOWLib/heapq.py317 # Set childpos to index of larger child.COMMENT
LOW⚡Lib/hashlib.py142 # Check if the context security policy blocks the digest or notSTRING
LOWLib/traceback.py1505 # Check if it worksCOMMENT
LOWLib/traceback.py1826 # Check if attr_name is a descriptor - if so, skip itCOMMENT
LOW⚡Lib/types.py316 # Check if 'func' is a coroutine function.COMMENT
LOW⚡Lib/types.py321 # Check if 'func' is a generator function.COMMENT
LOWLib/pdb.py231 # Open the file each time because the file may be modifiedCOMMENT
LOWLib/pdb.py3002 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWLib/poplib.py232 # Check if the response has enough elementsCOMMENT
LOWLib/plistlib.py676 # Write file headerCOMMENT
LOWLib/_py_warnings.py468 # Check if message is already a Warning objectCOMMENT
LOWLib/_py_warnings.py622 # Print message and contextCOMMENT
LOWLib/_osx_support.py413 # Check if the SDK that is used during compilation actually exists,COMMENT
LOWLib/compileall.py87 # Check if this is a system where ProcessPoolExecutor can function.COMMENT
LOWLib/doctest.py1830 # Check if we should use diff.STRING
LOWLib/doctest.py2227 # Read the file, convert it to a test, and run it.STRING
LOWLib/smtplib.py427 # Check if multiline response.COMMENT
LOWLib/graphlib.py174 # Check if we know about this node (it was added previously using add()COMMENT
LOWLib/tarfile.py1292 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWLib/tarfile.py1577 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWLib/typing.py1295 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWLib/typing.py2129 # Check if the members appears in the class dictionary...COMMENT
LOWLib/tokenize.py390 # Check if the line matches the encoding.COMMENT
LOWLib/ctypes/util.py257 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/util.py429 # Check if the given file is an elf file: gcc can reportCOMMENT
LOWLib/ctypes/__init__.py144 # Check if sizeof(ctypes_type) against struct.calcsize. ThisCOMMENT
LOWLib/unittest/mock.py456 # Check if spec is an async object or functionCOMMENT
LOWLib/test/test_external_inspection.py107 # Check if all expected signals are in bufferCOMMENT
LOWLib/test/pythoninfo.py1259 # Check if the process in running in a containerCOMMENT
LOWLib/test/test_gzip.py204 # Open the file for writing, then close it.STRING
LOWLib/test/test_logging.py6325 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWLib/test/test_pdb.py3669 # Check if the custom prefix appeared in the outputCOMMENT
LOWLib/test/test_difflib.py260 # Check if the problem described in patch #1413711 exists.COMMENT
LOWLib/test/test_type_cache.py33 # Check if global version tag has already overflowed.COMMENT
LOWLib/test/test_typing.py5117 # Check if a dictionary conforms to Dict typeCOMMENT
LOWLib/test/test_typing.py5132 # Check if an instance conforms to the generic classCOMMENT
LOWLib/test/test_typing.py5144 # Check if list conforms to a List subclassCOMMENT
LOWLib/test/test_remote_pdb.py986 # Add commands to the queueCOMMENT
LOWLib/test/test_remote_pdb.py1011 # Check if prompt was sent to clientCOMMENT
56 more matches not shown…
AI Slop Vocabulary78 hits · 151 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.rs1445 /// Definitely reachable outside exception-only paths (b_warm)COMMENT
LOWLib/shutil.py1639 # what file suffixes are executable, so just pass on cmd as-is.COMMENT
MEDIUMLib/trace.py25# Bioreason or Mojam Media be used in advertising or publicity pertaining toCOMMENT
LOWLib/difflib.py1427 # Handle case where no user markup is to be added, just return line ofSTRING
LOWLib/difflib.py1816 # if blank line or context separator, just add it to the output listCOMMENT
LOWLib/difflib.py1821 # if line text doesn't need wrapping, just add it to the output listCOMMENT
LOWLib/ftplib.py405 # then we'll just use anonymous@COMMENT
LOWLib/optparse.py558 # Check all the attributes we just set. There are lots ofCOMMENT
LOWLib/pdb.py3379 # No logic applied whatsoever, just pass the raw reply back.COMMENT
LOWLib/threading.py293 # these override the default implementations (which just callCOMMENT
MEDIUMLib/turtle.py656 """Set focus on canvas (in order to collect key-events)STRING
MEDIUMLib/turtle.py1417 """Set focus on TurtleScreen (in order to collect key-events)STRING
MEDIUMLib/doctest.py1777 # in conjunction with the ELLIPSIS flag.STRING
LOWLib/argparse.py2511 # for regular arguments, just add them back into the listSTRING
LOWLib/dataclasses.py574 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOWLib/dataclasses.py630 # just use the class attribute that contains the default.COMMENT
LOWLib/graphlib.py287# successors, so when backtracking to a shallower level we can just callCOMMENT
LOWLib/tarfile.py1600 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWLib/_pydecimal.py3315 # otherwise, simply return the adjusted exponent of self, as aCOMMENT
LOWLib/ntpath.py593 # just return the old path.COMMENT
LOWLib/test/test_winsound.py19# even *should* play. Instead of guessing, just call the function and assumeCOMMENT
MEDIUMLib/test/test_wsgiref.py554 # Not comprehensive, just a few random header namesCOMMENT
MEDIUMLib/test/test_logging.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
LOWLib/test/test_urllib2.py1238 # required, so just use a dummy one to instantiateCOMMENT
MEDIUMLib/test/test_pdb.py1# A test suite for pdb; not very comprehensive at the moment.COMMENT
MEDIUM⚡Lib/test/test_lzma.py513 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMLib/test/test_decimal.py5897 """The C Context docstrings use 'x' in order to prevent confusionSTRING
MEDIUMLib/test/test_grammar.py1970 # This is not intended to be a comprehensive test, rather just to be fewSTRING
MEDIUMLib/test/test_bytes.py2458 # comprehensive for things like partition, etc.COMMENT
LOWLib/test/test_py_compile.py251 # assert_python_* helpers don't return proc object. We'll just useCOMMENT
LOWLib/test/test_subprocess.py1487 # Subsequent invocations should just return the returncodeSTRING
LOWLib/test/test_subprocess.py1493 # Subsequent invocations should just return the returncodeSTRING
MEDIUMLib/test/test_urllib2net.py35# Connecting to remote hosts is flaky. Make it more robust by retryingCOMMENT
MEDIUMLib/test/test_startfile.py29 # means the test harness provided directory isn't a safe option.COMMENT
MEDIUMLib/test/test_signal.py1397 # a signal is ignored due to the aforementionedSTRING
MEDIUMLib/test/test_socketserver.py54 # Don't raise an exception; it would be caught by the test harness.COMMENT
LOWLib/test/test_unicode_file.py120 # The 'test' functions are unittest entry points, and simply call ourCOMMENT
MEDIUMLib/test/test_c_locale_coercion.py51 # 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.py273 # redirected, simply call the function and let the enclosing functionCOMMENT
LOWLib/test/test_types.py528 # So, just use a sign flagCOMMENT
LOWLib/test/test_multiprocessing_main_handling.py81# so we just use "int" as a passthrough operation belowCOMMENT
MEDIUMLib/test/test_os/test_os.py2527 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
LOWLib/test/test_pyrepl/test_windows_console.py626 # because for simplicity we just useCOMMENT
LOWLib/test/test_unittest/test_loader.py706 # XXX Should this raise a ValueError or just return an empty TestSuite?COMMENT
LOWLib/test/test_unittest/testmock/testmock.py1200 # need to do this because MagicMock.mock_calls used to just returnCOMMENT
MEDIUMLib/test/support/asyncore.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
MEDIUMLib/test/support/asynchat.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
LOWLib/zipfile/__init__.py292 # end-of-archive record, so just return the end record we were given.COMMENT
LOWLib/tkinter/__init__.py4007 # 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.py710 # Essentially static class variablesCOMMENT
LOWLib/profiling/sampling/module_utils.py83 # Fallback: just use the filenameCOMMENT
MEDIUMLib/_pyrepl/reader.py383 # facilitate the tab completion hack implemented forCOMMENT
18 more matches not shown…
Fake / Example Data101 hits · 85 pts
SeverityFileLineSnippetContext
LOWcrates/common/src/compression/zlib.rs888 let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
LOWcrates/common/src/compression/zlib.rs888 let data = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
LOWLib/test/test_xml_etree.py2022 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWLib/test/test_xml_etree.py2188 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOW⚡Lib/test/test_curses.py655 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡Lib/test/test_curses.py658 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')CODE
LOW⚡Lib/test/test_curses.py664 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡Lib/test/test_curses.py674 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py614 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')CODE
LOWLib/test/test_curses.py696 win.addstr(2, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py697 win.addstr(3, 0, 'dolor sit amet')CODE
LOWLib/test/test_curses.py726 win.addstr(0, 0, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py841 win.addstr(2, 1, 'Lorem ipsum')CODE
LOWLib/test/test_curses.py849 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')CODE
LOWLib/test/test_curses.py1949 'Lorem ipsum',CODE
LOWLib/test/test_curses.py1950 'dolor sit amet,',CODE
LOWLib/test/test_imaplib.py1675 typ, data = client.setacl('INBOX', 'John Doe', 'a b')CODE
LOWLib/test/test_imaplib.py1677 self.assertEqual(server.args, ['INBOX', '"John Doe"', '"a b"'])CODE
LOWLib/test/test_imaplib.py1688 typ, data = client.deleteacl('New folder', 'John Doe')CODE
LOWLib/test/test_imaplib.py1690 self.assertEqual(server.args, ['"New folder"', '"John Doe"'])CODE
LOWLib/test/test_ssl.py579 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py586 ('email', 'null@python.org\x00user@example.org'),CODE
LOWLib/test/test_ssl.py600 ('email', 'user@example.org'),CODE
LOW⚡Lib/test/test_urlparse.py450 self.assertEqual(urlparse('mailto:1337@example.org'),CODE
LOW⚡Lib/test/test_urlparse.py451 ('mailto', '', '1337@example.org', '', '', ''))CODE
LOW⚡Lib/test/test_urlparse.py452 self.assertEqual(urlparse('mailto:1337@example.org', missing_as_none=True),CODE
LOW⚡Lib/test/test_urlparse.py453 ('mailto', None, '1337@example.org', None, None, None))CODE
LOWLib/test/test_pickletools.py587 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py591 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py612 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py616 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py628 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py632 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_pickletools.py644 data = ('fake_data',)STRING
LOWLib/test/test_pickletools.py648 11: \x8c SHORT_BINUNICODE 'fake_data' Push a Python Unicode string object.CODE
LOW⚡Lib/test/test_pickletools.py660 data = ('fake_data',)STRING
LOW⚡Lib/test/test_pickletools.py665 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOW⚡Lib/test/test_pickletools.py674 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWLib/test/test_smtplib.py518 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py555 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py584 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py644 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_smtplib.py681 m['From'] = 'foo@bar.com'CODE
LOWLib/test/test_ttk/test_widgets.py351 'placeholder', 'placeholderforeground',CODE
LOWLib/test/test_ttk/test_widgets.py501 'justify', 'placeholder', 'placeholderforeground', 'postcommand',CODE
LOWLib/test/test_ttk/test_widgets.py1314 'placeholder', 'placeholderforeground',CODE
LOW⚡Lib/test/test_tkinter/test_text.py57 text.insert('1.0', 'Lorem ipsum')CODE
LOW⚡Lib/test/test_tkinter/test_text.py58 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py64 self.assertEqual(text.get('1.0', 'end'), '*** Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py67 self.assertEqual(text.get('1.0', 'end'), 'Lorem ipsum\n')CODE
LOW⚡Lib/test/test_tkinter/test_text.py167 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOW⚡Lib/test/test_tkinter/test_text.py167 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOW⚡Lib/test/test_tkinter/test_text.py695 'Lorem ipsum dolor sit amet,\n'CODE
LOW⚡Lib/test/test_tkinter/test_text.py695 'Lorem ipsum dolor sit amet,\n'CODE
LOWLib/test/test_tkinter/test_text.py31 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py31 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py44 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py44 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
LOWLib/test/test_tkinter/test_text.py85 text.insert('1.0', 'Lorem ipsum')CODE
LOWLib/test/test_tkinter/test_text.py97 text.insert('1.0', 'Lorem ipsum\ndolor sit amet')CODE
41 more matches not shown…
Structural Annotation Overuse44 hits · 71 pts
SeverityFileLineSnippetContext
LOWcrates/host_env/src/ssl/config.rs130 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs166 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/host_env/src/ssl/config.rs349 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs460 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOW⚡crates/vm/src/getpath.rs239 // Step 0: Get executable pathCOMMENT
LOW⚡crates/vm/src/getpath.rs246 // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__COMMENT
LOWcrates/vm/src/gc_state.rs538 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs616 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs648 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs684 // Step 5: Split the candidates on what step 4 concluded, and hand theCOMMENT
LOWcrates/vm/src/gc_state.rs789 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs515 // Step 1: Unpack argsCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs518 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs534 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs552 // Step 4: Replace all type variablesCOMMENT
LOW⚡scripts/libc_posix.py189 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOW⚡scripts/libc_posix.py196 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOW⚡scripts/libc_posix.py206 # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}'COMMENT
LOWscripts/libc_posix.py219 # 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.md61## Step 1: Set up the environmentCOMMENT
LOW.github/workflows/upgrade-pylib.md78## Step 2: Determine module nameCOMMENT
LOW.github/workflows/upgrade-pylib.md96## Step 3: Run the upgradeCOMMENT
LOW.github/workflows/upgrade-pylib.md108## Step 4: Verify the resultCOMMENT
LOW.github/workflows/upgrade-pylib.md119## 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 Indicators40 hits · 66 pts
SeverityFileLineSnippetContext
LOWcrates/host_env/src/ssl/config.rs130 // Step 1: Build the appropriate client cert verifier based on settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs166 // Step 2: Create ServerConfig builder once with the selected verifierCOMMENT
LOWcrates/host_env/src/ssl/config.rs349 // Step 1: Build the appropriate verifier based on verification settingsCOMMENT
LOWcrates/host_env/src/ssl/config.rs460 // Step 2: Create ClientConfig builder once with the selected verifierCOMMENT
LOW⚡crates/vm/src/getpath.rs239 // Step 0: Get executable pathCOMMENT
LOW⚡crates/vm/src/getpath.rs246 // Step 1: Check for PYTHONEXECUTABLE / __PYVENV_LAUNCHER__COMMENT
LOWcrates/vm/src/gc_state.rs538 // Step 1: Gather objects from generations 0..=generationCOMMENT
LOWcrates/vm/src/gc_state.rs616 // Step 3: Subtract internal referencesCOMMENT
LOWcrates/vm/src/gc_state.rs648 // Step 4: Find reachable objects (gc_refs > 0) and traverse from themCOMMENT
LOWcrates/vm/src/gc_state.rs684 // Step 5: Split the candidates on what step 4 concluded, and hand theCOMMENT
LOWcrates/vm/src/gc_state.rs789 // Step 6: Finalize unreachable objects and handle resurrectionCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs515 // Step 1: Unpack argsCOMMENT
LOW⚡crates/vm/src/builtins/genericalias.rs518 // Step 2: Call __typing_prepare_subst__ on each parameterCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs534 // Step 3: Extract final arg itemsCOMMENT
LOWcrates/vm/src/builtins/genericalias.rs552 // Step 4: Replace all type variablesCOMMENT
LOW⚡scripts/libc_posix.py189 # Step 1: Get all OS contants that we do want from upstreamCOMMENT
LOW⚡scripts/libc_posix.py196 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`COMMENT
LOW⚡scripts/libc_posix.py206 # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}'COMMENT
LOWscripts/libc_posix.py219 # 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/test/test_curses.py1260 # range may be restricted, so we need to check if the limit is stillCOMMENT
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
AI Structural Patterns75 hits · 61 pts
SeverityFileLineSnippetContext
LOWLib/tempfile.py612CODE
LOWLib/tempfile.py685CODE
LOWLib/tempfile.py767CODE
LOWLib/lzma.py279CODE
LOWLib/trace.py391CODE
LOWLib/dis.py908CODE
LOWLib/textwrap.py112CODE
LOWLib/functools.py630CODE
LOWLib/subprocess.py991CODE
LOWLib/pydoc.py1371CODE
LOWLib/ftplib.py711CODE
LOWLib/optparse.py1161CODE
LOWLib/pdb.py499CODE
LOWLib/configparser.py656CODE
LOWLib/reprlib.py51CODE
LOWLib/compileall.py48CODE
LOWLib/compileall.py132CODE
LOWLib/_pydatetime.py1790CODE
LOWLib/_pydatetime.py2084CODE
LOWLib/tarfile.py1037CODE
LOWLib/tarfile.py1806CODE
LOWLib/ssl.py744CODE
LOWLib/_pydecimal.py3872CODE
LOWLib/_pycodecs.py1455CODE
LOWLib/unittest/main.py66CODE
LOWLib/unittest/mock.py446CODE
LOWLib/unittest/mock.py465CODE
LOWLib/unittest/mock.py1154CODE
LOWLib/test/test_pdb.py5089CODE
LOWLib/test/test_faulthandler.py108CODE
LOWLib/test/test_decimal.py4332CODE
LOWLib/test/test_code.py850CODE
LOWLib/test/test_remote_pdb.py88CODE
LOWLib/test/mock_socket.py54CODE
LOWLib/test/test_ssl.py284CODE
LOWLib/test/test_ssl.py325CODE
LOWLib/test/test_ssl.py2979CODE
LOWLib/test/test_graphlib.py254CODE
LOWLib/test/test_embed.py1004CODE
LOWLib/test/test_regrtest.py649CODE
LOWLib/test/test_inspect/test_inspect.py1355CODE
LOWLib/test/test_zipfile/test_core.py905CODE
LOWLib/test/test_zoneinfo/data/update_test_data.py99CODE
LOWLib/test/test_asyncio/test_tasks.py939CODE
LOWLib/test/test_asyncio/test_tasks.py1800CODE
LOWLib/urllib/request.py1043CODE
LOWLib/urllib/request.py1058CODE
LOWLib/tkinter/__init__.py4186CODE
LOWLib/tkinter/__init__.py4209CODE
LOWLib/json/__init__.py119CODE
LOWLib/json/__init__.py184CODE
LOWLib/json/encoder.py105CODE
LOWLib/http/cookiejar.py885CODE
LOWLib/xmlrpc/server.py800CODE
LOWLib/xmlrpc/client.py492CODE
LOWLib/xmlrpc/client.py1395CODE
LOWLib/idlelib/rpc.py609CODE
LOWLib/idlelib/debugger_r.py303CODE
LOWLib/idlelib/debugobj_r.py17CODE
LOWLib/idlelib/debugobj_r.py32CODE
15 more matches not shown…
Overly Generic Function Names108 hits · 51 pts
SeverityFileLineSnippetContext
LOWLib/socketserver.py273 def handle_request(self):CODE
LOWLib/contextlib.py366 def helper(*args, **kwds):CODE
LOWLib/contextlib.py399 def helper(*args, **kwds):CODE
LOWLib/test/test_unparse.py954 def test_function(self):CODE
LOWLib/test/test_gc.py228 def test_function(self):CODE
LOWLib/test/test_logging.py2186 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.py721def do_something():CODE
LOWLib/test/test_pdb.py53 >>> def test_function(foo, bar):STRING
LOWLib/test/test_pdb.py98 >>> def test_function():STRING
LOWLib/test/test_pdb.py234 >>> def test_function():STRING
LOWLib/test/test_pdb.py365 >>> def test_function():STRING
LOWLib/test/test_pdb.py416 >>> def test_function():STRING
LOWLib/test/test_pdb.py441 >>> def test_function():STRING
LOWLib/test/test_pdb.py487 >>> def test_function():STRING
LOWLib/test/test_pdb.py520 >>> def test_function():STRING
LOWLib/test/test_pdb.py642 >>> def test_function():STRING
LOWLib/test/test_pdb.py668 >>> def test_function():STRING
LOWLib/test/test_pdb.py689 >>> def test_function():STRING
LOWLib/test/test_pdb.py743 >>> def test_function():STRING
LOWLib/test/test_pdb.py770 1 def test_function():STRING
LOWLib/test/test_pdb.py816 ... def do_something():STRING
LOWLib/test/test_pdb.py834 >>> def test_function():STRING
LOWLib/test/test_pdb.py867 >>> def test_function():STRING
LOWLib/test/test_pdb.py937 >>> def test_function():STRING
LOWLib/test/test_pdb.py1009 >>> def test_function():STRING
LOWLib/test/test_pdb.py1094 >>> def test_function():STRING
LOWLib/test/test_pdb.py1115 >>> def test_function():STRING
LOWLib/test/test_pdb.py1133 >>> def test_function():STRING
LOWLib/test/test_pdb.py1190 >>> def test_function():STRING
LOWLib/test/test_pdb.py1286 >>> def test_function():STRING
LOWLib/test/test_pdb.py1368 >>> def test_function():STRING
LOWLib/test/test_pdb.py1422 >>> def test_function():STRING
LOWLib/test/test_pdb.py1495 >>> def test_function():STRING
LOWLib/test/test_pdb.py1528 >>> def test_function():STRING
LOWLib/test/test_pdb.py1560 >>> def test_function():STRING
LOWLib/test/test_pdb.py1635 >>> def test_function():STRING
LOWLib/test/test_pdb.py1687 >>> def test_function():STRING
LOWLib/test/test_pdb.py1724 1 def test_function():STRING
LOWLib/test/test_pdb.py1754 >>> def test_function():STRING
LOWLib/test/test_pdb.py1824 >>> def test_function():STRING
LOWLib/test/test_pdb.py1912 >>> def test_function():STRING
LOWLib/test/test_pdb.py2005 >>> def test_function():STRING
LOWLib/test/test_pdb.py2069 >>> def test_function():STRING
LOWLib/test/test_pdb.py2134 >>> def test_function():STRING
LOWLib/test/test_pdb.py2166 >>> def test_function():STRING
LOWLib/test/test_pdb.py2228 >>> def test_function():STRING
LOWLib/test/test_pdb.py2281 >>> def test_function():STRING
LOWLib/test/test_pdb.py2336 >>> def test_function():STRING
LOWLib/test/test_pdb.py2397 >>> def test_function():STRING
LOWLib/test/test_pdb.py2450 >>> def test_function():STRING
LOWLib/test/test_pdb.py2515 >>> def test_function():STRING
LOWLib/test/test_pdb.py2553 >>> def test_function():STRING
LOWLib/test/test_pdb.py2612 >>> def test_function():STRING
LOWLib/test/test_pdb.py2648 >>> def test_function():STRING
LOWLib/test/test_pdb.py2693 >>> def test_function():STRING
LOWLib/test/test_pdb.py2739 >>> def test_function():STRING
LOWLib/test/test_pdb.py2769 >>> def test_function():STRING
LOWLib/test/test_pdb.py2805 >>> def test_function():STRING
48 more matches not shown…
Dead Code30 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMLib/test/test_fractions.py175CODE
MEDIUMLib/test/test_threading.py2493CODE
MEDIUMLib/test/test_itertools.py2440CODE
MEDIUMLib/test/test_array.py1172CODE
MEDIUMLib/test/test_generators.py577CODE
MEDIUMLib/test/test_generators.py588CODE
MEDIUMLib/test/test_exceptions.py1865CODE
MEDIUMLib/test/test_compile.py906CODE
MEDIUMLib/test/test_set.py21CODE
MEDIUMLib/test/test_set.py1109CODE
MEDIUMLib/test/test_deque.py16CODE
MEDIUMLib/test/test_sys_settrace.py2762CODE
MEDIUMLib/test/test_yield_from.py203CODE
MEDIUMLib/test/test_yield_from.py204CODE
MEDIUMLib/test/test_yield_from.py205CODE
MEDIUMLib/test/test_asyncgen.py417CODE
MEDIUMLib/test/test_asyncgen.py450CODE
MEDIUMLib/test/test_asyncgen.py587CODE
MEDIUMLib/test/test_asyncgen.py868CODE
MEDIUMLib/test/test_asyncgen.py996CODE
MEDIUMLib/test/test_asyncgen.py2046CODE
MEDIUMLib/test/test_asyncgen.py2067CODE
MEDIUMLib/test/test_asyncgen.py2091CODE
MEDIUMLib/test/test_asyncgen.py837CODE
MEDIUMLib/test/test_asyncgen.py911CODE
MEDIUMLib/test/test_builtin.py1453CODE
MEDIUMLib/test/test_dict.py291CODE
MEDIUMLib/test/dtracedata/call_stack.py15CODE
MEDIUMLib/test/test_unittest/test_async_case.py362CODE
MEDIUMextra_tests/snippets/stdlib_itertools.py629CODE
Slop Phrases13 hits · 28 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.py1750 # make sure to always test gc.enable()STRING
LOWLib/test/_test_multiprocessing.py1520 q.join_thread() # make sure to join the feeder threadCODE
MEDIUMLib/test/test_logging.py425# level values which do not fit into these limitations, you can use aCOMMENT
LOWLib/test/test_tempfile.py2141 # platforms, but don't forget to update the docs.COMMENT
LOWLib/test/test_tempfile.py2141 # platforms, but don't forget to update the docs.COMMENT
LOWLib/test/test_bigmem.py45# - Don't forget to test for large indices, offsets and results and such,COMMENT
MEDIUM⚡Lib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
LOWLib/_pyrepl/fancycompleter.py177 # sort the words now to make sure to return completions inCOMMENT
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.rs101 // TODO: implement more informational, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/dict.rs321 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs178 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs185 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/builtins/set.rs1831 // TODO: implement more detailed, non-recursive Debug formatterCOMMENT
LOWcrates/vm/src/stdlib/_io.rs2816 // TODO: implement legit fast-paths for other encodingsCOMMENT
LOWLib/test/test_smtplib.py1285 #TODO: add tests for correct AUTH method fallback now that theCOMMENT
LOW⚡Lib/test/test_tkinter/test_text.py690 # TODO: Add test for elide=TrueCOMMENT
LOWLib/test/test_tkinter/test_text.py628 # TODO: Add test for elide=TrueCOMMENT
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.py334 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHLib/imaplib.py1398 # 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