AI Slop Code RIsk Monitor

run-llama/liteparse

A fast, helpful, and open-source document parser

7.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for run-llama/liteparse, a Rust project with 12,824 GitHub stars. SynthScan examined 79,273 lines of code across 203 source files, recording 436 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 7.0 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.0
Adjusted Signal
7.0
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
12.8K
Stars
Rust
Language
79.3K
Lines of Code
203
Files
436
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 315 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.8/100 · LOW

Are imports declared and package/API names verified? 59 finding(s).

Agent Over-Engineering Ratio 10.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 108 finding(s).

PR Review Velocity Impact 29.5/100 · MEDIUM

Which changes need focused human review? 436 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 11MEDIUM 32LOW 393

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 436 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block238 hits · 230 pts
SeverityFileLineSnippetContext
LOWrun_benchmarks.sh1#!/usr/bin/env bashCOMMENT
LOWrun_benchmarks.sh21# override with LITEPARSE_PADDLE_OCR_URL). OCR modes run withCOMMENT
LOWcrates/liteparse-python/src/lib.rs81 font_size: Option<f64>,COMMENT
LOWcrates/liteparse-python/src/lib.rs101 stroke_color: Option<String>,COMMENT
LOWcrates/liteparse-python/src/lib.rs301COMMENT
LOWcrates/liteparse-python/src/lib.rs321 level: Option<u8>,COMMENT
LOWcrates/liteparse-python/src/lib.rs341 #[pyo3(get)]COMMENT
LOWcrates/liteparse-python/src/lib.rs541 page_num: u32,COMMENT
LOWcrates/liteparse-python/src/lib.rs741#[pyclass(frozen, from_py_object)]COMMENT
LOWcrates/liteparse-python/src/lib.rs1141 }COMMENT
LOWcrates/liteparse-python/src/lib.rs1161 /// `full_page_image` for that.COMMENT
LOWcrates/liteparse-python/src/lib.rs1381 extract_vector_graphics: cfg.extract_vector_graphics,COMMENT
LOWcrates/liteparse-python/src/lib.rs1401 #[pyo3(get)]COMMENT
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.rs201 /// (`FPDFAnnot_HasAttachmentPoints`: a subtype test — links and theCOMMENT
LOWcrates/pdfium/src/page.rs281 /// viewport mapping, and every later `FPDF_LoadPage` of this page in theCOMMENT
LOWcrates/pdfium/src/page.rs1161COMMENT
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/struct_tree.rs41}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/library.rs61impl Library {COMMENT
LOWcrates/pdfium/src/page_object.rs1//! Typed, borrowed access to a page's content objects: pdfium's page-object APICOMMENT
LOWcrates/pdfium/src/bitmap.rs61 /// Create a new BGRA bitmap with the given dimensions.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/pdfium/src/document.rs241 } else {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.rs81 /// Emit each page's `contentBounds` (union bbox of top-level contentCOMMENT
LOWcrates/liteparse-wasm/src/lib.rs101 /// page size and OCR rasters come out upright. Applied on top of the PDF'sCOMMENT
LOWcrates/liteparse-wasm/src/lib.rs381 /// Rotation in degrees (viewport space).COMMENT
LOWcrates/liteparse-wasm/src/lib.rs401 pub stroke_color: Option<String>,COMMENT
LOWcrates/liteparse-wasm/src/lib.rs541}COMMENT
LOWcrates/liteparse-wasm/src/lib.rs561/// Blocks appear in reading order, matching the page's markdown.COMMENT
LOWcrates/liteparse-wasm/src/lib.rs581 #[serde(skip_serializing_if = "std::ops::Not::not")]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs841/// One page rendered to PNG, plus raster-derived signals.COMMENT
LOWcrates/liteparse-wasm/src/lib.rs881 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWcrates/liteparse-wasm/src/lib.rs1381 .map_err(|e| JsError::new(&format!("is_complex failed: {}", e)))?;COMMENT
LOWcrates/liteparse-napi/src/types.rs21#[napi(object)]COMMENT
LOWcrates/liteparse-napi/src/types.rs41 pub extract_screenshots: Option<bool>,COMMENT
LOWcrates/liteparse-napi/src/types.rs61 /// Extract embedded image bytes and metadata (default false).COMMENT
LOWcrates/liteparse-napi/src/types.rs81 pub extract_structure_tree: Option<bool>,COMMENT
LOWcrates/liteparse-napi/src/types.rs101 pub ocr_failure_fatal: Option<bool>,COMMENT
LOWcrates/liteparse-napi/src/types.rs121 /// (0/90/180/270) by which its content appears rotated; LiteParseCOMMENT
LOWcrates/liteparse-napi/src/types.rs521}COMMENT
LOWcrates/liteparse-napi/src/types.rs941 /// One of `heading`, `paragraph`, `list_item`, `code`, `table`,COMMENT
LOWcrates/liteparse-napi/src/lib.rs181/// file for a non-PDF source lives as long as the session, so conversion isCOMMENT
LOWcrates/liteparse/tests/stages_compose.rs1//! Gate for the `stages` module: `parse()` must equal the stages composed byCOMMENT
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
178 more matches not shown…
Decorative Section Separators20 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMcrates/liteparse/src/conversion.rs1417 // ── find_pdf_in_dir ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/lib.rs11// ── Public API re-exports ──────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/lib.rs22// ── Modules with user-facing types (visible in docs) ───────────────────COMMENT
MEDIUMcrates/liteparse/src/projection.rs3005// ── ProjectedLine derivation ────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/projection.rs3090// ── XY-cut layout decomposition ─────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs62// ── Open ───────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs104// ── Document facts ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs140// ── Extract ────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs195// ── Complexity ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs215// ── OCR ────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs346// ── Content filters ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs364// ── Projection ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs373// ── Markdown ───────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/stages.rs563// ── Screenshots ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/lists.rs76// ── Lettered / roman ordered-list detection ───────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs1877// ── Description-list 2-column table detector ──────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs2255// ── Cross-run merging (post-pass over `detect_tables` output) ──────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs2310// ── Fragmented-cluster re-extraction ───────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs3105// ── Ruled-grid table detection ─────────────────────────────────────────────COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/tables.rs6068 // ── merge_consecutive_table_runs ─────────────────────────────────────COMMENT
Hyper-Verbose Identifiers43 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
LOW⚡packages/python/tests/test_pool_e2e.py68def test_pool_matches_in_process(sample_pdf):CODE
LOW⚡packages/python/tests/test_pool_e2e.py78def test_parse_timeout_requires_pool():CODE
LOW⚡packages/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.py109def test_parse_error_propagates_from_worker():CODE
LOWpackages/python/tests/test_pool_e2e.py115def test_close_shuts_down_workers(sample_pdf):CODE
LOW⚡packages/python/tests/test_parse_e2e.py20 def test_parse_returns_parse_result(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_parse_e2e.py24 def test_parse_result_has_pages(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_parse_e2e.py29 def test_parse_result_has_text(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/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.py109 def test_invalid_output_format(self):CODE
LOWpackages/python/tests/test_parse_e2e.py139 def test_multi_page_text_joined(self, parser: LiteParse, invoice_pdf: Path):CODE
LOWpackages/python/tests/test_parse_e2e.py166 async def test_file_not_found_async(self, parser: LiteParse):CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py19 def test_screenshot_returns_batch_result(CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py25 def test_screenshot_has_screenshots(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py30 def test_screenshot_result_fields(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py39 def test_screenshot_output_dir(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py47 def test_screenshot_png_format(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/python/tests/test_screenshot_e2e.py52 def test_screenshot_jpg_format(self, parser: LiteParse, invoice_pdf: Path):CODE
LOW⚡packages/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.py115def _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
Unused Imports36 hits · 36 pts
SeverityFileLineSnippetContext
LOWscripts/bump-version.py35CODE
LOWpackages/python/liteparse/types.py6CODE
LOWpackages/python/liteparse/parser.py16CODE
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
LOW…utils/src/liteparse_eval/providers/parsers/__init__.py10CODE
LOW…val_utils/src/liteparse_eval/providers/llm/__init__.py1CODE
LOW…val_utils/src/liteparse_eval/providers/llm/__init__.py1CODE
LOW…val_utils/src/liteparse_eval/providers/llm/__init__.py2CODE
Excessive Try-Catch Wrapping28 hits · 33 pts
SeverityFileLineSnippetContext
LOWocr/suryaocr/server.py148 except Exception as e:CODE
LOWocr/suryaocr/server.py153 except Exception as e:CODE
LOWocr/paddleocr/server.py106 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.py723 except Exception:CODE
LOWpackages/python/liteparse/parser.py764 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py844 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py855 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py898 except Exception as e:CODE
LOWpackages/python/liteparse/parser.py956 except Exception as e:CODE
MEDIUMpackages/python/liteparse/parser.py720def __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.py68 except Exception:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py229 except Exception as e:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py246 except Exception:CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py254 except Exception as e:CODE
MEDIUMdataset_eval_utils/src/liteparse_eval/benchmark.py350 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
LOW…src/liteparse_eval/providers/parsers/opendataloader.py18 except Exception:CODE
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpackages/python/liteparse/parser.py730 Parse a document file. Args: file_data: Path to the document file, or raw PDF bytes. STRING
HIGHpackages/python/liteparse/parser.py773 Parse a document without blocking the running event loop. Args: file_data: Path to the docSTRING
HIGHpackages/python/liteparse/parser.py799 Parse a document in bounded-memory page batches. Each yielded batch is an ordinary :class:`ParseResultSTRING
HIGHpackages/python/liteparse/parser.py870 Determine per-page complexity without running a full parse. Returns one entry per page with signals (tSTRING
HIGHpackages/python/liteparse/parser.py907 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
Fake / Example Data23 hits · 26 pts
SeverityFileLineSnippetContext
LOWcrates/liteparse-python/src/lib.rs1350 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.rs308 ImageMode::Placeholder => "placeholder".into(),CODE
LOWcrates/liteparse-napi/src/types.rs57 /// How to surface raster images in markdown output: "off", "placeholder"COMMENT
LOWcrates/liteparse-napi/src/types.rs316 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.md103| `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.ts138 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.ts733 imageMode: (resolved.imageMode as ImageMode) ?? "placeholder",CODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpackages/python/liteparse/_pool.py168except subprocess.TimeoutExpired:CODE
HIGHpackages/python/liteparse/_pool.py177except (BrokenPipeError, OSError):CODE
HIGHpackages/python/liteparse/_pool.py190except OSError:CODE
HIGHpackages/python/liteparse/parser.py723except Exception:CODE
HIGHdataset_eval_utils/src/liteparse_eval/benchmark.py246except Exception:CODE
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMrun_benchmarks.sh22# num_workers=4 and low harness concurrency — OCR is resource-hungry.COMMENT
MEDIUMrun_benchmarks.sh60# --- OCR mode → per-harness LiteParse engine/pipeline names ---------------COMMENT
MEDIUMrun_benchmarks.sh212 # The harness averages only over scored docs; a doc it *skipped* (noCOMMENT
MEDIUMcrates/liteparse/src/conversion.rs420/// `.pdf` entry is more robust than constructing a fixed `<stem>.pdf` path.COMMENT
MEDIUMcrates/liteparse/src/markdown_layout/headings.rs631/// robust where a total-char floor was not: a single short-but-real headingCOMMENT
Modern Structural Boilerplate9 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡scripts/bump-version.py95def update_cargo_version(path: Path, new_version: str) -> None:CODE
LOW⚡scripts/bump-version.py105def update_liteparse_dep(path: Path, new_version: str) -> None:CODE
LOW⚡scripts/bump-version.py115def update_json_version(path: Path, new_version: str) -> None:CODE
LOW⚡scripts/bump-version.py125def update_pyproject_version(path: Path, new_version: str) -> None:CODE
LOWpackages/python/liteparse/__init__.py63__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.py69CODE
LOWocr/paddleocr/server.py75CODE
LOWscripts/bump-version.py166CODE
LOWpackages/python/liteparse/parser.py115CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py94CODE
LOWdataset_eval_utils/src/liteparse_eval/benchmark.py185CODE
LOWdataset_eval_utils/src/liteparse_eval/report.py534CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWrun_benchmarks.sh9# Usage:COMMENT
LOWscripts/create-dataset.sh12# Usage:COMMENT
LOWscripts/compare-dataset.sh4# Usage:COMMENT
LOWscripts/upload-dataset.sh4# Usage:COMMENT
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
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
LOW⚡scripts/upload-dataset.sh38# Step 1: Regenerate dataset from documents in the dataset directoryCOMMENT
LOW⚡scripts/upload-dataset.sh42# Step 2: Upload to HuggingFaceCOMMENT
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡scripts/upload-dataset.sh38# Step 1: Regenerate dataset from documents in the dataset directoryCOMMENT
LOW⚡scripts/upload-dataset.sh42# Step 2: Upload to HuggingFaceCOMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpackages/python/liteparse/parser.py465CODE
LOWdataset_eval_utils/src/liteparse_eval/evaluation.py195CODE
LOW…tils/src/liteparse_eval/providers/parsers/liteparse.py16CODE