Repository Analysis

run-llama/liteparse

A fast, helpful, and open-source document parser

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of run-llama/liteparse, a Rust project with 12,191 GitHub stars. SynthScan v2.0 examined 71,019 lines of code across 193 source files, recording 407 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 6.6 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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-08-27
Last Push
12.2K
Stars
Rust
Language
71.0K
Lines of Code
193
Files
407
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 5MEDIUM 20LOW 382

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 407 distinct pattern matches across 16 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.

Over-Commented Block203 hits · 194 pts
SeverityFileLineSnippetContext
LOWcrates/liteparse-python/src/lib.rs81 #[pyo3(get)]COMMENT
LOWcrates/liteparse-python/src/lib.rs301 /// Rendered text for the text-bearing kinds (`heading`, `paragraph`,COMMENT
LOWcrates/liteparse-python/src/lib.rs321 /// Verbatim source lines for `code` and `grid_fallback`.COMMENT
LOWcrates/liteparse-python/src/lib.rs1121 image_block_count: usize,COMMENT
LOWcrates/liteparse-python/src/lib.rs1341COMMENT
LOWcrates/liteparse-python/src/cli.rs41 ocr_language: String,COMMENT
LOWcrates/liteparse-python/src/cli.rs61 #[arg(long)]COMMENT
LOWcrates/liteparse-python/src/cli.rs81 no_links: bool,COMMENT
LOWcrates/liteparse-python/src/cli.rs101 #[arg(long)]COMMENT
LOWcrates/liteparse-python/src/cli.rs161 ocr_language: String,COMMENT
LOWcrates/liteparse-python/src/cli.rs181 quiet: bool,COMMENT
LOWcrates/liteparse-python/src/cli.rs201 extract_form_fields: bool,COMMENT
LOWcrates/pdfium/src/page.rs221COMMENT
LOWcrates/pdfium/src/page.rs1041 falseCOMMENT
LOWcrates/pdfium/src/text_page.rs41 /// The caller must ensure `index` is in `0..char_count`.COMMENT
LOWcrates/pdfium/src/struct_tree.rs1//! Walk the PDF structure tree (tagged-PDF tree) for a page.COMMENT
LOWcrates/pdfium/src/library.rs21/// fn; its lock discipline is the caller's responsibility, not staticallyCOMMENT
LOWcrates/pdfium/src/library.rs41///COMMENT
LOWcrates/pdfium/src/user_unit.rs1//! Detection of the PDF `/UserUnit` page key, which PDFium ignores entirely.COMMENT
LOWcrates/pdfium/src/user_unit.rs21//! tree walk.COMMENT
LOWcrates/liteparse-wasm/build.rs21COMMENT
LOWcrates/liteparse-wasm/src/wasi_stubs.rs1//! Stub implementations of libc functions that pdfium's statically-linkedCOMMENT
LOWcrates/liteparse-wasm/src/wasi_stubs.rs41// - __c_longjmp is a WebAssembly.Tag with 1 param (env: i32)COMMENT
LOWcrates/liteparse-wasm/src/lib.rs101 extract_vector_graphics: Option<bool>,COMMENT
LOWcrates/liteparse-wasm/src/lib.rs341 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs501COMMENT
LOWcrates/liteparse-wasm/src/lib.rs521#[derive(Serialize, Tsify)]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs541 pub italic: bool,COMMENT
LOWcrates/liteparse-wasm/src/lib.rs681#[derive(Serialize, Tsify)]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs801#[derive(Serialize, Tsify)]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs841 pub file_version: Option<i32>,COMMENT
LOWcrates/liteparse-wasm/src/lib.rs921COMMENT
LOWcrates/liteparse-wasm/src/lib.rs1461 text_coverage: f32,COMMENT
LOWcrates/liteparse-napi/src/types.rs21 /// OCR language code (e.g., "eng", "fra").COMMENT
LOWcrates/liteparse-napi/src/types.rs41 pub continue_on_page_error: Option<bool>,COMMENT
LOWcrates/liteparse-napi/src/types.rs61 /// `extractImages` to be true.COMMENT
LOWcrates/liteparse-napi/src/types.rs81 pub extract_xfa_packets: Option<bool>,COMMENT
LOWcrates/liteparse-napi/src/types.rs101 /// take the first success — lower tail latency at the cost of extra load.COMMENT
LOWcrates/liteparse-napi/src/types.rs461 ..Self::from_rust(item)COMMENT
LOWcrates/liteparse-napi/src/types.rs861/// One table cell: its rendered text and the region it occupied. `bbox` isCOMMENT
LOWcrates/liteparse-napi/src/types.rs881 /// `list_item`). Table text lives in `header`/`rows`; code and grid text inCOMMENT
LOWcrates/liteparse-napi/src/types.rs1221pub struct JsPageComplexityStats {COMMENT
LOWcrates/liteparse/tests/integration_test.rs741 }COMMENT
LOWcrates/liteparse/src/font_db_resolver.rs1//! Built-in [`GlyphResolver`] backed by a fragmented glyph-outline → unicodeCOMMENT
LOWcrates/liteparse/src/types.rs21 pub mod_date: Option<String>,COMMENT
LOWcrates/liteparse/src/types.rs41 pub trailer_id_pair_differs: Option<bool>,COMMENT
LOWcrates/liteparse/src/types.rs81 pub font_weight: Option<i32>,COMMENT
LOWcrates/liteparse/src/types.rs101 /// Stroke color as ARGB hex string.COMMENT
LOWcrates/liteparse/src/types.rs121 /// band (a strikethrough line). Populated in `extract.rs`; consumed by theCOMMENT
LOWcrates/liteparse/src/types.rs221 pub graphics: Vec<GraphicPrimitive>,COMMENT
LOWcrates/liteparse/src/types.rs241 pub form_fields: Option<Vec<FormField>>,COMMENT
LOWcrates/liteparse/src/types.rs341 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWcrates/liteparse/src/types.rs381}COMMENT
LOWcrates/liteparse/src/types.rs421 pub content_bounds: Option<Rect>,COMMENT
LOWcrates/liteparse/src/types.rs441 pub vector_graphics: Option<VectorGraphics>,COMMENT
LOWcrates/liteparse/src/types.rs461 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWcrates/liteparse/src/types.rs661 /// reported the font size baked into the text matrix, ~1.0) rather than aCOMMENT
LOWcrates/liteparse/src/types.rs681 /// order; consumers that rebuild the line's *text* must walk it in reverseCOMMENT
LOWcrates/liteparse/src/layout.rs1//! Public, serializable view of the markdown classifier's block decomposition.COMMENT
LOWcrates/liteparse/src/layout.rs41/// A classified block plus where it sits on the page.COMMENT
143 more matches not shown…
Unused Imports64 hits · 59 pts
SeverityFileLineSnippetContext
LOWscripts/bump-version.py35CODE
LOWpackages/python/liteparse/__init__.py3CODE
LOWpackages/python/liteparse/__init__.py3CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/__init__.py4CODE
LOWpackages/python/liteparse/types.py6CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py3CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py1CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py1CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py1CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py2CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py1CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py2CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py3CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py4CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py5CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py6CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py7CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py8CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py9CODE
4 more matches not shown…
Hyper-Verbose Identifiers42 hits · 50 pts
SeverityFileLineSnippetContext
LOWocr/suryaocr/test_server.py12def test_html_to_text_strips_tags_and_unescapes() -> None:CODE
LOWocr/suryaocr/test_server.py19def test_html_to_text_empty_for_markup_only() -> None:CODE
LOWocr/suryaocr/test_server.py47def test_server_health_endpoint() -> None:CODE
LOWocr/suryaocr/test_server.py55def test_server_ocr_endpoint_maps_blocks() -> None:CODE
LOWocr/suryaocr/test_server.py83def test_server_defaults_missing_confidence() -> None:CODE
LOWocr/suryaocr/test_server.py101def test_server_skips_empty_and_skipped_blocks() -> None:CODE
LOWocr/suryaocr/test_server.py123def test_server_derives_bbox_from_polygon_when_bbox_missing() -> None:CODE
LOWocr/suryaocr/test_server.py137def test_server_keeps_zero_bbox_without_deriving_from_polygon() -> None:CODE
LOWocr/suryaocr/test_server.py151def test_server_skips_whitespace_only_html() -> None:CODE
LOWocr/paddleocr/test_server.py48def test_server_health_endpoint(server: PaddleOCRServer) -> None:CODE
LOWocr/paddleocr/test_server.py77def test_server_normalizes_documented_language_aliases(CODE
LOWocr/easyocr/test_server.py38def test_server_health_endpoint(server: EasyOCRServer) -> None:CODE
LOWpackages/python/tests/test_pool_e2e.py68def test_pool_matches_in_process(sample_pdf):CODE
LOWpackages/python/tests/test_pool_e2e.py78def test_parse_timeout_requires_pool():CODE
LOWpackages/python/tests/test_pool_e2e.py83def test_timeout_kills_worker_and_pool_recovers(sample_pdf):CODE
LOWpackages/python/tests/test_pool_e2e.py96def test_timeout_names_the_file(tmp_path):CODE
LOWpackages/python/tests/test_pool_e2e.py105def test_parse_error_propagates_from_worker():CODE
LOWpackages/python/tests/test_pool_e2e.py111def test_close_shuts_down_workers(sample_pdf):CODE
LOWpackages/python/tests/test_parse_e2e.py20 def test_parse_returns_parse_result(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py24 def test_parse_result_has_pages(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py29 def test_parse_result_has_text(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py34 def test_parse_result_has_json(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py52 async def test_parse_async_bytes_input(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py135 def test_multi_page_text_joined(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py162 async def test_file_not_found_async(self, parser: LiteParse):CODE
LOWpackages/python/tests/test_screenshot_e2e.py19 def test_screenshot_returns_batch_result(CODE
LOWpackages/python/tests/test_screenshot_e2e.py25 def test_screenshot_has_screenshots(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_screenshot_e2e.py30 def test_screenshot_result_fields(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_screenshot_e2e.py39 def test_screenshot_output_dir(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_screenshot_e2e.py47 def test_screenshot_png_format(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_screenshot_e2e.py52 def test_screenshot_jpg_format(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_screenshot_e2e.py58 async def test_screensho_async_basic(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_batch_e2e.py18 def test_batch_parse_returns_batch_result(CODE
LOWpackages/python/tests/test_batch_e2e.py32 def test_batch_parse_creates_output_files(CODE
LOWpackages/python/tests/test_batch_e2e.py48 def test_batch_parse_json_format(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_batch_e2e.py85 async def test_input_dir_not_found_async(self, parser: LiteParse):CODE
LOWpackages/python/liteparse/parser.py103def _convert_structure_element(element: Any) -> StructureTreeElement:CODE
LOWpackages/node/src/cli-json.ts45function structureTreeElementToCliJson(element: StructureTreeElement): object {CODE
LOWdataset_eval_utils/src/liteparse_eval/processing.py80def analyze_image_with_claude(CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py378 def _generate_navigation_html(self) -> str:CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py411 def _generate_all_documents_html(self) -> str:CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py461 def _generate_pdf_preview_html(self, pdf_path: Path) -> str:CODE
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMcrates/liteparse/src/conversion.rs1417 // ── find_pdf_in_dir ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/lib.rs7// ── Public API re-exports ──────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/lib.rs17// ── Modules with user-facing types (visible in docs) ───────────────────COMMENT
MEDIUMcrates/liteparse/src/projection.rs2931// ── ProjectedLine derivation ────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/projection.rs3016// ── XY-cut layout decomposition ─────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/lists.rs70// ── Lettered / roman ordered-list detection ───────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs1808// ── Description-list 2-column table detector ──────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs2185// ── Cross-run merging (post-pass over `detect_tables` output) ──────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs2240// ── Fragmented-cluster re-extraction ───────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs3018// ── Ruled-grid table detection ─────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs5929 // ── merge_consecutive_table_runs ─────────────────────────────────────COMMENT
Excessive Try-Catch Wrapping27 hits · 32 pts
SeverityFileLineSnippetContext
LOWocr/suryaocr/server.py148 except Exception as e:CODE
LOWocr/suryaocr/server.py153 except Exception as e:CODE
LOWocr/paddleocr/server.py91 except Exception as e:CODE
LOWpackages/python/liteparse/_pool.py81 except Exception as e: # noqa: BLE001 - forwarded to the parent verbatimCODE
LOWpackages/python/liteparse/_pool.py99 except Exception as e: # noqa: BLE001 - forwarded to the parent verbatimCODE
LOWpackages/python/liteparse/parser.py697 except Exception:CODE
LOWpackages/python/liteparse/parser.py738 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py791 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py802 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py845 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py903 except Exception as e:CODE
MEDIUMpackages/python/liteparse/parser.py694def __del__(self) -> None:CODE
LOWpackages/python/liteparse/cli.py13 except Exception as e:CODE
MEDIUMpackages/python/liteparse/cli.py14 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMpackages/python/liteparse/cli.py8def main() -> None:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py63 except Exception:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py199 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py212 except Exception:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py220 except Exception as e:CODE
MEDIUMdataset_eval_utils/src/liteparse_eval/benchmark.py314 print(f"Error: Not a directory: {args.input_dir}")CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py170 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py254 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py275 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py345 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/processing.py192 except Exception as e:CODE
MEDIUMdataset_eval_utils/src/liteparse_eval/processing.py250 print(f"Error: Input directory does not exist: {args.input_dir}")CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py466 except Exception as e:CODE
Fake / Example Data23 hits · 26 pts
SeverityFileLineSnippetContext
LOWcrates/liteparse-python/src/lib.rs1311 ImageMode::Placeholder => "placeholder".to_string(),CODE
LOWcrates/liteparse-python/src/cli.rs69 #[arg(long, default_value = "placeholder")]COMMENT
LOWcrates/liteparse-python/src/cli.rs246 "placeholder" => Ok(ImageMode::Placeholder),CODE
LOWcrates/liteparse-python/src/cli.rs249 "unknown image-mode '{}', expected 'off', 'placeholder', or 'embed'",CODE
LOWcrates/liteparse-wasm/src/lib.rs281 ImageMode::Placeholder => "placeholder".into(),CODE
LOWcrates/liteparse-napi/src/types.rs54 /// How to surface raster images in markdown output: "off", "placeholder"COMMENT
LOWcrates/liteparse-napi/src/types.rs292 ImageMode::Placeholder => "placeholder".to_string(),CODE
LOWcrates/liteparse/src/figure_cluster.rs354 text: "lorem ipsum dolor".into(),CODE
LOWcrates/liteparse/src/main.rs110 #[arg(long, default_value = "placeholder")]COMMENT
LOWcrates/liteparse/src/main.rs385 "placeholder" => Ok(ImageMode::Placeholder),CODE
LOWcrates/liteparse/src/main.rs388 "unknown image-mode '{}', expected 'off', 'placeholder', or 'embed'",CODE
LOWcrates/liteparse/src/markdown_layout/repetition.rs539 let head = ["Acme Corp", "Quarterly Report", "Confidential"];CODE
LOWdocs/src/content/docs/liteparse/guides/browser-usage.md102| `imageMode` | `"off" \| "placeholder" \| "embed"` | `"placeholder"` | How image references appear in markdown. Also acCODE
LOWpackages/python/README.md37 image_mode="placeholder", # "placeholder" | "off" | "embed"CODE
LOWpackages/python/README.md62 image_mode="placeholder", # Markdown image handling: "placeholder" | "off" | "embed"CODE
LOWpackages/wasm/README.md70| `imageMode` | `"off" \| "placeholder" \| "embed"` | `"placeholder"` | How raster images are surfaced in markdown outpuCODE
LOWpackages/node/native.d.ts47 * How to surface raster images in markdown output: "off", "placeholder"COMMENT
LOWpackages/node/README.md71 imageMode: 'placeholder', // "placeholder" | "off" | "embed"CODE
LOWpackages/node/README.md96 imageMode: 'placeholder', // Markdown image handling: "placeholder" | "off" | "embed"CODE
LOWpackages/node/src/cli.ts137 config.imageMode = opts.imageMode as "off" | "placeholder" | "embed";CODE
LOWpackages/node/src/lib.ts24export type ImageMode = "off" | "placeholder" | "embed";CODE
LOWpackages/node/src/lib.ts58 /** How to surface raster images in markdown output (default: "placeholder"). */COMMENT
LOWpackages/node/src/lib.ts704 imageMode: (resolved.imageMode as ImageMode) ?? "placeholder",CODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpackages/python/liteparse/parser.py704 Parse a document file. Args: file_data: Path to the document file, or raw PDF bytes. STRING
HIGHpackages/python/liteparse/parser.py746 Parse a document in bounded-memory page batches. Each yielded batch is an ordinary :class:`ParseResultSTRING
HIGHpackages/python/liteparse/parser.py817 Determine per-page complexity without running a full parse. Returns one entry per page with signals (tSTRING
HIGHpackages/python/liteparse/parser.py854 Generate screenshots of document pages. Supports PDFs natively. Non-PDF formats (DOCX, XLSX, images, eSTRING
HIGHdataset_eval_utils/src/liteparse_eval/report.py535 Convert first page of PDF to base64-encoded image. Uses JPEG compression if PIL is available, otherwisSTRING
Modern Structural Boilerplate9 hits · 11 pts
SeverityFileLineSnippetContext
LOWscripts/bump-version.py95def update_cargo_version(path: Path, new_version: str) -> None:CODE
LOWscripts/bump-version.py105def update_liteparse_dep(path: Path, new_version: str) -> None:CODE
LOWscripts/bump-version.py115def update_json_version(path: Path, new_version: str) -> None:CODE
LOWscripts/bump-version.py125def update_pyproject_version(path: Path, new_version: str) -> None:CODE
LOWpackages/python/liteparse/__init__.py38__all__ = [CODE
LOWdataset_eval_utils/src/liteparse_eval/__init__.py14__all__ = [CODE
LOW…et_eval_utils/src/liteparse_eval/providers/__init__.py15__all__ = [CODE
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py12__all__ = [CODE
LOW…val_utils/src/liteparse_eval/providers/llm/__init__.py4__all__ = ["LLMProvider", "AnthropicProvider", "QA_PROMPT"]CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWocr/paddleocr/server.py49CODE
LOWocr/paddleocr/server.py55CODE
LOWscripts/bump-version.py166CODE
LOWpackages/python/liteparse/parser.py103CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py75CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py166CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py534CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcrates/liteparse/src/conversion.rs420/// `.pdf` entry is more robust than constructing a fixed `<stem>.pdf` path.COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/headings.rs622/// robust where a total-char floor was not: a single short-but-real headingCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdataset_eval_utils/src/liteparse_eval/evaluation.py368 # Create a mapping of file paths to resultsCOMMENT
MEDIUMdataset_eval_utils/src/liteparse_eval/processing.py16# Define the output schema using Pydantic-like structureCOMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/create-dataset.sh12# Usage:COMMENT
LOWscripts/compare-dataset.sh4# Usage:COMMENT
LOWscripts/upload-dataset.sh4# Usage:COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/compare-dataset.sh60 # Check if file existsCOMMENT
LOWscripts/compare-dataset.sh146 # Check if error was expectedCOMMENT
LOW…al_utils/src/liteparse_eval/providers/llm/anthropic.py70 # Check if the response is "<pass>" or "<fail>"COMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/upload-dataset.sh38# Step 1: Regenerate dataset from documents in the dataset directoryCOMMENT
LOWscripts/upload-dataset.sh42# Step 2: Upload to HuggingFaceCOMMENT
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/upload-dataset.sh38# Step 1: Regenerate dataset from documents in the dataset directoryCOMMENT
LOWscripts/upload-dataset.sh42# Step 2: Upload to HuggingFaceCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpackages/python/liteparse/parser.py452CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py195CODE