Repository Analysis

psf/black

The uncompromising Python code formatter

8.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of psf/black, a Python project with 41,820 GitHub stars. SynthScan v2.0 examined 94,763 lines of code across 431 source files, recording 842 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 8.9 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).

8.9
Adjusted Score
8.9
Raw Score
100%
Time Factor
2026-08-20
Last Push
41.8K
Stars
Python
Language
94.8K
Lines of Code
431
Files
842
Pattern Hits
2026-08-29
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 18MEDIUM 7LOW 817

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers404 hits · 388 pts
SeverityFileLineSnippetContext
LOWtests/test_ranges.py16def test_parse_line_ranges_valid(CODE
LOWtests/test_ranges.py31def test_parse_line_ranges_invalid(lines_str: list[str]) -> None:CODE
LOWtests/optional.py107def pytest_collection_modifyitems(config: "Config", items: "list[Node]") -> None:CODE
LOWtests/util.py341def read_jupyter_notebook_from_file(file_name: Path) -> str:CODE
LOWtests/test_docs.py59def test_feature_lists_are_up_to_date() -> None:CODE
LOWtests/test_ipynb.py66def test_trailing_semicolon_with_comment() -> None:CODE
LOWtests/test_ipynb.py73def test_trailing_semicolon_with_comment_on_next_line() -> None:CODE
LOWtests/test_ipynb.py79def test_trailing_semicolon_indented() -> None:CODE
LOWtests/test_ipynb.py85def test_trailing_semicolon_noop() -> None:CODE
LOWtests/test_ipynb.py48def test_create_token_uses_requested_length(n_chars: int) -> None:CODE
LOWtests/test_ipynb.py52def test_unmask_cell_raises_when_token_is_not_unique() -> None:CODE
LOWtests/test_ipynb.py173def test_input_already_contains_transformed_magic() -> None:CODE
LOWtests/test_ipynb.py185def test_cell_magic_with_magic() -> None:CODE
LOWtests/test_ipynb.py203def test_cell_magic_with_empty_lines(src: str, expected: str) -> None:CODE
LOWtests/test_ipynb.py231def test_cell_magic_with_custom_python_magic(CODE
LOWtests/test_ipynb.py252def test_cell_magic_with_custom_python_magic_after_spaces_and_comments_noop(CODE
LOWtests/test_ipynb.py266def test_cell_magic_with_magic_noop() -> None:CODE
LOWtests/test_ipynb.py291def test_cell_magic_with_invalid_body() -> None:CODE
LOWtests/test_ipynb.py303def test_entire_notebook_empty_metadata() -> None:CODE
LOWtests/test_ipynb.py338def test_entire_notebook_trailing_newline() -> None:CODE
LOWtests/test_ipynb.py385def test_entire_notebook_no_trailing_newline() -> None:CODE
LOWtests/test_ipynb.py432def test_entire_notebook_without_changes() -> None:CODE
LOWtests/test_ipynb.py450def test_unparseable_notebook() -> None:CODE
LOWtests/test_ipynb.py457def test_ipynb_diff_with_change() -> None:CODE
LOWtests/test_ipynb.py470def test_ipynb_diff_with_no_change() -> None:CODE
LOWtests/test_ipynb.py483def test_cache_isnt_written_if_no_jupyter_deps_single(CODE
LOWtests/test_ipynb.py504def test_cache_isnt_written_if_no_jupyter_deps_dir(CODE
LOWtests/test_ipynb.py559def test_unable_to_replace_magics(monkeypatch: MonkeyPatch) -> None:CODE
LOWtests/test_concurrency_manager_shutdown.py26def test_manager_shutdown_called_for_diff(monkeypatch: Any, tmp_path: Path) -> None:CODE
LOWtests/test_concurrency_manager_shutdown.py35 def fake_format_file_in_place(CODE
LOWtests/test_black.py1496 def test_required_version_matches_version(self) -> None:CODE
LOWtests/test_black.py1503 def test_required_version_matches_partial_version(self) -> None:CODE
LOWtests/test_black.py1510 def test_required_version_does_not_match_on_minor_version(self) -> None:CODE
LOWtests/test_black.py1517 def test_required_version_does_not_match_version(self) -> None:CODE
LOWtests/test_black.py1525 def test_preserves_line_endings(self) -> None:CODE
LOWtests/test_black.py3257 def test_assert_equivalent_basic(self) -> None:CODE
LOWtests/test_black.py3262 def test_assert_equivalent_del(self) -> None:CODE
LOWtests/test_black.py3265 def test_assert_equivalent_strings(self) -> None:CODE
LOWtests/test_black.py137def test_invalid_input_error_includes_path_location(tmp_path: Path) -> None:CODE
LOWtests/test_black.py250 def test_piping_diff_with_color(self) -> None:CODE
LOWtests/test_black.py271 def test_piping_diff_with_color_respects_no_color(self) -> None:CODE
LOWtests/test_black.py372 def test_expression_diff_with_color(self) -> None:CODE
LOWtests/test_black.py392 def test_detect_pos_only_arguments(self) -> None:CODE
LOWtests/test_black.py400 def test_detect_debug_f_strings(self) -> None:CODE
LOWtests/test_black.py430 def test_skip_source_first_line(self) -> None:CODE
LOWtests/test_black.py443 def test_skip_source_first_line_when_mixing_newlines(self) -> None:CODE
LOWtests/test_black.py453 def test_skip_magic_trailing_comma(self) -> None:CODE
LOWtests/test_black.py505 def test_tab_comment_indentation(self) -> None:CODE
LOWtests/test_black.py843 def test_report_respects_no_color(self) -> None:CODE
LOWtests/test_black.py874 def test_get_features_used_decorator(self) -> None:CODE
LOWtests/test_black.py997 def test_get_features_used_for_future_flags(self) -> None:CODE
LOWtests/test_black.py1070 def test_format_file_contents(self) -> None:CODE
LOWtests/test_black.py1158 def test_works_in_mono_process_only_environment(self) -> None:CODE
LOWtests/test_black.py1168 def test_invalid_black_num_workers(self) -> None:CODE
LOWtests/test_black.py1188 def test_check_diff_use_together(self) -> None:CODE
LOWtests/test_black.py1216 def test_single_file_force_pyi(self) -> None:CODE
LOWtests/test_black.py1234 def test_multi_file_force_pyi(self) -> None:CODE
LOWtests/test_black.py1316 def test_reformat_one_with_stdin(self) -> None:CODE
LOWtests/test_black.py1334 def test_reformat_one_with_stdin_filename(self) -> None:CODE
LOWtests/test_black.py1357 def test_reformat_one_with_stdin_filename_pyi(self) -> None:CODE
344 more matches not shown…
Unused Imports224 hits · 180 pts
SeverityFileLineSnippetContext
LOWtests/optional.py30CODE
LOWtests/optional.py31CODE
LOWtests/optional.py32CODE
LOWtests/optional.py33CODE
LOWtests/test_concurrency_manager_shutdown.py1CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py2CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py15CODE
LOWtests/data/cases/preview_comments7.py26CODE
LOWtests/data/cases/preview_comments7.py29CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py149CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py162CODE
LOWtests/data/cases/preview_comments7.py173CODE
LOWtests/data/cases/preview_comments7.py176CODE
LOWtests/data/cases/line_ranges_imports.py7CODE
LOWtests/data/cases/line_ranges_imports.py8CODE
LOWtests/data/cases/line_ranges_imports.py9CODE
LOWtests/data/cases/line_ranges_fmt_off.py6CODE
LOWtests/data/cases/line_ranges_fmt_off.py32CODE
LOWtests/data/cases/fmtonoff.py3CODE
LOWtests/data/cases/fmtonoff.py5CODE
LOWtests/data/cases/fmtonoff.py5CODE
LOWtests/data/cases/fmtonoff.py5CODE
LOWtests/data/cases/fmtonoff.py10CODE
LOWtests/data/cases/fmtonoff.py10CODE
LOWtests/data/cases/fmtonoff.py10CODE
LOWtests/data/cases/fmtonoff.py248CODE
LOWtests/data/cases/fmtonoff.py250CODE
LOWtests/data/cases/fmtonoff.py250CODE
LOWtests/data/cases/fmtonoff.py250CODE
LOWtests/data/cases/fmtonoff.py254CODE
LOWtests/data/cases/fmtonoff.py254CODE
LOWtests/data/cases/fmtonoff.py254CODE
LOWtests/data/cases/comments2.py1CODE
LOWtests/data/cases/comments2.py4CODE
LOWtests/data/cases/comments2.py172CODE
LOWtests/data/cases/comments2.py175CODE
LOWtests/data/cases/function2.py28CODE
LOWtests/data/cases/function2.py91CODE
LOWtests/data/cases/function2.py33CODE
LOWtests/data/cases/function2.py98CODE
164 more matches not shown…
Deep Nesting81 hits · 68 pts
SeverityFileLineSnippetContext
LOWtests/test_black.py1741CODE
LOWtests/test_black.py2616CODE
LOWtests/test_blackd.py212CODE
LOWtests/data/cases/composition_no_trailing_comma.py2CODE
LOWtests/data/cases/composition_no_trailing_comma.py188CODE
LOWtests/data/cases/empty_lines.py5CODE
LOWtests/data/cases/empty_lines.py102CODE
LOWtests/data/cases/composition.py2CODE
LOWaction/main.py102CODE
LOWsrc/blib2to3/pytree.py1046CODE
LOWsrc/blib2to3/pytree.py775CODE
LOWsrc/blib2to3/pytree.py895CODE
LOWsrc/blib2to3/pytree.py906CODE
LOWsrc/blib2to3/pytree.py951CODE
LOWsrc/blib2to3/pytree.py997CODE
LOWsrc/blib2to3/pgen2/pgen.py132CODE
LOWsrc/blib2to3/pgen2/pgen.py189CODE
LOWsrc/blib2to3/pgen2/pgen.py228CODE
LOWsrc/blib2to3/pgen2/conv.py85CODE
LOWsrc/blib2to3/pgen2/parse.py274CODE
LOWsrc/blib2to3/pgen2/parse.py320CODE
LOWsrc/blib2to3/pgen2/driver.py208CODE
LOWsrc/blib2to3/pgen2/tokenize.py146CODE
LOWsrc/blackd/client.py69CODE
LOWsrc/blackd/__init__.py297CODE
LOWsrc/black/files.py204CODE
LOWsrc/black/files.py329CODE
LOWsrc/black/parsing.py217CODE
LOWsrc/black/handle_ipynb_magics.py443CODE
LOWsrc/black/handle_ipynb_magics.py476CODE
LOWsrc/black/concurrency.py157CODE
LOWsrc/black/__init__.py554CODE
LOWsrc/black/__init__.py779CODE
LOWsrc/black/__init__.py910CODE
LOWsrc/black/__init__.py1039CODE
LOWsrc/black/__init__.py1380CODE
LOWsrc/black/__init__.py1589CODE
LOWsrc/black/__init__.py1593CODE
LOWsrc/black/brackets.py394CODE
LOWsrc/black/lines.py1366CODE
LOWsrc/black/lines.py1468CODE
LOWsrc/black/lines.py1504CODE
LOWsrc/black/lines.py1523CODE
LOWsrc/black/lines.py280CODE
LOWsrc/black/lines.py316CODE
LOWsrc/black/lines.py639CODE
LOWsrc/black/lines.py1002CODE
LOWsrc/black/lines.py1183CODE
LOWsrc/black/ranges.py355CODE
LOWsrc/black/ranges.py272CODE
LOWsrc/black/trans.py1354CODE
LOWsrc/black/trans.py431CODE
LOWsrc/black/trans.py780CODE
LOWsrc/black/trans.py1199CODE
LOWsrc/black/trans.py1537CODE
LOWsrc/black/trans.py2023CODE
LOWsrc/black/trans.py2119CODE
LOWsrc/black/trans.py2154CODE
LOWsrc/black/trans.py2201CODE
LOWsrc/black/trans.py2265CODE
21 more matches not shown…
Cross-Language Confusion12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtests/test_ipynb.py311 ' "execution_count": null,\n'CODE
HIGHtests/test_ipynb.py324 ' "execution_count": null,\n'CODE
HIGHtests/test_ipynb.py346 ' "execution_count": null,\n'CODE
HIGHtests/test_ipynb.py359 ' "execution_count": null,\n'CODE
HIGHtests/test_ipynb.py393 ' "execution_count": null,\n'CODE
HIGHtests/test_ipynb.py406 ' "execution_count": null,\n'CODE
HIGHtests/data/cases/preview_long_strings__regression.py128 "xx {xxxxxxxxxxx}/xxxxxxxxxxx.xxx xxxx.xxx && xxxxxx -x "CODE
HIGHtests/data/cases/preview_long_strings__regression.py140 "xx {xxxxxxxxxxx}/xxxxxxxxxxx.xxx xxxx.xxx && xxxxxx -x "CODE
HIGHtests/data/cases/preview_long_strings__regression.py727 "xx {xxxxxxxxxxx}/xxxxxxxxxxx.xxx xxxx.xxx && xxxxxx -x "CODE
HIGHtests/data/cases/preview_long_strings__regression.py738 "xx {xxxxxxxxxxx}/xxxxxxxxxxx.xxx xxxx.xxx && xxxxxx -x "CODE
HIGHsrc/blib2to3/pgen2/parse.py289 self.push(t, itsdfa, newstate, context)CODE
HIGHsrc/black/__init__.py502 " (which can silenced by 2>/dev/null)."CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/data/cases/module_docstring_4.py0single line module-level docstring should be followed by single newline.STRING
HIGHtests/data/cases/module_docstring_1.py0single line module-level docstring should be followed by single newline.STRING
HIGHtests/data/cases/module_docstring_3.py0single line module-level docstring should be followed by single newline.STRING
HIGHtests/data/cases/composition_no_trailing_comma.py0\ %3d 0 load_fast 1 (x) 2 load_const 1 (1) 4 compare_op 2 (==) 6 load_fast 0 (self) 8 store_attr 0 (x) 10 load_const 0 (STRING
HIGHtests/data/cases/composition.py0\ %3d 0 load_fast 1 (x) 2 load_const 1 (1) 4 compare_op 2 (==) 6 load_fast 0 (self) 8 store_attr 0 (x) 10 load_const 0 (STRING
HIGHtests/data/cases/multiline_strings.py0\ %3d 0 load_fast 1 (x) 2 load_const 1 (1) 4 compare_op 2 (==) 6 load_fast 0 (self) 8 store_attr 0 (x) 10 load_const 0 (STRING
Excessive Try-Catch Wrapping23 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/util.py65 except Exception as ve:CODE
LOWtests/util.py74 except Exception as ve:CODE
LOWtests/util.py128 except Exception as e:CODE
LOWtests/util.py155 except Exception as e:CODE
LOWtests/data/cases/remove_parens.py15 except Exception as e:CODE
LOWtests/data/cases/remove_parens.py73 except Exception as e:CODE
LOWtests/data/cases/pep_654.py25except Exception as e:CODE
LOWtests/data/cases/pep_654.py37except Exception as e:CODE
LOWtests/data/cases/import_line_collapse.py126except Exception:CODE
LOWtests/data/cases/import_line_collapse.py135except Exception:CODE
LOWtests/data/cases/import_line_collapse.py35except Exception:CODE
LOWtests/data/cases/import_line_collapse.py42except Exception:CODE
LOWtests/data/cases/pep_654_style.py25except Exception as e:CODE
LOWtests/data/cases/pep_654_style.py38except Exception as e:CODE
LOWtests/data/cases/pep_654_style.py83except Exception as e:CODE
LOWtests/data/cases/pep_654_style.py95except Exception as e:CODE
LOWtests/data/miscellaneous/python2_detection.py60except Exception as err:CODE
LOWaction/main.py196 except Exception as e:CODE
LOWsrc/blackd/__init__.py213 except Exception as e:CODE
LOWsrc/black/__init__.py901 except Exception as exc:CODE
LOWsrc/black/__init__.py965 except Exception as exc:CODE
LOWsrc/black/__init__.py1653 except Exception as exc:CODE
LOWsrc/black/__init__.py1663 except Exception as exc:CODE
Over-Commented Block26 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/data/empty_pyproject.toml1# Empty pyproject.toml to use with some tests that depend on Python 3.6 autodiscoveryCOMMENT
LOWtests/data/cases/comments8.py1# The percent-percent comments are Spyder IDE cells.COMMENT
LOWtests/data/cases/fmtonoff.py101COMMENT
LOWtests/data/cases/fmtonoff.py201#nospaceatallCOMMENT
LOWtests/data/cases/fmtonoff.py221# fmt: onCOMMENT
LOWtests/data/cases/fmtonoff.py361 # fmt: offCOMMENT
LOWtests/data/cases/fmtonoff.py481#nospaceatallCOMMENT
LOWtests/data/cases/fmtonoff.py501# fmt: onCOMMENT
LOWtests/data/cases/pyi_overload_groups.py1# flags: --preview --pyiCOMMENT
LOWtests/data/cases/pyi_overload_groups.py461 @overloadCOMMENT
LOWtests/data/cases/jupytext_markdown_fmt.py1# Test that Jupytext markdown comments are preserved before fmt:off/on blocksCOMMENT
LOWtests/data/cases/line_ranges_diff_edge_case.py1# flags: --line-ranges=10-11COMMENT
LOWtests/data/miscellaneous/missing_final_newline.py1# A comment-only file, with no final EOL characterCOMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py101# The language for content autogenerated by Sphinx. Refer to documentationCOMMENT
LOWdocs/conf.py141# Add any paths that contain custom static files (such as style sheets) here,COMMENT
LOWsrc/blib2to3/Grammar.txt21decorator: '@' namedexpr_test NEWLINECOMMENT
LOWsrc/blib2to3/Grammar.txt201comp_for: [ASYNC] 'for' exprlist 'in' or_test [comp_iter]COMMENT
LOWsrc/black/lines.py321 # can't split the line, because we can't know which of theCOMMENT
LOWsrc/black/lines.py1601 # at its subscript brackets no matter what, so optional parens around aCOMMENT
LOWsrc/black/ranges.py441 # This also means the indentation will be changed on the unchanged lines, andCOMMENT
LOWsrc/black/trans.py701 # The next loop merges the string group. The final string will beCOMMENT
LOWsrc/black/trans.py1681 # breakpoint index in the case of either: (a) substrings that wereCOMMENT
LOWsrc/black/linegen.py661COMMENT
LOWsrc/black/linegen.py1941 # with (open("file")) as f: # this is an asexpr_testCOMMENT
LOWsrc/black/comments.py761 # Nodes to ignore are the ones on the same line as theCOMMENT
Fake / Example Data26 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/data/cases/docstring_no_string_normalization.py40 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring_no_string_normalization.py40 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring_no_string_normalization.py167 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring_no_string_normalization.py167 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/preview_long_dict_values.py25 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_dict_values.py25 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_dict_values.py172 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_dict_values.py172 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_strings__regression.py376print(f"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam. {[f'{i}' for i in range(10)]}")CODE
LOWtests/data/cases/preview_long_strings__regression.py376print(f"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam. {[f'{i}' for i in range(10)]}")CODE
LOWtests/data/cases/preview_long_strings__regression.py531 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_strings__regression.py531 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_strings__regression.py563s = f'Lorem Ipsum is simply dummy text of the printing and typesetting industry:\'{my_dict["foo"]}\''CODE
LOWtests/data/cases/preview_long_strings__regression.py1041 "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam."CODE
LOWtests/data/cases/preview_long_strings__regression.py1041 "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam."CODE
LOWtests/data/cases/preview_long_strings__regression.py1222 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_strings__regression.py1222 r"Lorem ipsum dolor sit amet, an sed convenire eloquentiam \t"CODE
LOWtests/data/cases/preview_long_strings__regression.py1260 "Lorem Ipsum is simply dummy text of the printing and typesetting"CODE
LOWtests/data/cases/docstring.py49 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring.py49 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring.py281 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/docstring.py281 Lorem ipsum dolor sit amet.STRING
LOWtests/data/cases/module_docstring_2.py4Lorem ipsum dolor sit amet, consectetur adipiscing elit,STRING
LOWtests/data/cases/module_docstring_2.py4Lorem ipsum dolor sit amet, consectetur adipiscing elit,STRING
LOWtests/data/cases/module_docstring_2.py42Lorem ipsum dolor sit amet, consectetur adipiscing elit,STRING
LOWtests/data/cases/module_docstring_2.py42Lorem ipsum dolor sit amet, consectetur adipiscing elit,STRING
Modern Structural Boilerplate16 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/data/cases/comments2.py10__all__ = [CODE
LOWtests/data/cases/comments2.py181__all__ = [STRING
LOWtests/data/cases/import_line_collapse.py4logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py11logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py17logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py24logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py97logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py105logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py112logger = logging.getLogger(__name__)CODE
LOWtests/data/cases/import_line_collapse.py117logger = logging.getLogger(__name__)CODE
LOWscripts/release.py189 def update_version_in_docs(self) -> None:CODE
LOWscripts/diff_shades_gha_helper.py44def set_output(name: str, value: str) -> None:CODE
LOWsrc/blib2to3/pytree.py347 def set_child(self, i: int, child: NL) -> None:CODE
LOWsrc/blib2to3/pytree.py457 def update_sibling_maps(self) -> None:CODE
LOWsrc/blib2to3/pgen2/driver.py16__all__ = ["Driver", "load_grammar"]CODE
LOWsrc/blib2to3/pgen2/tokenize.py65__all__ = [x for x in dir(_token) if x[0] != "_"] + [CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/data/cases/pep_572_remove_parens.py45CODE
MEDIUMtests/data/cases/pep_572_remove_parens.py46CODE
MEDIUMtests/data/cases/pep_572_remove_parens.py47CODE
MEDIUMtests/data/cases/pep_572_remove_parens.py115CODE
MEDIUMtests/data/cases/pep_572_remove_parens.py116CODE
MEDIUMtests/data/cases/pep_572_remove_parens.py117CODE
AI Structural Patterns9 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/data/cases/fmtonoff.py41CODE
LOWtests/data/cases/fmtonoff.py44CODE
LOWtests/data/cases/fmtonoff.py286CODE
LOWtests/data/cases/fmtonoff.py291CODE
LOWtests/data/cases/function.py31CODE
LOWtests/data/cases/function.py34CODE
LOWtests/data/cases/function.py146CODE
LOWtests/data/cases/function.py151CODE
LOWsrc/blackd/client.py10CODE
AI Slop Vocabulary4 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_black.py3208 We don't (yet) formally expose an API (see issue #779), but we should endeavor toSTRING
LOWscripts/fuzz.py60 # (if you want only bounded fuzzing, just use `pytest fuzz.py`)COMMENT
LOWsrc/blib2to3/pgen2/pgen.py374 # Can't just return self.arcs == other.arcs, because thatCOMMENT
LOWsrc/black/strings.py288 # Do not introduce or remove backslashes in raw strings, just use double quoteCOMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/black/lines.py850 # Check if the if_stmt's next sibling is a same-name decorated function.COMMENT
LOWsrc/black/lines.py1547 # Check if the opening bracket (last leaf of head) has comments that would mergeCOMMENT
LOWsrc/black/trans.py1616 # Check if StringMerger registered any custom splits.COMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/data/cases/line_ranges_basic.py20 #NOTE: The following indentation is incorrect:COMMENT
LOWtests/data/cases/line_ranges_basic.py86 #NOTE: The following indentation is incorrect:COMMENT