Repository Analysis

deanmalmgren/textract

extract text from any document. no muss. no fuss.

7.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of deanmalmgren/textract, a HTML project with 4,700 GitHub stars. SynthScan v2.0 examined 14,180 lines of code across 146 source files, recording 86 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 7.4 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).

7.4
Adjusted Score
7.4
Raw Score
100%
Time Factor
2026-08-27
Last Push
4.7K
Stars
HTML
Language
14.2K
Lines of Code
146
Files
86
Pattern Hits
2026-08-29
Scan Date
0.03
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 4MEDIUM 1LOW 81

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 86 distinct pattern matches across 10 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 Identifiers47 hits · 47 pts
SeverityFileLineSnippetContext
LOWtests/test_special_filenames.py49 def test_unbalanced_parentheses(self):CODE
LOWtests/test_special_filenames.py54 def test_shell_injection_chars(self):CODE
LOWtests/test_special_filenames.py70 def test_combined_special_chars(self):CODE
LOWtests/test_txt.py15 def test_extensionless_filenames(self):CODE
LOWtests/test_pdf.py94 def test_standardized_text_cli(self):CODE
LOWtests/test_pdf.py110 def test_standardized_text_python(self):CODE
LOWtests/test_pdf.py146 def test_unknown_method_raises(self):CODE
LOWtests/test_pdf.py151 def test_pdftotext_fallback_to_pdfminer(self):CODE
LOWtests/test_pdf.py162 def test_pdftotext_preserves_non_latin_text(self):CODE
LOWtests/test_pdf.py176 def test_pdftotext_ignores_input_encoding(self):CODE
LOWtests/test_platform_limitations.py12 def test_docs_mention_every_limitation(self):CODE
LOWtests/test_exceptions.py25 def test_unsupported_extension_cli(self):CODE
LOWtests/test_exceptions.py38 def test_unsupported_extension_python(self):CODE
LOWtests/test_exceptions.py47 def test_missing_filename_cli(self):CODE
LOWtests/test_exceptions.py58 def test_missing_filename_python(self):CODE
LOWtests/test_exceptions.py74 def test_missing_module_python(self):CODE
LOWtests/test_exceptions.py98 def test_shell_parser_run_passes_startupinfo_on_windows(self):CODE
LOWtests/test_html.py24 def test_explicit_input_encoding(self):CODE
LOWtests/test_html.py29 def test_invalid_input_encoding(self):CODE
LOWtests/test_xlsx.py10 def test_standardized_text_python(self):CODE
LOWtests/test_eml.py9 def test_explicit_input_encoding(self):CODE
LOWtests/test_eml.py14 def test_invalid_input_encoding(self):CODE
LOWtests/test_source_input.py103 def test_process_bytes_matches_filename(self):CODE
LOWtests/test_source_input.py110 def test_process_stream_matches_filename(self):CODE
LOWtests/test_source_input.py127 def test_missing_extension_raises(self):CODE
LOWtests/test_source_input.py131 def test_csv_streams_without_buffering_full_input(self):CODE
LOWtests/test_source_input.py144 def test_csv_crlf_quoted_newlines_match_across_paths(self):CODE
LOWtests/test_source_input.py156 def test_process_stream_leaves_caller_stream_open(self):CODE
LOWtests/test_source_input.py165 def test_csv_streams_from_stdin_pipe(self):CODE
LOWtests/test_source_input.py210 def test_streaming_uses_less_memory_than_buffering(self):CODE
LOWtests/test_json.py16 def test_character_sets_python(self):CODE
LOWtests/test_json.py34 def test_explicit_input_encoding(self):CODE
LOWtests/test_json.py39 def test_invalid_input_encoding(self):CODE
LOWtests/base.py67def _files_equal_ignore_blank_lines(file1: str, file2: str) -> bool:CODE
LOWtests/base.py101def _generate_file_diff_message(file1: str, file2: str) -> str:CODE
LOWtests/base.py112def _generate_bytes_diff_message(actual: bytes, expected: bytes, label: str) -> str:CODE
LOWtests/base.py198 def standardized_text_filename(self):CODE
LOWtests/base.py216 def test_standardized_text_cli(self):CODE
LOWtests/base.py228 def test_standardized_text_python(self):CODE
LOWtests/base.py299 def assert_input_encoding_respected(self, filename_root, encoding):CODE
LOWtests/base.py314 def assert_invalid_input_encoding_raises(self, filename_root, wrong_encoding):CODE
LOWtests/test_csv.py9 def test_explicit_input_encoding(self):CODE
LOWtests/test_csv.py14 def test_invalid_input_encoding(self):CODE
LOWtests/test_epub.py10def _ignore_xml_as_html_warning(test_method):CODE
LOWtests/test_epub.py32 def test_standardized_text_python(self):CODE
LOWtextract/parsers/__init__.py151def _get_available_extensions():CODE
LOWtextract/parsers/audio.py28def _pocketsphinx_signature_invalid() -> bool:CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtests/test_html.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_eml.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_json.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_csv.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
Unused Imports14 hits · 14 pts
SeverityFileLineSnippetContext
LOWtextract/__init__.py1CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py3CODE
LOWtextract/exceptions.py3CODE
LOWtextract/parsers/jpg_parser.py1CODE
LOWtextract/parsers/mp3_parser.py1CODE
LOWtextract/parsers/wav_parser.py1CODE
LOWtextract/parsers/png_parser.py1CODE
LOWtextract/parsers/tiff_parser.py1CODE
LOWtextract/parsers/utils.py5CODE
LOWtextract/parsers/ogg_parser.py1CODE
LOWtextract/parsers/doc_parser.py1CODE
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtextract/__init__.py7__all__ = [CODE
LOWtextract/parsers/jpg_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/mp3_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/wav_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/png_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/tiff_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/gif_parser.py54__all__ = ["Parser"]CODE
LOWtextract/parsers/ogg_parser.py3__all__ = ["Parser"]CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtextract/parsers/xlsx_parser.py9CODE
LOWtextract/parsers/html_parser.py84CODE
LOWtextract/parsers/html_parser.py118CODE
LOWtextract/parsers/odt_parser.py30CODE
LOWtextract/parsers/xls_parser.py9CODE
LOWtextract/parsers/utils.py98CODE
LOWtextract/parsers/audio.py89CODE
LOWtextract/parsers/epub_parser.py40CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtextract/cli.py42# This function is necessary to enable autodocumentation of the scriptCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtextract/parsers/gif_parser.py21 # Check if this is an animated GIF (n_frames > 1)COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/docker_smoke_test.sh5# Usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/epub/raw_text.txt4Welcome here! All the text have ben generate with the Samuel L lorem ipsum.CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/actions/setup/action.yml41 uses: actions/cache@v4COMMENT