AI Slop Code RIsk Monitor

brython-dev/brython

Brython (Browser Python) is an implementation of Python 3 running in the browser

18.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for brython-dev/brython, a Python project with 6,610 GitHub stars. SynthScan examined 943,749 lines of code across 2000 source files, recording 12648 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 18.2 (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.

18.2
Adjusted Signal
18.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
6.6K
Stars
Python
Language
943.7K
Lines of Code
2.0K
Files
12.6K
Pattern Hits
2026-10-12
Scan Date
0.78
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 32.2/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 12.1/100 · LOW

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

Agent Over-Engineering Ratio 49.2/100 · MEDIUM

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

PR Review Velocity Impact 68.5/100 · HIGH

Which changes need focused human review? 12648 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 10HIGH 1551MEDIUM 668LOW 10419

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

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

Empty Error Handlers1141 hits · 5480 pts
SeverityFileLineSnippetContext
HIGHserver_modular_send_head.py689except (TypeError, IndexError, OverflowError, ValueError):CODE
HIGHserver_modular_send_head.py1223except OSError:CODE
HIGHserver_modular_send_head.py1158except (binascii.Error, UnicodeError):CODE
HIGHwww/speed/benchmarks/header.py39except:CODE
HIGHwww/tests/test_string_methods.py49except ValueError:CODE
HIGHwww/tests/issues.py177except TypeError:CODE
HIGHwww/tests/issues.py183except TypeError:CODE
HIGHwww/tests/issues.py364except AttributeError:CODE
HIGHwww/tests/issues.py1025except TypeError:CODE
HIGHwww/tests/issues.py1033except TypeError:CODE
HIGHwww/tests/issues.py1041except IOError:CODE
HIGHwww/tests/issues.py1131except TypeError:CODE
HIGHwww/tests/issues.py1264except TypeError:CODE
HIGHwww/tests/issues.py1301except TypeError:CODE
HIGHwww/tests/issues.py1307except TypeError:CODE
HIGHwww/tests/issues.py1314except TypeError:CODE
HIGHwww/tests/issues.py1323except TypeError:CODE
HIGHwww/tests/issues.py1340except TypeError:CODE
HIGHwww/tests/issues.py1351except TypeError:CODE
HIGHwww/tests/issues.py1520except SyntaxError:CODE
HIGHwww/tests/issues.py1620except Exception:CODE
HIGHwww/tests/issues.py1625except Exception:CODE
HIGHwww/tests/issues.py1630except CustomException:CODE
HIGHwww/tests/issues.py1635except CustomException:CODE
HIGHwww/tests/issues.py1652except TypeError:CODE
HIGHwww/tests/issues.py1740except NameError:CODE
HIGHwww/tests/issues.py1817except AttributeError:CODE
HIGHwww/tests/issues.py1870except TypeError:CODE
HIGHwww/tests/issues.py2190except:CODE
HIGHwww/tests/issues.py2374except ZeroDivisionError:CODE
HIGHwww/tests/issues.py2380except ZeroDivisionError:CODE
HIGHwww/tests/issues.py2386except ZeroDivisionError:CODE
HIGHwww/tests/issues.py2392except ZeroDivisionError:CODE
HIGHwww/tests/issues.py2431except SystemExit:CODE
HIGHwww/tests/issues.py2613except SyntaxError:CODE
HIGHwww/tests/issues.py2658except SyntaxError:CODE
HIGHwww/tests/issues.py2664except SyntaxError:CODE
HIGHwww/tests/issues.py2678except SyntaxError:CODE
HIGHwww/tests/issues.py2835except NameError:CODE
HIGHwww/tests/issues.py2866except NameError:CODE
HIGHwww/tests/issues.py2886except TypeError:CODE
HIGHwww/tests/issues.py2996except NameError:CODE
HIGHwww/tests/test_iterators.py12except StopIteration:CODE
HIGHwww/tests/test_iterators.py24except StopIteration:CODE
HIGHwww/tests/test_iterators.py50except StopIteration:CODE
HIGHwww/tests/issues_gc.py85except:CODE
HIGHwww/tests/issues_gc.py411except SyntaxError:CODE
HIGHwww/tests/issues_gc.py420except TypeError:CODE
HIGHwww/tests/issues_gc.py428except TypeError:CODE
HIGHwww/tests/issues_gc.py436except TypeError:CODE
HIGHwww/tests/issues_gc.py444except TypeError:CODE
HIGHwww/tests/issues_gc.py451except SyntaxError:CODE
HIGHwww/tests/issues_gc.py37except:CODE
HIGHwww/tests/issues_gc.py44except:CODE
HIGHwww/tests/issues_gc.py51except:CODE
HIGHwww/tests/issues_gc.py58except Exception:CODE
HIGHwww/tests/issues_bb.py258except SyntaxError:CODE
HIGHwww/tests/issues_bb.py267except TypeError:CODE
HIGHwww/tests/issues_bb.py273except SyntaxError:CODE
HIGHwww/tests/issues_bb.py494except (IndexError, TypeError) as err:CODE
1081 more matches not shown…
Hyper-Verbose Identifiers7487 hits · 5333 pts
SeverityFileLineSnippetContext
LOWserver_modular_send_head.py147class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):CODE
LOWserver_modular_send_head.py627class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):CODE
LOWserver_modular_send_head.py1011class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):CODE
LOWwww/tests/issues.py1895def test_yield_in_comprehensions(self):STRING
LOWwww/tests/async_manager.py32 def _set_exception_if_not_done(self, fut, ex):CODE
LOWwww/tests/test_decorators.py25def function_decorate_function(f):CODE
LOWwww/tests/test_decorators.py52def function_decorated_function(x=0):CODE
LOWwww/tests/test_re.html236 def test_sub_template_numeric_escape(self):CODE
LOWwww/tests/test_re.html617 def test_sre_character_literals(self):CODE
LOWwww/tests/test_re.html649 def test_character_set_errors(self):CODE
LOWwww/tests/test_re.html686 def test_re_groupref_overflow(self):CODE
LOWwww/tests/test_re.html832 def test_named_unicode_escapes(self):CODE
LOWwww/tests/test_re.html1056 def test_possible_set_operations(self):CODE
LOWwww/tests/test_re.html1155 def test_re_escape_non_ascii_bytes(self):CODE
LOWwww/tests/test_re.html1221 def test_unlimited_zero_width_repeat(self):CODE
LOWwww/tests/test_re.html1471 def test_dollar_matches_twice(self):CODE
LOWwww/tests/test_re.html1496 def test_ascii_and_unicode_flag(self):CODE
LOWwww/tests/test_re.html1682 def test_repeat_minmax_overflow(self):CODE
LOWwww/tests/test_re.html1698 def test_repeat_minmax_overflow_maxrepeat(self):CODE
LOWwww/tests/test_re.html1712 def test_backref_group_name_in_exception(self):CODE
LOWwww/tests/test_re.html1717 def test_group_name_in_exception(self):CODE
LOWwww/tests/test_re.html2017 def test_pattern_compare_bytes(self):STRING
LOWwww/tests/test_time.py171 def test_strftime_bounding_check(self):CODE
LOWwww/tests/test_time.py174 def test_default_values_for_zero(self):CODE
LOWwww/tests/test_time.py204 def test_strptime_exception_context(self):CODE
LOWwww/tests/test_time.py229 def test_asctime_bounding_check(self):CODE
LOWwww/tests/test_time.py345 def test_localtime_without_arg(self):CODE
LOWwww/tests/test_jsobjects.py340def pyfunc_receives_js_number(num):CODE
LOWwww/tests/test_set.py142def symmetric_difference_update(s):CODE
LOWwww/tests/test_set.py179def symmetric_difference_update_self(t):CODE
LOWwww/tests/test_suite.py596def assign_expr_in_comp_global():CODE
LOWwww/tests/test_suite.py603def assign_expr_in_comp_nonlocal():CODE
LOWwww/tests/test_suite.py993def optional_keyword_only_arg(*, a, b=None):STRING
LOW⚡www/tests/test_patma.py28 def check_sequence_then_mapping(x):CODE
LOW⚡www/tests/test_patma.py36 def check_mapping_then_sequence(x):CODE
LOW⚡www/tests/test_patma.py43 def test_multiple_inheritance_mapping(self):CODE
LOWwww/tests/test_patma.py63 def test_multiple_inheritance_sequence(self):CODE
LOWwww/tests/test_patma.py83 def test_late_registration_mapping(self):CODE
LOWwww/tests/test_patma.py106 def test_late_registration_sequence(self):CODE
LOWwww/tests/test_patma.py2665 def test_attribute_name_repeated_in_class_pattern(self):STRING
LOWwww/tests/test_patma.py2714 def test_mapping_pattern_keys_may_only_match_literals_and_attribute_lookups(self):STRING
LOWwww/tests/test_patma.py2904 def test_mapping_pattern_duplicate_key(self):STRING
LOWwww/tests/test_patma.py2991 def test_match_args_elements_must_be_strings(self):STRING
LOWwww/tests/brython_test_utils/__init__.py6def discover_brython_test_modules():CODE
LOWwww/tests/unittests/test/test_int.py233 def test_non_numeric_input_types(self):CODE
LOWwww/tests/compression/huffman.py4def codelengths_from_frequencies(freqs):CODE
LOWwww/cgi-bin/cgi.py747 def read_lines_to_outerboundary(self):CODE
LOWwww/src/Lib/shutil.py118def _determine_linux_fastcopy_blocksize(infd):CODE
LOWwww/src/Lib/shutil.py137def _fastcopy_copy_file_range(fsrc, fdst):CODE
LOWwww/src/Lib/shutil.py1181def unregister_archive_format(name):CODE
LOWwww/src/Lib/pkgutil.py131def _iter_file_finder_modules(importer, prefix=''):CODE
LOWwww/src/Lib/ipaddress.py184def _count_righthand_zero_bits(number, bits):CODE
LOWwww/src/Lib/ipaddress.py255def _collapse_addresses_internal(addresses):CODE
LOWwww/src/Lib/ipaddress.py475 def _prefix_from_prefix_string(cls, prefixlen_str):CODE
LOWwww/src/Lib/ipaddress.py1144 def _explode_shorthand_ip_string(self):CODE
LOWwww/src/Lib/ipaddress.py1810 def _explode_shorthand_ip_string(self):CODE
LOWwww/src/Lib/zipimport.py560def _get_zlib_decompress_func():CODE
LOWwww/src/Lib/zipimport.py590def _get_zstd_decompressor_class():CODE
LOWwww/src/Lib/zipimport.py764def _get_mtime_and_size_of_source(self, path):CODE
LOWwww/src/Lib/functools.py1182def _warn_python_reduce_kwargs(py_reduce):CODE
7427 more matches not shown…
Cross-Language Confusion299 hits · 1659 pts
SeverityFileLineSnippetContext
HIGHwww/speed/benchmarks/augm_assign_and_append.py10 list.push(i);CODE
HIGHwww/tests/test_jsobjects.py90obj = javascript.JSON.parse('{"foo": null}')CODE
HIGH⚡www/tests/test_null.py3assert(JSObject(null) == None)CODE
HIGH⚡www/tests/test_null.py4assert(JSObject(null) is None)CODE
HIGH⚡www/tests/test_null.py6assert(None is JSObject(null))CODE
HIGH⚡www/tests/test_null.py7assert(None == JSObject(null))CODE
HIGH⚡www/tests/test_null.py8assert(JSObject(null) is JSObject(null))CODE
HIGHwww/tests/test_suite.py55 print("Failed.. n should be undefined, but n:", n)CODE
HIGHwww/tests/test_json.py49assert json.loads("[0, null]") == [0, None]CODE
HIGHwww/tests/compression/huffman.py73 currentlen = self.length()CODE
HIGHwww/tests/compression/huffman.py123 while self.length() > maxlevels:CODE
HIGHwww/src/Lib/code.py276 more = self.push(line)CODE
HIGHwww/src/Lib/_csv.py578def field_size_limit(limit=undefined):CODE
HIGHwww/src/Lib/numbers.py53## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But,COMMENT
HIGHwww/src/Lib/zlib.py86 currentlen = self.length()CODE
HIGHwww/src/Lib/zlib.py136 while self.length() > maxlevels:CODE
HIGHwww/src/Lib/posixpath.py81 path[:0] + sep #23780: Ensure compatible data type even if p is null.CODE
HIGH⚡www/src/Lib/locale.py1734 print('Language: ', lang or '(undefined)')CODE
HIGH⚡www/src/Lib/locale.py1735 print('Encoding: ', enc or '(undefined)')CODE
HIGH⚡www/src/Lib/locale.py1743 print(' Language: ', lang or '(undefined)')CODE
HIGH⚡www/src/Lib/locale.py1744 print(' Encoding: ', enc or '(undefined)')CODE
HIGHwww/src/Lib/locale.py1760 print(' Language: ', lang or '(undefined)')CODE
HIGHwww/src/Lib/locale.py1761 print(' Encoding: ', enc or '(undefined)')CODE
HIGHwww/src/Lib/select.py22 return error(-1, 'Unmapped java exception: <%s:%s>' % (exc.toString(), circumstance))CODE
HIGHwww/src/Lib/ntpath.py119 path[:0] + sep #23780: Ensure compatible data type even if p is null.CODE
HIGH⚡www/src/Lib/test/test_poplib.py81 self.push('-ERR unrecognized POP3 command "%s".' %cmd)CODE
HIGH⚡www/src/Lib/test/test_poplib.py87 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')CODE
HIGH⚡www/src/Lib/test/test_poplib.py91 self.push(arg)CODE
HIGH⚡www/src/Lib/test/test_poplib.py95 self.push("-ERR no such user")CODE
HIGH⚡www/src/Lib/test/test_poplib.py96 self.push('+OK password required')CODE
HIGH⚡www/src/Lib/test/test_poplib.py100 self.push("-ERR wrong password")CODE
HIGH⚡www/src/Lib/test/test_poplib.py101 self.push('+OK 10 messages')CODE
HIGH⚡www/src/Lib/test/test_poplib.py104 self.push('+OK 10 100')CODE
HIGH⚡www/src/Lib/test/test_poplib.py108 self.push('+OK %s %s' % (arg, arg))CODE
HIGH⚡www/src/Lib/test/test_poplib.py110 self.push('+OK')CODE
HIGH⚡www/src/Lib/test/test_poplib.py111 asynchat.async_chat.push(self, LIST_RESP)CODE
HIGH⚡www/src/Lib/test/test_poplib.py116 self.push('+OK %s bytes' %len(RETR_RESP))CODE
HIGH⚡www/src/Lib/test/test_poplib.py117 asynchat.async_chat.push(self, RETR_RESP)CODE
HIGH⚡www/src/Lib/test/test_poplib.py122 self.push('+OK message marked for deletion.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py125 self.push('+OK done nothing.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py128 self.push('+OK done nothing.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py131 self.push('+OK done nothing.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py134 self.push('+OK closing.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py144 self.push('+OK Capability list follows')CODE
HIGH⚡www/src/Lib/test/test_poplib.py150 self.push(' '.join(_ln))CODE
HIGH⚡www/src/Lib/test/test_poplib.py151 self.push('.')CODE
HIGH⚡www/src/Lib/test/test_poplib.py154 self.push('+OK I know RFC6856'CODE
HIGH⚡www/src/Lib/test/test_poplib.py162 self.push('+OK Begin TLS negotiation')CODE
HIGHwww/src/Lib/test/test_poplib.py60 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHwww/src/Lib/test/test_poplib.py176 self.push('-ERR Command not permitted when TLS active')CODE
HIGHwww/src/Lib/test/test_poplib.py444 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGH⚡www/src/Lib/test/test_gettext.py530 f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2')CODE
HIGH⚡www/src/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⚡www/src/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⚡www/src/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⚡www/src/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⚡www/src/Lib/test/test_gettext.py548 f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2')CODE
HIGH⚡www/src/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⚡www/src/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⚡www/src/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
239 more matches not shown…
Deep Nesting994 hits · 804 pts
SeverityFileLineSnippetContext
LOWserver_modular_send_head.py940CODE
LOWserver_modular_send_head.py648CODE
LOWserver_modular_send_head.py679CODE
LOWserver_modular_send_head.py1084CODE
LOWsetup/brython/list_modules.py507CODE
LOWsetup/brython/list_modules.py574CODE
LOWsetup/brython/list_modules.py113CODE
LOWsetup/brython/list_modules.py167CODE
LOWsetup/brython/list_modules.py215CODE
LOWsetup/brython/list_modules.py254CODE
LOWsetup/brython/list_modules.py309CODE
LOWsetup/brython/list_modules.py381CODE
LOWsetup/brython/list_modules.py661CODE
LOWsetup/brython/list_modules.py703CODE
LOWsetup/brython/make_package.py46CODE
LOWwww/speed/benchmarks/pystone.py186CODE
LOWwww/gallery/synth_keyboard.py393CODE
LOWwww/gallery/synth_keyboard.py455CODE
LOWwww/gallery/show_source.py93CODE
LOWwww/gallery/editor.py20CODE
LOWwww/gallery/editor.py94CODE
LOWwww/gallery/kanban.py300CODE
LOWwww/gallery/sudoku.py29CODE
LOWwww/gallery/draw.py206CODE
LOWwww/gallery/draw.py99CODE
LOWwww/gallery/music/drum_score.py168CODE
LOWwww/tests/issues.py2490CODE
LOWwww/tests/async_manager.py43CODE
LOWwww/tests/console.py135CODE
LOWwww/tests/console.py215CODE
LOWwww/tests/tester.py403CODE
LOWwww/tests/test_web_worker.py11CODE
LOWwww/tests/editor.py117CODE
LOWwww/tests/editor.py136CODE
LOWwww/tests/input_interpreter.py54CODE
LOWwww/tests/input_interpreter.py206CODE
LOWwww/tests/input_interpreter.py373CODE
LOWwww/tests/test_aio.py214CODE
LOWwww/tests/unittests/test/pystone.py188CODE
LOWwww/tests/unittests/test/test_int.py29CODE
LOWwww/tests/compression/deflate.py33CODE
LOWwww/tests/compression/deflate.py74CODE
LOWwww/tests/compression/deflate.py162CODE
LOWwww/tests/compression/deflate.py183CODE
LOWwww/tests/compression/deflate.py218CODE
LOWwww/tests/compression/deflate.py249CODE
LOWwww/tests/compression/deflate.py453CODE
LOWwww/tests/compression/huffman.py249CODE
LOWwww/tests/compression/bitio.py32CODE
LOWwww/tests/compression/lz77.py3CODE
LOWwww/cgi-bin/cgi.py129CODE
LOWwww/cgi-bin/cgi.py747CODE
LOWwww/assets/header.py73CODE
LOWwww/assets/header.py169CODE
LOWwww/slideshow/en/slideshow.py40CODE
LOWwww/src/Lib/zipfile.py689CODE
LOWwww/src/Lib/zipfile.py724CODE
LOWwww/src/Lib/zipfile.py2475CODE
LOWwww/src/Lib/zipfile.py487CODE
LOWwww/src/Lib/zipfile.py1168CODE
934 more matches not shown…
Decorative Section Separators319 hits · 738 pts
SeverityFileLineSnippetContext
MEDIUMwww/gallery/kanban.py1# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py9# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py26# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py31# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py82# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py101# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py291# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py295# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py299# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py338# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py343# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py349# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/kanban.py355# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py379# ----------------------------------------------------------COMMENT
MEDIUM⚡www/gallery/raphael/raphael-min.js1// ┌────────────────────────────────────────────────────────────────────┐ \\COMMENT
MEDIUM⚡www/gallery/raphael/raphael-min.js3// ├────────────────────────────────────────────────────────────────────┤ \\COMMENT
MEDIUM⚡www/gallery/raphael/raphael-min.js6// ├────────────────────────────────────────────────────────────────────┤ \\COMMENT
MEDIUM⚡www/gallery/raphael/raphael-min.js8// └────────────────────────────────────────────────────────────────────┘ \\COMMENT
MEDIUMwww/tests/issues.py3505# ==========================================STRING
MEDIUMwww/tests/issues.py3507# ==========================================STRING
MEDIUMwww/tests/delegator.py1#---------------------------------------------COMMENT
MEDIUMwww/cgi-bin/cgi.py60# ===============COMMENT
MEDIUMwww/cgi-bin/cgi.py123# =================COMMENT
MEDIUMwww/cgi-bin/cgi.py260# =========================COMMENT
MEDIUMwww/cgi-bin/cgi.py851# ===============COMMENT
MEDIUMwww/cgi-bin/cgi.py1008# ===============STRING
MEDIUMwww/src/Lib/heapq.py412# ==============================================COMMENT
MEDIUMwww/src/Lib/heapq.py442# -----------------------------------------------COMMENT
MEDIUMwww/src/Lib/heapq.py462# ----------------------COMMENT
MEDIUMwww/src/Lib/heapq.py469# ----------------------COMMENT
MEDIUMwww/src/Lib/numbers.py50## ----------------COMMENT
MEDIUMwww/src/Lib/random.py203 ## -------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py277 ## --------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py889## ------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py930# ----------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py964## ------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py1005## ------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py1012# ------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/re1.py184# --------------------------------------------------------------------STRING
MEDIUMwww/src/Lib/re1.py282# --------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/re1.py343# --------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/argparse.py106# =============================COMMENT
MEDIUMwww/src/Lib/argparse.py108# =============================COMMENT
MEDIUMwww/src/Lib/argparse.py157# ===============COMMENT
MEDIUMwww/src/Lib/argparse.py159# ===============COMMENT
MEDIUMwww/src/Lib/argparse.py239 # ===============================COMMENT
MEDIUMwww/src/Lib/argparse.py241 # ===============================COMMENT
MEDIUMwww/src/Lib/argparse.py291 # ========================COMMENT
MEDIUMwww/src/Lib/argparse.py293 # ========================COMMENT
MEDIUMwww/src/Lib/argparse.py335 # =======================COMMENT
MEDIUMwww/src/Lib/argparse.py337 # =======================COMMENT
MEDIUM⚡www/src/Lib/argparse.py866# =====================STRING
MEDIUM⚡www/src/Lib/argparse.py868# =====================STRING
MEDIUM⚡www/src/Lib/argparse.py1576 # ====================STRING
MEDIUM⚡www/src/Lib/argparse.py1578 # ====================STRING
MEDIUM⚡www/src/Lib/argparse.py1587 # ==================================STRING
MEDIUM⚡www/src/Lib/argparse.py1589 # ==================================STRING
MEDIUMwww/src/Lib/argparse.py918# ==============STRING
MEDIUMwww/src/Lib/argparse.py920# ==============STRING
MEDIUMwww/src/Lib/argparse.py1439# ==============STRING
259 more matches not shown…
Unused Imports613 hits · 576 pts
SeverityFileLineSnippetContext
LOWmanage.py3CODE
LOWsmall_node_app.py1CODE
LOWsmall_node_app.py2CODE
LOWsmall_node_app.py3CODE
LOWsetup/brython/make_file_system.py3CODE
LOWsetup/brython/make_file_system.py4CODE
LOWsetup/brython/make_package.py3CODE
LOWwww/speed/speed.py7CODE
LOWwww/speed/speed.py8CODE
LOWwww/speed/speed.py11CODE
LOWwww/speed/make_report.py7CODE
LOWwww/speed/perf_bookkeeping.py3CODE
LOWwww/speed/benchmarks/bm_ai.py13CODE
LOWwww/speed/benchmarks/bm_ai.py14CODE
LOWwww/speed/benchmarks/header.py2CODE
LOWwww/speed/benchmarks/pystone_proc8.py33CODE
LOWwww/gallery/synth_keyboard.py1CODE
LOWwww/gallery/synth_keyboard.py3CODE
LOWwww/gallery/synth_keyboard.py3CODE
LOWwww/gallery/sidebar.py4CODE
LOWwww/gallery/three_webgl_interactive_cubes.py7CODE
LOWwww/gallery/navi.py4CODE
LOWwww/gallery/synthesizer.py1CODE
LOWwww/gallery/sudoku.py9CODE
LOWwww/gallery/draw.py1CODE
LOWwww/gallery/music/synth_drums.py5CODE
LOWwww/gallery/music/synth_drums.py8CODE
LOWwww/gallery/music/synth_drums.py8CODE
LOWwww/gallery/music/player.py5CODE
LOWwww/gallery/music/player.py6CODE
LOWwww/gallery/music/player.py8CODE
LOWwww/gallery/music/player.py10CODE
LOWwww/gallery/music/drum_score.py1CODE
LOWwww/gallery/music/drum_score.py1CODE
LOWwww/gallery/highcharts/examples/gauge-clock/chart.py2CODE
LOWwww/gallery/raphael/picker.py1CODE
LOWwww/tests/issues.py3198CODE
LOWwww/tests/issues.py3229CODE
LOWwww/tests/issues.py511CODE
LOWwww/tests/async_manager.py3CODE
LOWwww/tests/console.py5CODE
LOWwww/tests/console.py5CODE
LOWwww/tests/tester.py17CODE
LOWwww/tests/test_pages.py5CODE
LOWwww/tests/test_decorators.py1CODE
LOWwww/tests/test_numbers.py285CODE
LOWwww/tests/test_unittest.py39CODE
LOWwww/tests/test_generators.py301CODE
LOWwww/tests/test_exceptions.py219CODE
LOWwww/tests/recursive_import.py1CODE
LOWwww/tests/test_functools.py3CODE
LOWwww/tests/test_file.py1CODE
LOWwww/tests/test_file.py1CODE
LOWwww/tests/test_file.py1CODE
LOWwww/tests/test_strings.py2CODE
LOWwww/tests/editor.py3CODE
LOWwww/tests/editor.py8CODE
LOWwww/tests/exception_traces.py5CODE
LOWwww/tests/exception_traces.py134CODE
LOWwww/tests/test_markdown.py2CODE
553 more matches not shown…
Excessive Try-Catch Wrapping539 hits · 553 pts
SeverityFileLineSnippetContext
LOWwww/speed/speed.py100 except Exception as exc:CODE
LOWwww/speed/make_report.py40 except Exception as exc:CODE
LOWwww/speed/perf_bookkeeping.py22 except Exception as exc:CODE
LOWwww/tests/issues.py2976 except Exception as e:CODE
LOWwww/tests/issues.py2978except Exception as e:CODE
LOWwww/tests/issues.py1620except Exception:STRING
LOWwww/tests/issues.py1625except Exception:STRING
LOWwww/tests/tester.py259 except Exception as exc:CODE
LOWwww/tests/issues_gc.py58 except Exception:CODE
LOWwww/tests/issues_gc.py65 except Exception as ex:CODE
MEDIUMwww/tests/issues_gc.py33def test1():CODE
MEDIUMwww/tests/issues_gc.py61def test5():CODE
LOWwww/tests/index.html171 except Exception as exc:CODE
LOWwww/tests/test_re.html108 except Exception as exc:CODE
MEDIUMwww/tests/test_re.html103def checkPatternError(self, pattern, errmsg, pos=None):CODE
LOWwww/tests/test_jsobjects.py260except Exception as exc:CODE
LOWwww/tests/test_generators.py1156 except Exception as ee:CODE
LOWwww/tests/test_generators.py1202 except Exception as ee:CODE
LOW⚡www/tests/test_generators.py1224except Exception as exc:CODE
LOW⚡www/tests/test_generators.py1230except Exception as exc:CODE
LOW⚡www/tests/test_generators.py1236except Exception as exc:CODE
MEDIUMwww/tests/test_indexedDB.py40 print("Error: %s" % (event.result))CODE
LOWwww/tests/test_suite.py510 except Exception as exc:CODE
LOWwww/tests/editor.py217 except Exception as exc:CODE
LOWwww/tests/test_pattern_matching.py22 except Exception as exc:CODE
LOWwww/tests/test_pattern_matching.py41 except Exception as exc:CODE
LOWwww/tests/test_pattern_matching.py53 except Exception as exc:CODE
MEDIUMwww/tests/test_pattern_matching.py5def assert_syntax_error(self, code):CODE
LOWwww/tests/test_aio.py157 except Exception as e:CODE
LOWwww/tests/test_aio.py348 except Exception as exc:CODE
MEDIUMwww/tests/test_aio.py344def wait_error():CODE
LOWwww/tests/test_classes.py337 except Exception as __e:CODE
LOWwww/tests/test_classes.py738except Exception as exc:CODE
MEDIUMwww/tests/test_classes.py334def test(self):CODE
LOW⚡www/tests/test_traceback.py16except Exception:STRING
LOW⚡www/tests/test_traceback.py24except Exception:STRING
LOWwww/tests/brython_test_utils/__init__.py111 except Exception as exc:CODE
LOWwww/benchmarks/index.html52 except Exception as exc:CODE
LOWwww/src/Lib/shutil.py105 except Exception as err:CODE
LOWwww/src/Lib/shutil.py147 except Exception as err:CODE
LOWwww/src/Lib/shutil.py196 except Exception as err:CODE
LOWwww/src/Lib/pkgutil.py83 except Exception:CODE
LOWwww/src/Lib/rlcompleter.py159 except Exception:CODE
LOWwww/src/Lib/zipimport.py575 except Exception:CODE
LOWwww/src/Lib/zipimport.py605 except Exception:CODE
LOWwww/src/Lib/zipimport.py669 except Exception:CODE
LOWwww/src/Lib/zipimport.py675 except Exception:CODE
MEDIUMwww/src/Lib/zipimport.py295def _read_directory(archive):CODE
LOWwww/src/Lib/_typing.py241 except Exception as exc:CODE
LOWwww/src/Lib/weakref.py569 except Exception:CODE
LOWwww/src/Lib/traceback.py1160 except Exception as e:CODE
LOWwww/src/Lib/traceback.py1440 except Exception:CODE
LOWwww/src/Lib/traceback.py1901 except Exception:CODE
LOWwww/src/Lib/traceback.py1913 except Exception:CODE
LOWwww/src/Lib/traceback.py1921 except Exception:CODE
LOWwww/src/Lib/traceback.py1946 except Exception:CODE
MEDIUMwww/src/Lib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)CODE
MEDIUMwww/src/Lib/pydoc.py591def repr_instance(self, x, level):CODE
LOWwww/src/Lib/pydoc.py948 except Exception:CODE
LOWwww/src/Lib/pydoc.py994 except Exception:CODE
479 more matches not shown…
Self-Referential Comments170 hits · 404 pts
SeverityFileLineSnippetContext
MEDIUMsetup/brython/list_modules.py384 # Create a temporary directoryCOMMENT
MEDIUMsetup/brython/list_modules.py390 # Create a package "data" in this directoryCOMMENT
MEDIUMwww/demo.html1016 # Create a new DOM FileReader instanceCOMMENT
MEDIUMwww/gallery/binary_file_reader.html116 # Create a new DOM FileReader instanceCOMMENT
MEDIUMwww/gallery/webworker_mdn.html87# Create a web worker, identified by a script id in this page.COMMENT
MEDIUMwww/gallery/webcomponent.html204 # Create a shadow rootSTRING
MEDIUMwww/gallery/webcomponent.html243 # Create a shadow rootSTRING
MEDIUMwww/gallery/music/synth_drums.py42 # Create a new DOM FileReader instanceCOMMENT
MEDIUMwww/gallery/music/play_song_part.html270 # Create a new DOM FileReader instanceCOMMENT
MEDIUMwww/tests/editor.html100# Create a lambda around editor.run() so that the event object is not passed to itCOMMENT
MEDIUMwww/src/Lib/_pyio.py273# Define a default pure-Python implementation for open_code()STRING
MEDIUMwww/src/Lib/_struct.py2# This module is a pure Python version of pypy.module.struct.COMMENT
MEDIUMwww/src/Lib/ipaddress.py1452 """This class represents and manipulates 32-bit IPv4 network + addresses..STRING
MEDIUMwww/src/Lib/ipaddress.py2164 """This class represents and manipulates 128-bit IPv6 networks.STRING
MEDIUMwww/src/Lib/_compat_pickle.py1# This module is used to map the old Python 2 names to the new names used inCOMMENT
MEDIUMwww/src/Lib/bdb.py885 # The following methods can be called by clients to useCOMMENT
MEDIUMwww/src/Lib/bdb.py936 # This method is more useful to debug a single function call.COMMENT
MEDIUMwww/src/Lib/gc.py1"""This module provides access to the garbage collector for reference cycles.STRING
MEDIUMwww/src/Lib/gettext.py13# This module represents the integration of work, contributions, feedback, andCOMMENT
MEDIUMwww/src/Lib/subprocess.py1974 # This method is called (indirectly) by __del__, so it cannotCOMMENT
MEDIUMwww/src/Lib/subprocess.py2172 # This method is called from the _communicate_with_*() methodsCOMMENT
MEDIUMwww/src/Lib/profile.py438 # This method is more useful to profile a single function call.COMMENT
MEDIUMwww/src/Lib/code.py162 # This method is being overwritten inCOMMENT
MEDIUMwww/src/Lib/pydoc.py757 # Create a link for methods like 'self.method(...)'COMMENT
MEDIUM⚡www/src/Lib/types.py328 # The following code is primarily to support functions thatCOMMENT
MEDIUMwww/src/Lib/pdb.py697 """This method is called when there is the remote possibilitySTRING
MEDIUMwww/src/Lib/pdb.py706 """This function is called when we stop or break at this line."""STRING
MEDIUMwww/src/Lib/pdb.py739 """This function is called when a return trap is set here."""STRING
MEDIUMwww/src/Lib/pdb.py748 """This function is called if an exception occurs,STRING
MEDIUMwww/src/Lib/zlib.py320 # Create a Huffman tree for the codelengthsCOMMENT
MEDIUMwww/src/Lib/threading.py330 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMwww/src/Lib/threading.py1308 # Create a local namespace to ensure that variables remain aliveCOMMENT
MEDIUMwww/src/Lib/threading.py1552# Create the main thread object,COMMENT
MEDIUMwww/src/Lib/threading.py147 """This class implements reentrant lock objects.STRING
MEDIUMwww/src/Lib/threading.py460 """This class implements semaphore objects.STRING
MEDIUMwww/src/Lib/_frozen_importlib.py465 # This function is meant for use in _setup().COMMENT
MEDIUMwww/src/Lib/inspect.py29# This module is in the public domain. No warranties.COMMENT
MEDIUMwww/src/Lib/faulthandler.py44 """This method is called when a class is subclassed.STRING
MEDIUMwww/src/Lib/annotationlib.py167 # Create a new locals dict if necessary,COMMENT
MEDIUMwww/src/Lib/_pydatetime.py494 # This function is intended to validate datetimes, but becauseCOMMENT
MEDIUMwww/src/Lib/fractions.py183 """This class implements rational numbers.STRING
MEDIUMwww/src/Lib/_ast_unparse.py1# This module contains ``ast.unparse()``, defined hereCOMMENT
MEDIUMwww/src/Lib/ast.py628 # The following code is for backward compatibility.COMMENT
MEDIUMwww/src/Lib/doctest.py153 # Create a new flag unless `name` is already known.STRING
MEDIUMwww/src/Lib/doctest.py676 # Create an Example, and add it to the list.STRING
MEDIUMwww/src/Lib/doctest.py1299 # Create a fake output target for capturing doctest output.STRING
MEDIUMwww/src/Lib/dataclasses.py381# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMwww/src/Lib/dataclasses.py530 # Create an __annotate__ function for a dataclassCOMMENT
MEDIUMwww/src/Lib/dataclasses.py1203 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMwww/src/Lib/dataclasses.py1229 # Create a class doc-string lazily via descriptor protocolCOMMENT
MEDIUMwww/src/Lib/dataclasses.py1349 # Create a new dict for our new class.COMMENT
MEDIUMwww/src/Lib/dataclasses.py1816 # Create the new object, which calls __init__() andCOMMENT
MEDIUMwww/src/Lib/_signal.py1"""This module provides mechanisms to use signal handlers in Python.STRING
MEDIUMwww/src/Lib/tarfile.py1128 # Create a pax extended header if necessary.COMMENT
MEDIUMwww/src/Lib/tarfile.py2336 # Create a TarInfo object from the file.COMMENT
MEDIUMwww/src/Lib/stringprep.py1# This file is generated by mkstringprep.py. DO NOT EDIT.COMMENT
MEDIUMwww/src/Lib/uuid.py573# The following functions call external programs to 'get' a macaddr value toCOMMENT
MEDIUMwww/src/Lib/imp.py1"""This module provides the components needed to build your own __import__STRING
MEDIUMwww/src/Lib/encodings/idna.py1# This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep)COMMENT
MEDIUMwww/src/Lib/unittest/test/test_break.py175 # Creating a TextTestRunner with the appropriate argument shouldCOMMENT
110 more matches not shown…
Cross-File Repetition72 hits · 360 pts
SeverityFileLineSnippetContext
HIGHserver.py0<!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="styleshSTRING
HIGHbihan_app.py0<!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="styleshSTRING
HIGHserver_aiohttp.py0<!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="styleshSTRING
HIGHwww/cgi-bin/store_speed.py0<!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="styleshSTRING
HIGHwww/speed/pystone.html0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/speed/pystone_old_versions.html0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/speed/benchmarks/pystone_proc8.py0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/speed/benchmarks/pystone.py0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/tests/unittests/test/pystone.py0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/src/Lib/test/pystone.py0"pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker,STRING
HIGHwww/gallery/webworker_mdn.html0handle a message sent by the main script. evt.data is the message body.STRING
HIGHwww/doc/fr/browser.worker.md0handle a message sent by the main script. evt.data is the message body.STRING
HIGHwww/doc/es/worker.md0handle a message sent by the main script. evt.data is the message body.STRING
HIGHwww/doc/en/browser.worker.md0handle a message sent by the main script. evt.data is the message body.STRING
HIGHwww/gallery/webworker_mdn.html0called when the value in one of the input fields changes.STRING
HIGHwww/doc/fr/browser.worker.md0called when the value in one of the input fields changes.STRING
HIGHwww/doc/es/worker.md0called when the value in one of the input fields changes.STRING
HIGHwww/doc/en/browser.worker.md0called when the value in one of the input fields changes.STRING
HIGHwww/gallery/kanban.py0copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or wSTRING
HIGHwww/tests/console.py0copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or wSTRING
HIGHwww/tests/input_interpreter.py0copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or wSTRING
HIGHwww/src/Lib/optparse.py0copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or wSTRING
HIGHwww/src/Lib/interpreter.py0copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or wSTRING
HIGHwww/tests/console.py0thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pytSTRING
HIGHwww/tests/input_interpreter.py0thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pytSTRING
HIGHwww/src/Lib/interpreter.py0thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pytSTRING
HIGHwww/tests/console.py0copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python softwareSTRING
HIGHwww/tests/input_interpreter.py0copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python softwareSTRING
HIGHwww/src/Lib/interpreter.py0copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python softwareSTRING
HIGHwww/tests/console.py0remove calls to function in this script from the traceback.STRING
HIGHwww/tests/console_input.html0remove calls to function in this script from the traceback.STRING
HIGHwww/tests/input_interpreter.py0remove calls to function in this script from the traceback.STRING
HIGHwww/src/Lib/interpreter.py0remove calls to function in this script from the traceback.STRING
HIGHwww/tests/test_re.html0\ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end elSTRING
HIGHwww/src/Lib/test/test_re_original.py0\ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end elSTRING
HIGHwww/src/Lib/test/test_re.py0\ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end elSTRING
HIGHwww/tests/test_re.html0re.compile('both \\'single\\' and "double" quotes')STRING
HIGHwww/src/Lib/test/test_re_original.py0re.compile('both \\'single\\' and "double" quotes')STRING
HIGHwww/src/Lib/test/test_re.py0re.compile('both \\'single\\' and "double" quotes')STRING
HIGHwww/tests/compression/test_huffman.py0pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeuSTRING
HIGHwww/tests/compression/test_deflate.py0pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeuSTRING
HIGHwww/tests/compression/bitio.py0pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeuSTRING
HIGHwww/tests/compression/test_lz77.py0pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeuSTRING
HIGHwww/doc/fr/browser.svg.md075,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80STRING
HIGHwww/doc/es/svg.md075,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80STRING
HIGHwww/doc/en/browser.svg.md075,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80STRING
HIGHwww/src/Lib/genericpath.py0test whether a path exists. returns true for broken symbolic linksSTRING
HIGHwww/src/Lib/posixpath.py0test whether a path exists. returns true for broken symbolic linksSTRING
HIGHwww/src/Lib/ntpath.py0test whether a path exists. returns true for broken symbolic linksSTRING
HIGHwww/src/Lib/_frozen_importlib.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGHwww/src/Lib/importlib/_bootstrap.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGHwww/src/Lib/importlib/_bootstrap_external.py0core implementation of path-based import. this module is not meant to be directly imported! it has been designed such thSTRING
HIGHwww/src/Lib/_frozen_importlib.py0meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate theSTRING
HIGHwww/src/Lib/faulthandler.py0meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate theSTRING
HIGHwww/src/Lib/importlib/_bootstrap.py0meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate theSTRING
HIGHwww/src/Lib/_frozen_importlib.py0return repr for the module. the method is deprecated. the import machinery does the job itself.STRING
HIGHwww/src/Lib/faulthandler.py0return repr for the module. the method is deprecated. the import machinery does the job itself.STRING
HIGHwww/src/Lib/importlib/_bootstrap.py0return repr for the module. the method is deprecated. the import machinery does the job itself.STRING
HIGHwww/src/Lib/encodings/raw_unicode_escape.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
HIGHwww/src/Lib/encodings/utf_8.py0python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warraSTRING
12 more matches not shown…
Over-Commented Block370 hits · 324 pts
SeverityFileLineSnippetContext
LOWserver_modular_send_head.py41#COMMENT
LOWserver_modular_send_head.py61# |COMMENT
LOWwww/gallery/highcharts/js/modules/funnel.js21//# sourceMappingURL=funnel.js.mapCOMMENT
LOWwww/gallery/pygame/chimp.html181 #while going:COMMENT
LOWwww/gallery/raphael/raphael-min.js1// ┌────────────────────────────────────────────────────────────────────┐ \\COMMENT
LOWwww/tests/test_time.py1from test import supportCOMMENT
LOWwww/tests/test_time.py41 #self.assertFalse(info.monotonic)COMMENT
LOWwww/tests/test_time.py61 #a = time.clock_gettime(time.CLOCK_MONOTONIC)COMMENT
LOWwww/tests/test_time.py241 # If mktime fails, ctime will fail too. This may happenCOMMENT
LOWwww/tests/test_time.py261 ## systems.COMMENT
LOWwww/tests/test_time.py281COMMENT
LOWwww/tests/test_time.py301 ## (non-DST timezone), and "EDT" instead of "AEDT" (DST timezone),COMMENT
LOWwww/tests/test_time.py361 #continueCOMMENT
LOWwww/tests/test_time.py401 self.assertGreater(t2, t1)COMMENT
LOWwww/tests/test_time.py421COMMENT
LOWwww/tests/test_time.py461 #clocks = ['clock', 'perf_counter', 'process_time', 'time']COMMENT
LOWwww/tests/test_time.py481 #def setUp(self):COMMENT
LOWwww/tests/test_time.py601 #def test_time_t(self):COMMENT
LOWwww/tests/test_time.py621 #rnd = _PyTime_ROUND_DOWNCOMMENT
LOWwww/tests/test_time.py641 #(1.1234560, (1, 123456), _PyTime_ROUND_DOWN),COMMENT
LOWwww/tests/test_time.py661 #(-0.0000041, (-1, 999995), _PyTime_ROUND_UP),COMMENT
LOWwww/tests/test_time.py681 #(1e-9, (0, 1), _PyTime_ROUND_DOWN),COMMENT
LOWwww/tests/test_time.py701 #(1.1234567890, (1, 123456790), _PyTime_ROUND_UP),COMMENT
LOWwww/benchmarks/performance/bm_regex_effbot.py141COMMENT
LOWwww/benchmarks/performance/bm_regex_v8.py1#!/usr/bin/env pythonCOMMENT
LOWwww/benchmarks/performance/bm_regex_v8.py21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWwww/benchmarks/performance/bm_regex_v8.py1681 return util.run_benchmark(geo_mean, num_runs, test_regex_v8)COMMENT
LOWwww/benchmarks/performance/bm_html5lib.py61# with open(spec_filename) as spec_fh:COMMENT
LOWwww/benchmarks/performance/bm_nbody.py141# util.add_standard_options_to(parser)COMMENT
LOWwww/cgi-bin/cgi.py21"""COMMENT
LOWwww/cgi-bin/cgi.py441 if 'name' in pdict:COMMENT
LOWwww/src/py_utils.js201 if (kw && kw.hasOwnProperty(arg_name)) {COMMENT
LOWwww/src/gen_parse.js1121 }COMMENT
LOWwww/src/gen_parse.js1741 }COMMENT
LOWwww/src/gen_parse.js20021 _res = NULLCOMMENT
LOWwww/src/py_import.js1201 // Main entry point for __import__COMMENT
LOWwww/src/libs/_random.js1// Javascript implementation of the _random moduleCOMMENT
LOWwww/src/Lib/zipfile.py141# _MASK_UNUSED_BIT_8 = 1 << 8COMMENT
LOWwww/src/Lib/tabnanny.py141 # the number of leading whitespace characters in rawCOMMENT
LOWwww/src/Lib/tabnanny.py181 def longest_run_of_spaces(self):COMMENT
LOWwww/src/Lib/tabnanny.py221 a.append( (ts,COMMENT
LOWwww/src/Lib/zipimport.py281#COMMENT
LOWwww/src/Lib/_markupbase.py61 # This is some sort of declaration; in "HTML asCOMMENT
LOWwww/src/Lib/gettext.py21# which also included a pure-Python implementation to read .mo files ifCOMMENT
LOWwww/src/Lib/gettext.py641 return dnpgettext(_current_domain, context, msgid1, msgid2, n)COMMENT
LOWwww/src/Lib/cmath.py121def sqrt(x):COMMENT
LOWwww/src/Lib/cmath.py481 # problematic:COMMENT
LOWwww/src/Lib/heapq.py241# both its children, but turns out that's not a good idea, and despite thatCOMMENT
LOWwww/src/Lib/heapq.py261# 1837 cut to 1663 14996 cut to 8680COMMENT
LOWwww/src/Lib/heapq.py421# ------------- ---------------- --------------------- -----------------COMMENT
LOWwww/src/Lib/heapq.py441# Computing the number of comparisons for step 3:COMMENT
LOWwww/src/Lib/heapq.py461# Worst-case for step 3:COMMENT
LOWwww/src/Lib/traceback.py861 Given source code `segment` corresponding to a FrameSummary, determine:COMMENT
LOWwww/src/Lib/traceback.py1721 print(line, file=file, end="")COMMENT
LOWwww/src/Lib/subprocess.py241 # we can write up to _PIPE_BUF bytes without risk of blocking.COMMENT
LOWwww/src/Lib/subprocess.py981COMMENT
LOWwww/src/Lib/subprocess.py2181COMMENT
LOWwww/src/Lib/profile.py1#COMMENT
LOWwww/src/Lib/profile.py441 sys.setprofile(self.dispatcher)COMMENT
LOWwww/src/Lib/profile.py461 # done on the fly during init() time, but it is not worth theCOMMENT
310 more matches not shown…
Modern Structural Boilerplate182 hits · 170 pts
SeverityFileLineSnippetContext
LOWserver_modular_send_head.py85__all__ = [CODE
LOWsetup/brython/list_modules.py20logger = logging.getLogger(__name__)CODE
LOWwww/cgi-bin/cgi.py51__all__ = ["MiniFieldStorage", "FieldStorage", "parse", "parse_multipart",CODE
LOWwww/src/Lib/zipfile.py38__all__ = ["BadZipFile", "BadZipfile", "error",CODE
LOWwww/src/Lib/shutil.py65__all__ = ["copyfileobj", "copyfile", "copymode", "copystat", "copy", "copy2",CODE
LOWwww/src/Lib/tempfile.py26__all__ = [CODE
LOWwww/src/Lib/queue.py13__all__ = [CODE
LOWwww/src/Lib/pkgutil.py15__all__ = [CODE
LOWwww/src/Lib/_dummy_thread.py16__all__ = ['error', 'start_new_thread', 'exit', 'get_ident', 'allocate_lock',CODE
LOWwww/src/Lib/copyreg.py7__all__ = ["pickle", "constructor",CODE
LOWwww/src/Lib/rlcompleter.py41__all__ = ["Completer"]CODE
LOWwww/src/Lib/gzip.py14__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]CODE
LOWwww/src/Lib/bdb.py11__all__ = ["BdbQuit", "Bdb", "Breakpoint"]CODE
LOWwww/src/Lib/cmd.py47__all__ = ["Cmd"]CODE
LOWwww/src/Lib/tabnanny.py23__all__ = ["check", "NannyNag", "process_tokens"]CODE
LOWwww/src/Lib/zipimport.py21__all__ = ['ZipImportError', 'zipimporter']CODE
LOWwww/src/Lib/token.py4__all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF',CODE
LOWwww/src/Lib/textwrap.py10__all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten']CODE
LOWwww/src/Lib/base64.py10__all__ = [CODE
LOWwww/src/Lib/_threading_local.py12__all__ = ["local"]CODE
LOWwww/src/Lib/pyclbr.py48__all__ = ["readmodule", "readmodule_ex", "Class", "Function"]CODE
LOWwww/src/Lib/gettext.py51__all__ = ['NullTranslations', 'GNUTranslations', 'Catalog',CODE
LOWwww/src/Lib/weakref.py30__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",CODE
LOWwww/src/Lib/opcode.py8__all__ = ["cmp_op", "stack_effect", "hascompare", "opname", "opmap",CODE
LOWwww/src/Lib/heapq.py129__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'heappushpop',STRING
LOWwww/src/Lib/functools.py12__all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES',CODE
LOWwww/src/Lib/codeop.py41__all__ = ["compile_command", "Compile", "CommandCompiler"]STRING
LOWwww/src/Lib/fnmatch.py19__all__ = ["filter", "filterfalse", "fnmatch", "fnmatchcase", "translate"]CODE
LOWwww/src/Lib/traceback.py28__all__ = ['extract_stack', 'extract_tb', 'format_exception',CODE
LOWwww/src/Lib/warnings.py3__all__ = [CODE
LOWwww/src/Lib/subprocess.py63__all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput",STRING
LOWwww/src/Lib/profile.py33__all__ = ["run", "runctx", "Profile"]CODE
LOWwww/src/Lib/codecs.py20__all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE",CODE
LOWwww/src/Lib/_weakrefset.py8__all__ = ['WeakSet']CODE
LOWwww/src/Lib/io.py44__all__ = ["BlockingIOError", "open", "open_code", "IOBase", "RawIOBase",CODE
LOWwww/src/Lib/code.py13__all__ = ["InteractiveInterpreter", "InteractiveConsole", "interact",CODE
LOWwww/src/Lib/operator.py13__all__ = ['abs', 'add', 'and_', 'attrgetter', 'call', 'concat', 'contains', 'countOf',CODE
LOWwww/src/Lib/difflib.py29__all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',CODE
LOWwww/src/Lib/pydoc.py39__all__ = ['help']CODE
LOWwww/src/Lib/copy.py60__all__ = ["Error", "copy", "deepcopy", "replace"]CODE
LOWwww/src/Lib/genericpath.py9__all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime',CODE
LOWwww/src/Lib/linecache.py8__all__ = ["getline", "clearcache", "checkcache", "lazycache"]CODE
LOWwww/src/Lib/types.py354__all__ = [n for n in globals() if not n.startswith('_')] # for pydocCODE
LOWwww/src/Lib/mimetypes.py36__all__ = [CODE
LOWwww/src/Lib/colorsys.py24__all__ = ["rgb_to_yiq","yiq_to_rgb","rgb_to_hls","hls_to_rgb",CODE
LOWwww/src/Lib/numbers.py35__all__ = ["Number", "Complex", "Real", "Rational", "Integral"]CODE
LOWwww/src/Lib/_strptime.py26__all__ = []CODE
LOWwww/src/Lib/random.py65__all__ = [CODE
LOWwww/src/Lib/optparse.py24__all__ = ['Option',CODE
LOWwww/src/Lib/pdb.py115__all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",CODE
LOWwww/src/Lib/threading.py26__all__ = ['get_ident', 'active_count', 'Condition', 'current_thread',CODE
LOWwww/src/Lib/glob.py14__all__ = ["glob", "iglob", "escape", "translate"]CODE
LOWwww/src/Lib/quopri.py5__all__ = ["encode", "decode", "encodestring", "decodestring"]CODE
LOWwww/src/Lib/symtable.py18__all__ = ["symtable", "SymbolTableType", "SymbolTable", "Class", "Function", "Symbol"]CODE
LOWwww/src/Lib/pprint.py42__all__ = ["pprint","pformat","isreadable","isrecursive","saferepr",CODE
LOWwww/src/Lib/calendar.py14__all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday",CODE
LOWwww/src/Lib/inspect.py34__all__ = [CODE
LOWwww/src/Lib/keyword.py16__all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"]CODE
LOWwww/src/Lib/_py_warnings.py8__all__ = ["warn", "warn_explicit", "showwarning",CODE
LOWwww/src/Lib/reprlib.py3__all__ = ["Repr", "repr", "recursive_repr"]CODE
122 more matches not shown…
Docstring Block Structure27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHwww/src/Lib/ipaddress.py29Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHwww/src/Lib/ipaddress.py58Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHwww/src/Lib/ipaddress.py87Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHwww/src/Lib/ipaddress.py121Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representatSTRING
HIGHwww/src/Lib/ipaddress.py305Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), STRING
HIGHwww/src/Lib/ipaddress.py446Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded biSTRING
HIGHwww/src/Lib/ipaddress.py476Return prefix length from a numeric string Args: prefixlen_str: The string to be converted STRING
HIGHwww/src/Lib/ipaddress.py501Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converSTRING
HIGHwww/src/Lib/ipaddress.py797Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') STRING
HIGHwww/src/Lib/ipaddress.py872Compare two IP objects. This is only concerned about the comparison of the integer representation of thSTRING
HIGHwww/src/Lib/ipaddress.py930The subnets which join to make the current subnet. In the case that self contains only one IP (self._prSTRING
HIGHwww/src/Lib/ipaddress.py983The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefiSTRING
HIGHwww/src/Lib/ipaddress.py1175Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHwww/src/Lib/ipaddress.py1201Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHwww/src/Lib/ipaddress.py1608Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHwww/src/Lib/ipaddress.py1712Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHwww/src/Lib/ipaddress.py1786Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. STRING
HIGHwww/src/Lib/selectors.py22Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor ReturnsSTRING
HIGHwww/src/Lib/selectors.py101Register a file object. Parameters: fileobj -- file object or file descriptor events -- eventsSTRING
HIGHwww/src/Lib/selectors.py124Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: STRING
HIGHwww/src/Lib/selectors.py142Change a registered file object monitored events or attached data. Parameters: fileobj -- file object oSTRING
HIGHwww/src/Lib/getpass.py69Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: STRING
HIGHwww/src/Lib/concurrent/futures/_base.py194An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHwww/src/Lib/concurrent/futures/_base.py423Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHwww/src/Lib/concurrent/futures/_base.py458Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHwww/src/Lib/concurrent/futures/_base.py605Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHwww/src/Lib/concurrent/futures/process.py836Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALwww/gallery/highcharts/js/highcharts-more.js209this.xAxis.center,k=e.plotLeft,l=e.plotTop,m=this.options.animation,n,p,q,r;if(e.polar)if(d.isRadialBar)b||(d.startAngleCODE
CRITICALwww/gallery/highcharts/js/highcharts.js297"attr"]({d:this.haloPath(g.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+y(this.colorIndex,f.colorIndex)+(CODE
CRITICALwww/gallery/highcharts/js/highcharts.js562this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:dCODE
CRITICALwww/src/ast_to_js.js1550 return $B.ast.For.prototype.to_js.bind(this)(scopes)CODE
CRITICALwww/src/ast_to_js.js1554 return $B.ast.FunctionDef.prototype.to_js.bind(this)(scopes)CODE
CRITICALwww/src/brython.min.js1"use strict";var __BRYTHON__=globalThis.__BRYTHON__||{};try{eval("async function* f(){}")}catch(e){console.warn("Your brCODE
CRITICALwww/src/Lib/test/test_urllib2net.py362 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALwww/src/Lib/test/test_urllib2net.py373 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICALwww/src/Lib/test/test_urllib2net.py385 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALwww/src/Lib/test/test_urllib2net.py392 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
Dead Code53 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMwww/tests/test_generators.py14CODE
MEDIUMwww/tests/test_generators.py84CODE
MEDIUMwww/src/Lib/external_import.py36CODE
MEDIUMwww/src/Lib/VFS_import.py33CODE
MEDIUMwww/src/Lib/unittest/test/test_async_case.py91CODE
MEDIUMwww/src/Lib/unittest/test/test_async_case.py199CODE
MEDIUMwww/src/Lib/test/test_fractions.py175CODE
MEDIUMwww/src/Lib/test/test_threading.py2488CODE
MEDIUMwww/src/Lib/test/test_itertools.py2440CODE
MEDIUMwww/src/Lib/test/test_array.py1136CODE
MEDIUMwww/src/Lib/test/test_generators.py577CODE
MEDIUMwww/src/Lib/test/test_generators.py588CODE
MEDIUMwww/src/Lib/test/test_exceptions.py1830CODE
MEDIUMwww/src/Lib/test/test_compile.py905CODE
MEDIUMwww/src/Lib/test/test_set.py21CODE
MEDIUMwww/src/Lib/test/test_set.py1109CODE
MEDIUMwww/src/Lib/test/test_deque.py16CODE
MEDIUMwww/src/Lib/test/test_sys_settrace.py2762CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py417CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py450CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py587CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py868CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py996CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py2046CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py2067CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py2091CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py837CODE
MEDIUMwww/src/Lib/test/test_asyncgen.py911CODE
MEDIUMwww/src/Lib/test/test_pep380.py205CODE
MEDIUMwww/src/Lib/test/test_pep380.py206CODE
MEDIUMwww/src/Lib/test/test_pep380.py207CODE
MEDIUMwww/src/Lib/test/test_builtin.py1429CODE
MEDIUMwww/src/Lib/test/test_dict.py291CODE
MEDIUMscripts/make_brython_standard_parser.py287CODE
MEDIUMscripts/make_brython_standard_parser.py288CODE
MEDIUMscripts/make_brython_standard_parser.py289CODE
MEDIUMscripts/make_brython_standard_parser.py290CODE
MEDIUMscripts/make_brython_standard_parser.py291CODE
MEDIUMscripts/make_brython_standard_parser.py292CODE
MEDIUMscripts/make_brython_standard_parser.py293CODE
MEDIUMscripts/make_brython_standard_parser.py294CODE
MEDIUMscripts/make_brython_standard_parser.py296CODE
MEDIUMscripts/make_brython_standard_parser.py298CODE
MEDIUMscripts/make_brython_standard_parser.py299CODE
MEDIUMscripts/make_brython_standard_parser.py307CODE
MEDIUMscripts/make_brython_standard_parser.py308CODE
MEDIUMscripts/make_brython_standard_parser.py315CODE
MEDIUMscripts/make_brython_standard_parser.py316CODE
MEDIUMscripts/make_brython_standard_parser.py342CODE
MEDIUMscripts/make_brython_standard_parser.py343CODE
MEDIUMscripts/make_brython_standard_parser.py347CODE
MEDIUMscripts/make_brython_standard_parser.py352CODE
MEDIUMscripts/make_brython_standard_parser.py355CODE
AI Slop Vocabulary53 hits · 95 pts
SeverityFileLineSnippetContext
MEDIUMserver_modular_send_head.py611 # Essentially static class variablesCOMMENT
LOWwww/src/Lib/zipfile.py248 # end-of-archive record, so just return the end record we were given.COMMENT
LOWwww/src/Lib/shutil.py1628 # what file suffixes are executable, so just pass on cmd as-is.COMMENT
LOWwww/src/Lib/difflib.py1431 # Handle case where no user markup is to be added, just return line ofSTRING
LOWwww/src/Lib/difflib.py1820 # if blank line or context separator, just add it to the output listCOMMENT
LOWwww/src/Lib/difflib.py1825 # if line text doesn't need wrapping, just add it to the output listCOMMENT
LOWwww/src/Lib/_contextvars.py19 # single-threaded environment: just call (no context switching)COMMENT
LOWwww/src/Lib/optparse.py565 # Check all the attributes we just set. There are lots ofCOMMENT
LOWwww/src/Lib/pdb.py3366 # No logic applied whatsoever, just pass the raw reply back.COMMENT
LOWwww/src/Lib/threading.py299 # these override the default implementations (which just callCOMMENT
MEDIUMwww/src/Lib/doctest.py1777 # in conjunction with the ELLIPSIS flag.STRING
LOWwww/src/Lib/argparse.py2480 # for regular arguments, just add them back into the listSTRING
LOWwww/src/Lib/dataclasses.py574 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOWwww/src/Lib/dataclasses.py630 # just use the class attribute that contains the default.COMMENT
LOWwww/src/Lib/tarfile.py1541 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWwww/src/Lib/_pydecimal.py3315 # otherwise, simply return the adjusted exponent of self, as aCOMMENT
LOWwww/src/Lib/ntpath.py637 # just return the old path.COMMENT
LOWwww/src/Lib/unittest/test/test_loader.py776 # XXX Should this raise a ValueError or just return an empty TestSuite?COMMENT
LOWwww/src/Lib/unittest/test/testmock/testmock.py1096 # need to do this because MagicMock.mock_calls used to just returnCOMMENT
LOWwww/src/Lib/test/test_winsound.py19# even *should* play. Instead of guessing, just call the function and assumeCOMMENT
MEDIUMwww/src/Lib/test/test_wsgiref.py445 # Not comprehensive, just a few random header namesCOMMENT
MEDIUMwww/src/Lib/test/test_logging.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
LOWwww/src/Lib/test/test_urllib2.py1165 # required, so just use a dummy one to instantiateCOMMENT
MEDIUMwww/src/Lib/test/test_pdb.py1# A test suite for pdb; not very comprehensive at the moment.COMMENT
MEDIUM⚡www/src/Lib/test/test_lzma.py511 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMwww/src/Lib/test/test_os.py2219 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
MEDIUMwww/src/Lib/test/test_decimal.py5880 """The C Context docstrings use 'x' in order to prevent confusionSTRING
MEDIUMwww/src/Lib/test/test_grammar.py1970 # This is not intended to be a comprehensive test, rather just to be fewSTRING
MEDIUMwww/src/Lib/test/test_bytes.py2330 # comprehensive for things like partition, etc.COMMENT
LOWwww/src/Lib/test/test_py_compile.py284 # assert_python_* helpers don't return proc object. We'll just useCOMMENT
LOWwww/src/Lib/test/test_subprocess.py1487 # Subsequent invocations should just return the returncodeSTRING
LOWwww/src/Lib/test/test_subprocess.py1493 # Subsequent invocations should just return the returncodeSTRING
MEDIUMwww/src/Lib/test/test_urllib2net.py35# Connecting to remote hosts is flaky. Make it more robust by retryingCOMMENT
MEDIUMwww/src/Lib/test/test_startfile.py29 # means the test harness provided directory isn't a safe option.COMMENT
MEDIUMwww/src/Lib/test/test_signal.py1392 # a signal is ignored due to the aforementionedSTRING
MEDIUMwww/src/Lib/test/test_socketserver.py54 # Don't raise an exception; it would be caught by the test harness.COMMENT
LOWwww/src/Lib/test/test_unicode_file.py120 # The 'test' functions are unittest entry points, and simply call ourCOMMENT
LOWwww/src/Lib/test/test_long.py1240 # nonnegative second argument: round(x, n) should just return xCOMMENT
LOWwww/src/Lib/test/test_argparse.py231 # redirected, simply call the function and let the enclosing functionCOMMENT
LOWwww/src/Lib/test/test_gdb.py362 # We cannot simply call locale.getpreferredencoding() here,COMMENT
LOWwww/src/Lib/test/test_types.py522 # So, just use a sign flagCOMMENT
MEDIUMwww/src/Lib/test/support/asyncore.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
MEDIUMwww/src/Lib/test/support/asynchat.py20# Rushing not be used in advertising or publicity pertaining toCOMMENT
MEDIUMwww/src/Lib/http/cookies.py12# pertaining to distribution of the software without specific, writtenCOMMENT
MEDIUMwww/src/Lib/_pyrepl/reader.py383 # facilitate the tab completion hack implemented forCOMMENT
MEDIUMwww/src/Lib/logging/config.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
MEDIUMwww/src/Lib/logging/handlers.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
MEDIUMwww/src/Lib/logging/__init__.py8# not be used in advertising or publicity pertaining to distributionCOMMENT
MEDIUMwww/src/Lib/logging/__init__.py190# _srcfile is only used in conjunction with sys._getframe().COMMENT
LOWwww/src/Lib/email/header.py73 # If it is a Header object, we can just return the encoded chunks.STRING
LOWwww/src/Lib/email/header.py77 # If no encoding, just return the header with no charset.STRING
LOWwww/src/Lib/email/header.py168 # None means us-ascii but we can simply pass it on to h.append()STRING
LOWscripts/pegen/build.py57 # To further add to the shared builds fun on Unix, we can't just addCOMMENT
Redundant / Tautological Comments57 hits · 73 pts
SeverityFileLineSnippetContext
LOWserver_modular_send_head.py614 # Set this to HTTP/1.1 to enable automatic keepaliveCOMMENT
LOWwww/demo.html1018 # Read the file content as textCOMMENT
LOWwww/gallery/binary_file_reader.html118 # Read file as ArrayBufferCOMMENT
LOWwww/gallery/taquin.py149 # Check if puzzle is solvedCOMMENT
LOWwww/gallery/music/synth_drums.py44 # Read the file content as textCOMMENT
LOWwww/gallery/music/play_song_part.html272 # Read the file content as textCOMMENT
LOWwww/src/Lib/zipfile.py441 # Set these to zero because we write them after the file dataCOMMENT
LOWwww/src/Lib/zipfile.py1269 # Check if we were passed a file-like objectCOMMENT
LOW⚡www/src/Lib/_py_abc.py131 # Check if it's a direct subclassCOMMENT
LOW⚡www/src/Lib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)COMMENT
LOW⚡www/src/Lib/_py_abc.py140 # Check if it's a subclass of a subclass (recursive)COMMENT
LOWwww/src/Lib/zipimport.py307 # Check if there's a comment.COMMENT
LOWwww/src/Lib/pyclbr.py143 # Check if it is a built-in module; we don't do much for these.COMMENT
LOWwww/src/Lib/heapq.py281 # Set childpos to index of smaller child.COMMENT
LOWwww/src/Lib/heapq.py317 # Set childpos to index of larger child.COMMENT
LOWwww/src/Lib/traceback.py1505 # Check if it worksCOMMENT
LOWwww/src/Lib/traceback.py1826 # Check if attr_name is a descriptor - if so, skip itCOMMENT
LOW⚡www/src/Lib/types.py315 # Check if 'func' is a coroutine function.COMMENT
LOW⚡www/src/Lib/types.py320 # Check if 'func' is a generator function.COMMENT
LOWwww/src/Lib/pdb.py231 # Open the file each time because the file may be modifiedCOMMENT
LOWwww/src/Lib/pdb.py2998 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWwww/src/Lib/_py_warnings.py468 # Check if message is already a Warning objectCOMMENT
LOWwww/src/Lib/_py_warnings.py622 # Print message and contextCOMMENT
LOWwww/src/Lib/doctest.py1830 # Check if we should use diff.STRING
LOWwww/src/Lib/doctest.py2227 # Read the file, convert it to a test, and run it.STRING
LOWwww/src/Lib/tarfile.py1233 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWwww/src/Lib/tarfile.py1518 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWwww/src/Lib/typing.py1292 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWwww/src/Lib/typing.py2122 # Check if the members appears in the class dictionary...COMMENT
LOWwww/src/Lib/tokenize.py390 # Check if the line matches the encoding.COMMENT
LOWwww/src/Lib/unittest/mock.py456 # Check if spec is an async object or functionCOMMENT
LOW⚡www/src/Lib/unittest/test/testmock/testmagicmethods.py494 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
LOWwww/src/Lib/test/test_gzip.py203 # Open the file for writing, then close it.STRING
LOWwww/src/Lib/test/test_zipfile.py2268 # Read the file completely to definitely call any eof integrityCOMMENT
LOWwww/src/Lib/test/test_logging.py6296 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWwww/src/Lib/test/test_pdb.py3667 # Check if the custom prefix appeared in the outputCOMMENT
LOWwww/src/Lib/test/test_difflib.py260 # Check if the problem described in patch #1413711 exists.COMMENT
LOWwww/src/Lib/test/test_type_cache.py32 # Check if global version tag has already overflowed.COMMENT
LOWwww/src/Lib/test/test_typing.py5093 # Check if a dictionary conforms to Dict typeCOMMENT
LOWwww/src/Lib/test/test_typing.py5108 # Check if an instance conforms to the generic classCOMMENT
LOWwww/src/Lib/test/test_typing.py5120 # Check if list conforms to a List subclassCOMMENT
LOWwww/src/Lib/test/test_http_cookies.py104 # Check if the cookie is loaded correctlyCOMMENT
LOWwww/src/Lib/test/test_smtpd.py886 # Set decode_data to TrueSTRING
LOWwww/src/Lib/test/test_io.py3348 # Check if the BOM is written only once (see issue1753).COMMENT
LOWwww/src/Lib/test/test_compile.py1395 # Check if bytecode containing jumps that simply point to the next lineSTRING
LOWwww/src/Lib/test/test_annotationlib.py2351 # Check if the passed in mutable arguments equal the originalsCOMMENT
LOWwww/src/Lib/test/test_memoryio.py766 bytearray(state[0]) # Check if state[0] supports the buffer interface.CODE
LOWwww/src/Lib/test/test_memoryio_back.py776 bytearray(state[0]) # Check if state[0] supports the buffer interface.CODE
LOWwww/src/Lib/test/test_codecs.py2919 # Check if the BOM is written only onceCOMMENT
LOWwww/src/Lib/test/support/__init__.py988 # Check if Python was built with ./configure --enable-optimizations:COMMENT
LOWwww/src/Lib/test/support/__init__.py1942 # Check if the 'Crash Reporter' on OSX was configuredCOMMENT
LOWwww/src/Lib/test/support/__init__.py720 # Check if subprocess is still alive after probingSTRING
LOWwww/src/Lib/urllib/parse.py1079 # Check if ' ' in string, where string may either be a str or bytes. IfCOMMENT
LOWwww/src/Lib/http/cookies.py451 # Return the resultSTRING
LOWwww/src/Lib/_pyrepl/utils.py352 # Check if the next span starts at the same positionSTRING
LOWwww/src/Lib/importlib/_bootstrap_external.py1373 # Check if the module is the name of a directory (and thus a package).COMMENT
LOWscripts/pegen/grammar.py38 # Check if there are repeated rules in "rules"COMMENT
Cross-Language Confusion (JS/TS)10 hits · 62 pts
SeverityFileLineSnippetContext
HIGHwww/src/ast_to_js.js2770 // add an explicit "return None"COMMENT
HIGHwww/src/py_import.js1372 * @return NoneCOMMENT
HIGHwww/src/py_builtin_functions.js32 return NoneCODE
HIGHwww/src/py_builtin_functions.js1790 return NoneCODE
HIGHwww/src/py_builtin_functions.js1936 // Must return None: pickle's load_build treats a NULL/undefined resultCOMMENT
HIGHwww/src/builtins_docstrings.js83all:"Return True if bool(x) is True for all values x in the iterable.\n\nIf the iterable is empty, return True.",CODE
HIGHwww/src/builtins_docstrings.js85any:"Return True if bool(x) is True for any x in the iterable.\n\nIf the iterable is empty, return False.",CODE
HIGHwww/src/py_string.js2092 // return False. suffix can also be a tuple of suffixes to look for.COMMENT
HIGHwww/src/py_string.js3124 // Return True if string starts with the prefix, otherwise return False.COMMENT
HIGHwww/src/brython.min.js1"use strict";var __BRYTHON__=globalThis.__BRYTHON__||{};try{eval("async function* f(){}")}catch(e){console.warn("Your brCODE
Fake / Example Data61 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡www/tests/test_traceback.py5 fake_name = "<fake_file>"CODE
LOW⚡www/tests/test_traceback.py6 linecache.cache[fake_name] = (len(src), None, src.splitlines(True), fake_name)CODE
LOW⚡www/tests/test_traceback.py7 exec(compile(src, fake_name, "exec"))CODE
LOWwww/src/Lib/test/test_xml_etree.py1974 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWwww/src/Lib/test/test_xml_etree.py2140 ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n'STRING
LOWwww/src/Lib/test/make_ssl_certs.py271 'email.1 = user@example.org',STRING
LOW⚡www/src/Lib/test/test_curses.py438 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡www/src/Lib/test/test_curses.py441 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')CODE
LOW⚡www/src/Lib/test/test_curses.py447 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOW⚡www/src/Lib/test/test_curses.py457 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')CODE
LOWwww/src/Lib/test/test_curses.py397 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')CODE
LOWwww/src/Lib/test/test_curses.py479 win.addstr(2, 0, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py480 win.addstr(3, 0, 'dolor sit amet')CODE
LOWwww/src/Lib/test/test_curses.py509 win.addstr(0, 0, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py597 win.addstr(2, 1, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py605 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py1349 'Lorem ipsum',CODE
LOWwww/src/Lib/test/test_curses.py1350 'dolor sit amet,',CODE
LOWwww/src/Lib/test/test_ssl.py548 ('email', 'null@python.org\x00user@example.org'),CODE
LOWwww/src/Lib/test/test_ssl.py555 ('email', 'null@python.org\x00user@example.org'),CODE
LOWwww/src/Lib/test/test_ssl.py569 ('email', 'user@example.org'),CODE
LOW⚡www/src/Lib/test/test_urlparse.py450 self.assertEqual(urlparse('mailto:1337@example.org'),CODE
LOW⚡www/src/Lib/test/test_urlparse.py451 ('mailto', '', '1337@example.org', '', '', ''))CODE
LOW⚡www/src/Lib/test/test_urlparse.py452 self.assertEqual(urlparse('mailto:1337@example.org', missing_as_none=True),CODE
LOW⚡www/src/Lib/test/test_urlparse.py453 ('mailto', None, '1337@example.org', None, None, None))CODE
LOWwww/src/Lib/test/test_pickletools.py583 data = ('fake_data',)STRING
LOWwww/src/Lib/test/test_pickletools.py587 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWwww/src/Lib/test/test_pickletools.py608 data = ('fake_data',)STRING
LOWwww/src/Lib/test/test_pickletools.py612 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWwww/src/Lib/test/test_pickletools.py624 data = ('fake_data',)STRING
LOWwww/src/Lib/test/test_pickletools.py628 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWwww/src/Lib/test/test_pickletools.py640 data = ('fake_data',)STRING
LOWwww/src/Lib/test/test_pickletools.py644 11: \x8c SHORT_BINUNICODE 'fake_data' Push a Python Unicode string object.CODE
LOW⚡www/src/Lib/test/test_pickletools.py656 data = ('fake_data',)STRING
LOW⚡www/src/Lib/test/test_pickletools.py661 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOW⚡www/src/Lib/test/test_pickletools.py670 11: \x8c SHORT_BINUNICODE 'fake_data'CODE
LOWwww/src/Lib/test/test_smtplib.py518 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py555 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py584 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py644 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py681 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_email/test_generator.py456 msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo")STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3502 address = '"Alice, alice@example.org" <bob@example.com>'STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3503 expected_strict = ('Alice, alice@example.org', 'bob@example.com')STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3512 expected_strict = ('Alice', 'alice@example.org')STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3523 [('', 'alice@example.org'), ('', ''), ('', 'Alice')])STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3529 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3529 address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>'STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3531 [('Jane Doe', 'jane@example.net'),STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3532 ('John Doe', 'john@example.net')])STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3534 [('Jane Doe', 'jane@example.net'),STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3535 ('John Doe', 'john@example.net')])STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3591 eq(addrs[0][1], 'foo@bar.com')STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3791 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOW⚡www/src/Lib/test/test_email/test_email.py3791 check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>',STRING
LOWwww/src/Lib/test/test_email/test_email.py3457 alice = 'alice@example.org'STRING
LOWwww/src/Lib/test/test_email/test_email.py4298 ('From: foo@bar.com', ('From', 'foo@bar.com')),STRING
LOWwww/src/Lib/test/test_email/test_email.py4331 ['foo@bar.com',STRING
LOWwww/src/Lib/test/test_email/test_email.py4342 [('From', 'foo@bar.com'),STRING
LOWwww/src/Lib/test/test_email/test_email.py4354 ['foo@bar.com',STRING
1 more matches not shown…
Overly Generic Function Names96 hits · 42 pts
SeverityFileLineSnippetContext
LOWwww/tests/test_suite.py223 def do_something(self):CODE
LOWwww/src/Lib/contextlib.py366 def helper(*args, **kwds):CODE
LOWwww/src/Lib/contextlib.py399 def helper(*args, **kwds):CODE
LOWwww/src/Lib/unittest/test/test_break.py82 def test_function():CODE
LOWwww/src/Lib/unittest/test/test_break.py113 def test_function():CODE
LOWwww/src/Lib/unittest/test/test_break.py125 def test_function():CODE
LOWwww/src/Lib/unittest/test/test_break.py155 def test_function():CODE
LOWwww/src/Lib/unittest/test/_test_warnings.py55 def test_function(self):CODE
LOWwww/src/Lib/unittest/test/testmock/testhelpers.py747 def test_function(self):CODE
LOWwww/src/Lib/test/test_unparse.py927 def test_function(self):CODE
LOWwww/src/Lib/test/test_gc.py228 def test_function(self):CODE
LOWwww/src/Lib/test/test_logging.py2169 def handle_request(self, request):CODE
LOWwww/src/Lib/test/test_with.py44 def helper(*args, **kwds):CODE
LOWwww/src/Lib/test/test_marshal.py19 def helper(self, sample, *extra):CODE
LOWwww/src/Lib/test/test_pdb.py721def do_something():CODE
LOWwww/src/Lib/test/test_pdb.py53 >>> def test_function(foo, bar):STRING
LOWwww/src/Lib/test/test_pdb.py98 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py234 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py365 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py416 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py441 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py487 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py520 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py642 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py668 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py689 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py743 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py770 1 def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py816 ... def do_something():STRING
LOWwww/src/Lib/test/test_pdb.py834 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py867 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py937 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1009 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1094 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1115 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1133 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1190 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1286 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1368 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1422 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1495 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1528 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1560 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1635 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1687 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1724 1 def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1754 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1824 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1912 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2005 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2069 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2134 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2166 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2228 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2281 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2336 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2397 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2450 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2515 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py2553 >>> def test_function():STRING
36 more matches not shown…
AI Structural Patterns45 hits · 38 pts
SeverityFileLineSnippetContext
LOWwww/gallery/synthesizer.py18CODE
LOWwww/tests/issues.py3237CODE
LOWwww/tests/input_interpreter.py206CODE
LOWwww/cgi-bin/cgi.py330CODE
LOWwww/src/Lib/tempfile.py558CODE
LOWwww/src/Lib/tempfile.py631CODE
LOWwww/src/Lib/tempfile.py713CODE
LOWwww/src/Lib/time.py137CODE
LOWwww/src/Lib/time.py178CODE
LOWwww/src/Lib/time.py316CODE
LOWwww/src/Lib/textwrap.py112CODE
LOWwww/src/Lib/cmath.py401CODE
LOWwww/src/Lib/functools.py630CODE
LOWwww/src/Lib/subprocess.py814CODE
LOWwww/src/Lib/pydoc.py1365CODE
LOWwww/src/Lib/optparse.py1168CODE
LOWwww/src/Lib/pdb.py499CODE
LOWwww/src/Lib/interpreter.py159CODE
LOWwww/src/Lib/configparser.py654CODE
LOWwww/src/Lib/reprlib.py51CODE
LOWwww/src/Lib/_pydatetime.py1789CODE
LOWwww/src/Lib/_pydatetime.py2083CODE
LOWwww/src/Lib/tarfile.py978CODE
LOWwww/src/Lib/tarfile.py1747CODE
LOWwww/src/Lib/_pydecimal.py3872CODE
LOWwww/src/Lib/_colorize.py483CODE
LOWwww/src/Lib/unittest/main.py66CODE
LOWwww/src/Lib/unittest/mock.py446CODE
LOWwww/src/Lib/unittest/mock.py465CODE
LOWwww/src/Lib/unittest/mock.py1154CODE
LOWwww/src/Lib/test/test_pdb.py5073CODE
LOWwww/src/Lib/test/test_faulthandler.py108CODE
LOWwww/src/Lib/test/test_decimal.py4323CODE
LOWwww/src/Lib/test/test_code.py850CODE
LOWwww/src/Lib/test/mock_socket.py54CODE
LOWwww/src/Lib/test/test_ssl.py281CODE
LOWwww/src/Lib/test/test_ssl.py322CODE
LOWwww/src/Lib/test/test_ssl.py2751CODE
LOWwww/src/Lib/json/__init__.py155CODE
LOWwww/src/Lib/json/encoder.py260CODE
LOWwww/src/Lib/json/encoder.py105CODE
LOWwww/src/Lib/http/cookiejar.py885CODE
LOWwww/src/Lib/_pyrepl/_minimal_curses.py64CODE
LOWwww/src/Lib/logging/handlers.py216CODE
LOWwww/src/Lib/email/contentmanager.py172CODE
Verbosity Indicators18 hits · 28 pts
SeverityFileLineSnippetContext
LOW⚡www/src/Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOW⚡www/src/Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡www/src/Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOW⚡www/src/Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡www/src/Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOW⚡www/src/Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOW⚡www/src/Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡www/src/Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOW⚡www/src/Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡www/src/Lib/encodings/idna.py173 # Step 8: return the result of step 5COMMENT
LOWwww/src/Lib/encodings/idna.py68 # Step 1: try ASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py130 # Step 1: Check for ASCIICOMMENT
LOWwww/src/Lib/test/test_curses.py947 # range may be restricted, so we need to check if the limit is stillCOMMENT
LOWwww/src/Lib/email/header.py390 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
Structural Annotation Overuse17 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡www/src/Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOW⚡www/src/Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOW⚡www/src/Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOW⚡www/src/Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOW⚡www/src/Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOW⚡www/src/Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOW⚡www/src/Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOW⚡www/src/Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOW⚡www/src/Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOW⚡www/src/Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOW⚡www/src/Lib/encodings/idna.py173 # Step 8: return the result of step 5COMMENT
LOWwww/src/Lib/encodings/idna.py68 # Step 1: try ASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py130 # Step 1: Check for ASCIICOMMENT
LOWwww/src/Lib/email/header.py390 # Step 1: Normalize the chunks so that all runs of identical charsetsSTRING
Slop Phrases9 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMwww/gallery/markdown_exec.html17example = """Here is a simple example:CODE
MEDIUMwww/src/Lib/heapq.py267# you can use it.COMMENT
LOWwww/src/Lib/quopri.py91 # Don't forget to include the soft line break `=' sign in theCOMMENT
MEDIUMwww/src/Lib/ntpath.py408# XXX With COMMAND.COM you can use any characters in a variable name,COMMENT
MEDIUM⚡www/src/Lib/unittest/test/testmock/testmagicmethods.py494 # Check if you can change behaviour of magic methods in MagicMock initCOMMENT
LOWwww/src/Lib/test/test_gc.py1729 # make sure to always test gc.enable()STRING
MEDIUMwww/src/Lib/test/test_logging.py425# level values which do not fit into these limitations, you can use aCOMMENT
LOWwww/src/Lib/test/test_bigmem.py46# - Don't forget to test for large indices, offsets and results and such,COMMENT
LOWwww/src/Lib/_pyrepl/fancycompleter.py177 # sort the words now to make sure to return completions inCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwww/src/Lib/subprocess.py258 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwww/src/Lib/test/test_asyncgen.py74 # all methods of the iterator protocol. In this implementationCOMMENT
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOWwww/src/Lib/zipfile.py576# Usage:COMMENT
LOW⚡www/src/Lib/unittest/test/testmock/testmock.py504 # Usage exampleCOMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWwww/src/py_type.js2238 if ($B.is_type(arg)) { // TODO: Add testCODE
LOWwww/src/Lib/test/test_smtplib.py1285 #TODO: add tests for correct AUTH method fallback now that theCOMMENT