Repository Analysis

brython-dev/brython

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

12.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of brython-dev/brython, a Python project with 6,611 GitHub stars. SynthScan v2.0 examined 818,682 lines of code across 1938 source files, recording 9016 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 12.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

12.7
Adjusted Score
12.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.6K
Stars
Python
Language
818.7K
Lines of Code
1.9K
Files
9.0K
Pattern Hits
2026-07-14
Scan Date
0.21
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 9HIGH 392MEDIUM 605LOW 8010

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers5296 hits · 4167 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.html234 def test_sub_template_numeric_escape(self):CODE
LOWwww/tests/test_re.html615 def test_sre_character_literals(self):CODE
LOWwww/tests/test_re.html647 def test_character_set_errors(self):CODE
LOWwww/tests/test_re.html684 def test_re_groupref_overflow(self):CODE
LOWwww/tests/test_re.html830 def test_named_unicode_escapes(self):CODE
LOWwww/tests/test_re.html1054 def test_possible_set_operations(self):CODE
LOWwww/tests/test_re.html1153 def test_re_escape_non_ascii_bytes(self):CODE
LOWwww/tests/test_re.html1219 def test_unlimited_zero_width_repeat(self):CODE
LOWwww/tests/test_re.html1469 def test_dollar_matches_twice(self):CODE
LOWwww/tests/test_re.html1494 def test_ascii_and_unicode_flag(self):CODE
LOWwww/tests/test_re.html1680 def test_repeat_minmax_overflow(self):CODE
LOWwww/tests/test_re.html1696 def test_repeat_minmax_overflow_maxrepeat(self):CODE
LOWwww/tests/test_re.html1710 def test_backref_group_name_in_exception(self):CODE
LOWwww/tests/test_re.html1715 def test_group_name_in_exception(self):CODE
LOWwww/tests/test_re.html2015 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
LOWwww/tests/test_patma.py28 def check_sequence_then_mapping(x):CODE
LOWwww/tests/test_patma.py36 def check_mapping_then_sequence(x):CODE
LOWwww/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.py1159def unregister_archive_format(name):CODE
LOWwww/src/Lib/pkgutil.py128def _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.py756def _get_mtime_and_size_of_source(self, path):CODE
LOWwww/src/Lib/functools.py1140def _warn_python_reduce_kwargs(py_reduce):CODE
LOWwww/src/Lib/traceback.py410def _walk_tb_with_full_positions(tb):CODE
LOWwww/src/Lib/traceback.py460 def _extract_from_extended_frame_gen(klass, frame_gen, *, limit=None,CODE
LOWwww/src/Lib/traceback.py794def _byte_offset_to_character_offset(str, offset):CODE
LOWwww/src/Lib/traceback.py812def _extract_caret_anchors_from_line_segment(segment):CODE
5236 more matches not shown…
Cross-Language Confusion281 hits · 1581 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
HIGHwww/tests/test_null.py3assert(JSObject(null) == None)CODE
HIGHwww/tests/test_null.py4assert(JSObject(null) is None)CODE
HIGHwww/tests/test_null.py6assert(None is JSObject(null))CODE
HIGHwww/tests/test_null.py7assert(None == JSObject(null))CODE
HIGHwww/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
HIGHwww/src/Lib/locale.py1734 print('Language: ', lang or '(undefined)')CODE
HIGHwww/src/Lib/locale.py1735 print('Encoding: ', enc or '(undefined)')CODE
HIGHwww/src/Lib/locale.py1743 print(' Language: ', lang or '(undefined)')CODE
HIGHwww/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
HIGHwww/src/Lib/test/test_poplib.py80 self.push('-ERR unrecognized POP3 command "%s".' %cmd)CODE
HIGHwww/src/Lib/test/test_poplib.py86 asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n')CODE
HIGHwww/src/Lib/test/test_poplib.py90 self.push(arg)CODE
HIGHwww/src/Lib/test/test_poplib.py94 self.push("-ERR no such user")CODE
HIGHwww/src/Lib/test/test_poplib.py95 self.push('+OK password required')CODE
HIGHwww/src/Lib/test/test_poplib.py99 self.push("-ERR wrong password")CODE
HIGHwww/src/Lib/test/test_poplib.py100 self.push('+OK 10 messages')CODE
HIGHwww/src/Lib/test/test_poplib.py103 self.push('+OK 10 100')CODE
HIGHwww/src/Lib/test/test_poplib.py107 self.push('+OK %s %s' % (arg, arg))CODE
HIGHwww/src/Lib/test/test_poplib.py109 self.push('+OK')CODE
HIGHwww/src/Lib/test/test_poplib.py110 asynchat.async_chat.push(self, LIST_RESP)CODE
HIGHwww/src/Lib/test/test_poplib.py115 self.push('+OK %s bytes' %len(RETR_RESP))CODE
HIGHwww/src/Lib/test/test_poplib.py116 asynchat.async_chat.push(self, RETR_RESP)CODE
HIGHwww/src/Lib/test/test_poplib.py121 self.push('+OK message marked for deletion.')CODE
HIGHwww/src/Lib/test/test_poplib.py124 self.push('+OK done nothing.')CODE
HIGHwww/src/Lib/test/test_poplib.py127 self.push('+OK done nothing.')CODE
HIGHwww/src/Lib/test/test_poplib.py130 self.push('+OK done nothing.')CODE
HIGHwww/src/Lib/test/test_poplib.py133 self.push('+OK closing.')CODE
HIGHwww/src/Lib/test/test_poplib.py143 self.push('+OK Capability list follows')CODE
HIGHwww/src/Lib/test/test_poplib.py149 self.push(' '.join(_ln))CODE
HIGHwww/src/Lib/test/test_poplib.py150 self.push('.')CODE
HIGHwww/src/Lib/test/test_poplib.py153 self.push('+OK I know RFC6856'CODE
HIGHwww/src/Lib/test/test_poplib.py161 self.push('+OK Begin TLS negotiation')CODE
HIGHwww/src/Lib/test/test_poplib.py59 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHwww/src/Lib/test/test_poplib.py175 self.push('-ERR Command not permitted when TLS active')CODE
HIGHwww/src/Lib/test/test_poplib.py434 self.push('+OK dummy pop3 server ready. <timestamp>')CODE
HIGHwww/src/Lib/test/test_gettext.py394 f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py400 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py400 f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py406 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
HIGHwww/src/Lib/test/test_gettext.py406 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
HIGHwww/src/Lib/test/test_gettext.py412 f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py418 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py418 f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2')CODE
HIGHwww/src/Lib/test/test_gettext.py424 f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3')CODE
221 more matches not shown…
Deep Nesting946 hits · 802 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
886 more matches not shown…
Decorative Section Separators303 hits · 793 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
MEDIUMwww/gallery/kanban.py291# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py295# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py299# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py338# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py343# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py349# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py355# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/kanban.py379# ----------------------------------------------------------COMMENT
MEDIUMwww/gallery/raphael/raphael-min.js1// ┌────────────────────────────────────────────────────────────────────┐ \\COMMENT
MEDIUMwww/gallery/raphael/raphael-min.js3// ├────────────────────────────────────────────────────────────────────┤ \\COMMENT
MEDIUMwww/gallery/raphael/raphael-min.js6// ├────────────────────────────────────────────────────────────────────┤ \\COMMENT
MEDIUMwww/gallery/raphael/raphael-min.js8// └────────────────────────────────────────────────────────────────────┘ \\COMMENT
MEDIUMwww/tests/issues.py3348# ==========================================STRING
MEDIUMwww/tests/issues.py3350# ==========================================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.py411# ==============================================COMMENT
MEDIUMwww/src/Lib/heapq.py441# -----------------------------------------------COMMENT
MEDIUMwww/src/Lib/heapq.py461# ----------------------COMMENT
MEDIUMwww/src/Lib/heapq.py468# ----------------------COMMENT
MEDIUMwww/src/Lib/numbers.py50## ----------------COMMENT
MEDIUMwww/src/Lib/random.py200 ## -------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py274 ## --------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py845## ------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py886# ----------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py920## ------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/random.py961## ------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/re1.py184# --------------------------------------------------------------------STRING
MEDIUMwww/src/Lib/re1.py282# --------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/re1.py343# --------------------------------------------------------------------COMMENT
MEDIUMwww/src/Lib/argparse.py772# =====================COMMENT
MEDIUMwww/src/Lib/argparse.py774# =====================COMMENT
MEDIUMwww/src/Lib/argparse.py1470 # ====================COMMENT
MEDIUMwww/src/Lib/argparse.py1472 # ====================COMMENT
MEDIUMwww/src/Lib/argparse.py1481 # ==================================COMMENT
MEDIUMwww/src/Lib/argparse.py1483 # ==================================COMMENT
MEDIUMwww/src/Lib/argparse.py105# =============================COMMENT
MEDIUMwww/src/Lib/argparse.py107# =============================COMMENT
MEDIUMwww/src/Lib/argparse.py152# ===============COMMENT
MEDIUMwww/src/Lib/argparse.py154# ===============COMMENT
MEDIUMwww/src/Lib/argparse.py205 # ===============================COMMENT
MEDIUMwww/src/Lib/argparse.py207 # ===============================COMMENT
MEDIUMwww/src/Lib/argparse.py257 # ========================COMMENT
MEDIUMwww/src/Lib/argparse.py259 # ========================COMMENT
MEDIUMwww/src/Lib/argparse.py301 # =======================COMMENT
MEDIUMwww/src/Lib/argparse.py303 # =======================COMMENT
MEDIUMwww/src/Lib/argparse.py824# ==============COMMENT
MEDIUMwww/src/Lib/argparse.py826# ==============COMMENT
MEDIUMwww/src/Lib/argparse.py1333# ==============COMMENT
MEDIUMwww/src/Lib/argparse.py1335# ==============COMMENT
243 more matches not shown…
Unused Imports605 hits · 575 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_import.py42CODE
LOWwww/tests/test_import.py48CODE
LOWwww/tests/test_import.py68CODE
LOWwww/tests/test_import.py79CODE
LOWwww/tests/test_import.py80CODE
LOWwww/tests/test_import.py81CODE
LOWwww/tests/test_import.py65CODE
LOWwww/tests/test_suite.py332CODE
LOWwww/tests/test_suite.py1205CODE
545 more matches not shown…
Excessive Try-Catch Wrapping431 hits · 472 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.py1620except Exception:STRING
LOWwww/tests/issues.py1625except Exception:STRING
LOWwww/tests/issues.py2976 except Exception as e:CODE
LOWwww/tests/issues.py2978except Exception as e:CODE
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.html169 except Exception as exc:CODE
LOWwww/tests/test_re.html106 except Exception as exc:CODE
MEDIUMwww/tests/test_re.html101def 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
LOWwww/tests/test_generators.py1224except Exception as exc:CODE
LOWwww/tests/test_generators.py1230except Exception as exc:CODE
LOWwww/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
LOWwww/tests/test_traceback.py16except Exception:STRING
LOWwww/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.py99 except Exception as err:CODE
LOWwww/src/Lib/shutil.py130 except Exception as err:CODE
LOWwww/src/Lib/pkgutil.py80 except Exception:CODE
LOWwww/src/Lib/rlcompleter.py158 except Exception:CODE
LOWwww/src/Lib/zipimport.py621 except Exception:CODE
LOWwww/src/Lib/zipimport.py669 except Exception:CODE
MEDIUMwww/src/Lib/zipimport.py346def _read_directory(archive):CODE
LOWwww/src/Lib/_typing.py235 except Exception as exc:CODE
LOWwww/src/Lib/weakref.py567 except Exception:CODE
LOWwww/src/Lib/traceback.py1071 except Exception as e:CODE
LOWwww/src/Lib/traceback.py1305 except Exception:CODE
LOWwww/src/Lib/traceback.py1613 except Exception:CODE
LOWwww/src/Lib/traceback.py1625 except Exception:CODE
LOWwww/src/Lib/traceback.py1648 except Exception:CODE
MEDIUMwww/src/Lib/code.py155 print('Error in sys.excepthook:', file=sys.stderr)CODE
MEDIUMwww/src/Lib/pydoc.py562def repr_instance(self, x, level):CODE
LOWwww/src/Lib/pydoc.py899 except Exception:CODE
LOWwww/src/Lib/pydoc.py945 except Exception:CODE
LOWwww/src/Lib/pydoc.py1381 except Exception:CODE
LOWwww/src/Lib/pydoc.py2659 except Exception as exc:CODE
LOWwww/src/Lib/pydoc.py2250 except Exception:STRING
LOWwww/src/Lib/pydoc.py2413 except Exception as err:STRING
371 more matches not shown…
Self-Referential Comments156 hits · 380 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.html114 # 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.html202 # Create a shadow rootSTRING
MEDIUMwww/gallery/webcomponent.html241 # 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.html98# 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.py880 # The following methods can be called by clients to useCOMMENT
MEDIUMwww/src/Lib/bdb.py931 # This method is more useful to debug a single function call.COMMENT
MEDIUMwww/src/Lib/base64.py434# The following code is originally taken (with permission) from MercurialSTRING
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.py429 # 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.py709 # Create a link for methods like 'self.method(...)'COMMENT
MEDIUMwww/src/Lib/types.py314 # The following code is primarily to support functions thatCOMMENT
MEDIUMwww/src/Lib/pdb.py525 """This method is called when there is the remote possibilitySTRING
MEDIUMwww/src/Lib/pdb.py534 """This function is called when we stop or break at this line."""STRING
MEDIUMwww/src/Lib/pdb.py567 """This function is called when a return trap is set here."""STRING
MEDIUMwww/src/Lib/pdb.py576 """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.py147 """This class implements reentrant lock objects.STRING
MEDIUMwww/src/Lib/threading.py330 # This method is called only if _lock doesn't have _is_owned().COMMENT
MEDIUMwww/src/Lib/threading.py460 """This class implements semaphore objects.STRING
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/_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/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.py594 # The following code is for backward compatibility.COMMENT
MEDIUMwww/src/Lib/doctest.py151 # Create a new flag unless `name` is already known.STRING
MEDIUMwww/src/Lib/doctest.py679 # Create an Example, and add it to the list.STRING
MEDIUMwww/src/Lib/doctest.py1274 # Create a fake output target for capturing doctest output.STRING
MEDIUMwww/src/Lib/dataclasses.py388# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMwww/src/Lib/dataclasses.py1138 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMwww/src/Lib/dataclasses.py1166 # Create a class doc-string.COMMENT
MEDIUMwww/src/Lib/dataclasses.py1290 # Create a new dict for our new class.COMMENT
MEDIUMwww/src/Lib/dataclasses.py1727 # 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.py1111 # Create a pax extended header if necessary.COMMENT
MEDIUMwww/src/Lib/tarfile.py2293 # 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
MEDIUMwww/src/Lib/test/test_winreg.py93 # Create a sub-keyCOMMENT
MEDIUMwww/src/Lib/test/test_support.py457 # Create a child processCOMMENT
96 more matches not shown…
Cross-File Repetition73 hits · 365 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.py0\ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pSTRING
HIGHwww/tests/input_interpreter.py0\ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pSTRING
HIGHwww/src/Lib/interpreter.py0\ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pSTRING
HIGHwww/src/Lib/site.py0\ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.pSTRING
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
13 more matches not shown…
Over-Commented Block379 hits · 345 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.js1101 }COMMENT
LOWwww/src/gen_parse.js1721 }COMMENT
LOWwww/src/gen_parse.js8981}COMMENT
LOWwww/src/gen_parse.js10761}COMMENT
LOWwww/src/gen_parse.js19181 }COMMENT
LOWwww/src/py_import.js1201 // If the module name mod_name is already in $B.imported, return it.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 # members:COMMENT
LOWwww/src/Lib/tabnanny.py181 self.is_simple = len(count) <= 1COMMENT
LOWwww/src/Lib/tabnanny.py221 other.longest_run_of_spaces()) + 1COMMENT
LOWwww/src/Lib/zipimport.py321 return NoneCOMMENT
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.py641COMMENT
LOWwww/src/Lib/cmath.py121def sqrt(x):COMMENT
LOWwww/src/Lib/cmath.py481 # problematic:COMMENT
LOWwww/src/Lib/heapq.py241# many books write the algorithm that way. During a heap pop, the last arrayCOMMENT
LOWwww/src/Lib/heapq.py261# 1855 cut to 1659 14966 cut to 8678COMMENT
LOWwww/src/Lib/heapq.py401 _heapreplace(h, s)COMMENT
LOWwww/src/Lib/heapq.py421# 1,000 100 3,317 231.7%COMMENT
LOWwww/src/Lib/heapq.py441# -----------------------------------------------COMMENT
LOWwww/src/Lib/heapq.py461# ----------------------COMMENT
LOWwww/src/Lib/functools.py661 if key in cache:COMMENT
LOWwww/src/Lib/traceback.py821 try: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
319 more matches not shown…
Modern Structural Boilerplate176 hits · 166 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.py57__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.py12__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.py40__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.py27__all__ = ["check", "NannyNag", "process_tokens"]CODE
LOWwww/src/Lib/zipimport.py24__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.py11__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', 'merge',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.py17__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.py32__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.py40__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.py340__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.py73__all__ = [CODE
LOWwww/src/Lib/optparse.py26__all__ = ['Option',CODE
LOWwww/src/Lib/pdb.py112__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
116 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.py30Prompt 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.py578Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
HIGHwww/src/Lib/concurrent/futures/process.py795Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argumeSTRING
AI Slop Vocabulary55 hits · 102 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.py1617 # what file suffixes are executable, so just pass on cmd as-is.COMMENT
LOWwww/src/Lib/difflib.py1413 # Handle case where no user markup is to be added, just return line ofSTRING
LOWwww/src/Lib/difflib.py1780 # if blank line or context separator, just add it to the output listCOMMENT
LOWwww/src/Lib/difflib.py1785 # if line text doesn't need wrapping, just add it to the output listCOMMENT
LOWwww/src/Lib/_contextvars.py18 # 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.py3122 # 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.py1745 # in conjunction with the ELLIPSIS flag.STRING
LOWwww/src/Lib/argparse.py2363 # for regular arguments, just add them back into the listCOMMENT
LOWwww/src/Lib/dataclasses.py529 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOWwww/src/Lib/dataclasses.py585 # just use the class attribute that contains the default.COMMENT
LOWwww/src/Lib/tarfile.py1503 # Normally, we could just use "utf-8" as the encoding and "strict"COMMENT
LOWwww/src/Lib/_pydecimal.py3309 # 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.py18# even *should* play. Instead of guessing, just call the function and assumeCOMMENT
MEDIUMwww/src/Lib/test/test_wsgiref.py444 # 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.py1148 # 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
MEDIUMwww/src/Lib/test/test_lzma.py512 # Test robust handling of non-LZMA data following the compressed stream(s).COMMENT
MEDIUMwww/src/Lib/test/test_os.py1935 # We spawn a new process to make the test more robust (if getrlimit()COMMENT
MEDIUMwww/src/Lib/test/test_decimal.py5743 """The C Context docstrings use 'x' in order to prevent confusionSTRING
MEDIUMwww/src/Lib/test/test_grammar.py1934 # This is not intended to be a comprehensive test, rather just to be fewSTRING
MEDIUMwww/src/Lib/test/test_bytes.py1915 # comprehensive for things like partition, etc.COMMENT
LOWwww/src/Lib/test/test_bz2.py72 # simply use the bigger test data for all tests.COMMENT
LOWwww/src/Lib/test/test_py_compile.py240 # assert_python_* helpers don't return proc object. We'll just useCOMMENT
LOWwww/src/Lib/test/test_subprocess.py1218 # Subsequent invocations should just return the returncodeSTRING
LOWwww/src/Lib/test/test_subprocess.py1224 # Subsequent invocations should just return the returncodeSTRING
MEDIUMwww/src/Lib/test/test_urllib2net.py32# Connecting to remote hosts is flaky. Make it more robust by retryingCOMMENT
MEDIUMwww/src/Lib/test/test_ssl.py2384 # harness, we want to stop the serverCOMMENT
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.py1361 # a signal is ignored due to the aforementionedSTRING
MEDIUMwww/src/Lib/test/test_socketserver.py52 # 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.py1188 # nonnegative second argument: round(x, n) should just return xCOMMENT
LOWwww/src/Lib/test/test_argparse.py105 # 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.py487 # 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.py267 # 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
Hallucination Indicators9 hits · 90 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.js1460 return $B.ast.For.prototype.to_js.bind(this)(scopes)CODE
CRITICALwww/src/ast_to_js.js1464 return $B.ast.FunctionDef.prototype.to_js.bind(this)(scopes)CODE
CRITICALwww/src/Lib/test/test_urllib2net.py342 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALwww/src/Lib/test/test_urllib2net.py353 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
CRITICALwww/src/Lib/test/test_urllib2net.py364 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())CODE
CRITICALwww/src/Lib/test/test_urllib2net.py370 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)CODE
Dead Code39 hits · 76 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_itertools.py2180CODE
MEDIUMwww/src/Lib/test/test_array.py1092CODE
MEDIUMwww/src/Lib/test/test_generators.py350CODE
MEDIUMwww/src/Lib/test/test_generators.py361CODE
MEDIUMwww/src/Lib/test/test_exceptions.py1717CODE
MEDIUMwww/src/Lib/test/test_compile.py691CODE
MEDIUMwww/src/Lib/test/test_set.py21CODE
MEDIUMwww/src/Lib/test/test_set.py1076CODE
MEDIUMwww/src/Lib/test/test_deque.py16CODE
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.py1091CODE
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
Redundant / Tautological Comments46 hits · 65 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.html116 # 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
LOWwww/src/Lib/_py_abc.py131 # Check if it's a direct subclassCOMMENT
LOWwww/src/Lib/_py_abc.py135 # Check if it's a subclass of a registered class (recursive)COMMENT
LOWwww/src/Lib/_py_abc.py140 # Check if it's a subclass of a subclass (recursive)COMMENT
LOWwww/src/Lib/zipimport.py358 # 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.py280 # Set childpos to index of smaller child.COMMENT
LOWwww/src/Lib/heapq.py316 # Set childpos to index of larger child.COMMENT
LOWwww/src/Lib/traceback.py1361 # Check if it worksCOMMENT
LOWwww/src/Lib/types.py300 # Check if 'func' is a coroutine function.COMMENT
LOWwww/src/Lib/types.py305 # Check if 'func' is a generator function.COMMENT
LOWwww/src/Lib/pdb.py210 # Open the file each time because the file may be modifiedCOMMENT
LOWwww/src/Lib/pdb.py2754 # Check if the interpreter is finalizing every quarter of a second.COMMENT
LOWwww/src/Lib/_py_warnings.py446 # Check if message is already a Warning objectCOMMENT
LOWwww/src/Lib/_py_warnings.py566 # Print message and contextCOMMENT
LOWwww/src/Lib/doctest.py1798 # Check if we should use diff.STRING
LOWwww/src/Lib/doctest.py2195 # Read the file, convert it to a test, and run it.STRING
LOWwww/src/Lib/tarfile.py1216 # Check if one of the fields contains surrogate characters and therebyCOMMENT
LOWwww/src/Lib/tarfile.py1480 # Check if the pax header contains a hdrcharset field. This tells usCOMMENT
LOWwww/src/Lib/typing.py1235 # Check if any base that occurs after us in `bases` is either itself aCOMMENT
LOWwww/src/Lib/typing.py2054 # Check if the members appears in the class dictionary...COMMENT
LOWwww/src/Lib/unittest/mock.py455 # Check if spec is an async object or functionCOMMENT
LOWwww/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.py167 # 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.py5637 # Set level to NOTSET and ensure caches are emptyCOMMENT
LOWwww/src/Lib/test/test_difflib.py248 # Check if the problem described in patch #1413711 exists.COMMENT
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.py3106 # Check if the BOM is written only once (see issue1753).COMMENT
LOWwww/src/Lib/test/test_compile.py1004 # Check if bytecode containing jumps that simply point to the next lineCOMMENT
LOWwww/src/Lib/test/test_memoryio.py767 bytearray(state[0]) # Check if state[0] supports the buffer interface.CODE
LOWwww/src/Lib/test/test_codecs.py2647 # Check if the BOM is written only onceCOMMENT
LOWwww/src/Lib/test/support/__init__.py877 # Check if Python was built with ./configure --enable-optimizations:COMMENT
LOWwww/src/Lib/test/support/__init__.py1816 # Check if the 'Crash Reporter' on OSX was configuredCOMMENT
LOWwww/src/Lib/urllib/parse.py914 # Check if ' ' in string, where string may either be a str or bytes. IfCOMMENT
LOWwww/src/Lib/http/cookies.py404 # Return the resultSTRING
LOWwww/src/Lib/importlib/_bootstrap_external.py1640 # 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 · 65 pts
SeverityFileLineSnippetContext
HIGHwww/src/py_utils.js1712 // If both operands return NotImplemented, return False if the operand isCOMMENT
HIGHwww/src/ast_to_js.js2668 // add an explicit "return None"COMMENT
HIGHwww/src/py_import.js1371 * @return NoneCOMMENT
HIGHwww/src/py_builtin_functions.js32 return NoneCODE
HIGHwww/src/py_builtin_functions.js1692 return NoneCODE
HIGHwww/src/py_builtin_functions.js1838 // Must return None: pickle's load_build treats a NULL/undefined resultCOMMENT
HIGHwww/src/builtins_docstrings.js82all:"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.js84any:"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.js2089 // return False. suffix can also be a tuple of suffixes to look for.COMMENT
HIGHwww/src/py_string.js3085 // Return True if string starts with the prefix, otherwise return False.COMMENT
AI Structural Patterns51 hits · 44 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.py622CODE
LOWwww/src/Lib/traceback.py1044CODE
LOWwww/src/Lib/subprocess.py814CODE
LOWwww/src/Lib/pydoc.py1302CODE
LOWwww/src/Lib/optparse.py1168CODE
LOWwww/src/Lib/pdb.py345CODE
LOWwww/src/Lib/interpreter.py159CODE
LOWwww/src/Lib/configparser.py647CODE
LOWwww/src/Lib/reprlib.py51CODE
LOWwww/src/Lib/_pydatetime.py1765CODE
LOWwww/src/Lib/_pydatetime.py2054CODE
LOWwww/src/Lib/doctest.py1981CODE
LOWwww/src/Lib/doctest.py2086CODE
LOWwww/src/Lib/argparse.py879CODE
LOWwww/src/Lib/argparse.py966CODE
LOWwww/src/Lib/argparse.py1066CODE
LOWwww/src/Lib/argparse.py1865CODE
LOWwww/src/Lib/dataclasses.py391CODE
LOWwww/src/Lib/dataclasses.py1342CODE
LOWwww/src/Lib/dataclasses.py1555CODE
LOWwww/src/Lib/tarfile.py961CODE
LOWwww/src/Lib/tarfile.py1706CODE
LOWwww/src/Lib/_pydecimal.py3854CODE
LOWwww/src/Lib/unittest/runner.py189CODE
LOWwww/src/Lib/unittest/main.py66CODE
LOWwww/src/Lib/unittest/mock.py445CODE
LOWwww/src/Lib/unittest/mock.py464CODE
LOWwww/src/Lib/unittest/mock.py1153CODE
LOWwww/src/Lib/test/test_faulthandler.py86CODE
LOWwww/src/Lib/test/test_decimal.py4248CODE
LOWwww/src/Lib/test/test_socket.py131CODE
LOWwww/src/Lib/test/mock_socket.py54CODE
LOWwww/src/Lib/test/test_ssl.py2387CODE
LOWwww/src/Lib/json/__init__.py155CODE
LOWwww/src/Lib/json/encoder.py260CODE
LOWwww/src/Lib/json/encoder.py105CODE
LOWwww/src/Lib/_pyrepl/_minimal_curses.py64CODE
LOWwww/src/Lib/logging/handlers.py216CODE
LOWwww/src/Lib/email/contentmanager.py183CODE
Verbosity Indicators18 hits · 30 pts
SeverityFileLineSnippetContext
LOWwww/src/Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOWwww/src/Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOWwww/src/Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOWwww/src/Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOWwww/src/Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOWwww/src/Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOWwww/src/Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOWwww/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.py936 # 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
Fake / Example Data35 hits · 30 pts
SeverityFileLineSnippetContext
LOWwww/tests/test_traceback.py5 fake_name = "<fake_file>"CODE
LOWwww/tests/test_traceback.py6 linecache.cache[fake_name] = (len(src), None, src.splitlines(True), fake_name)CODE
LOWwww/tests/test_traceback.py7 exec(compile(src, fake_name, "exec"))CODE
LOWwww/src/Lib/test/test_xml_etree.py1679 <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback>CODE
LOWwww/src/Lib/test/test_xml_etree.py1845 ' <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
LOWwww/src/Lib/test/test_curses.py385 self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,')CODE
LOWwww/src/Lib/test/test_curses.py426 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOWwww/src/Lib/test/test_curses.py429 self.assertEqual(win.instr(3, 0), b'dolor sit amet,')CODE
LOWwww/src/Lib/test/test_curses.py435 self.assertEqual(win.instr(0, 0), b'Lorem ipsum ')CODE
LOWwww/src/Lib/test/test_curses.py445 self.assertEqual(win.instr(0, 0), b'dolor sit amet,')CODE
LOWwww/src/Lib/test/test_curses.py467 win.addstr(2, 0, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py468 win.addstr(3, 0, 'dolor sit amet')CODE
LOWwww/src/Lib/test/test_curses.py497 win.addstr(0, 0, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py585 win.addstr(2, 1, 'Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py593 self.assertEqual(win.instr(2, 0), b' Lorem ipsum')CODE
LOWwww/src/Lib/test/test_curses.py1309 'Lorem ipsum',CODE
LOWwww/src/Lib/test/test_curses.py1310 'dolor sit amet,',CODE
LOWwww/src/Lib/test/test_ssl.py456 ('email', 'null@python.org\x00user@example.org'),CODE
LOWwww/src/Lib/test/test_ssl.py463 ('email', 'null@python.org\x00user@example.org'),CODE
LOWwww/src/Lib/test/test_ssl.py477 ('email', 'user@example.org'),CODE
LOWwww/src/Lib/test/test_urlparse.py280 self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'),CODE
LOWwww/src/Lib/test/test_urlparse.py281 ('mailto', '', '1337@example.org', '', '', ''))CODE
LOWwww/src/Lib/test/test_smtplib.py517 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py554 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py583 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py643 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_smtplib.py680 m['From'] = 'foo@bar.com'CODE
LOWwww/src/Lib/test/test_email/test_generator.py346 msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo")STRING
LOWwww/src/Lib/test/test_email/test_email.py3336 eq(addrs[0][1], 'foo@bar.com')STRING
LOWwww/src/Lib/test/test_email/test_email.py3971 ('From: foo@bar.com', ('From', 'foo@bar.com')),STRING
LOWwww/src/Lib/test/test_email/test_email.py4004 ['foo@bar.com',STRING
LOWwww/src/Lib/test/test_email/test_email.py4015 [('From', 'foo@bar.com'),STRING
LOWwww/src/Lib/test/test_email/test_email.py4027 ['foo@bar.com',STRING
LOWwww/src/Lib/test/test_email/test_message.py581 ('To', 'foo@bar.com'),STRING
Overly Generic Function Names50 hits · 28 pts
SeverityFileLineSnippetContext
LOWwww/tests/test_suite.py223 def do_something(self):CODE
LOWwww/src/Lib/contextlib.py304 def helper(*args, **kwds):CODE
LOWwww/src/Lib/contextlib.py337 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_strptime.py291 def helper(self, directive, position):CODE
LOWwww/src/Lib/test/test_gc.py222 def test_function(self):CODE
LOWwww/src/Lib/test/test_logging.py2145 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.py437def do_something():CODE
LOWwww/src/Lib/test/test_pdb.py43 >>> def test_function(foo, bar):STRING
LOWwww/src/Lib/test/test_pdb.py89 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py225 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py414 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py459 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py482 1 def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py528 ... def do_something():STRING
LOWwww/src/Lib/test/test_pdb.py546 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py586 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py619 1 def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py713 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py802 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py867 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py932 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py992 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1044 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1104 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1141 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1195 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1230 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1276 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1315 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1340 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1369 >>> def test_function():STRING
LOWwww/src/Lib/test/test_pdb.py1416 >>> def test_function():STRING
LOWwww/src/Lib/test/test_os.py2190 def helper(self):STRING
LOWwww/src/Lib/test/test_functools.py1836 def test_function(x):CODE
LOWwww/src/Lib/test/test_concurrent_futures.py92 def my_method(self):CODE
LOWwww/src/Lib/test/test_tokenize.py399 def test_function(self):STRING
LOWwww/src/Lib/test/test_tokenize.py1959 def test_function(self):STRING
LOWwww/src/Lib/test/profilee.py55def helper():CODE
LOWwww/src/Lib/test/test_xmlrpc.py648 def my_function():CODE
LOWwww/src/Lib/test/test_xmlrpc.py679 def my_function():CODE
LOWwww/src/Lib/test/test_urllib2_localnet.py160 def handle_request(self, request_handler):CODE
LOWwww/src/Lib/test/support/_hypothesis_stubs/__init__.py25 def test_function(self):CODE
Structural Annotation Overuse17 hits · 28 pts
SeverityFileLineSnippetContext
LOWwww/src/Lib/encodings/idna.py82 # Step 2: nameprepCOMMENT
LOWwww/src/Lib/encodings/idna.py85 # Step 3: UseSTD3ASCIIRules is falseCOMMENT
LOWwww/src/Lib/encodings/idna.py86 # Step 4: try ASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py100 # Step 5: Check ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py105 # Step 6: Encode with PUNYCODECOMMENT
LOWwww/src/Lib/encodings/idna.py108 # Step 7: Prepend ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py111 # Step 8: Check sizeCOMMENT
LOWwww/src/Lib/encodings/idna.py141 # Step 2: Perform nameprepCOMMENT
LOWwww/src/Lib/encodings/idna.py149 # Step 3: Check for ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py154 # Step 4: Remove ACE prefixCOMMENT
LOWwww/src/Lib/encodings/idna.py157 # Step 5: Decode using PUNYCODECOMMENT
LOWwww/src/Lib/encodings/idna.py164 # Step 6: Apply ToASCIICOMMENT
LOWwww/src/Lib/encodings/idna.py167 # Step 7: Compare the result of step 6 with the one of step 3COMMENT
LOWwww/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 Phrases8 hits · 19 pts
SeverityFileLineSnippetContext
MEDIUMwww/gallery/markdown_exec.html17example = """Here is a simple example:CODE
MEDIUMwww/src/Lib/heapq.py266# 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
MEDIUMwww/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.py1494 # make sure to always test gc.enable()STRING
MEDIUMwww/src/Lib/test/test_logging.py405# 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
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwww/src/Lib/subprocess.py258 # which is calling `CloseHandle` as requested in [1]), so there is nothingCOMMENT
Example Usage Blocks2 hits · 4 pts
SeverityFileLineSnippetContext
LOWwww/src/Lib/zipfile.py576# Usage:COMMENT
LOWwww/src/Lib/unittest/test/testmock/testmock.py504 # Usage exampleCOMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWwww/src/py_type.js2145 if ($B.is_type(arg)) { // TODO: Add testCODE
LOWwww/src/Lib/test/test_smtplib.py1248 #TODO: add tests for correct AUTH method fallback now that theCOMMENT