Repository Analysis

RustPython/RustPython

A Python Interpreter written in Rust

12.6 Low AI signal View on GitHub
12.6
Adjusted Score
12.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
22,085
Stars
Rust
Language
1,183,653
Lines of Code
2677
Files
14099
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 28HIGH 470MEDIUM 777LOW 12824

Pattern Findings

14099 matches across 20 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers9583 hits · 7248 pts
SeverityFileLineSnippet
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py483def _call_with_frames_removed(f, *args, **kwds):
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py504 def _requires_builtin_wrapper(self, fullname):
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py878def _load_backward_compatible(spec):
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1557def _install_external_importers():
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1534def _get_supported_file_loaders():
LOWscripts/dis_dump.py195 def _metadata_cache_slot_offsets(inst):
LOWscripts/whats_left.py345 def method_incompatibility_reason(typ, method_name, real_method_value):
LOWscripts/update_lib/deps.py245def clear_import_graph_caches() -> None:
LOWscripts/update_lib/deps.py1317def _parse_test_submodule_imports(content: str) -> dict[str, set[str]]:
LOWscripts/update_lib/deps.py1521def _get_lib_modules_importing(
LOWscripts/update_lib/deps.py1602def find_dependent_tests_tree(
LOWscripts/update_lib/cmd_auto_mark.py253def _expand_stripped_to_children(
LOWscripts/update_lib/cmd_auto_mark.py620def strip_reasonless_expected_failures(
LOWscripts/update_lib/cmd_deps.py276def _format_dependent_tests_tree(
LOWscripts/update_lib/tests/test_deps.py29 def test_from_test_dot_module(self):
LOWscripts/update_lib/tests/test_deps.py47 def test_regular_imports_ignored(self):
LOWscripts/update_lib/tests/test_deps.py57 def test_syntax_error_returns_empty(self):
LOWscripts/update_lib/tests/test_deps.py67 def test_auto_detect_py_module(self):
LOWscripts/update_lib/tests/test_deps.py167 def test_transitive_data_dependency(self):
LOWscripts/update_lib/tests/test_deps.py238 def test_syntax_error_returns_empty(self):
LOWscripts/update_lib/tests/test_deps.py244 def test_relative_import_skipped(self):
LOWscripts/update_lib/tests/test_deps.py316 def test_identical_directories(self):
LOWscripts/update_lib/tests/test_auto_mark.py655 def test_partial_children_fail_marks_children(self):
LOWscripts/update_lib/tests/test_auto_mark.py660 def test_child_with_own_override_not_consolidated(self):
LOWscripts/update_lib/tests/test_auto_mark.py665 def test_strip_then_consolidate_restores_parent_marker(self):
LOWscripts/update_lib/tests/test_auto_mark.py69 def test_parse_fail_and_error(self):
LOWscripts/update_lib/tests/test_auto_mark.py260 def test_collect_unexpected_successes(self):
LOWscripts/update_lib/tests/test_auto_mark.py272 def test_module_prefix_filtering(self):
LOWscripts/update_lib/tests/test_auto_mark.py296 def test_collect_init_module_matching(self):
LOWscripts/update_lib/tests/test_auto_mark.py726 def test_filters_across_classes(self):
LOWscripts/update_lib/tests/test_auto_mark.py865 def test_auto_mark_directory_crashed_run(self):
LOWscripts/update_lib/tests/test_auto_mark.py938 def test_stripped_markers_restored_when_crash(self):
LOWscripts/update_lib/tests/test_auto_mark.py1037 def test_stripped_markers_restored_when_crash(self):
LOWscripts/update_lib/tests/test_auto_mark.py645 def test_all_children_fail_marks_parent_with_message(self):
LOWscripts/update_lib/tests/test_auto_mark.py85 def test_parse_unexpected_success(self):
LOWscripts/update_lib/tests/test_auto_mark.py103 def test_parse_crashed_run_no_tests_result(self):
LOWscripts/update_lib/tests/test_auto_mark.py119 def test_parse_crashed_run_has_unexpected_success(self):
LOWscripts/update_lib/tests/test_auto_mark.py131 def test_parse_error_messages(self):
LOWscripts/update_lib/tests/test_auto_mark.py161 def test_parse_directory_test_multiple_submodules(self):
LOWscripts/update_lib/tests/test_auto_mark.py198 def test_parse_multiline_test_with_docstring(self):
LOWscripts/update_lib/tests/test_auto_mark.py232 def test_collect_failures_and_error_messages(self):
LOWscripts/update_lib/tests/test_auto_mark.py330 def test_extract_syntax_error_returns_empty(self):
LOWscripts/update_lib/tests/test_auto_mark.py335 def test_remove_comment_before(self):
LOWscripts/update_lib/tests/test_auto_mark.py348 def test_remove_inline_comment(self):
LOWscripts/update_lib/tests/test_auto_mark.py359 def test_remove_super_call_method(self):
LOWscripts/update_lib/tests/test_auto_mark.py372 def test_remove_async_super_call_override(self):
LOWscripts/update_lib/tests/test_auto_mark.py392 def test_remove_with_comment_after(self):
LOWscripts/update_lib/tests/test_auto_mark.py407 def test_no_removal_without_comment(self):
LOWscripts/update_lib/tests/test_auto_mark.py421 def test_strip_reason_formats(self):
LOWscripts/update_lib/tests/test_auto_mark.py464 def test_strip_with_comment_after(self):
LOWscripts/update_lib/tests/test_auto_mark.py479 def test_strip_super_call_override(self):
LOWscripts/update_lib/tests/test_auto_mark.py519 def test_no_strip_without_comment(self):
LOWscripts/update_lib/tests/test_auto_mark.py532 def test_mixed_with_and_without_reason(self):
LOWscripts/update_lib/tests/test_auto_mark.py575 def test_child_with_own_override_excluded(self):
LOWscripts/update_lib/tests/test_auto_mark.py597 def test_apply_removes_unexpected_success(self):
LOWscripts/update_lib/tests/test_auto_mark.py627 def test_apply_with_error_message(self):
LOWscripts/update_lib/tests/test_auto_mark.py801 def test_auto_mark_file_crashed_run(self):
LOWscripts/update_lib/tests/test_auto_mark.py838 def test_auto_mark_file_no_results_at_all_raises(self):
LOWscripts/update_lib/tests/test_auto_mark.py909 def test_auto_mark_directory_no_results_raises(self):
LOWscripts/update_lib/tests/test_auto_mark.py985 def test_stripped_markers_removed_when_complete_run(self):
9523 more matches not shown…
Cross-Language Confusion275 hits · 1536 pts
SeverityFileLineSnippet
HIGHLib/code.py276 more = self.push(line)
HIGHLib/numbers.py53## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But,
HIGHLib/locale.py1737 print('Language: ', lang or '(undefined)')
HIGHLib/locale.py1738 print('Encoding: ', enc or '(undefined)')
HIGHLib/locale.py1746 print(' Language: ', lang or '(undefined)')
HIGHLib/locale.py1747 print(' Encoding: ', enc or '(undefined)')
HIGHLib/locale.py1763 print(' Language: ', lang or '(undefined)')
HIGHLib/locale.py1764 print(' Encoding: ', enc or '(undefined)')
HIGHLib/test/test_poplib.py80 self.push('-ERR unrecognized POP3 command "%s".' %cmd)
HIGHLib/test/test_poplib.py86 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')
HIGHLib/test/test_poplib.py90 self.push(arg)
HIGHLib/test/test_poplib.py94 self.push("-ERR no such user")
HIGHLib/test/test_poplib.py95 self.push('+OK password required')
HIGHLib/test/test_poplib.py99 self.push("-ERR wrong password")
HIGHLib/test/test_poplib.py100 self.push('+OK 10 messages')
HIGHLib/test/test_poplib.py103 self.push('+OK 10 100')
HIGHLib/test/test_poplib.py107 self.push('+OK %s %s' % (arg, arg))
HIGHLib/test/test_poplib.py109 self.push('+OK')
HIGHLib/test/test_poplib.py110 asynchat.async_chat.push(self, LIST_RESP)
HIGHLib/test/test_poplib.py115 self.push('+OK %s bytes' %len(RETR_RESP))
HIGHLib/test/test_poplib.py116 asynchat.async_chat.push(self, RETR_RESP)
HIGHLib/test/test_poplib.py121 self.push('+OK message marked for deletion.')
HIGHLib/test/test_poplib.py124 self.push('+OK done nothing.')
HIGHLib/test/test_poplib.py127 self.push('+OK done nothing.')
HIGHLib/test/test_poplib.py130 self.push('+OK done nothing.')
HIGHLib/test/test_poplib.py133 self.push('+OK closing.')
HIGHLib/test/test_poplib.py143 self.push('+OK Capability list follows')
HIGHLib/test/test_poplib.py149 self.push(' '.join(_ln))
HIGHLib/test/test_poplib.py150 self.push('.')
HIGHLib/test/test_poplib.py153 self.push('+OK I know RFC6856'
HIGHLib/test/test_poplib.py161 self.push('+OK Begin TLS negotiation')
HIGHLib/test/test_poplib.py59 self.push('+OK dummy pop3 server ready. <timestamp>')
HIGHLib/test/test_poplib.py175 self.push('-ERR Command not permitted when TLS active')
HIGHLib/test/test_poplib.py434 self.push('+OK dummy pop3 server ready. <timestamp>')
HIGHLib/test/test_gettext.py530 f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2')
HIGHLib/test/test_gettext.py536 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py536 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py542 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py542 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py548 f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2')
HIGHLib/test/test_gettext.py554 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py554 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')
HIGHLib/test/test_gettext.py560 f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3')
HIGHLib/test/test_gettext.py566 f = gettext.c2py('n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5')
HIGHLib/test/test_gettext.py511 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2')
HIGHLib/test/test_contextlib.py756 stack.push(_expect_ok)
HIGHLib/test/test_contextlib.py759 stack.push(cm)
HIGHLib/test/test_contextlib.py761 stack.push(_suppress_exc)
HIGHLib/test/test_contextlib.py764 stack.push(cm)
HIGHLib/test/test_contextlib.py766 stack.push(_expect_exc)
HIGHLib/test/test_contextlib.py768 stack.push(_expect_exc)
HIGHLib/test/test_contextlib.py837 stack.push(lambda *exc: False)
HIGHLib/test/test_contextlib.py842 stack.push(lambda *exc: True)
HIGHLib/test/test_contextlib.py1010 stack.push(suppress_exc)
HIGHLib/test/test_contextlib.py1082 stack.push(suppress_exc)
HIGHLib/test/test_contextlib.py1089 stack.push(lambda *exc: True)
HIGHLib/test/test_contextlib.py1090 stack.push(lambda *exc: 1/0)
HIGHLib/test/test_contextlib.py1091 stack.push(lambda *exc: {}[1])
HIGHLib/test/test_contextlib.py941 stack.push(suppress_exc)
HIGHLib/test/test_contextlib.py1107 stack.push(cm)
215 more matches not shown…
Deep Nesting1236 hits · 1062 pts
SeverityFileLineSnippet
LOWtools/opcode_metadata/utils.py70
LOWcrates/wasm/Lib/_microdistlib.py13
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py429
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py736
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py848
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py914
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1243
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1401
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py1509
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py304
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py560
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py101
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py826
LOWcrates/vm/Lib/core_modules/copyreg.py112
LOWcrates/vm/Lib/core_modules/codecs.py457
LOWcrates/vm/Lib/core_modules/codecs.py537
LOWscripts/dis_dump.py142
LOWscripts/dis_dump.py188
LOWscripts/dis_dump.py335
LOWscripts/crawl_sourcecode.py29
LOWscripts/whats_left.py334
LOWscripts/check_redundant_patches.py38
LOWscripts/compare_bytecode.py67
LOWscripts/compare_bytecode.py295
LOWscripts/compare_bytecode.py385
LOWscripts/generate_checklist.py44
LOWscripts/generate_checklist.py156
LOWscripts/update_lib/deps.py1129
LOWscripts/update_lib/deps.py1255
LOWscripts/update_lib/deps.py1317
LOWscripts/update_lib/deps.py1364
LOWscripts/update_lib/deps.py1448
LOWscripts/update_lib/cmd_auto_mark.py87
LOWscripts/update_lib/cmd_auto_mark.py175
LOWscripts/update_lib/cmd_auto_mark.py291
LOWscripts/update_lib/cmd_auto_mark.py479
LOWscripts/update_lib/cmd_auto_mark.py548
LOWscripts/update_lib/cmd_auto_mark.py620
LOWscripts/update_lib/cmd_auto_mark.py842
LOWscripts/update_lib/cmd_deps.py332
LOWscripts/update_lib/patch_spec.py217
LOWscripts/update_lib/patch_spec.py254
LOWscripts/update_lib/patch_spec.py332
LOWscripts/update_lib/patch_spec.py142
LOWscripts/update_lib/cmd_todo.py450
LOWscripts/update_lib/cmd_migrate.py80
LOWscripts/update_lib/cmd_quick.py76
LOWscripts/update_lib/cmd_quick.py325
LOWLib/shutil.py137
LOWLib/shutil.py229
LOWLib/shutil.py283
LOWLib/shutil.py409
LOWLib/shutil.py493
LOWLib/shutil.py545
LOWLib/shutil.py733
LOWLib/shutil.py810
LOWLib/shutil.py876
LOWLib/shutil.py992
LOWLib/shutil.py1064
LOWLib/shutil.py1557
1176 more matches not shown…
Decorative Section Separators342 hits · 895 pts
SeverityFileLineSnippet
MEDIUMscripts/update_lib/cmd_auto_mark.py184 # ======================================================================
MEDIUMscripts/update_lib/cmd_auto_mark.py186 # ----------------------------------------------------------------------
MEDIUMscripts/update_lib/cmd_auto_mark.py191 # ======================================================================
MEDIUMLib/heapq.py412# ==============================================
MEDIUMLib/heapq.py442# -----------------------------------------------
MEDIUMLib/heapq.py462# ----------------------
MEDIUMLib/heapq.py469# ----------------------
MEDIUMLib/numbers.py50## ----------------
MEDIUMLib/random.py203 ## -------------------------------------------------------
MEDIUMLib/random.py277 ## --------------------------------------------------------
MEDIUMLib/random.py889## ------------------------------------------------------------------
MEDIUMLib/random.py930# ----------------------------------------------------------------------
MEDIUMLib/random.py964## ------------------------------------------------------
MEDIUMLib/random.py1005## ------------------------------------------------------
MEDIUMLib/random.py1012# ------------------------------------------------------
MEDIUMLib/argparse.py773# =====================
MEDIUMLib/argparse.py775# =====================
MEDIUMLib/argparse.py1471 # ====================
MEDIUMLib/argparse.py1473 # ====================
MEDIUMLib/argparse.py1482 # ==================================
MEDIUMLib/argparse.py1484 # ==================================
MEDIUMLib/argparse.py2740 # =====================
MEDIUMLib/argparse.py2742 # =====================
MEDIUMLib/argparse.py105# =============================
MEDIUMLib/argparse.py107# =============================
MEDIUMLib/argparse.py156# ===============
MEDIUMLib/argparse.py158# ===============
MEDIUMLib/argparse.py209 # ===============================
MEDIUMLib/argparse.py211 # ===============================
MEDIUMLib/argparse.py261 # ========================
MEDIUMLib/argparse.py263 # ========================
MEDIUMLib/argparse.py305 # =======================
MEDIUMLib/argparse.py307 # =======================
MEDIUMLib/argparse.py825# ==============
MEDIUMLib/argparse.py827# ==============
MEDIUMLib/argparse.py1334# ==============
MEDIUMLib/argparse.py1336# ==============
MEDIUMLib/argparse.py1395# ===========================
MEDIUMLib/argparse.py1397# ===========================
MEDIUMLib/argparse.py1502 # =======================
MEDIUMLib/argparse.py1504 # =======================
MEDIUMLib/argparse.py1929 # =======================
MEDIUMLib/argparse.py1931 # =======================
MEDIUMLib/argparse.py1944 # ==================================
MEDIUMLib/argparse.py1946 # ==================================
MEDIUMLib/argparse.py2000 # =====================================
MEDIUMLib/argparse.py2002 # =====================================
MEDIUMLib/argparse.py2563 # ========================
MEDIUMLib/argparse.py2565 # ========================
MEDIUMLib/argparse.py2595 # ========================
MEDIUMLib/argparse.py2597 # ========================
MEDIUMLib/argparse.py2695 # =======================
MEDIUMLib/argparse.py2697 # =======================
MEDIUMLib/argparse.py2762 # ===============
MEDIUMLib/argparse.py2764 # ===============
MEDIUMLib/_pylong.py562# -----------------
MEDIUMLib/_pylong.py595# ------------
MEDIUMLib/_pylong.py656# ------------------------
MEDIUMLib/tarfile.py145#---------------------------------------------------------
MEDIUMLib/tarfile.py147#---------------------------------------------------------
282 more matches not shown…
Cross-File Repetition166 hits · 830 pts
SeverityFileLineSnippet
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py0return the path to the source file as found by the finder.
HIGH…s/vm/Lib/python_builtins/_frozen_importlib_external.py0return the path to the source file as found by the finder.
HIGHLib/importlib/_bootstrap_external.py0return the path to the source file as found by the finder.
HIGHLib/importlib/_bootstrap_external.py0return the path to the source file as found by the finder.
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 matchi
HIGHLib/importlib/_bootstrap_external.py0find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi
HIGHLib/importlib/metadata/__init__.py0find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi
HIGHcrates/vm/Lib/core_modules/codecs.py0inherit all other methods from the underlying stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0inherit all other methods from the underlying stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0inherit all other methods from the underlying stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHLib/codecs.py0inherit all other methods from the underlying stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0return the next decoded line from the input stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0return the next decoded line from the input stream.
HIGHcrates/vm/Lib/core_modules/codecs.py0return the next decoded line from the input stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHLib/codecs.py0return the next decoded line from the input stream.
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_auto_mark.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_patch_spec.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHscripts/update_lib/tests/test_migrate.py0import unittest class testfoo(unittest.testcase): def test_one(self): pass
HIGHLib/lzma.py0return the file descriptor for the underlying file.
HIGHLib/bz2.py0return the file descriptor for the underlying file.
HIGHLib/compression/zstd/_zstdfile.py0return the file descriptor for the underlying file.
HIGHLib/lzma.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/bz2.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/compression/zstd/_zstdfile.py0return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e
HIGHLib/lzma.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/bz2.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/compression/zstd/_zstdfile.py0read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0remove the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0replace the keyed message; raise keyerror if it doesn't exist.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
HIGHLib/mailbox.py0return a message representation or raise a keyerror.
106 more matches not shown…
Excessive Try-Catch Wrapping616 hits · 700 pts
SeverityFileLineSnippet
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1529 except Exception:
LOWcrates/stdlib/src/_opcode.rs308 except Exception as ex:
LOWwasm/tests/conftest.py106 except Exception as e:
MEDIUMwasm/tests/conftest.py107 print(f"Error waiting for page to load: {e}")
LOWscripts/dis_dump.py103 except Exception:
LOWscripts/dis_dump.py183 except Exception:
LOWscripts/dis_dump.py192 except Exception as e:
LOWscripts/dis_dump.py331 except Exception as e:
MEDIUMscripts/dis_dump.py89def _unescape(m):
LOWscripts/whats_left.py122 except Exception as e:
LOWscripts/whats_left.py257 except Exception as e:
LOWscripts/find_eq.py82 except Exception as e:
LOWscripts/compare_bytecode.py120 except Exception:
MEDIUMscripts/compare_bytecode.py441 print("Error: %s" % exc, file=sys.stderr)
MEDIUMscripts/compare_bytecode.py444 print("Error: RustPython binary not found.", file=sys.stderr)
MEDIUMscripts/compare_bytecode.py449 print("Error: disassembler helper not found: %s" % DIS_DUMP, file=sys.stderr)
MEDIUMscripts/compare_bytecode.py460 print("Error: --sample must be >= 1", file=sys.stderr)
MEDIUMscripts/compare_bytecode.py471 print("Error: no Python files matched", file=sys.stderr)
LOWscripts/update_lib/deps.py233 except Exception:
LOWscripts/update_lib/deps.py1148 except Exception:
LOWscripts/update_lib/deps.py1398 except Exception:
LOWscripts/update_lib/deps.py1438 except Exception:
LOWscripts/update_lib/deps.py1474 except Exception:
LOWscripts/update_lib/deps.py1514 except Exception:
MEDIUMscripts/update_lib/deps.py61def visit_ImportFrom(self, node):
MEDIUMscripts/update_lib/cmd_auto_mark.py1039 print(f"Error: {e}", file=sys.stderr)
LOWscripts/update_lib/cmd_deps.py457 except Exception as e:
MEDIUMscripts/update_lib/cmd_deps.py458 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_copy_lib.py103 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_copy_lib.py106 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_patches.py101 print(f"Error: {e}", file=sys.stderr)
LOWscripts/update_lib/cmd_todo.py697 except Exception as e:
MEDIUMscripts/update_lib/cmd_todo.py698 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_migrate.py141 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_migrate.py144 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_quick.py462 print(f"Error: {e}", file=sys.stderr)
MEDIUMscripts/update_lib/cmd_quick.py465 print(f"Error: {e}", file=sys.stderr)
LOWscripts/update_lib/cmd_quick.py467 except Exception as e:
MEDIUMscripts/update_lib/cmd_quick.py472 print(f"Error: {e}", file=sys.stderr)
LOWLib/shutil.py105 except Exception as err:
LOWLib/shutil.py147 except Exception as err:
LOWLib/shutil.py196 except Exception as err:
LOWLib/pkgutil.py80 except Exception:
LOWLib/rlcompleter.py158 except Exception:
LOWLib/zipimport.py621 except Exception:
LOWLib/zipimport.py669 except Exception:
MEDIUMLib/zipimport.py346def _read_directory(archive):
LOWLib/wave.py405 except Exception:
LOWLib/weakref.py567 except Exception:
LOWLib/traceback.py1071 except Exception as e:
LOWLib/traceback.py1304 except Exception:
LOWLib/traceback.py1618 except Exception:
LOWLib/traceback.py1626 except Exception:
LOWLib/traceback.py1649 except Exception:
MEDIUMLib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)
MEDIUMLib/pydoc.py636def repr_instance(self, x, level):
LOWLib/pydoc.py993 except Exception:
LOWLib/pydoc.py1039 except Exception:
LOWLib/pydoc.py1486 except Exception:
LOWLib/pydoc.py2704 except Exception as exc:
556 more matches not shown…
Over-Commented Block669 hits · 626 pts
SeverityFileLineSnippet
LOWdeny.toml1# This template contains all of the possible sections and their default values
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets in
LOWdeny.toml41#exclude = []
LOWdeny.toml61
LOWdeny.toml101 "BSD-3-Clause",
LOWdeny.toml121# The package spec the clarification applies to
LOWdeny.toml141# One or more private registries that you might publish crates to, if a crate
LOWdeny.toml161highlight = "all"
LOWdeny.toml181 #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] },
LOWdeny.toml221]
LOWpdc.sh1
LOWcrates/sre_engine/benches/benches.rs21 let state = State::default();
LOWcrates/sre_engine/benches/benches.rs41 // START GENERATED by generate_tests.py
LOWcrates/sre_engine/benches/benches.rs61 // START GENERATED by generate_tests.py
LOWcrates/sre_engine/src/string.rs221/// UTF-8-like encoding).
LOWcrates/compiler-core/src/bytecode.rs761 ///
LOWcrates/compiler-core/src/bytecode/oparg.rs121 }
LOWcrates/compiler-core/src/bytecode/oparg.rs141/// Each variant is assigned a value using one of two forms:
LOWcrates/compiler-core/src/bytecode/oparg.rs161/// }
LOWcrates/compiler-core/src/bytecode/oparg.rs301 };
LOWcrates/compiler-core/src/bytecode/oparg.rs321 /// Converts by calling `str(<value>)`.
LOWcrates/compiler-core/src/bytecode/oparg.rs561 Self::NotEqual => "!=",
LOWcrates/compiler-core/src/bytecode/oparg.rs581 /// - [_PyEval_BinaryOps](https://github.com/python/cpython/blob/8183fa5e3f78ca6ab862de7fb8b14f3d929421e0/Python/cev
LOWcrates/compiler-core/src/bytecode/oparg.rs641impl BinaryOperator {
LOWcrates/literal/src/escape.rs41/// Represents string types that can be escape-printed.
LOWcrates/host_env/src/crt_fd.rs161 /// # Safety
LOWcrates/host_env/src/crt_fd_unsupported.rs101 ///
LOWcrates/wasm/src/lib.rs81 ///
LOWcrates/wasm/src/lib.rs101 /// ```
LOWcrates/codegen/src/ir.rs5161///
LOWcrates/codegen/src/string_parser.rs181 // # ^ ^^ ^
LOWcrates/derive/src/lib.rs21/// - `module`: the module which contains the class -- can be omitted if in a `#[pymodule]`.
LOWcrates/derive/src/lib.rs41///
LOWcrates/derive/src/lib.rs61/// The last parameter can optionally be of the type `&VirtualMachine` to access the VM.
LOWcrates/derive/src/lib.rs81/// ```rust, ignore
LOWcrates/derive/src/lib.rs101/// This helps inherit attributes from a parent class.
LOWcrates/derive/src/lib.rs121/// Note that associated functions that are annotated with `#[pymethod]` or similar **must**
LOWcrates/derive/src/lib.rs141 let item = parse_macro_input!(item);
LOWcrates/derive/src/lib.rs161/// mod submodule {
LOWcrates/derive/src/lib.rs181/// #[pymodule]
LOWcrates/derive/src/lib.rs201/// ```
LOWcrates/derive/src/lib.rs221///
LOWcrates/derive/src/lib.rs241/// Attribute macro for struct sequence Data structs.
LOWcrates/derive/src/lib.rs301/// use `#[pytraverse(skip)]` on fields you wish not to trace
LOWcrates/common/src/float_ops.rs21/// # Examples
LOWcrates/common/src/linked_list.rs1// spell-checker:disable
LOWcrates/common/src/linked_list.rs21//!
LOWcrates/common/src/linked_list.rs61
LOWcrates/common/src/linked_list.rs101/// `PhantomPinned` field.
LOWcrates/common/src/linked_list.rs181 // }
LOWcrates/common/src/linked_list.rs221 pub const fn is_empty(&self) -> bool {
LOWcrates/common/src/boxvec.rs221 ///
LOWcrates/common/src/boxvec.rs261 }
LOWcrates/common/src/lock.rs81/// Must only be called from the single-threaded child process immediately
LOWcrates/common/src/lock.rs101
LOWcrates/common/src/rand.rs1/// Get `N` bytes of random data.
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py141
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py241 # -> importlib._bootstrap._ModuleLock.acquire
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py261 self.owner = None
LOWcrates/vm/Lib/python_builtins/_frozen_importlib.py281 #
609 more matches not shown…
Unused Imports637 hits · 590 pts
SeverityFileLineSnippet
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py2
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py4
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py7
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py10
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py11
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py13
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py14
LOWtools/opcode_metadata/generate_rs_opcode_metadata.py16
LOWtools/opcode_metadata/opcodes.py1
LOWtools/opcode_metadata/cpython.py17
LOWtools/opcode_metadata/cpython.py17
LOWtools/opcode_metadata/cpython.py17
LOWtools/opcode_metadata/cpython.py18
LOWtools/opcode_metadata/utils.py4
LOWtools/opcode_metadata/generate_py_opcode_metadata.py12
LOWtools/opcode_metadata/generate_py_opcode_metadata.py15
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py1
LOWcrates/wasm/Lib/browser.py10
LOWcrates/wasm/Lib/browser.py10
LOWcrates/vm/Lib/core_modules/codecs.py16
LOWcrates/vm/Lib/core_modules/codecs.py1125
LOWcrates/doc/generate.py2
LOWcrates/doc/generate.py17
LOWwasm/demo/snippets/import_pypi.py4
LOWexamples/call_between_rust_and_python.py1
LOWscripts/make_ssl_data_rs.py20
LOWscripts/update_lib/deps.py17
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/__init__.py5
LOWscripts/update_lib/patch_spec.py16
LOWscripts/update_lib/file_utils.py13
LOWLib/_pyio.py19
LOWLib/_pyio.py19
LOWLib/_pyio.py19
LOWLib/lzma.py28
LOWLib/lzma.py29
LOWLib/lzma.py29
LOWLib/dis.py8
LOWLib/tty.py5
LOWLib/signal.py2
LOWLib/weakref.py12
577 more matches not shown…
Self-Referential Comments222 hits · 544 pts
SeverityFileLineSnippet
MEDIUMtools/opcode_metadata/generate_py_opcode_metadata.py45# This file is generated by {script_path}
MEDIUMcrates/vm/Lib/python_builtins/_frozen_importlib.py233 # Create an RLock for protecting the import process for the
MEDIUMcrates/vm/Lib/python_builtins/_frozen_importlib.py695 # This function is meant for use in _setup().
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py762 """This method is deprecated."""
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1153# This class is actually exposed publicly in a namespace package's __loader__
MEDIUM…s/vm/Lib/python_builtins/_frozen_importlib_external.py1510 # This function is used by PyImport_ExecCodeModuleObject().
MEDIUMscripts/update_lib/tests/test_deps.py154 # Create the dependency file
MEDIUMscripts/update_lib/tests/test_deps.py264 # Create a module that imports another module
MEDIUMscripts/update_lib/tests/test_deps.py269 # Create the imported modules
MEDIUMscripts/update_lib/tests/test_deps.py283 # Create a module that imports itself (circular)
MEDIUMscripts/update_lib/tests/test_deps.py301 # Create a module that imports nonexistent module
MEDIUMscripts/update_lib/tests/test_quick.py275 # Create a fake test file with Lib/test structure
MEDIUMLib/_pyio.py273# Define a default pure-Python implementation for open_code()
MEDIUMLib/ipaddress.py1485 """This class represents and manipulates 32-bit IPv4 network + addresses..
MEDIUMLib/ipaddress.py2279 """This class represents and manipulates 128-bit IPv6 networks.
MEDIUMLib/webbrowser.py702 # Create an NSURL object representing the URL
MEDIUMLib/_compat_pickle.py1# This module is used to map the old Python 2 names to the new names used in
MEDIUMLib/bdb.py894 # The following methods can be called by clients to use
MEDIUMLib/bdb.py945 # This method is more useful to debug a single function call.
MEDIUMLib/zipapp.py134 # Create the list of files to add to the archive now, in case
MEDIUMLib/base64.py434# The following code is originally taken (with permission) from Mercurial
MEDIUMLib/gettext.py13# This module represents the integration of work, contributions, feedback, and
MEDIUMLib/modulefinder.py649 # Create the module finder and turn its crank
MEDIUMLib/subprocess.py1998 # This method is called (indirectly) by __del__, so it cannot
MEDIUMLib/subprocess.py2206 # This method is called from the _communicate_with_*() methods
MEDIUMLib/code.py162 # This method is being overwritten in
MEDIUMLib/pydoc.py802 # Create a link for methods like 'self.method(...)'
MEDIUMLib/types.py318 # The following code is primarily to support functions that
MEDIUMLib/pdb.py254 """This method is called when there is the remote possibility
MEDIUMLib/pdb.py263 """This function is called when we stop or break at this line."""
MEDIUMLib/pdb.py297 """This function is called when a return trap is set here."""
MEDIUMLib/pdb.py305 """This function is called if an exception occurs,
MEDIUMLib/threading.py147 """This class implements reentrant lock objects.
MEDIUMLib/threading.py330 # This method is called only if _lock doesn't have _is_owned().
MEDIUMLib/threading.py460 """This class implements semaphore objects.
MEDIUMLib/threading.py1309 # Create a local namespace to ensure that variables remain alive
MEDIUMLib/threading.py1553# Create the main thread object,
MEDIUMLib/platform.py9# This module is maintained by Marc-Andre Lemburg <mal@egenix.com>.
MEDIUMLib/inspect.py29# This module is in the public domain. No warranties.
MEDIUMLib/_opcode_metadata.py1# This file is generated by tools/opcode_metadata/generate_py_opcode_metadata.py
MEDIUMLib/annotationlib.py167 # Create a new locals dict if necessary,
MEDIUMLib/fractions.py183 """This class implements rational numbers.
MEDIUMLib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined here
MEDIUMLib/mailbox.py615 # This method is for backward compatibility only.
MEDIUMLib/ast.py592 # The following code is for backward compatibility.
MEDIUMLib/doctest.py154 # Create a new flag unless `name` is already known.
MEDIUMLib/doctest.py682 # Create an Example, and add it to the list.
MEDIUMLib/doctest.py1279 # Create a fake output target for capturing doctest output.
MEDIUMLib/_pylong.py147 # This function implements a divide-and-conquer algorithm that is
MEDIUMLib/_pylong.py231 # This function implements a divide-and-conquer algorithm making use
MEDIUMLib/dataclasses.py388# This function is used instead of exposing Field creation directly,
MEDIUMLib/dataclasses.py537 # Create an __annotate__ function for a dataclass
MEDIUMLib/dataclasses.py1190 # Create a comparison function. If the fields in the object are
MEDIUMLib/dataclasses.py1218 # Create a class doc-string.
MEDIUMLib/dataclasses.py1350 # Create a new dict for our new class.
MEDIUMLib/dataclasses.py1807 # Create the new object, which calls __init__() and
MEDIUMLib/graphlib.py77 # Create the node -> predecessor edges
MEDIUMLib/graphlib.py81 # Create the predecessor -> node edges
MEDIUMLib/tarfile.py1128 # Create a pax extended header if necessary.
MEDIUMLib/tarfile.py2334 # Create a TarInfo object from the file.
162 more matches not shown…
Hallucination Indicators28 hits · 325 pts
SeverityFileLineSnippet
CRITICALcrates/vm/src/frame.rs8552 let object_new = vm.ctx.types.object_type.slots.new.load();
CRITICALcrates/vm/src/frame.rs8554 let object_alloc = vm.ctx.types.object_type.slots.alloc.load();
CRITICALcrates/vm/src/class.rs191 let object_new = ctx.types.object_type.slots.new.load();
CRITICALcrates/vm/src/builtins/float.rs549 context.types.float_type.slots.vectorcall.store(Some(vectorcall_float));
CRITICALcrates/vm/src/builtins/object.rs604 ctx.types.object_type.slots.alloc.store(Some(generic_alloc));
CRITICALcrates/vm/src/vm/mod.rs789 let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| {
CRITICALcrates/vm/src/vm/mod.rs937 let encoding = self.state.config.settings.stdio_encoding.as_deref();
CRITICALcrates/vm/src/vm/mod.rs948 Some(if self.state.config.settings.stdio_encoding.is_some() {
CRITICALcrates/vm/src/vm/mod.rs1032 || !self.state.config.paths.module_search_paths.is_empty();
CRITICALcrates/vm/src/stdlib/_imp.rs179 .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string())
CRITICALcrates/vm/src/stdlib/_io.rs5239 && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref()
CRITICALcrates/vm/src/stdlib/marshal.rs426 Ok(self.0.ctx.exceptions.stop_iteration.to_owned().into())
CRITICALcrates/vm/src/stdlib/sys.rs263 vm.state.config.paths.prefix.clone()
CRITICALcrates/vm/src/stdlib/sys.rs267 vm.state.config.paths.base_prefix.clone()
CRITICALcrates/vm/src/stdlib/sys.rs271 vm.state.config.paths.exec_prefix.clone()
CRITICALcrates/vm/src/stdlib/sys.rs275 vm.state.config.paths.base_exec_prefix.clone()
CRITICALcrates/vm/src/stdlib/sys.rs283 vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm)
CRITICALcrates/vm/src/stdlib/sys.rs635 vm.state.config.paths.base_executable.clone()
CRITICALcrates/vm/src/stdlib/sys.rs645 vm.state.config.paths.executable.clone()
CRITICALcrates/stdlib/src/syslog.rs28 if let Some(argv) = vm.state.config.settings.argv.first()
CRITICALLib/test/test_urllib2net.py383 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
CRITICALLib/test/test_urllib2net.py394 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
CRITICALLib/test/test_urllib2net.py406 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
CRITICALLib/test/test_urllib2net.py413 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
CRITICALLib/test/test_asyncio/test_proactor_events.py816 self.proactor.recv.return_value.add_done_callback.assert_called_with(
CRITICALLib/test/test_asyncio/test_proactor_events.py825 self.proactor.recv.return_value.add_done_callback.assert_called_with(
CRITICALLib/xml/dom/expatbuilder.py316 self.document.doctype.entities._seq.append(node)
CRITICALLib/xml/dom/expatbuilder.py322 self.document.doctype.notations._seq.append(node)
Docstring Block Structure27 hits · 135 pts
SeverityFileLineSnippet
HIGHLib/ipaddress.py29Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py58Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py87Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHLib/ipaddress.py121Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat
HIGHLib/ipaddress.py305Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'),
HIGHLib/ipaddress.py441Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi
HIGHLib/ipaddress.py471Return prefix length from a numeric string Args: prefixlen_str: The string to be converted
HIGHLib/ipaddress.py496Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver
HIGHLib/ipaddress.py792Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28')
HIGHLib/ipaddress.py867Compare two IP objects. This is only concerned about the comparison of the integer representation of th
HIGHLib/ipaddress.py925The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr
HIGHLib/ipaddress.py978The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi
HIGHLib/ipaddress.py1184Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str.
HIGHLib/ipaddress.py1210Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R
HIGHLib/ipaddress.py1649Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns:
HIGHLib/ipaddress.py1762Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse.
HIGHLib/ipaddress.py1836Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address.
HIGHLib/selectors.py22Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns
HIGHLib/selectors.py101Register a file object. Parameters: fileobj -- file object or file descriptor events -- events
HIGHLib/selectors.py124Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns:
HIGHLib/selectors.py142Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o
HIGHLib/getpass.py30Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default:
HIGHLib/concurrent/futures/_base.py200An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos
HIGHLib/concurrent/futures/_base.py429Return the result of the call that the future represents. Args: timeout: The number of seconds to w
HIGHLib/concurrent/futures/_base.py464Return the exception raised by the call that the future represents. Args: timeout: The number of se
HIGHLib/concurrent/futures/_base.py584Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume
HIGHLib/concurrent/futures/process.py814Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume
AI Slop Vocabulary67 hits · 134 pts
SeverityFileLineSnippet
LOWpdc.sh10# If you want to customize it or adapt the checks, just add or remove it from/ to the ACTIONS
MEDIUMcrates/codegen/src/ir.rs1291 /// Definitely reachable outside exception-only paths (b_warm)
MEDIUMcrates/vm/src/builtins/str.rs1656// icu4x crates are robust but CPython's capitalize() is NOT so we can skip the extra allocs.
MEDIUMcrates/stdlib/src/ssl/compat.rs1315 // This is more robust than just checking made_progress, because:
LOWLib/shutil.py1625 # what file suffixes are executable, so just pass on cmd as-is.
MEDIUMLib/trace.py25# Bioreason or Mojam Media be used in advertising or publicity pertaining to
LOWLib/difflib.py1413 # Handle case where no user markup is to be added, just return line of
LOWLib/difflib.py1780 # if blank line or context separator, just add it to the output list
LOWLib/difflib.py1785 # if line text doesn't need wrapping, just add it to the output list
LOWLib/ftplib.py405 # then we'll just use anonymous@
LOWLib/optparse.py565 # Check all the attributes we just set. There are lots of
LOWLib/threading.py299 # these override the default implementations (which just call
MEDIUMLib/doctest.py1750 # in conjunction with the ELLIPSIS flag.
LOWLib/argparse.py2367 # for regular arguments, just add them back into the list
LOWLib/dataclasses.py581 # via object.__setattr__. Otherwise, just use a simple
LOWLib/dataclasses.py637 # just use the class attribute that contains the default.
LOWLib/tarfile.py1541 # Normally, we could just use "utf-8" as the encoding and "strict"
LOWLib/_pydecimal.py3309 # otherwise, simply return the adjusted exponent of self, as a
LOWLib/ntpath.py591 # just return the old path.
LOWLib/test/test_winsound.py19# even *should* play. Instead of guessing, just call the function and assume
MEDIUMLib/test/test_wsgiref.py444 # Not comprehensive, just a few random header names
MEDIUMLib/test/test_logging.py8# not be used in advertising or publicity pertaining to distribution
LOWLib/test/test_urllib2.py1148 # required, so just use a dummy one to instantiate
MEDIUMLib/test/test_lzma.py516 # Test robust handling of non-LZMA data following the compressed stream(s).
MEDIUMLib/test/test_os.py2219 # We spawn a new process to make the test more robust (if getrlimit()
MEDIUMLib/test/test_decimal.py5880 """The C Context docstrings use 'x' in order to prevent confusion
MEDIUMLib/test/test_grammar.py1977 # This is not intended to be a comprehensive test, rather just to be few
MEDIUMLib/test/test_bytes.py2244 # comprehensive for things like partition, etc.
LOWLib/test/test_py_compile.py249 # assert_python_* helpers don't return proc object. We'll just use
LOWLib/test/test_subprocess.py1414 # Subsequent invocations should just return the returncode
LOWLib/test/test_subprocess.py1420 # Subsequent invocations should just return the returncode
MEDIUMLib/test/test_urllib2net.py35# Connecting to remote hosts is flaky. Make it more robust by retrying
MEDIUMLib/test/test_signal.py1391 # a signal is ignored due to the aforementioned
MEDIUMLib/test/test_socketserver.py52 # Don't raise an exception; it would be caught by the test harness.
LOWLib/test/test_unicode_file.py120 # The 'test' functions are unittest entry points, and simply call our
MEDIUMLib/test/test_c_locale_coercion.py49 # TODO: Work out a robust dynamic test for this that doesn't rely on
LOWLib/test/test_long.py1242 # nonnegative second argument: round(x, n) should just return x
LOWLib/test/test_argparse.py172 # redirected, simply call the function and let the enclosing function
LOWLib/test/test_types.py526 # So, just use a sign flag
LOWLib/test/test_multiprocessing_main_handling.py81# so we just use "int" as a passthrough operation below
LOWLib/test/test_unittest/test_loader.py671 # XXX Should this raise a ValueError or just return an empty TestSuite?
LOWLib/test/test_unittest/testmock/testmock.py1200 # need to do this because MagicMock.mock_calls used to just return
MEDIUMLib/test/support/asyncore.py20# Rushing not be used in advertising or publicity pertaining to
MEDIUMLib/test/support/asynchat.py20# Rushing not be used in advertising or publicity pertaining to
LOWLib/zipfile/__init__.py292 # end-of-archive record, so just return the end record we were given.
LOWLib/tkinter/__init__.py3854 # right. Instead just set the command to build a list of triples
MEDIUMLib/xml/dom/minicompat.py18# defproperty -- function used in conjunction with GetattrMagic;
MEDIUMLib/xml/etree/ElementPath.py37# pertaining to distribution of the software without specific, written
MEDIUMLib/xml/etree/__init__.py19# pertaining to distribution of the software without specific, written
MEDIUMLib/xml/etree/ElementInclude.py31# pertaining to distribution of the software without specific, written
MEDIUMLib/xml/etree/ElementTree.py60# pertaining to distribution of the software without specific, written
MEDIUMLib/http/cookies.py12# pertaining to distribution of the software without specific, written
MEDIUMLib/http/server.py690 # Essentially static class variables
MEDIUMLib/_pyrepl/reader.py304 # facilitate the tab completion hack implemented for
MEDIUMLib/xmlrpc/client.py76# pertaining to distribution of the software without specific, written
LOWLib/asyncio/streams.py720 # bytes. So just call self.read(self._limit) until EOF.
LOWLib/asyncio/base_events.py2024 # All other places just add them to ready.
LOWLib/asyncio/graph.py143 # just return.
MEDIUMLib/logging/config.py8# not be used in advertising or publicity pertaining to distribution
LOWLib/logging/config.py516 # Ideally, we would have wanted to simply use strict type checking
7 more matches not shown…
Redundant / Tautological Comments75 hits · 106 pts
SeverityFileLineSnippet
LOW…s/vm/Lib/python_builtins/_frozen_importlib_external.py1378 # Check if the module is the name of a directory (and thus a package).
LOWscripts/update_lib/deps.py1653 # Check if it's a test file
LOWscripts/update_lib/cmd_auto_mark.py661 # Check if there's a reason (on either the decorator or before)
LOWscripts/update_lib/cmd_auto_mark.py759 # Check if test run failed entirely (e.g., import error, crash)
LOWscripts/update_lib/cmd_auto_mark.py892 # Check if test run failed entirely (e.g., import error, crash)
LOWscripts/update_lib/cmd_deps.py305 # Check if module is up-to-date
LOWscripts/update_lib/cmd_deps.py363 # Check if it's a valid module
LOWscripts/update_lib/cmd_todo.py203 # Check if file belongs to a tracked module
LOWscripts/update_lib/cmd_todo.py215 # Check if this is a hard_dep of a tracked module
LOWscripts/update_lib/cmd_todo.py219 # Check if exists in local lib
LOWscripts/update_lib/cmd_todo.py352 # Check if corresponding lib is up-to-date
LOWscripts/update_lib/cmd_quick.py251 # Check if there are staged changes
LOWLib/dis.py584 # Set argval to the dereferenced value of the argument when
LOWLib/_py_abc.py131 # Check if it's a direct subclass
LOWLib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)
LOWLib/_py_abc.py140 # Check if it's a subclass of a subclass (recursive)
LOWLib/zipimport.py358 # Check if there's a comment.
LOWLib/pyclbr.py143 # Check if it is a built-in module; we don't do much for these.
LOWLib/heapq.py281 # Set childpos to index of smaller child.
LOWLib/heapq.py317 # Set childpos to index of larger child.
LOWLib/traceback.py1360 # Check if it works
LOWLib/types.py304 # Check if 'func' is a coroutine function.
LOWLib/types.py309 # Check if 'func' is a generator function.
LOWLib/poplib.py230 # Check if the response has enough elements
LOWLib/plistlib.py683 # Write file header
LOWLib/_py_warnings.py446 # Check if message is already a Warning object
LOWLib/_py_warnings.py566 # Print message and context
LOWLib/_osx_support.py412 # Check if the SDK that is used during compilation actually exists,
LOWLib/compileall.py87 # Check if this is a system where ProcessPoolExecutor can function.
LOWLib/doctest.py1803 # Check if we should use diff.
LOWLib/doctest.py2200 # Read the file, convert it to a test, and run it.
LOWLib/smtplib.py427 # Check if multiline response.
LOWLib/graphlib.py174 # Check if we know about this node (it was added previously using add()
LOWLib/tarfile.py1233 # Check if one of the fields contains surrogate characters and thereby
LOWLib/tarfile.py1518 # Check if the pax header contains a hdrcharset field. This tells us
LOWLib/typing.py1249 # Check if any base that occurs after us in `bases` is either itself a
LOWLib/typing.py2068 # Check if the members appears in the class dictionary...
LOWLib/tokenize.py389 # Check if the line matches the encoding.
LOWLib/ctypes/util.py256 # Check if the given file is an elf file: gcc can report
LOWLib/ctypes/util.py429 # Check if the given file is an elf file: gcc can report
LOWLib/ctypes/__init__.py149 # Check if sizeof(ctypes_type) against struct.calcsize. This
LOWLib/unittest/mock.py456 # Check if spec is an async object or function
LOWLib/test/test_gzip.py204 # Open the file for writing, then close it.
LOWLib/test/test_logging.py6246 # Set level to NOTSET and ensure caches are empty
LOWLib/test/test_difflib.py258 # Check if the problem described in patch #1413711 exists.
LOWLib/test/test_type_cache.py32 # Check if global version tag has already overflowed.
LOWLib/test/test_typing.py4934 # Check if a dictionary conforms to Dict type
LOWLib/test/test_typing.py4949 # Check if an instance conforms to the generic class
LOWLib/test/test_typing.py4961 # Check if list conforms to a List subclass
LOWLib/test/test_http_cookies.py104 # Check if the cookie is loaded correctly
LOWLib/test/test_io.py3387 # Check if the BOM is written only once (see issue1753).
LOWLib/test/test_compile.py1398 # Check if bytecode containing jumps that simply point to the next line
LOWLib/test/test_annotationlib.py2351 # Check if the passed in mutable arguments equal the originals
LOWLib/test/test_memoryio.py849 bytearray(state[0]) # Check if state[0] supports the buffer interface.
LOWLib/test/test_codecs.py2931 # Check if the BOM is written only once
LOWLib/test/test_ctypes/test_c_simple_type_meta.py346 # Check if PyCPointerType.__init__() caches a pointer type
LOWLib/test/test_ctypes/test_c_simple_type_meta.py368 # Check if PyCPointerType.__init__() caches a pointer type
LOWLib/test/test_zipfile/test_core.py2931 # Read the file completely to definitely call any eof integrity
LOWLib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock init
LOWLib/test/test_sqlite3/test_types.py352 # Check if the stripping of colnames works. Everything after the first
15 more matches not shown…
Verbosity Indicators51 hits · 94 pts
SeverityFileLineSnippet
LOWcrates/vm/src/getpath.rs111 // Step 0: Get executable path
LOWcrates/vm/src/getpath.rs118 // Step 1: Check for __PYVENV_LAUNCHER__ environment variable
LOWcrates/vm/src/getpath.rs134 // Step 2: Check for venv (pyvenv.cfg) and get 'home'
LOWcrates/vm/src/getpath.rs138 // Step 3: Check for build directory
LOWcrates/vm/src/getpath.rs141 // Step 4: Calculate prefix via landmark search
LOWcrates/vm/src/getpath.rs145 // Step 5: Set prefix and base_prefix
LOWcrates/vm/src/getpath.rs159 // Step 6: Calculate exec_prefix
LOWcrates/vm/src/getpath.rs168 // Step 7: Calculate base_executable (if not already set by __PYVENV_LAUNCHER__)
LOWcrates/vm/src/getpath.rs173 // Step 8: Build module_search_paths
LOWcrates/vm/src/getpath.rs177 // Step 9: Calculate stdlib_dir
LOWcrates/vm/src/gc_state.rs412 // Step 1: Gather objects from generations 0..=generation
LOWcrates/vm/src/gc_state.rs454 // Step 2: Build gc_refs map (copy reference counts)
LOWcrates/vm/src/gc_state.rs461 // Step 3: Subtract internal references
LOWcrates/vm/src/gc_state.rs486 // Step 4: Find reachable objects (gc_refs > 0) and traverse from them
LOWcrates/vm/src/gc_state.rs516 // Step 5: Find unreachable objects
LOWcrates/vm/src/gc_state.rs572 // Step 6: Finalize unreachable objects and handle resurrection
LOWcrates/vm/src/builtins/genericalias.rs461 // Step 1: Unpack args
LOWcrates/vm/src/builtins/genericalias.rs464 // Step 2: Call __typing_prepare_subst__ on each parameter
LOWcrates/vm/src/builtins/genericalias.rs480 // Step 3: Extract final arg items
LOWcrates/vm/src/builtins/genericalias.rs498 // Step 4: Replace all type variables
LOWcrates/stdlib/src/ssl.rs4122 // Step 1: Send our close_notify if not already sent
LOWcrates/stdlib/src/ssl.rs4162 // Step 2: Try to read and process peer's close_notify
LOWcrates/stdlib/src/ssl.rs4317 // Step 3: Check again if peer has sent close_notify (non-blocking/BIO mode only)
LOWcrates/stdlib/src/ssl/compat.rs495 // Step 1: Build the appropriate client cert verifier based on settings
LOWcrates/stdlib/src/ssl/compat.rs528 // Step 2: Create ServerConfig builder once with the selected verifier
LOWcrates/stdlib/src/ssl/compat.rs672 // Step 1: Build the appropriate verifier based on verification settings
LOWcrates/stdlib/src/ssl/compat.rs766 // Step 2: Create ClientConfig builder once with the selected verifier
LOWscripts/libc_posix.py190 # Step 1: Get all OS contants that we do want from upstream
LOWscripts/libc_posix.py197 # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}`
LOWscripts/libc_posix.py207 # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}'
LOWscripts/libc_posix.py220 # Step 4: Build output
LOWscripts/update_lib/cmd_quick.py115 # Step 1: Migrate
LOWscripts/update_lib/cmd_quick.py157 # Step 2: Auto-mark
LOWscripts/update_lib/cmd_quick.py449 # Step 3: Git commit
LOWLib/encodings/idna.py68 # Step 1: try ASCII
LOWLib/encodings/idna.py82 # Step 2: nameprep
LOWLib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is false
LOWLib/encodings/idna.py86 # Step 4: try ASCII
LOWLib/encodings/idna.py100 # Step 5: Check ACE prefix
LOWLib/encodings/idna.py105 # Step 6: Encode with PUNYCODE
LOWLib/encodings/idna.py108 # Step 7: Prepend ACE prefix
LOWLib/encodings/idna.py111 # Step 8: Check size
LOWLib/encodings/idna.py130 # Step 1: Check for ASCII
LOWLib/encodings/idna.py141 # Step 2: Perform nameprep
LOWLib/encodings/idna.py149 # Step 3: Check for ACE prefix
LOWLib/encodings/idna.py154 # Step 4: Remove ACE prefix
LOWLib/encodings/idna.py157 # Step 5: Decode using PUNYCODE
LOWLib/encodings/idna.py164 # Step 6: Apply ToASCII
LOWLib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3
LOWLib/encodings/idna.py173 # Step 8: return the result of step 5
LOWLib/email/header.py399 # Step 1: Normalize the chunks so that all runs of identical charsets
Dead Code27 hits · 52 pts
SeverityFileLineSnippet
MEDIUMLib/test/test_fractions.py175
MEDIUMLib/test/test_itertools.py2446
MEDIUMLib/test/test_array.py1094
MEDIUMLib/test/test_generators.py580
MEDIUMLib/test/test_generators.py591
MEDIUMLib/test/test_exceptions.py1836
MEDIUMLib/test/test_compile.py908
MEDIUMLib/test/test_set.py21
MEDIUMLib/test/test_set.py1115
MEDIUMLib/test/test_deque.py16
MEDIUMLib/test/test_yield_from.py203
MEDIUMLib/test/test_yield_from.py204
MEDIUMLib/test/test_yield_from.py205
MEDIUMLib/test/test_asyncgen.py417
MEDIUMLib/test/test_asyncgen.py450
MEDIUMLib/test/test_asyncgen.py587
MEDIUMLib/test/test_asyncgen.py868
MEDIUMLib/test/test_asyncgen.py996
MEDIUMLib/test/test_asyncgen.py2055
MEDIUMLib/test/test_asyncgen.py2076
MEDIUMLib/test/test_asyncgen.py2100
MEDIUMLib/test/test_asyncgen.py837
MEDIUMLib/test/test_asyncgen.py911
MEDIUMLib/test/test_builtin.py1352
MEDIUMLib/test/test_dict.py292
MEDIUMLib/test/dtracedata/call_stack.py15
MEDIUMLib/test/test_unittest/test_async_case.py362
Overly Generic Function Names38 hits · 32 pts
SeverityFileLineSnippet
LOWLib/socketserver.py276 def handle_request(self):
LOWLib/contextlib.py304 def helper(*args, **kwds):
LOWLib/contextlib.py337 def helper(*args, **kwds):
LOWLib/test/test_unparse.py922 def test_function(self):
LOWLib/test/test_gc.py228 def test_function(self):
LOWLib/test/test_logging.py2155 def handle_request(self, request):
LOWLib/test/test_with.py44 def helper(*args, **kwds):
LOWLib/test/test_marshal.py19 def helper(self, sample, *extra):
LOWLib/test/test_os.py2519 def helper(self):
LOWLib/test/test_functools.py2162 def test_function(x):
LOWLib/test/test_annotationlib.py102 def test_function(self):
LOWLib/test/test_annotationlib.py261 def test_function(self):
LOWLib/test/test_type_annotations.py351 def test_function(self):
LOWLib/test/test_tokenize.py622 def test_function(self):
LOWLib/test/test_tokenize.py2632 def test_function(self):
LOWLib/test/profilee.py55def helper():
LOWLib/test/test_xmlrpc.py657 def my_function():
LOWLib/test/test_xmlrpc.py688 def my_function():
LOWLib/test/test_compiler_codegen.py70 def test_function(self):
LOWLib/test/test_urllib2_localnet.py160 def handle_request(self, request_handler):
LOWLib/test/test_regrtest.py2088 def my_function():
LOWLib/test/test_warnings/__init__.py2083 def test_function(self):
LOWLib/test/test_unittest/test_break.py82 def test_function():
LOWLib/test/test_unittest/test_break.py113 def test_function():
LOWLib/test/test_unittest/test_break.py125 def test_function():
LOWLib/test/test_unittest/test_break.py155 def test_function():
LOWLib/test/test_unittest/_test_warnings.py44 def test_function(self):
LOWLib/test/test_unittest/testmock/testhelpers.py750 def test_function(self):
LOWLib/test/test_unittest/testmock/testthreadingmock.py206 def test_function():
LOWLib/test/test_unittest/testmock/testthreadingmock.py226 def test_function(thread_id):
LOWLib/test/test_unittest/testmock/testthreadingmock.py252 def test_function(thread_id):
LOWLib/test/test_unittest/testmock/testthreadingmock.py276 def test_function(thread_id):
LOWLib/test/support/_hypothesis_stubs/__init__.py25 def test_function(self):
LOWLib/test/test_concurrent_futures/executor.py18 def my_method(self):
LOWLib/multiprocessing/managers.py229 def handle_request(self, conn):
LOWLib/xmlrpc/server.py680 def handle_request(self, request_text=None):
LOWextra_tests/test_snippets.py71 def test_function(self):
LOWextra_tests/snippets/stdlib_sys_getframe.py10def test_function():
Slop Phrases10 hits · 24 pts
SeverityFileLineSnippet
MEDIUM.github/actions/install-macos-deps/action.yml12# repository before you can use this action.
MEDIUM.github/actions/install-linux-deps/action.yml12# repository before you can use this action.
MEDIUMLib/heapq.py267# you can use it.
LOWLib/quopri.py91 # Don't forget to include the soft line break `=' sign in the
MEDIUMLib/ntpath.py400# XXX With COMMAND.COM you can use any characters in a variable name,
LOWLib/test/test_gc.py1660 # make sure to always test gc.enable()
LOWLib/test/_test_multiprocessing.py1368 q.join_thread() # make sure to join the feeder thread
MEDIUMLib/test/test_logging.py411# level values which do not fit into these limitations, you can use a
LOWLib/test/test_bigmem.py45# - Don't forget to test for large indices, offsets and results and such,
MEDIUMLib/test/test_unittest/testmock/testmagicmethods.py533 # Check if you can change behaviour of magic methods in MagicMock init
Fake / Example Data26 hits · 15 pts
SeverityFileLineSnippet
LOWLib/test/test_smtplib.py518 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py555 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py584 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py644 m['From'] = 'foo@bar.com'
LOWLib/test/test_smtplib.py681 m['From'] = 'foo@bar.com'
LOWLib/test/test_dataclasses/__init__.py2291 self.assertEqual(C.__doc__, "Lorem ipsum")
LOWLib/test/test_dataclasses/__init__.py2288 """Lorem ipsum"""
LOWLib/test/test_email/test_generator.py539 msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo")
LOWLib/test/test_email/test_email.py3466 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'
LOWLib/test/test_email/test_email.py3466 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'
LOWLib/test/test_email/test_email.py3468 [('Jane Doe', 'jane@example.net'),
LOWLib/test/test_email/test_email.py3469 ('John Doe', 'john@example.net')])
LOWLib/test/test_email/test_email.py3471 [('Jane Doe', 'jane@example.net'),
LOWLib/test/test_email/test_email.py3472 ('John Doe', 'john@example.net')])
LOWLib/test/test_email/test_email.py3528 eq(addrs[0][1], 'foo@bar.com')
LOWLib/test/test_email/test_email.py3728 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',
LOWLib/test/test_email/test_email.py3728 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',
LOWLib/test/test_email/test_email.py4239 ('From: foo@bar.com', ('From', 'foo@bar.com')),
LOWLib/test/test_email/test_email.py4272 ['foo@bar.com',
LOWLib/test/test_email/test_email.py4283 [('From', 'foo@bar.com'),
LOWLib/test/test_email/test_email.py4295 ['foo@bar.com',
LOWLib/test/test_email/test_message.py581 ('To', 'foo@bar.com'),
LOWextra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")
LOWextra_tests/snippets/stdlib_zlib.py37lorem = bytes("Lorem ipsum dolor sit amet", "utf-8")
LOWextra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",
LOWextra_tests/snippets/stdlib_zlib.py40 b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5",
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHcrates/stdlib/src/ssl.rs14//! Warning: This library contains AI-generated code and comments. Do not trust any code or comment without verification
HIGHLib/subprocess.py258 # which is calling `CloseHandle` as requested in [1]), so there is nothing
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippet
LOWLib/test/test_unittest/testmock/testmock.py600 # Usage example
LOWLib/zipfile/__init__.py709# Usage: