Brython (Browser Python) is an implementation of Python 3 running in the browser
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server_modular_send_head.py | 147 | class BaseHTTPRequestHandler(socketserver.StreamRequestHandler): | CODE |
| LOW | server_modular_send_head.py | 627 | class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): | CODE |
| LOW | server_modular_send_head.py | 1011 | class CGIHTTPRequestHandler(SimpleHTTPRequestHandler): | CODE |
| LOW | www/tests/issues.py | 1895 | def test_yield_in_comprehensions(self): | STRING |
| LOW | www/tests/async_manager.py | 32 | def _set_exception_if_not_done(self, fut, ex): | CODE |
| LOW | www/tests/test_decorators.py | 25 | def function_decorate_function(f): | CODE |
| LOW | www/tests/test_decorators.py | 52 | def function_decorated_function(x=0): | CODE |
| LOW | www/tests/test_re.html | 234 | def test_sub_template_numeric_escape(self): | CODE |
| LOW | www/tests/test_re.html | 615 | def test_sre_character_literals(self): | CODE |
| LOW | www/tests/test_re.html | 647 | def test_character_set_errors(self): | CODE |
| LOW | www/tests/test_re.html | 684 | def test_re_groupref_overflow(self): | CODE |
| LOW | www/tests/test_re.html | 830 | def test_named_unicode_escapes(self): | CODE |
| LOW | www/tests/test_re.html | 1054 | def test_possible_set_operations(self): | CODE |
| LOW | www/tests/test_re.html | 1153 | def test_re_escape_non_ascii_bytes(self): | CODE |
| LOW | www/tests/test_re.html | 1219 | def test_unlimited_zero_width_repeat(self): | CODE |
| LOW | www/tests/test_re.html | 1469 | def test_dollar_matches_twice(self): | CODE |
| LOW | www/tests/test_re.html | 1494 | def test_ascii_and_unicode_flag(self): | CODE |
| LOW | www/tests/test_re.html | 1680 | def test_repeat_minmax_overflow(self): | CODE |
| LOW | www/tests/test_re.html | 1696 | def test_repeat_minmax_overflow_maxrepeat(self): | CODE |
| LOW | www/tests/test_re.html | 1710 | def test_backref_group_name_in_exception(self): | CODE |
| LOW | www/tests/test_re.html | 1715 | def test_group_name_in_exception(self): | CODE |
| LOW | www/tests/test_re.html | 2015 | def test_pattern_compare_bytes(self): | STRING |
| LOW | www/tests/test_time.py | 171 | def test_strftime_bounding_check(self): | CODE |
| LOW | www/tests/test_time.py | 174 | def test_default_values_for_zero(self): | CODE |
| LOW | www/tests/test_time.py | 204 | def test_strptime_exception_context(self): | CODE |
| LOW | www/tests/test_time.py | 229 | def test_asctime_bounding_check(self): | CODE |
| LOW | www/tests/test_time.py | 345 | def test_localtime_without_arg(self): | CODE |
| LOW | www/tests/test_jsobjects.py | 340 | def pyfunc_receives_js_number(num): | CODE |
| LOW | www/tests/test_set.py | 142 | def symmetric_difference_update(s): | CODE |
| LOW | www/tests/test_set.py | 179 | def symmetric_difference_update_self(t): | CODE |
| LOW | www/tests/test_suite.py | 596 | def assign_expr_in_comp_global(): | CODE |
| LOW | www/tests/test_suite.py | 603 | def assign_expr_in_comp_nonlocal(): | CODE |
| LOW | www/tests/test_suite.py | 993 | def optional_keyword_only_arg(*, a, b=None): | STRING |
| LOW⚡ | www/tests/test_patma.py | 28 | def check_sequence_then_mapping(x): | CODE |
| LOW⚡ | www/tests/test_patma.py | 36 | def check_mapping_then_sequence(x): | CODE |
| LOW⚡ | www/tests/test_patma.py | 43 | def test_multiple_inheritance_mapping(self): | CODE |
| LOW | www/tests/test_patma.py | 63 | def test_multiple_inheritance_sequence(self): | CODE |
| LOW | www/tests/test_patma.py | 83 | def test_late_registration_mapping(self): | CODE |
| LOW | www/tests/test_patma.py | 106 | def test_late_registration_sequence(self): | CODE |
| LOW | www/tests/test_patma.py | 2665 | def test_attribute_name_repeated_in_class_pattern(self): | STRING |
| LOW | www/tests/test_patma.py | 2714 | def test_mapping_pattern_keys_may_only_match_literals_and_attribute_lookups(self): | STRING |
| LOW | www/tests/test_patma.py | 2904 | def test_mapping_pattern_duplicate_key(self): | STRING |
| LOW | www/tests/test_patma.py | 2991 | def test_match_args_elements_must_be_strings(self): | STRING |
| LOW | www/tests/brython_test_utils/__init__.py | 6 | def discover_brython_test_modules(): | CODE |
| LOW | www/tests/unittests/test/test_int.py | 233 | def test_non_numeric_input_types(self): | CODE |
| LOW | www/tests/compression/huffman.py | 4 | def codelengths_from_frequencies(freqs): | CODE |
| LOW | www/cgi-bin/cgi.py | 747 | def read_lines_to_outerboundary(self): | CODE |
| LOW | www/src/Lib/shutil.py | 1159 | def unregister_archive_format(name): | CODE |
| LOW | www/src/Lib/pkgutil.py | 128 | def _iter_file_finder_modules(importer, prefix=''): | CODE |
| LOW | www/src/Lib/ipaddress.py | 184 | def _count_righthand_zero_bits(number, bits): | CODE |
| LOW | www/src/Lib/ipaddress.py | 255 | def _collapse_addresses_internal(addresses): | CODE |
| LOW | www/src/Lib/ipaddress.py | 475 | def _prefix_from_prefix_string(cls, prefixlen_str): | CODE |
| LOW | www/src/Lib/ipaddress.py | 1144 | def _explode_shorthand_ip_string(self): | CODE |
| LOW | www/src/Lib/ipaddress.py | 1810 | def _explode_shorthand_ip_string(self): | CODE |
| LOW | www/src/Lib/zipimport.py | 756 | def _get_mtime_and_size_of_source(self, path): | CODE |
| LOW | www/src/Lib/functools.py | 1140 | def _warn_python_reduce_kwargs(py_reduce): | CODE |
| LOW | www/src/Lib/traceback.py | 410 | def _walk_tb_with_full_positions(tb): | CODE |
| LOW | www/src/Lib/traceback.py | 460 | def _extract_from_extended_frame_gen(klass, frame_gen, *, limit=None, | CODE |
| LOW | www/src/Lib/traceback.py | 794 | def _byte_offset_to_character_offset(str, offset): | CODE |
| LOW | www/src/Lib/traceback.py | 812 | def _extract_caret_anchors_from_line_segment(segment): | CODE |
| 5236 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | www/speed/benchmarks/augm_assign_and_append.py | 10 | list.push(i); | CODE |
| HIGH | www/tests/test_jsobjects.py | 90 | obj = javascript.JSON.parse('{"foo": null}') | CODE |
| HIGH⚡ | www/tests/test_null.py | 3 | assert(JSObject(null) == None) | CODE |
| HIGH⚡ | www/tests/test_null.py | 4 | assert(JSObject(null) is None) | CODE |
| HIGH⚡ | www/tests/test_null.py | 6 | assert(None is JSObject(null)) | CODE |
| HIGH⚡ | www/tests/test_null.py | 7 | assert(None == JSObject(null)) | CODE |
| HIGH⚡ | www/tests/test_null.py | 8 | assert(JSObject(null) is JSObject(null)) | CODE |
| HIGH | www/tests/test_suite.py | 55 | print("Failed.. n should be undefined, but n:", n) | CODE |
| HIGH | www/tests/test_json.py | 49 | assert json.loads("[0, null]") == [0, None] | CODE |
| HIGH | www/tests/compression/huffman.py | 73 | currentlen = self.length() | CODE |
| HIGH | www/tests/compression/huffman.py | 123 | while self.length() > maxlevels: | CODE |
| HIGH | www/src/Lib/code.py | 276 | more = self.push(line) | CODE |
| HIGH | www/src/Lib/_csv.py | 578 | def field_size_limit(limit=undefined): | CODE |
| HIGH | www/src/Lib/numbers.py | 53 | ## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But, | COMMENT |
| HIGH | www/src/Lib/zlib.py | 86 | currentlen = self.length() | CODE |
| HIGH | www/src/Lib/zlib.py | 136 | while self.length() > maxlevels: | CODE |
| HIGH | www/src/Lib/posixpath.py | 81 | path[:0] + sep #23780: Ensure compatible data type even if p is null. | CODE |
| HIGH⚡ | www/src/Lib/locale.py | 1734 | print('Language: ', lang or '(undefined)') | CODE |
| HIGH⚡ | www/src/Lib/locale.py | 1735 | print('Encoding: ', enc or '(undefined)') | CODE |
| HIGH⚡ | www/src/Lib/locale.py | 1743 | print(' Language: ', lang or '(undefined)') | CODE |
| HIGH⚡ | www/src/Lib/locale.py | 1744 | print(' Encoding: ', enc or '(undefined)') | CODE |
| HIGH | www/src/Lib/locale.py | 1760 | print(' Language: ', lang or '(undefined)') | CODE |
| HIGH | www/src/Lib/locale.py | 1761 | print(' Encoding: ', enc or '(undefined)') | CODE |
| HIGH | www/src/Lib/select.py | 22 | return error(-1, 'Unmapped java exception: <%s:%s>' % (exc.toString(), circumstance)) | CODE |
| HIGH | www/src/Lib/ntpath.py | 119 | path[:0] + sep #23780: Ensure compatible data type even if p is null. | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 80 | self.push('-ERR unrecognized POP3 command "%s".' %cmd) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 86 | asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 90 | self.push(arg) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 94 | self.push("-ERR no such user") | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 95 | self.push('+OK password required') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 99 | self.push("-ERR wrong password") | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 100 | self.push('+OK 10 messages') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 103 | self.push('+OK 10 100') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 107 | self.push('+OK %s %s' % (arg, arg)) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 109 | self.push('+OK') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 110 | asynchat.async_chat.push(self, LIST_RESP) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 115 | self.push('+OK %s bytes' %len(RETR_RESP)) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 116 | asynchat.async_chat.push(self, RETR_RESP) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 121 | self.push('+OK message marked for deletion.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 124 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 127 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 130 | self.push('+OK done nothing.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 133 | self.push('+OK closing.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 143 | self.push('+OK Capability list follows') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 149 | self.push(' '.join(_ln)) | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 150 | self.push('.') | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 153 | self.push('+OK I know RFC6856' | CODE |
| HIGH⚡ | www/src/Lib/test/test_poplib.py | 161 | self.push('+OK Begin TLS negotiation') | CODE |
| HIGH | www/src/Lib/test/test_poplib.py | 59 | self.push('+OK dummy pop3 server ready. <timestamp>') | CODE |
| HIGH | www/src/Lib/test/test_poplib.py | 175 | self.push('-ERR Command not permitted when TLS active') | CODE |
| HIGH | www/src/Lib/test/test_poplib.py | 434 | self.push('+OK dummy pop3 server ready. <timestamp>') | CODE |
| HIGH⚡ | www/src/Lib/test/test_gettext.py | 394 | f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2') | CODE |
| HIGH⚡ | www/src/Lib/test/test_gettext.py | 400 | 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.py | 400 | 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.py | 406 | 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.py | 406 | 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.py | 412 | f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2') | CODE |
| HIGH⚡ | www/src/Lib/test/test_gettext.py | 418 | 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.py | 418 | 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.py | 424 | 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… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server_modular_send_head.py | 940 | CODE | |
| LOW | server_modular_send_head.py | 648 | CODE | |
| LOW | server_modular_send_head.py | 679 | CODE | |
| LOW | server_modular_send_head.py | 1084 | CODE | |
| LOW | setup/brython/list_modules.py | 507 | CODE | |
| LOW | setup/brython/list_modules.py | 574 | CODE | |
| LOW | setup/brython/list_modules.py | 113 | CODE | |
| LOW | setup/brython/list_modules.py | 167 | CODE | |
| LOW | setup/brython/list_modules.py | 215 | CODE | |
| LOW | setup/brython/list_modules.py | 254 | CODE | |
| LOW | setup/brython/list_modules.py | 309 | CODE | |
| LOW | setup/brython/list_modules.py | 381 | CODE | |
| LOW | setup/brython/list_modules.py | 661 | CODE | |
| LOW | setup/brython/list_modules.py | 703 | CODE | |
| LOW | setup/brython/make_package.py | 46 | CODE | |
| LOW | www/speed/benchmarks/pystone.py | 186 | CODE | |
| LOW | www/gallery/synth_keyboard.py | 393 | CODE | |
| LOW | www/gallery/synth_keyboard.py | 455 | CODE | |
| LOW | www/gallery/show_source.py | 93 | CODE | |
| LOW | www/gallery/editor.py | 20 | CODE | |
| LOW | www/gallery/editor.py | 94 | CODE | |
| LOW | www/gallery/kanban.py | 300 | CODE | |
| LOW | www/gallery/sudoku.py | 29 | CODE | |
| LOW | www/gallery/draw.py | 206 | CODE | |
| LOW | www/gallery/draw.py | 99 | CODE | |
| LOW | www/gallery/music/drum_score.py | 168 | CODE | |
| LOW | www/tests/issues.py | 2490 | CODE | |
| LOW | www/tests/async_manager.py | 43 | CODE | |
| LOW | www/tests/console.py | 135 | CODE | |
| LOW | www/tests/console.py | 215 | CODE | |
| LOW | www/tests/tester.py | 403 | CODE | |
| LOW | www/tests/test_web_worker.py | 11 | CODE | |
| LOW | www/tests/editor.py | 117 | CODE | |
| LOW | www/tests/editor.py | 136 | CODE | |
| LOW | www/tests/input_interpreter.py | 54 | CODE | |
| LOW | www/tests/input_interpreter.py | 206 | CODE | |
| LOW | www/tests/input_interpreter.py | 373 | CODE | |
| LOW | www/tests/test_aio.py | 214 | CODE | |
| LOW | www/tests/unittests/test/pystone.py | 188 | CODE | |
| LOW | www/tests/unittests/test/test_int.py | 29 | CODE | |
| LOW | www/tests/compression/deflate.py | 33 | CODE | |
| LOW | www/tests/compression/deflate.py | 74 | CODE | |
| LOW | www/tests/compression/deflate.py | 162 | CODE | |
| LOW | www/tests/compression/deflate.py | 183 | CODE | |
| LOW | www/tests/compression/deflate.py | 218 | CODE | |
| LOW | www/tests/compression/deflate.py | 249 | CODE | |
| LOW | www/tests/compression/deflate.py | 453 | CODE | |
| LOW | www/tests/compression/huffman.py | 249 | CODE | |
| LOW | www/tests/compression/bitio.py | 32 | CODE | |
| LOW | www/tests/compression/lz77.py | 3 | CODE | |
| LOW | www/cgi-bin/cgi.py | 129 | CODE | |
| LOW | www/cgi-bin/cgi.py | 747 | CODE | |
| LOW | www/assets/header.py | 73 | CODE | |
| LOW | www/assets/header.py | 169 | CODE | |
| LOW | www/slideshow/en/slideshow.py | 40 | CODE | |
| LOW | www/src/Lib/zipfile.py | 689 | CODE | |
| LOW | www/src/Lib/zipfile.py | 724 | CODE | |
| LOW | www/src/Lib/zipfile.py | 2475 | CODE | |
| LOW | www/src/Lib/zipfile.py | 487 | CODE | |
| LOW | www/src/Lib/zipfile.py | 1168 | CODE | |
| 886 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | www/gallery/kanban.py | 1 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 9 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 26 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 31 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 82 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 101 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 291 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 295 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 299 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 338 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 343 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 349 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/kanban.py | 355 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM | www/gallery/kanban.py | 379 | # ---------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/gallery/raphael/raphael-min.js | 1 | // ┌────────────────────────────────────────────────────────────────────┐ \\ | COMMENT |
| MEDIUM⚡ | www/gallery/raphael/raphael-min.js | 3 | // ├────────────────────────────────────────────────────────────────────┤ \\ | COMMENT |
| MEDIUM⚡ | www/gallery/raphael/raphael-min.js | 6 | // ├────────────────────────────────────────────────────────────────────┤ \\ | COMMENT |
| MEDIUM⚡ | www/gallery/raphael/raphael-min.js | 8 | // └────────────────────────────────────────────────────────────────────┘ \\ | COMMENT |
| MEDIUM | www/tests/issues.py | 3348 | # ========================================== | STRING |
| MEDIUM | www/tests/issues.py | 3350 | # ========================================== | STRING |
| MEDIUM | www/tests/delegator.py | 1 | #--------------------------------------------- | COMMENT |
| MEDIUM | www/cgi-bin/cgi.py | 60 | # =============== | COMMENT |
| MEDIUM | www/cgi-bin/cgi.py | 123 | # ================= | COMMENT |
| MEDIUM | www/cgi-bin/cgi.py | 260 | # ========================= | COMMENT |
| MEDIUM | www/cgi-bin/cgi.py | 851 | # =============== | COMMENT |
| MEDIUM | www/cgi-bin/cgi.py | 1008 | # =============== | STRING |
| MEDIUM | www/src/Lib/heapq.py | 411 | # ============================================== | COMMENT |
| MEDIUM | www/src/Lib/heapq.py | 441 | # ----------------------------------------------- | COMMENT |
| MEDIUM | www/src/Lib/heapq.py | 461 | # ---------------------- | COMMENT |
| MEDIUM | www/src/Lib/heapq.py | 468 | # ---------------------- | COMMENT |
| MEDIUM | www/src/Lib/numbers.py | 50 | ## ---------------- | COMMENT |
| MEDIUM | www/src/Lib/random.py | 200 | ## ------------------------------------------------------- | COMMENT |
| MEDIUM | www/src/Lib/random.py | 274 | ## -------------------------------------------------------- | COMMENT |
| MEDIUM | www/src/Lib/random.py | 845 | ## ------------------------------------------------------------------ | COMMENT |
| MEDIUM | www/src/Lib/random.py | 886 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | www/src/Lib/random.py | 920 | ## ------------------------------------------------------ | COMMENT |
| MEDIUM | www/src/Lib/random.py | 961 | ## ------------------------------------------------------ | COMMENT |
| MEDIUM | www/src/Lib/re1.py | 184 | # -------------------------------------------------------------------- | STRING |
| MEDIUM | www/src/Lib/re1.py | 282 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | www/src/Lib/re1.py | 343 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 772 | # ===================== | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 774 | # ===================== | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 1470 | # ==================== | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 1472 | # ==================== | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 1481 | # ================================== | COMMENT |
| MEDIUM⚡ | www/src/Lib/argparse.py | 1483 | # ================================== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 105 | # ============================= | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 107 | # ============================= | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 152 | # =============== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 154 | # =============== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 205 | # =============================== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 207 | # =============================== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 257 | # ======================== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 259 | # ======================== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 301 | # ======================= | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 303 | # ======================= | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 824 | # ============== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 826 | # ============== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 1333 | # ============== | COMMENT |
| MEDIUM | www/src/Lib/argparse.py | 1335 | # ============== | COMMENT |
| 243 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | manage.py | 3 | CODE | |
| LOW | small_node_app.py | 1 | CODE | |
| LOW | small_node_app.py | 2 | CODE | |
| LOW | small_node_app.py | 3 | CODE | |
| LOW | setup/brython/make_file_system.py | 3 | CODE | |
| LOW | setup/brython/make_file_system.py | 4 | CODE | |
| LOW | setup/brython/make_package.py | 3 | CODE | |
| LOW | www/speed/speed.py | 7 | CODE | |
| LOW | www/speed/speed.py | 8 | CODE | |
| LOW | www/speed/speed.py | 11 | CODE | |
| LOW | www/speed/make_report.py | 7 | CODE | |
| LOW | www/speed/perf_bookkeeping.py | 3 | CODE | |
| LOW | www/speed/benchmarks/bm_ai.py | 13 | CODE | |
| LOW | www/speed/benchmarks/bm_ai.py | 14 | CODE | |
| LOW | www/speed/benchmarks/header.py | 2 | CODE | |
| LOW | www/speed/benchmarks/pystone_proc8.py | 33 | CODE | |
| LOW | www/gallery/synth_keyboard.py | 1 | CODE | |
| LOW | www/gallery/synth_keyboard.py | 3 | CODE | |
| LOW | www/gallery/synth_keyboard.py | 3 | CODE | |
| LOW | www/gallery/sidebar.py | 4 | CODE | |
| LOW | www/gallery/three_webgl_interactive_cubes.py | 7 | CODE | |
| LOW | www/gallery/navi.py | 4 | CODE | |
| LOW | www/gallery/synthesizer.py | 1 | CODE | |
| LOW | www/gallery/sudoku.py | 9 | CODE | |
| LOW | www/gallery/draw.py | 1 | CODE | |
| LOW | www/gallery/music/synth_drums.py | 5 | CODE | |
| LOW | www/gallery/music/synth_drums.py | 8 | CODE | |
| LOW | www/gallery/music/synth_drums.py | 8 | CODE | |
| LOW | www/gallery/music/player.py | 5 | CODE | |
| LOW | www/gallery/music/player.py | 6 | CODE | |
| LOW | www/gallery/music/player.py | 8 | CODE | |
| LOW | www/gallery/music/player.py | 10 | CODE | |
| LOW | www/gallery/music/drum_score.py | 1 | CODE | |
| LOW | www/gallery/music/drum_score.py | 1 | CODE | |
| LOW | www/gallery/highcharts/examples/gauge-clock/chart.py | 2 | CODE | |
| LOW | www/gallery/raphael/picker.py | 1 | CODE | |
| LOW | www/tests/issues.py | 3198 | CODE | |
| LOW | www/tests/issues.py | 3229 | CODE | |
| LOW | www/tests/issues.py | 511 | CODE | |
| LOW | www/tests/async_manager.py | 3 | CODE | |
| LOW | www/tests/console.py | 5 | CODE | |
| LOW | www/tests/console.py | 5 | CODE | |
| LOW | www/tests/tester.py | 17 | CODE | |
| LOW | www/tests/test_pages.py | 5 | CODE | |
| LOW | www/tests/test_decorators.py | 1 | CODE | |
| LOW | www/tests/test_numbers.py | 285 | CODE | |
| LOW | www/tests/test_unittest.py | 39 | CODE | |
| LOW | www/tests/test_generators.py | 301 | CODE | |
| LOW | www/tests/test_exceptions.py | 219 | CODE | |
| LOW | www/tests/recursive_import.py | 1 | CODE | |
| LOW | www/tests/test_functools.py | 3 | CODE | |
| LOW | www/tests/test_import.py | 42 | CODE | |
| LOW | www/tests/test_import.py | 48 | CODE | |
| LOW | www/tests/test_import.py | 68 | CODE | |
| LOW | www/tests/test_import.py | 79 | CODE | |
| LOW | www/tests/test_import.py | 80 | CODE | |
| LOW | www/tests/test_import.py | 81 | CODE | |
| LOW | www/tests/test_import.py | 65 | CODE | |
| LOW | www/tests/test_suite.py | 332 | CODE | |
| LOW | www/tests/test_suite.py | 1205 | CODE | |
| 545 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | www/speed/speed.py | 100 | except Exception as exc: | CODE |
| LOW | www/speed/make_report.py | 40 | except Exception as exc: | CODE |
| LOW | www/speed/perf_bookkeeping.py | 22 | except Exception as exc: | CODE |
| LOW | www/tests/issues.py | 1620 | except Exception: | STRING |
| LOW | www/tests/issues.py | 1625 | except Exception: | STRING |
| LOW | www/tests/issues.py | 2976 | except Exception as e: | CODE |
| LOW | www/tests/issues.py | 2978 | except Exception as e: | CODE |
| LOW | www/tests/tester.py | 259 | except Exception as exc: | CODE |
| LOW | www/tests/issues_gc.py | 58 | except Exception: | CODE |
| LOW | www/tests/issues_gc.py | 65 | except Exception as ex: | CODE |
| MEDIUM | www/tests/issues_gc.py | 33 | def test1(): | CODE |
| MEDIUM | www/tests/issues_gc.py | 61 | def test5(): | CODE |
| LOW | www/tests/index.html | 169 | except Exception as exc: | CODE |
| LOW | www/tests/test_re.html | 106 | except Exception as exc: | CODE |
| MEDIUM | www/tests/test_re.html | 101 | def checkPatternError(self, pattern, errmsg, pos=None): | CODE |
| LOW | www/tests/test_jsobjects.py | 260 | except Exception as exc: | CODE |
| LOW | www/tests/test_generators.py | 1156 | except Exception as ee: | CODE |
| LOW | www/tests/test_generators.py | 1202 | except Exception as ee: | CODE |
| LOW⚡ | www/tests/test_generators.py | 1224 | except Exception as exc: | CODE |
| LOW⚡ | www/tests/test_generators.py | 1230 | except Exception as exc: | CODE |
| LOW⚡ | www/tests/test_generators.py | 1236 | except Exception as exc: | CODE |
| MEDIUM | www/tests/test_indexedDB.py | 40 | print("Error: %s" % (event.result)) | CODE |
| LOW | www/tests/test_suite.py | 510 | except Exception as exc: | CODE |
| LOW | www/tests/editor.py | 217 | except Exception as exc: | CODE |
| LOW | www/tests/test_pattern_matching.py | 22 | except Exception as exc: | CODE |
| LOW | www/tests/test_pattern_matching.py | 41 | except Exception as exc: | CODE |
| LOW | www/tests/test_pattern_matching.py | 53 | except Exception as exc: | CODE |
| MEDIUM | www/tests/test_pattern_matching.py | 5 | def assert_syntax_error(self, code): | CODE |
| LOW | www/tests/test_aio.py | 157 | except Exception as e: | CODE |
| LOW | www/tests/test_aio.py | 348 | except Exception as exc: | CODE |
| MEDIUM | www/tests/test_aio.py | 344 | def wait_error(): | CODE |
| LOW | www/tests/test_classes.py | 337 | except Exception as __e: | CODE |
| LOW | www/tests/test_classes.py | 738 | except Exception as exc: | CODE |
| MEDIUM | www/tests/test_classes.py | 334 | def test(self): | CODE |
| LOW⚡ | www/tests/test_traceback.py | 16 | except Exception: | STRING |
| LOW⚡ | www/tests/test_traceback.py | 24 | except Exception: | STRING |
| LOW | www/tests/brython_test_utils/__init__.py | 111 | except Exception as exc: | CODE |
| LOW | www/benchmarks/index.html | 52 | except Exception as exc: | CODE |
| LOW | www/src/Lib/shutil.py | 99 | except Exception as err: | CODE |
| LOW | www/src/Lib/shutil.py | 130 | except Exception as err: | CODE |
| LOW | www/src/Lib/pkgutil.py | 80 | except Exception: | CODE |
| LOW | www/src/Lib/rlcompleter.py | 158 | except Exception: | CODE |
| LOW | www/src/Lib/zipimport.py | 621 | except Exception: | CODE |
| LOW | www/src/Lib/zipimport.py | 669 | except Exception: | CODE |
| MEDIUM | www/src/Lib/zipimport.py | 346 | def _read_directory(archive): | CODE |
| LOW | www/src/Lib/_typing.py | 235 | except Exception as exc: | CODE |
| LOW | www/src/Lib/weakref.py | 567 | except Exception: | CODE |
| LOW | www/src/Lib/traceback.py | 1071 | except Exception as e: | CODE |
| LOW | www/src/Lib/traceback.py | 1305 | except Exception: | CODE |
| LOW | www/src/Lib/traceback.py | 1613 | except Exception: | CODE |
| LOW | www/src/Lib/traceback.py | 1625 | except Exception: | CODE |
| LOW | www/src/Lib/traceback.py | 1648 | except Exception: | CODE |
| MEDIUM | www/src/Lib/code.py | 155 | print('Error in sys.excepthook:', file=sys.stderr) | CODE |
| MEDIUM | www/src/Lib/pydoc.py | 562 | def repr_instance(self, x, level): | CODE |
| LOW | www/src/Lib/pydoc.py | 899 | except Exception: | CODE |
| LOW | www/src/Lib/pydoc.py | 945 | except Exception: | CODE |
| LOW | www/src/Lib/pydoc.py | 1381 | except Exception: | CODE |
| LOW | www/src/Lib/pydoc.py | 2659 | except Exception as exc: | CODE |
| LOW | www/src/Lib/pydoc.py | 2250 | except Exception: | STRING |
| LOW | www/src/Lib/pydoc.py | 2413 | except Exception as err: | STRING |
| 371 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup/brython/list_modules.py | 384 | # Create a temporary directory | COMMENT |
| MEDIUM | setup/brython/list_modules.py | 390 | # Create a package "data" in this directory | COMMENT |
| MEDIUM | www/demo.html | 1016 | # Create a new DOM FileReader instance | COMMENT |
| MEDIUM | www/gallery/binary_file_reader.html | 114 | # Create a new DOM FileReader instance | COMMENT |
| MEDIUM | www/gallery/webworker_mdn.html | 87 | # Create a web worker, identified by a script id in this page. | COMMENT |
| MEDIUM | www/gallery/webcomponent.html | 202 | # Create a shadow root | STRING |
| MEDIUM | www/gallery/webcomponent.html | 241 | # Create a shadow root | STRING |
| MEDIUM | www/gallery/music/synth_drums.py | 42 | # Create a new DOM FileReader instance | COMMENT |
| MEDIUM | www/gallery/music/play_song_part.html | 270 | # Create a new DOM FileReader instance | COMMENT |
| MEDIUM | www/tests/editor.html | 98 | # Create a lambda around editor.run() so that the event object is not passed to it | COMMENT |
| MEDIUM | www/src/Lib/_pyio.py | 273 | # Define a default pure-Python implementation for open_code() | STRING |
| MEDIUM | www/src/Lib/_struct.py | 2 | # This module is a pure Python version of pypy.module.struct. | COMMENT |
| MEDIUM | www/src/Lib/ipaddress.py | 1452 | """This class represents and manipulates 32-bit IPv4 network + addresses.. | STRING |
| MEDIUM | www/src/Lib/ipaddress.py | 2164 | """This class represents and manipulates 128-bit IPv6 networks. | STRING |
| MEDIUM | www/src/Lib/_compat_pickle.py | 1 | # This module is used to map the old Python 2 names to the new names used in | COMMENT |
| MEDIUM | www/src/Lib/bdb.py | 880 | # The following methods can be called by clients to use | COMMENT |
| MEDIUM | www/src/Lib/bdb.py | 931 | # This method is more useful to debug a single function call. | COMMENT |
| MEDIUM | www/src/Lib/base64.py | 434 | # The following code is originally taken (with permission) from Mercurial | STRING |
| MEDIUM | www/src/Lib/gc.py | 1 | """This module provides access to the garbage collector for reference cycles. | STRING |
| MEDIUM | www/src/Lib/gettext.py | 13 | # This module represents the integration of work, contributions, feedback, and | COMMENT |
| MEDIUM | www/src/Lib/subprocess.py | 1974 | # This method is called (indirectly) by __del__, so it cannot | COMMENT |
| MEDIUM | www/src/Lib/subprocess.py | 2172 | # This method is called from the _communicate_with_*() methods | COMMENT |
| MEDIUM | www/src/Lib/profile.py | 429 | # This method is more useful to profile a single function call. | COMMENT |
| MEDIUM | www/src/Lib/code.py | 162 | # This method is being overwritten in | COMMENT |
| MEDIUM | www/src/Lib/pydoc.py | 709 | # Create a link for methods like 'self.method(...)' | COMMENT |
| MEDIUM⚡ | www/src/Lib/types.py | 314 | # The following code is primarily to support functions that | COMMENT |
| MEDIUM | www/src/Lib/pdb.py | 525 | """This method is called when there is the remote possibility | STRING |
| MEDIUM | www/src/Lib/pdb.py | 534 | """This function is called when we stop or break at this line.""" | STRING |
| MEDIUM | www/src/Lib/pdb.py | 567 | """This function is called when a return trap is set here.""" | STRING |
| MEDIUM | www/src/Lib/pdb.py | 576 | """This function is called if an exception occurs, | STRING |
| MEDIUM | www/src/Lib/zlib.py | 320 | # Create a Huffman tree for the codelengths | COMMENT |
| MEDIUM | www/src/Lib/threading.py | 147 | """This class implements reentrant lock objects. | STRING |
| MEDIUM | www/src/Lib/threading.py | 330 | # This method is called only if _lock doesn't have _is_owned(). | COMMENT |
| MEDIUM | www/src/Lib/threading.py | 460 | """This class implements semaphore objects. | STRING |
| MEDIUM | www/src/Lib/threading.py | 1308 | # Create a local namespace to ensure that variables remain alive | COMMENT |
| MEDIUM | www/src/Lib/threading.py | 1552 | # Create the main thread object, | COMMENT |
| MEDIUM | www/src/Lib/_frozen_importlib.py | 465 | # This function is meant for use in _setup(). | COMMENT |
| MEDIUM | www/src/Lib/inspect.py | 29 | # This module is in the public domain. No warranties. | COMMENT |
| MEDIUM | www/src/Lib/faulthandler.py | 44 | """This method is called when a class is subclassed. | STRING |
| MEDIUM | www/src/Lib/fractions.py | 183 | """This class implements rational numbers. | STRING |
| MEDIUM | www/src/Lib/_ast_unparse.py | 1 | # This module contains ``ast.unparse()``, defined here | COMMENT |
| MEDIUM | www/src/Lib/ast.py | 594 | # The following code is for backward compatibility. | COMMENT |
| MEDIUM | www/src/Lib/doctest.py | 151 | # Create a new flag unless `name` is already known. | STRING |
| MEDIUM | www/src/Lib/doctest.py | 679 | # Create an Example, and add it to the list. | STRING |
| MEDIUM | www/src/Lib/doctest.py | 1274 | # Create a fake output target for capturing doctest output. | STRING |
| MEDIUM | www/src/Lib/dataclasses.py | 388 | # This function is used instead of exposing Field creation directly, | COMMENT |
| MEDIUM | www/src/Lib/dataclasses.py | 1138 | # Create a comparison function. If the fields in the object are | COMMENT |
| MEDIUM | www/src/Lib/dataclasses.py | 1166 | # Create a class doc-string. | COMMENT |
| MEDIUM | www/src/Lib/dataclasses.py | 1290 | # Create a new dict for our new class. | COMMENT |
| MEDIUM | www/src/Lib/dataclasses.py | 1727 | # Create the new object, which calls __init__() and | COMMENT |
| MEDIUM | www/src/Lib/_signal.py | 1 | """This module provides mechanisms to use signal handlers in Python. | STRING |
| MEDIUM | www/src/Lib/tarfile.py | 1111 | # Create a pax extended header if necessary. | COMMENT |
| MEDIUM | www/src/Lib/tarfile.py | 2293 | # Create a TarInfo object from the file. | COMMENT |
| MEDIUM | www/src/Lib/stringprep.py | 1 | # This file is generated by mkstringprep.py. DO NOT EDIT. | COMMENT |
| MEDIUM | www/src/Lib/uuid.py | 573 | # The following functions call external programs to 'get' a macaddr value to | COMMENT |
| MEDIUM | www/src/Lib/imp.py | 1 | """This module provides the components needed to build your own __import__ | STRING |
| MEDIUM | www/src/Lib/encodings/idna.py | 1 | # This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep) | COMMENT |
| MEDIUM | www/src/Lib/unittest/test/test_break.py | 175 | # Creating a TextTestRunner with the appropriate argument should | COMMENT |
| MEDIUM | www/src/Lib/test/test_winreg.py | 93 | # Create a sub-key | COMMENT |
| MEDIUM | www/src/Lib/test/test_support.py | 457 | # Create a child process | COMMENT |
| 96 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | server.py | 0 | <!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="stylesh | STRING |
| HIGH | bihan_app.py | 0 | <!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="stylesh | STRING |
| HIGH | server_aiohttp.py | 0 | <!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="stylesh | STRING |
| HIGH | www/cgi-bin/store_speed.py | 0 | <!doctype html> <html> <head> <meta charset="utf-8"> <title>brython speed compared to cpython</title> <link rel="stylesh | STRING |
| HIGH | www/speed/pystone.html | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/speed/pystone_old_versions.html | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/speed/benchmarks/pystone_proc8.py | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/speed/benchmarks/pystone.py | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/tests/unittests/test/pystone.py | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/src/Lib/test/pystone.py | 0 | "pystone" benchmark program version: python/1.1 (corresponds to c/1.1 plus 2 pystone fixes) author: reinhold p. weicker, | STRING |
| HIGH | www/gallery/webworker_mdn.html | 0 | handle a message sent by the main script. evt.data is the message body. | STRING |
| HIGH | www/doc/fr/browser.worker.md | 0 | handle a message sent by the main script. evt.data is the message body. | STRING |
| HIGH | www/doc/es/worker.md | 0 | handle a message sent by the main script. evt.data is the message body. | STRING |
| HIGH | www/doc/en/browser.worker.md | 0 | handle a message sent by the main script. evt.data is the message body. | STRING |
| HIGH | www/gallery/webworker_mdn.html | 0 | called when the value in one of the input fields changes. | STRING |
| HIGH | www/doc/fr/browser.worker.md | 0 | called when the value in one of the input fields changes. | STRING |
| HIGH | www/doc/es/worker.md | 0 | called when the value in one of the input fields changes. | STRING |
| HIGH | www/doc/en/browser.worker.md | 0 | called when the value in one of the input fields changes. | STRING |
| HIGH | www/gallery/kanban.py | 0 | copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or w | STRING |
| HIGH | www/tests/console.py | 0 | copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or w | STRING |
| HIGH | www/tests/input_interpreter.py | 0 | copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or w | STRING |
| HIGH | www/src/Lib/optparse.py | 0 | copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or w | STRING |
| HIGH | www/src/Lib/interpreter.py | 0 | copyright 2012-2024 pierre quentel pierre.quentel@gmail.com redistribution and use in source and binary forms, with or w | STRING |
| HIGH | www/tests/console.py | 0 | \ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.p | STRING |
| HIGH | www/tests/input_interpreter.py | 0 | \ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.p | STRING |
| HIGH | www/src/Lib/interpreter.py | 0 | \ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.p | STRING |
| HIGH | www/src/Lib/site.py | 0 | \ thanks to cwi, cnri, beopen.com, zope corporation and a cast of thousands for supporting python development. see www.p | STRING |
| HIGH | www/tests/console.py | 0 | copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python software | STRING |
| HIGH | www/tests/input_interpreter.py | 0 | copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python software | STRING |
| HIGH | www/src/Lib/interpreter.py | 0 | copyright (c) 2012, pierre quentel pierre.quentel@gmail.com all rights reserved. copyright (c) 2001-2022 python software | STRING |
| HIGH | www/tests/console.py | 0 | remove calls to function in this script from the traceback. | STRING |
| HIGH | www/tests/console_input.html | 0 | remove calls to function in this script from the traceback. | STRING |
| HIGH | www/tests/input_interpreter.py | 0 | remove calls to function in this script from the traceback. | STRING |
| HIGH | www/src/Lib/interpreter.py | 0 | remove calls to function in this script from the traceback. | STRING |
| HIGH | www/tests/test_re.html | 0 | \ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end el | STRING |
| HIGH | www/src/Lib/test/test_re_original.py | 0 | \ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end el | STRING |
| HIGH | www/src/Lib/test/test_re.py | 0 | \ subpattern 1 0 0 literal 46 branch in literal 99 literal 104 or literal 112 literal 121 groupref_exists 1 at at_end el | STRING |
| HIGH | www/tests/test_re.html | 0 | re.compile('both \\'single\\' and "double" quotes') | STRING |
| HIGH | www/src/Lib/test/test_re_original.py | 0 | re.compile('both \\'single\\' and "double" quotes') | STRING |
| HIGH | www/src/Lib/test/test_re.py | 0 | re.compile('both \\'single\\' and "double" quotes') | STRING |
| HIGH | www/tests/compression/test_huffman.py | 0 | pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeu | STRING |
| HIGH | www/tests/compression/test_deflate.py | 0 | pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeu | STRING |
| HIGH | www/tests/compression/bitio.py | 0 | pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeu | STRING |
| HIGH | www/tests/compression/test_lz77.py | 0 | pleurez, doux alcyons, ô vous, oiseaux sacrés, oiseaux chers à thétis, doux alcyons, pleurez. elle a vécu, myrto, la jeu | STRING |
| HIGH | www/doc/fr/browser.svg.md | 0 | 75,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80 | STRING |
| HIGH | www/doc/es/svg.md | 0 | 75,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80 | STRING |
| HIGH | www/doc/en/browser.svg.md | 0 | 75,38 90,80 135,80 98,107 111,150 75,125 38,150 51,107 15,80 60,80 | STRING |
| HIGH | www/src/Lib/genericpath.py | 0 | test whether a path exists. returns true for broken symbolic links | STRING |
| HIGH | www/src/Lib/posixpath.py | 0 | test whether a path exists. returns true for broken symbolic links | STRING |
| HIGH | www/src/Lib/ntpath.py | 0 | test whether a path exists. returns true for broken symbolic links | STRING |
| HIGH | www/src/Lib/_frozen_importlib.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | www/src/Lib/importlib/_bootstrap.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | www/src/Lib/importlib/_bootstrap_external.py | 0 | core implementation of path-based import. this module is not meant to be directly imported! it has been designed such th | STRING |
| HIGH | www/src/Lib/_frozen_importlib.py | 0 | meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate the | STRING |
| HIGH | www/src/Lib/faulthandler.py | 0 | meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate the | STRING |
| HIGH | www/src/Lib/importlib/_bootstrap.py | 0 | meta path import for frozen modules. all methods are either class or static methods to avoid the need to instantiate the | STRING |
| HIGH | www/src/Lib/_frozen_importlib.py | 0 | return repr for the module. the method is deprecated. the import machinery does the job itself. | STRING |
| HIGH | www/src/Lib/faulthandler.py | 0 | return repr for the module. the method is deprecated. the import machinery does the job itself. | STRING |
| HIGH | www/src/Lib/importlib/_bootstrap.py | 0 | return repr for the module. the method is deprecated. the import machinery does the job itself. | STRING |
| HIGH | www/src/Lib/encodings/raw_unicode_escape.py | 0 | python 'utf-16' codec written by marc-andre lemburg (mal@lemburg.com). (c) copyright cnri, all rights reserved. no warra | STRING |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server_modular_send_head.py | 41 | # | COMMENT |
| LOW | server_modular_send_head.py | 61 | # | | COMMENT |
| LOW | www/gallery/highcharts/js/modules/funnel.js | 21 | //# sourceMappingURL=funnel.js.map | COMMENT |
| LOW | www/gallery/pygame/chimp.html | 181 | #while going: | COMMENT |
| LOW | www/gallery/raphael/raphael-min.js | 1 | // ┌────────────────────────────────────────────────────────────────────┐ \\ | COMMENT |
| LOW | www/tests/test_time.py | 1 | from test import support | COMMENT |
| LOW | www/tests/test_time.py | 41 | #self.assertFalse(info.monotonic) | COMMENT |
| LOW | www/tests/test_time.py | 61 | #a = time.clock_gettime(time.CLOCK_MONOTONIC) | COMMENT |
| LOW | www/tests/test_time.py | 241 | # If mktime fails, ctime will fail too. This may happen | COMMENT |
| LOW | www/tests/test_time.py | 261 | ## systems. | COMMENT |
| LOW | www/tests/test_time.py | 281 | COMMENT | |
| LOW | www/tests/test_time.py | 301 | ## (non-DST timezone), and "EDT" instead of "AEDT" (DST timezone), | COMMENT |
| LOW | www/tests/test_time.py | 361 | #continue | COMMENT |
| LOW | www/tests/test_time.py | 401 | self.assertGreater(t2, t1) | COMMENT |
| LOW | www/tests/test_time.py | 421 | COMMENT | |
| LOW | www/tests/test_time.py | 461 | #clocks = ['clock', 'perf_counter', 'process_time', 'time'] | COMMENT |
| LOW | www/tests/test_time.py | 481 | #def setUp(self): | COMMENT |
| LOW | www/tests/test_time.py | 601 | #def test_time_t(self): | COMMENT |
| LOW | www/tests/test_time.py | 621 | #rnd = _PyTime_ROUND_DOWN | COMMENT |
| LOW | www/tests/test_time.py | 641 | #(1.1234560, (1, 123456), _PyTime_ROUND_DOWN), | COMMENT |
| LOW | www/tests/test_time.py | 661 | #(-0.0000041, (-1, 999995), _PyTime_ROUND_UP), | COMMENT |
| LOW | www/tests/test_time.py | 681 | #(1e-9, (0, 1), _PyTime_ROUND_DOWN), | COMMENT |
| LOW | www/tests/test_time.py | 701 | #(1.1234567890, (1, 123456790), _PyTime_ROUND_UP), | COMMENT |
| LOW | www/benchmarks/performance/bm_regex_effbot.py | 141 | COMMENT | |
| LOW | www/benchmarks/performance/bm_regex_v8.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | www/benchmarks/performance/bm_regex_v8.py | 21 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | www/benchmarks/performance/bm_regex_v8.py | 1681 | return util.run_benchmark(geo_mean, num_runs, test_regex_v8) | COMMENT |
| LOW | www/benchmarks/performance/bm_html5lib.py | 61 | # with open(spec_filename) as spec_fh: | COMMENT |
| LOW | www/benchmarks/performance/bm_nbody.py | 141 | # util.add_standard_options_to(parser) | COMMENT |
| LOW | www/cgi-bin/cgi.py | 21 | """ | COMMENT |
| LOW | www/cgi-bin/cgi.py | 441 | if 'name' in pdict: | COMMENT |
| LOW | www/src/py_utils.js | 201 | if (kw && kw.hasOwnProperty(arg_name)) { | COMMENT |
| LOW | www/src/gen_parse.js | 1101 | } | COMMENT |
| LOW | www/src/gen_parse.js | 1721 | } | COMMENT |
| LOW | www/src/gen_parse.js | 8981 | } | COMMENT |
| LOW | www/src/gen_parse.js | 10761 | } | COMMENT |
| LOW | www/src/gen_parse.js | 19181 | } | COMMENT |
| LOW | www/src/py_import.js | 1201 | // If the module name mod_name is already in $B.imported, return it. | COMMENT |
| LOW | www/src/libs/_random.js | 1 | // Javascript implementation of the _random module | COMMENT |
| LOW | www/src/Lib/zipfile.py | 141 | # _MASK_UNUSED_BIT_8 = 1 << 8 | COMMENT |
| LOW | www/src/Lib/tabnanny.py | 141 | # members: | COMMENT |
| LOW | www/src/Lib/tabnanny.py | 181 | self.is_simple = len(count) <= 1 | COMMENT |
| LOW | www/src/Lib/tabnanny.py | 221 | other.longest_run_of_spaces()) + 1 | COMMENT |
| LOW | www/src/Lib/zipimport.py | 321 | return None | COMMENT |
| LOW | www/src/Lib/_markupbase.py | 61 | # This is some sort of declaration; in "HTML as | COMMENT |
| LOW | www/src/Lib/gettext.py | 21 | # which also included a pure-Python implementation to read .mo files if | COMMENT |
| LOW | www/src/Lib/gettext.py | 641 | COMMENT | |
| LOW | www/src/Lib/cmath.py | 121 | def sqrt(x): | COMMENT |
| LOW | www/src/Lib/cmath.py | 481 | # problematic: | COMMENT |
| LOW | www/src/Lib/heapq.py | 241 | # many books write the algorithm that way. During a heap pop, the last array | COMMENT |
| LOW | www/src/Lib/heapq.py | 261 | # 1855 cut to 1659 14966 cut to 8678 | COMMENT |
| LOW | www/src/Lib/heapq.py | 401 | _heapreplace(h, s) | COMMENT |
| LOW | www/src/Lib/heapq.py | 421 | # 1,000 100 3,317 231.7% | COMMENT |
| LOW | www/src/Lib/heapq.py | 441 | # ----------------------------------------------- | COMMENT |
| LOW | www/src/Lib/heapq.py | 461 | # ---------------------- | COMMENT |
| LOW | www/src/Lib/functools.py | 661 | if key in cache: | COMMENT |
| LOW | www/src/Lib/traceback.py | 821 | try: | COMMENT |
| LOW | www/src/Lib/subprocess.py | 241 | # we can write up to _PIPE_BUF bytes without risk of blocking. | COMMENT |
| LOW | www/src/Lib/subprocess.py | 981 | COMMENT | |
| LOW | www/src/Lib/subprocess.py | 2181 | COMMENT | |
| 319 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server_modular_send_head.py | 85 | __all__ = [ | CODE |
| LOW | setup/brython/list_modules.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | www/cgi-bin/cgi.py | 51 | __all__ = ["MiniFieldStorage", "FieldStorage", "parse", "parse_multipart", | CODE |
| LOW | www/src/Lib/zipfile.py | 38 | __all__ = ["BadZipFile", "BadZipfile", "error", | CODE |
| LOW | www/src/Lib/shutil.py | 57 | __all__ = ["copyfileobj", "copyfile", "copymode", "copystat", "copy", "copy2", | CODE |
| LOW | www/src/Lib/tempfile.py | 26 | __all__ = [ | CODE |
| LOW | www/src/Lib/queue.py | 13 | __all__ = [ | CODE |
| LOW | www/src/Lib/pkgutil.py | 12 | __all__ = [ | CODE |
| LOW | www/src/Lib/_dummy_thread.py | 16 | __all__ = ['error', 'start_new_thread', 'exit', 'get_ident', 'allocate_lock', | CODE |
| LOW | www/src/Lib/copyreg.py | 7 | __all__ = ["pickle", "constructor", | CODE |
| LOW | www/src/Lib/rlcompleter.py | 40 | __all__ = ["Completer"] | CODE |
| LOW | www/src/Lib/gzip.py | 14 | __all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"] | CODE |
| LOW | www/src/Lib/bdb.py | 11 | __all__ = ["BdbQuit", "Bdb", "Breakpoint"] | CODE |
| LOW | www/src/Lib/cmd.py | 47 | __all__ = ["Cmd"] | CODE |
| LOW | www/src/Lib/tabnanny.py | 27 | __all__ = ["check", "NannyNag", "process_tokens"] | CODE |
| LOW | www/src/Lib/zipimport.py | 24 | __all__ = ['ZipImportError', 'zipimporter'] | CODE |
| LOW | www/src/Lib/token.py | 4 | __all__ = ['tok_name', 'ISTERMINAL', 'ISNONTERMINAL', 'ISEOF', | CODE |
| LOW | www/src/Lib/textwrap.py | 10 | __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten'] | CODE |
| LOW | www/src/Lib/base64.py | 11 | __all__ = [ | CODE |
| LOW | www/src/Lib/_threading_local.py | 12 | __all__ = ["local"] | CODE |
| LOW | www/src/Lib/pyclbr.py | 48 | __all__ = ["readmodule", "readmodule_ex", "Class", "Function"] | CODE |
| LOW | www/src/Lib/gettext.py | 51 | __all__ = ['NullTranslations', 'GNUTranslations', 'Catalog', | CODE |
| LOW | www/src/Lib/weakref.py | 30 | __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", | CODE |
| LOW | www/src/Lib/opcode.py | 8 | __all__ = ["cmp_op", "stack_effect", "hascompare", "opname", "opmap", | CODE |
| LOW | www/src/Lib/heapq.py | 129 | __all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'merge', | STRING |
| LOW | www/src/Lib/functools.py | 12 | __all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES', | CODE |
| LOW | www/src/Lib/codeop.py | 41 | __all__ = ["compile_command", "Compile", "CommandCompiler"] | STRING |
| LOW | www/src/Lib/fnmatch.py | 19 | __all__ = ["filter", "filterfalse", "fnmatch", "fnmatchcase", "translate"] | CODE |
| LOW | www/src/Lib/traceback.py | 17 | __all__ = ['extract_stack', 'extract_tb', 'format_exception', | CODE |
| LOW | www/src/Lib/warnings.py | 3 | __all__ = [ | CODE |
| LOW | www/src/Lib/subprocess.py | 63 | __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call", "getstatusoutput", | STRING |
| LOW | www/src/Lib/profile.py | 32 | __all__ = ["run", "runctx", "Profile"] | CODE |
| LOW | www/src/Lib/codecs.py | 20 | __all__ = ["register", "lookup", "open", "EncodedFile", "BOM", "BOM_BE", | CODE |
| LOW | www/src/Lib/_weakrefset.py | 8 | __all__ = ['WeakSet'] | CODE |
| LOW | www/src/Lib/io.py | 44 | __all__ = ["BlockingIOError", "open", "open_code", "IOBase", "RawIOBase", | CODE |
| LOW | www/src/Lib/code.py | 13 | __all__ = ["InteractiveInterpreter", "InteractiveConsole", "interact", | CODE |
| LOW | www/src/Lib/operator.py | 13 | __all__ = ['abs', 'add', 'and_', 'attrgetter', 'call', 'concat', 'contains', 'countOf', | CODE |
| LOW | www/src/Lib/difflib.py | 29 | __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher', | CODE |
| LOW | www/src/Lib/pydoc.py | 40 | __all__ = ['help'] | CODE |
| LOW | www/src/Lib/copy.py | 60 | __all__ = ["Error", "copy", "deepcopy", "replace"] | CODE |
| LOW | www/src/Lib/genericpath.py | 9 | __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime', | CODE |
| LOW | www/src/Lib/linecache.py | 8 | __all__ = ["getline", "clearcache", "checkcache", "lazycache"] | CODE |
| LOW | www/src/Lib/types.py | 340 | __all__ = [n for n in globals() if not n.startswith('_')] # for pydoc | CODE |
| LOW | www/src/Lib/mimetypes.py | 36 | __all__ = [ | CODE |
| LOW | www/src/Lib/colorsys.py | 24 | __all__ = ["rgb_to_yiq","yiq_to_rgb","rgb_to_hls","hls_to_rgb", | CODE |
| LOW | www/src/Lib/numbers.py | 35 | __all__ = ["Number", "Complex", "Real", "Rational", "Integral"] | CODE |
| LOW | www/src/Lib/_strptime.py | 26 | __all__ = [] | CODE |
| LOW | www/src/Lib/random.py | 73 | __all__ = [ | CODE |
| LOW | www/src/Lib/optparse.py | 26 | __all__ = ['Option', | CODE |
| LOW | www/src/Lib/pdb.py | 112 | __all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace", | CODE |
| LOW | www/src/Lib/threading.py | 26 | __all__ = ['get_ident', 'active_count', 'Condition', 'current_thread', | CODE |
| LOW | www/src/Lib/glob.py | 14 | __all__ = ["glob", "iglob", "escape", "translate"] | CODE |
| LOW | www/src/Lib/quopri.py | 5 | __all__ = ["encode", "decode", "encodestring", "decodestring"] | CODE |
| LOW | www/src/Lib/symtable.py | 18 | __all__ = ["symtable", "SymbolTableType", "SymbolTable", "Class", "Function", "Symbol"] | CODE |
| LOW | www/src/Lib/pprint.py | 42 | __all__ = ["pprint","pformat","isreadable","isrecursive","saferepr", | CODE |
| LOW | www/src/Lib/calendar.py | 14 | __all__ = ["IllegalMonthError", "IllegalWeekdayError", "setfirstweekday", | CODE |
| LOW | www/src/Lib/inspect.py | 34 | __all__ = [ | CODE |
| LOW | www/src/Lib/keyword.py | 16 | __all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"] | CODE |
| LOW | www/src/Lib/_py_warnings.py | 8 | __all__ = ["warn", "warn_explicit", "showwarning", | CODE |
| LOW | www/src/Lib/reprlib.py | 3 | __all__ = ["Repr", "repr", "recursive_repr"] | CODE |
| 116 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | www/src/Lib/ipaddress.py | 29 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | www/src/Lib/ipaddress.py | 58 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | www/src/Lib/ipaddress.py | 87 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP | STRING |
| HIGH | www/src/Lib/ipaddress.py | 121 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat | STRING |
| HIGH | www/src/Lib/ipaddress.py | 305 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), | STRING |
| HIGH | www/src/Lib/ipaddress.py | 446 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi | STRING |
| HIGH | www/src/Lib/ipaddress.py | 476 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted | STRING |
| HIGH | www/src/Lib/ipaddress.py | 501 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver | STRING |
| HIGH | www/src/Lib/ipaddress.py | 797 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') | STRING |
| HIGH | www/src/Lib/ipaddress.py | 872 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th | STRING |
| HIGH | www/src/Lib/ipaddress.py | 930 | The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr | STRING |
| HIGH | www/src/Lib/ipaddress.py | 983 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi | STRING |
| HIGH | www/src/Lib/ipaddress.py | 1175 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. | STRING |
| HIGH | www/src/Lib/ipaddress.py | 1201 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R | STRING |
| HIGH | www/src/Lib/ipaddress.py | 1608 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: | STRING |
| HIGH | www/src/Lib/ipaddress.py | 1712 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. | STRING |
| HIGH | www/src/Lib/ipaddress.py | 1786 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. | STRING |
| HIGH | www/src/Lib/selectors.py | 22 | Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns | STRING |
| HIGH | www/src/Lib/selectors.py | 101 | Register a file object. Parameters: fileobj -- file object or file descriptor events -- events | STRING |
| HIGH | www/src/Lib/selectors.py | 124 | Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: | STRING |
| HIGH | www/src/Lib/selectors.py | 142 | Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o | STRING |
| HIGH | www/src/Lib/getpass.py | 30 | Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: | STRING |
| HIGH | www/src/Lib/concurrent/futures/_base.py | 194 | An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos | STRING |
| HIGH | www/src/Lib/concurrent/futures/_base.py | 423 | Return the result of the call that the future represents. Args: timeout: The number of seconds to w | STRING |
| HIGH | www/src/Lib/concurrent/futures/_base.py | 458 | Return the exception raised by the call that the future represents. Args: timeout: The number of se | STRING |
| HIGH | www/src/Lib/concurrent/futures/_base.py | 578 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume | STRING |
| HIGH | www/src/Lib/concurrent/futures/process.py | 795 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server_modular_send_head.py | 611 | # Essentially static class variables | COMMENT |
| LOW | www/src/Lib/zipfile.py | 248 | # end-of-archive record, so just return the end record we were given. | COMMENT |
| LOW | www/src/Lib/shutil.py | 1617 | # what file suffixes are executable, so just pass on cmd as-is. | COMMENT |
| LOW | www/src/Lib/difflib.py | 1413 | # Handle case where no user markup is to be added, just return line of | STRING |
| LOW | www/src/Lib/difflib.py | 1780 | # if blank line or context separator, just add it to the output list | COMMENT |
| LOW | www/src/Lib/difflib.py | 1785 | # if line text doesn't need wrapping, just add it to the output list | COMMENT |
| LOW | www/src/Lib/_contextvars.py | 18 | # single-threaded environment: just call (no context switching) | COMMENT |
| LOW | www/src/Lib/optparse.py | 565 | # Check all the attributes we just set. There are lots of | COMMENT |
| LOW | www/src/Lib/pdb.py | 3122 | # No logic applied whatsoever, just pass the raw reply back. | COMMENT |
| LOW | www/src/Lib/threading.py | 299 | # these override the default implementations (which just call | COMMENT |
| MEDIUM | www/src/Lib/doctest.py | 1745 | # in conjunction with the ELLIPSIS flag. | STRING |
| LOW | www/src/Lib/argparse.py | 2363 | # for regular arguments, just add them back into the list | COMMENT |
| LOW | www/src/Lib/dataclasses.py | 529 | # via object.__setattr__. Otherwise, just use a simple | COMMENT |
| LOW | www/src/Lib/dataclasses.py | 585 | # just use the class attribute that contains the default. | COMMENT |
| LOW | www/src/Lib/tarfile.py | 1503 | # Normally, we could just use "utf-8" as the encoding and "strict" | COMMENT |
| LOW | www/src/Lib/_pydecimal.py | 3309 | # otherwise, simply return the adjusted exponent of self, as a | COMMENT |
| LOW | www/src/Lib/ntpath.py | 637 | # just return the old path. | COMMENT |
| LOW | www/src/Lib/unittest/test/test_loader.py | 776 | # XXX Should this raise a ValueError or just return an empty TestSuite? | COMMENT |
| LOW | www/src/Lib/unittest/test/testmock/testmock.py | 1096 | # need to do this because MagicMock.mock_calls used to just return | COMMENT |
| LOW | www/src/Lib/test/test_winsound.py | 18 | # even *should* play. Instead of guessing, just call the function and assume | COMMENT |
| MEDIUM | www/src/Lib/test/test_wsgiref.py | 444 | # Not comprehensive, just a few random header names | COMMENT |
| MEDIUM | www/src/Lib/test/test_logging.py | 8 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| LOW | www/src/Lib/test/test_urllib2.py | 1148 | # required, so just use a dummy one to instantiate | COMMENT |
| MEDIUM | www/src/Lib/test/test_pdb.py | 1 | # A test suite for pdb; not very comprehensive at the moment. | COMMENT |
| MEDIUM⚡ | www/src/Lib/test/test_lzma.py | 512 | # Test robust handling of non-LZMA data following the compressed stream(s). | COMMENT |
| MEDIUM | www/src/Lib/test/test_os.py | 1935 | # We spawn a new process to make the test more robust (if getrlimit() | COMMENT |
| MEDIUM | www/src/Lib/test/test_decimal.py | 5743 | """The C Context docstrings use 'x' in order to prevent confusion | STRING |
| MEDIUM | www/src/Lib/test/test_grammar.py | 1934 | # This is not intended to be a comprehensive test, rather just to be few | STRING |
| MEDIUM | www/src/Lib/test/test_bytes.py | 1915 | # comprehensive for things like partition, etc. | COMMENT |
| LOW | www/src/Lib/test/test_bz2.py | 72 | # simply use the bigger test data for all tests. | COMMENT |
| LOW | www/src/Lib/test/test_py_compile.py | 240 | # assert_python_* helpers don't return proc object. We'll just use | COMMENT |
| LOW | www/src/Lib/test/test_subprocess.py | 1218 | # Subsequent invocations should just return the returncode | STRING |
| LOW | www/src/Lib/test/test_subprocess.py | 1224 | # Subsequent invocations should just return the returncode | STRING |
| MEDIUM | www/src/Lib/test/test_urllib2net.py | 32 | # Connecting to remote hosts is flaky. Make it more robust by retrying | COMMENT |
| MEDIUM | www/src/Lib/test/test_ssl.py | 2384 | # harness, we want to stop the server | COMMENT |
| MEDIUM | www/src/Lib/test/test_startfile.py | 29 | # means the test harness provided directory isn't a safe option. | COMMENT |
| MEDIUM | www/src/Lib/test/test_signal.py | 1361 | # a signal is ignored due to the aforementioned | STRING |
| MEDIUM | www/src/Lib/test/test_socketserver.py | 52 | # Don't raise an exception; it would be caught by the test harness. | COMMENT |
| LOW | www/src/Lib/test/test_unicode_file.py | 120 | # The 'test' functions are unittest entry points, and simply call our | COMMENT |
| LOW | www/src/Lib/test/test_long.py | 1188 | # nonnegative second argument: round(x, n) should just return x | COMMENT |
| LOW | www/src/Lib/test/test_argparse.py | 105 | # redirected, simply call the function and let the enclosing function | COMMENT |
| LOW | www/src/Lib/test/test_gdb.py | 362 | # We cannot simply call locale.getpreferredencoding() here, | COMMENT |
| LOW | www/src/Lib/test/test_types.py | 487 | # So, just use a sign flag | COMMENT |
| MEDIUM | www/src/Lib/test/support/asyncore.py | 20 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| MEDIUM | www/src/Lib/test/support/asynchat.py | 20 | # Rushing not be used in advertising or publicity pertaining to | COMMENT |
| MEDIUM | www/src/Lib/http/cookies.py | 12 | # pertaining to distribution of the software without specific, written | COMMENT |
| MEDIUM | www/src/Lib/_pyrepl/reader.py | 267 | # facilitate the tab completion hack implemented for | COMMENT |
| MEDIUM | www/src/Lib/logging/config.py | 8 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| MEDIUM | www/src/Lib/logging/handlers.py | 8 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| MEDIUM | www/src/Lib/logging/__init__.py | 8 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| MEDIUM | www/src/Lib/logging/__init__.py | 190 | # _srcfile is only used in conjunction with sys._getframe(). | COMMENT |
| LOW | www/src/Lib/email/header.py | 73 | # If it is a Header object, we can just return the encoded chunks. | STRING |
| LOW | www/src/Lib/email/header.py | 77 | # If no encoding, just return the header with no charset. | STRING |
| LOW | www/src/Lib/email/header.py | 168 | # None means us-ascii but we can simply pass it on to h.append() | STRING |
| LOW | scripts/pegen/build.py | 57 | # To further add to the shared builds fun on Unix, we can't just add | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | www/gallery/highcharts/js/highcharts-more.js | 209 | this.xAxis.center,k=e.plotLeft,l=e.plotTop,m=this.options.animation,n,p,q,r;if(e.polar)if(d.isRadialBar)b||(d.startAngle | CODE |
| CRITICAL | www/gallery/highcharts/js/highcharts.js | 297 | "attr"]({d:this.haloPath(g.size)}),r.attr({"class":"highcharts-halo highcharts-color-"+y(this.colorIndex,f.colorIndex)+( | CODE |
| CRITICAL | www/gallery/highcharts/js/highcharts.js | 562 | this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+a,d.r+a,{innerR:d | CODE |
| CRITICAL | www/src/ast_to_js.js | 1460 | return $B.ast.For.prototype.to_js.bind(this)(scopes) | CODE |
| CRITICAL | www/src/ast_to_js.js | 1464 | return $B.ast.FunctionDef.prototype.to_js.bind(this)(scopes) | CODE |
| CRITICAL | www/src/Lib/test/test_urllib2net.py | 342 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | www/src/Lib/test/test_urllib2net.py | 353 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| CRITICAL | www/src/Lib/test/test_urllib2net.py | 364 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) | CODE |
| CRITICAL | www/src/Lib/test/test_urllib2net.py | 370 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | www/tests/test_generators.py | 14 | CODE | |
| MEDIUM | www/tests/test_generators.py | 84 | CODE | |
| MEDIUM | www/src/Lib/external_import.py | 36 | CODE | |
| MEDIUM | www/src/Lib/VFS_import.py | 33 | CODE | |
| MEDIUM | www/src/Lib/unittest/test/test_async_case.py | 91 | CODE | |
| MEDIUM | www/src/Lib/unittest/test/test_async_case.py | 199 | CODE | |
| MEDIUM | www/src/Lib/test/test_itertools.py | 2180 | CODE | |
| MEDIUM | www/src/Lib/test/test_array.py | 1092 | CODE | |
| MEDIUM | www/src/Lib/test/test_generators.py | 350 | CODE | |
| MEDIUM | www/src/Lib/test/test_generators.py | 361 | CODE | |
| MEDIUM | www/src/Lib/test/test_exceptions.py | 1717 | CODE | |
| MEDIUM | www/src/Lib/test/test_compile.py | 691 | CODE | |
| MEDIUM | www/src/Lib/test/test_set.py | 21 | CODE | |
| MEDIUM | www/src/Lib/test/test_set.py | 1076 | CODE | |
| MEDIUM | www/src/Lib/test/test_deque.py | 16 | CODE | |
| MEDIUM | www/src/Lib/test/test_pep380.py | 205 | CODE | |
| MEDIUM | www/src/Lib/test/test_pep380.py | 206 | CODE | |
| MEDIUM | www/src/Lib/test/test_pep380.py | 207 | CODE | |
| MEDIUM | www/src/Lib/test/test_builtin.py | 1091 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 287 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 288 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 289 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 290 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 291 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 292 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 293 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 294 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 296 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 298 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 299 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 307 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 308 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 315 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 316 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 342 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 343 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 347 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 352 | CODE | |
| MEDIUM | scripts/make_brython_standard_parser.py | 355 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server_modular_send_head.py | 614 | # Set this to HTTP/1.1 to enable automatic keepalive | COMMENT |
| LOW | www/demo.html | 1018 | # Read the file content as text | COMMENT |
| LOW | www/gallery/binary_file_reader.html | 116 | # Read file as ArrayBuffer | COMMENT |
| LOW | www/gallery/taquin.py | 149 | # Check if puzzle is solved | COMMENT |
| LOW | www/gallery/music/synth_drums.py | 44 | # Read the file content as text | COMMENT |
| LOW | www/gallery/music/play_song_part.html | 272 | # Read the file content as text | COMMENT |
| LOW | www/src/Lib/zipfile.py | 441 | # Set these to zero because we write them after the file data | COMMENT |
| LOW | www/src/Lib/zipfile.py | 1269 | # Check if we were passed a file-like object | COMMENT |
| LOW⚡ | www/src/Lib/_py_abc.py | 131 | # Check if it's a direct subclass | COMMENT |
| LOW⚡ | www/src/Lib/_py_abc.py | 135 | # Check if it's a subclass of a registered class (recursive) | COMMENT |
| LOW⚡ | www/src/Lib/_py_abc.py | 140 | # Check if it's a subclass of a subclass (recursive) | COMMENT |
| LOW | www/src/Lib/zipimport.py | 358 | # Check if there's a comment. | COMMENT |
| LOW | www/src/Lib/pyclbr.py | 143 | # Check if it is a built-in module; we don't do much for these. | COMMENT |
| LOW | www/src/Lib/heapq.py | 280 | # Set childpos to index of smaller child. | COMMENT |
| LOW | www/src/Lib/heapq.py | 316 | # Set childpos to index of larger child. | COMMENT |
| LOW | www/src/Lib/traceback.py | 1361 | # Check if it works | COMMENT |
| LOW⚡ | www/src/Lib/types.py | 300 | # Check if 'func' is a coroutine function. | COMMENT |
| LOW⚡ | www/src/Lib/types.py | 305 | # Check if 'func' is a generator function. | COMMENT |
| LOW | www/src/Lib/pdb.py | 210 | # Open the file each time because the file may be modified | COMMENT |
| LOW | www/src/Lib/pdb.py | 2754 | # Check if the interpreter is finalizing every quarter of a second. | COMMENT |
| LOW | www/src/Lib/_py_warnings.py | 446 | # Check if message is already a Warning object | COMMENT |
| LOW | www/src/Lib/_py_warnings.py | 566 | # Print message and context | COMMENT |
| LOW | www/src/Lib/doctest.py | 1798 | # Check if we should use diff. | STRING |
| LOW | www/src/Lib/doctest.py | 2195 | # Read the file, convert it to a test, and run it. | STRING |
| LOW | www/src/Lib/tarfile.py | 1216 | # Check if one of the fields contains surrogate characters and thereby | COMMENT |
| LOW | www/src/Lib/tarfile.py | 1480 | # Check if the pax header contains a hdrcharset field. This tells us | COMMENT |
| LOW | www/src/Lib/typing.py | 1235 | # Check if any base that occurs after us in `bases` is either itself a | COMMENT |
| LOW | www/src/Lib/typing.py | 2054 | # Check if the members appears in the class dictionary... | COMMENT |
| LOW | www/src/Lib/unittest/mock.py | 455 | # Check if spec is an async object or function | COMMENT |
| LOW⚡ | www/src/Lib/unittest/test/testmock/testmagicmethods.py | 494 | # Check if you can change behaviour of magic methods in MagicMock init | COMMENT |
| LOW | www/src/Lib/test/test_gzip.py | 167 | # Open the file for writing, then close it. | STRING |
| LOW | www/src/Lib/test/test_zipfile.py | 2268 | # Read the file completely to definitely call any eof integrity | COMMENT |
| LOW | www/src/Lib/test/test_logging.py | 5637 | # Set level to NOTSET and ensure caches are empty | COMMENT |
| LOW | www/src/Lib/test/test_difflib.py | 248 | # Check if the problem described in patch #1413711 exists. | COMMENT |
| LOW | www/src/Lib/test/test_http_cookies.py | 104 | # Check if the cookie is loaded correctly | COMMENT |
| LOW | www/src/Lib/test/test_smtpd.py | 886 | # Set decode_data to True | STRING |
| LOW | www/src/Lib/test/test_io.py | 3106 | # Check if the BOM is written only once (see issue1753). | COMMENT |
| LOW | www/src/Lib/test/test_compile.py | 1004 | # Check if bytecode containing jumps that simply point to the next line | COMMENT |
| LOW | www/src/Lib/test/test_memoryio.py | 767 | bytearray(state[0]) # Check if state[0] supports the buffer interface. | CODE |
| LOW | www/src/Lib/test/test_codecs.py | 2647 | # Check if the BOM is written only once | COMMENT |
| LOW | www/src/Lib/test/support/__init__.py | 877 | # Check if Python was built with ./configure --enable-optimizations: | COMMENT |
| LOW | www/src/Lib/test/support/__init__.py | 1816 | # Check if the 'Crash Reporter' on OSX was configured | COMMENT |
| LOW | www/src/Lib/urllib/parse.py | 914 | # Check if ' ' in string, where string may either be a str or bytes. If | COMMENT |
| LOW | www/src/Lib/http/cookies.py | 404 | # Return the result | STRING |
| LOW | www/src/Lib/importlib/_bootstrap_external.py | 1640 | # Check if the module is the name of a directory (and thus a package). | COMMENT |
| LOW | scripts/pegen/grammar.py | 38 | # Check if there are repeated rules in "rules" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | www/src/py_utils.js | 1712 | // If both operands return NotImplemented, return False if the operand is | COMMENT |
| HIGH | www/src/ast_to_js.js | 2668 | // add an explicit "return None" | COMMENT |
| HIGH | www/src/py_import.js | 1371 | * @return None | COMMENT |
| HIGH | www/src/py_builtin_functions.js | 32 | return None | CODE |
| HIGH | www/src/py_builtin_functions.js | 1692 | return None | CODE |
| HIGH | www/src/py_builtin_functions.js | 1838 | // Must return None: pickle's load_build treats a NULL/undefined result | COMMENT |
| HIGH | www/src/builtins_docstrings.js | 82 | all:"Return True if bool(x) is True for all values x in the iterable.\n\nIf the iterable is empty, return True.", | CODE |
| HIGH | www/src/builtins_docstrings.js | 84 | any:"Return True if bool(x) is True for any x in the iterable.\n\nIf the iterable is empty, return False.", | CODE |
| HIGH | www/src/py_string.js | 2089 | // return False. suffix can also be a tuple of suffixes to look for. | COMMENT |
| HIGH | www/src/py_string.js | 3085 | // Return True if string starts with the prefix, otherwise return False. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | www/gallery/synthesizer.py | 18 | CODE | |
| LOW | www/tests/issues.py | 3237 | CODE | |
| LOW | www/tests/input_interpreter.py | 206 | CODE | |
| LOW | www/cgi-bin/cgi.py | 330 | CODE | |
| LOW | www/src/Lib/tempfile.py | 558 | CODE | |
| LOW | www/src/Lib/tempfile.py | 631 | CODE | |
| LOW | www/src/Lib/tempfile.py | 713 | CODE | |
| LOW | www/src/Lib/time.py | 137 | CODE | |
| LOW | www/src/Lib/time.py | 178 | CODE | |
| LOW | www/src/Lib/time.py | 316 | CODE | |
| LOW | www/src/Lib/textwrap.py | 112 | CODE | |
| LOW | www/src/Lib/cmath.py | 401 | CODE | |
| LOW | www/src/Lib/functools.py | 622 | CODE | |
| LOW | www/src/Lib/traceback.py | 1044 | CODE | |
| LOW | www/src/Lib/subprocess.py | 814 | CODE | |
| LOW | www/src/Lib/pydoc.py | 1302 | CODE | |
| LOW | www/src/Lib/optparse.py | 1168 | CODE | |
| LOW | www/src/Lib/pdb.py | 345 | CODE | |
| LOW | www/src/Lib/interpreter.py | 159 | CODE | |
| LOW | www/src/Lib/configparser.py | 647 | CODE | |
| LOW | www/src/Lib/reprlib.py | 51 | CODE | |
| LOW | www/src/Lib/_pydatetime.py | 1765 | CODE | |
| LOW | www/src/Lib/_pydatetime.py | 2054 | CODE | |
| LOW | www/src/Lib/doctest.py | 1981 | CODE | |
| LOW | www/src/Lib/doctest.py | 2086 | CODE | |
| LOW | www/src/Lib/argparse.py | 879 | CODE | |
| LOW | www/src/Lib/argparse.py | 966 | CODE | |
| LOW | www/src/Lib/argparse.py | 1066 | CODE | |
| LOW | www/src/Lib/argparse.py | 1865 | CODE | |
| LOW | www/src/Lib/dataclasses.py | 391 | CODE | |
| LOW | www/src/Lib/dataclasses.py | 1342 | CODE | |
| LOW | www/src/Lib/dataclasses.py | 1555 | CODE | |
| LOW | www/src/Lib/tarfile.py | 961 | CODE | |
| LOW | www/src/Lib/tarfile.py | 1706 | CODE | |
| LOW | www/src/Lib/_pydecimal.py | 3854 | CODE | |
| LOW | www/src/Lib/unittest/runner.py | 189 | CODE | |
| LOW | www/src/Lib/unittest/main.py | 66 | CODE | |
| LOW | www/src/Lib/unittest/mock.py | 445 | CODE | |
| LOW | www/src/Lib/unittest/mock.py | 464 | CODE | |
| LOW | www/src/Lib/unittest/mock.py | 1153 | CODE | |
| LOW | www/src/Lib/test/test_faulthandler.py | 86 | CODE | |
| LOW | www/src/Lib/test/test_decimal.py | 4248 | CODE | |
| LOW | www/src/Lib/test/test_socket.py | 131 | CODE | |
| LOW | www/src/Lib/test/mock_socket.py | 54 | CODE | |
| LOW | www/src/Lib/test/test_ssl.py | 2387 | CODE | |
| LOW | www/src/Lib/json/__init__.py | 155 | CODE | |
| LOW | www/src/Lib/json/encoder.py | 260 | CODE | |
| LOW | www/src/Lib/json/encoder.py | 105 | CODE | |
| LOW | www/src/Lib/_pyrepl/_minimal_curses.py | 64 | CODE | |
| LOW | www/src/Lib/logging/handlers.py | 216 | CODE | |
| LOW | www/src/Lib/email/contentmanager.py | 183 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | www/src/Lib/encodings/idna.py | 82 | # Step 2: nameprep | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 86 | # Step 4: try ASCII | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 111 | # Step 8: Check size | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 | COMMENT |
| LOW | www/src/Lib/encodings/idna.py | 68 | # Step 1: try ASCII | COMMENT |
| LOW | www/src/Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII | COMMENT |
| LOW | www/src/Lib/test/test_curses.py | 936 | # range may be restricted, so we need to check if the limit is still | COMMENT |
| LOW | www/src/Lib/email/header.py | 390 | # Step 1: Normalize the chunks so that all runs of identical charsets | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | www/tests/test_traceback.py | 5 | fake_name = "<fake_file>" | CODE |
| LOW⚡ | www/tests/test_traceback.py | 6 | linecache.cache[fake_name] = (len(src), None, src.splitlines(True), fake_name) | CODE |
| LOW⚡ | www/tests/test_traceback.py | 7 | exec(compile(src, fake_name, "exec")) | CODE |
| LOW | www/src/Lib/test/test_xml_etree.py | 1679 | <xi:fallback><a href="mailto:bob@example.org">Report error</a></xi:fallback> | CODE |
| LOW | www/src/Lib/test/test_xml_etree.py | 1845 | ' <ns0:fallback><a href="mailto:bob@example.org">Report error</a></ns0:fallback>\n' | STRING |
| LOW | www/src/Lib/test/make_ssl_certs.py | 271 | 'email.1 = user@example.org', | STRING |
| LOW | www/src/Lib/test/test_curses.py | 385 | self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,') | CODE |
| LOW⚡ | www/src/Lib/test/test_curses.py | 426 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') | CODE |
| LOW⚡ | www/src/Lib/test/test_curses.py | 429 | self.assertEqual(win.instr(3, 0), b'dolor sit amet,') | CODE |
| LOW⚡ | www/src/Lib/test/test_curses.py | 435 | self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') | CODE |
| LOW⚡ | www/src/Lib/test/test_curses.py | 445 | self.assertEqual(win.instr(0, 0), b'dolor sit amet,') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 467 | win.addstr(2, 0, 'Lorem ipsum') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 468 | win.addstr(3, 0, 'dolor sit amet') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 497 | win.addstr(0, 0, 'Lorem ipsum') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 585 | win.addstr(2, 1, 'Lorem ipsum') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 593 | self.assertEqual(win.instr(2, 0), b' Lorem ipsum') | CODE |
| LOW | www/src/Lib/test/test_curses.py | 1309 | 'Lorem ipsum', | CODE |
| LOW | www/src/Lib/test/test_curses.py | 1310 | 'dolor sit amet,', | CODE |
| LOW | www/src/Lib/test/test_ssl.py | 456 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | www/src/Lib/test/test_ssl.py | 463 | ('email', 'null@python.org\x00user@example.org'), | CODE |
| LOW | www/src/Lib/test/test_ssl.py | 477 | ('email', 'user@example.org'), | CODE |
| LOW | www/src/Lib/test/test_urlparse.py | 280 | self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'), | CODE |
| LOW | www/src/Lib/test/test_urlparse.py | 281 | ('mailto', '', '1337@example.org', '', '', '')) | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 517 | m['From'] = 'foo@bar.com' | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 554 | m['From'] = 'foo@bar.com' | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 583 | m['From'] = 'foo@bar.com' | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 643 | m['From'] = 'foo@bar.com' | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 680 | m['From'] = 'foo@bar.com' | CODE |
| LOW | www/src/Lib/test/test_email/test_generator.py | 346 | msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo") | STRING |
| LOW⚡ | www/src/Lib/test/test_email/test_email.py | 3336 | eq(addrs[0][1], 'foo@bar.com') | STRING |
| LOW | www/src/Lib/test/test_email/test_email.py | 3971 | ('From: foo@bar.com', ('From', 'foo@bar.com')), | STRING |
| LOW | www/src/Lib/test/test_email/test_email.py | 4004 | ['foo@bar.com', | STRING |
| LOW | www/src/Lib/test/test_email/test_email.py | 4015 | [('From', 'foo@bar.com'), | STRING |
| LOW | www/src/Lib/test/test_email/test_email.py | 4027 | ['foo@bar.com', | STRING |
| LOW | www/src/Lib/test/test_email/test_message.py | 581 | ('To', 'foo@bar.com'), | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | www/tests/test_suite.py | 223 | def do_something(self): | CODE |
| LOW | www/src/Lib/contextlib.py | 304 | def helper(*args, **kwds): | CODE |
| LOW | www/src/Lib/contextlib.py | 337 | def helper(*args, **kwds): | CODE |
| LOW | www/src/Lib/unittest/test/test_break.py | 82 | def test_function(): | CODE |
| LOW | www/src/Lib/unittest/test/test_break.py | 113 | def test_function(): | CODE |
| LOW | www/src/Lib/unittest/test/test_break.py | 125 | def test_function(): | CODE |
| LOW | www/src/Lib/unittest/test/test_break.py | 155 | def test_function(): | CODE |
| LOW | www/src/Lib/unittest/test/_test_warnings.py | 55 | def test_function(self): | CODE |
| LOW | www/src/Lib/unittest/test/testmock/testhelpers.py | 747 | def test_function(self): | CODE |
| LOW | www/src/Lib/test/test_strptime.py | 291 | def helper(self, directive, position): | CODE |
| LOW | www/src/Lib/test/test_gc.py | 222 | def test_function(self): | CODE |
| LOW | www/src/Lib/test/test_logging.py | 2145 | def handle_request(self, request): | CODE |
| LOW | www/src/Lib/test/test_with.py | 44 | def helper(*args, **kwds): | CODE |
| LOW | www/src/Lib/test/test_marshal.py | 19 | def helper(self, sample, *extra): | CODE |
| LOW | www/src/Lib/test/test_pdb.py | 437 | def do_something(): | CODE |
| LOW | www/src/Lib/test/test_pdb.py | 43 | >>> def test_function(foo, bar): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 89 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 225 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 414 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 459 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 482 | 1 def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 528 | ... def do_something(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 546 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 586 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 619 | 1 def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 713 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 802 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 867 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 932 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 992 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1044 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1104 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1141 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1195 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1230 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1276 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1315 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1340 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1369 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_pdb.py | 1416 | >>> def test_function(): | STRING |
| LOW | www/src/Lib/test/test_os.py | 2190 | def helper(self): | STRING |
| LOW | www/src/Lib/test/test_functools.py | 1836 | def test_function(x): | CODE |
| LOW | www/src/Lib/test/test_concurrent_futures.py | 92 | def my_method(self): | CODE |
| LOW | www/src/Lib/test/test_tokenize.py | 399 | def test_function(self): | STRING |
| LOW | www/src/Lib/test/test_tokenize.py | 1959 | def test_function(self): | STRING |
| LOW | www/src/Lib/test/profilee.py | 55 | def helper(): | CODE |
| LOW | www/src/Lib/test/test_xmlrpc.py | 648 | def my_function(): | CODE |
| LOW | www/src/Lib/test/test_xmlrpc.py | 679 | def my_function(): | CODE |
| LOW | www/src/Lib/test/test_urllib2_localnet.py | 160 | def handle_request(self, request_handler): | CODE |
| LOW | www/src/Lib/test/support/_hypothesis_stubs/__init__.py | 25 | def test_function(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | www/src/Lib/encodings/idna.py | 82 | # Step 2: nameprep | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 86 | # Step 4: try ASCII | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 111 | # Step 8: Check size | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 | COMMENT |
| LOW⚡ | www/src/Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 | COMMENT |
| LOW | www/src/Lib/encodings/idna.py | 68 | # Step 1: try ASCII | COMMENT |
| LOW | www/src/Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII | COMMENT |
| LOW | www/src/Lib/email/header.py | 390 | # Step 1: Normalize the chunks so that all runs of identical charsets | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | www/gallery/markdown_exec.html | 17 | example = """Here is a simple example: | CODE |
| MEDIUM | www/src/Lib/heapq.py | 266 | # you can use it. | COMMENT |
| LOW | www/src/Lib/quopri.py | 91 | # Don't forget to include the soft line break `=' sign in the | COMMENT |
| MEDIUM | www/src/Lib/ntpath.py | 408 | # XXX With COMMAND.COM you can use any characters in a variable name, | COMMENT |
| MEDIUM⚡ | www/src/Lib/unittest/test/testmock/testmagicmethods.py | 494 | # Check if you can change behaviour of magic methods in MagicMock init | COMMENT |
| LOW | www/src/Lib/test/test_gc.py | 1494 | # make sure to always test gc.enable() | STRING |
| MEDIUM | www/src/Lib/test/test_logging.py | 405 | # level values which do not fit into these limitations, you can use a | COMMENT |
| LOW | www/src/Lib/test/test_bigmem.py | 46 | # - Don't forget to test for large indices, offsets and results and such, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | www/src/Lib/subprocess.py | 258 | # which is calling `CloseHandle` as requested in [1]), so there is nothing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | www/src/Lib/zipfile.py | 576 | # Usage: | COMMENT |
| LOW⚡ | www/src/Lib/unittest/test/testmock/testmock.py | 504 | # Usage example | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | www/src/py_type.js | 2145 | if ($B.is_type(arg)) { // TODO: Add test | CODE |
| LOW | www/src/Lib/test/test_smtplib.py | 1248 | #TODO: add tests for correct AUTH method fallback now that the | COMMENT |