Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
This report summarizes scanner evidence for opendatalab/MinerU, a Python project with 81,411 GitHub stars. SynthScan examined 189,921 lines of code across 745 source files, recording 3243 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 18.8 (Elevated 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2089 finding(s).
Are imports declared and package/API names verified? 667 finding(s).
Are wrappers, guards, and repeated structures necessary? 2390 finding(s).
Which changes need focused human review? 3243 finding(s).
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.
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.
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.
The scanner identified 3243 distinct pattern matches across 16 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 29 | def isolate_optional_llm_configuration(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 77 | def test_historical_cache_rebuilds_fts_and_default_tier(tmp_path: Path, family: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 99 | def test_all_supported_formats_compact_to_current_protocol(tmp_path: Path, legacy_family: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 134 | def test_old_protocol_cache_is_not_available_or_compacted(tmp_path: Path, old_version: str | None) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 174 | def test_compaction_preserves_batches_with_conflicting_envelopes(tmp_path: Path, field: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 279 | def test_old_cache_hits_exports_and_serializes_without_mutating_storage(tmp_path: Path, family: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 321 | def test_old_cache_only_schedules_uncovered_pages(tmp_path: Path, family: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 340 | def test_mixed_cache_compaction_keeps_latest_pages_and_writes_new_ranges(tmp_path: Path, family: str) -> None: | CODE |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 367 | def test_failed_mixed_cache_compaction_preserves_old_records( | CODE |
| LOW | tests/unittest/test_docvortex_routing.py | 18 | def test_flash_routes_classification_and_native_analysis_explicitly( | CODE |
| LOW | tests/unittest/test_docvortex_routing.py | 83 | def test_hybrid_and_vlm_pdf_outputs_share_docvortex_text_cleanup( | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 126 | def test_previous_window_arrays_die_before_next_render(monkeypatch: pytest.MonkeyPatch, effort: str) -> None: | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 142 | def test_window_failure_closes_images_and_clears_owned_containers(monkeypatch: pytest.MonkeyPatch, failure: str) -> None | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 163 | def test_document_cleanup_order_and_global_switch( | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 206 | def test_real_window_and_document_hooks_share_switch( | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 233 | def test_allocator_failure_preserves_window_exception(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 245 | def test_async_window_lifecycle_matches_sync(monkeypatch: pytest.MonkeyPatch, failure: str) -> None: | CODE |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 279 | def test_cancelled_window_preparation_still_closes_returned_images(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 30 | def test_office_extensions_includes_legacy_binary_formats() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 34 | def test_only_pdf_supports_page_range_parsing() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 42 | def test_image_parser_rejects_explicit_page_range(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 54 | def test_legacy_office_extensions_are_parseable_and_ingestible() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 61 | def test_file_type_by_extension_maps_legacy_office_to_self() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 67 | def test_mime_type_by_extension_covers_legacy_office() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 74 | def test_rtf_is_a_flash_only_parseable_office_type() -> None: | CODE |
| LOW⚡ | tests/unittest/test_filetypes.py | 84 | def test_odf_extensions_are_flash_only_office_types() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 99 | def test_csv_is_a_flash_only_parseable_type_instead_of_plain_text() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 113 | def test_epub_is_a_flash_only_parseable_e_book_type() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 125 | def test_html_extensions_are_canonical_flash_only_inputs() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 137 | def test_ofd_is_an_independent_fixed_layout_flash_type() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 149 | def test_additional_text_extensions_are_ingestible_but_not_parseable() -> None: | CODE |
| LOW | tests/unittest/test_filetypes.py | 161 | def test_mineru_kit_discovers_and_accepts_csv_inputs(tmp_path: Path) -> None: | CODE |
| LOW | tests/unittest/test_content_list_render.py | 51 | def _assert_no_internal_fields(value: object) -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_epub_preview.py | 16 | def test_epub_preview_static_routes_are_local_and_complete(tmp_path: Path) -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_epub_preview.py | 35 | def test_epub_preview_viewer_sanitizes_before_enabling_chapter_events() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_epub_preview.py | 57 | def test_epub_preview_viewer_accepts_font_obfuscation_and_stream_limits_payload() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_epub_preview.py | 75 | def test_epub_preview_viewer_uses_serialized_section_navigation_and_internal_links() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_i18n.py | 43 | def test_bilingual_errors_and_html_keep_untrusted_details_as_text() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_i18n.py | 57 | def test_frontend_language_policy_and_dynamic_events() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_i18n.py | 72 | def test_browser_local_status_timer_lifecycle() -> None: | CODE |
| LOW | tests/unittest/test_kit_gradio_i18n.py | 88 | def test_conversion_preserves_all_preview_components_until_success( | CODE |
| LOW | tests/unittest/test_parser_model_preload.py | 13 | def test_preload_local_models_initializes_conditional_model_families(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unittest/test_parser_model_preload.py | 45 | def test_preload_basic_models_initializes_only_local_models(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unittest/test_parser_model_preload.py | 55 | def test_preload_standard_models_initializes_platform_engine_and_local_models(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unittest/test_parser_model_preload.py | 79 | def test_local_preload_and_parse_reuse_llama_predictor(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/unittest/test_parser_model_preload.py | 123 | def test_classify_model_preload_error(exc: Exception, expected_code: str) -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 59 | def test_unified_render_dispatches_all_native_output_types_without_mutation() -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 93 | def test_unified_render_forwards_format_specific_options() -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 199 | def test_unified_docx_uses_typed_asset_resolver_and_propagates_public_errors() -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 239 | def test_unified_render_rejects_legacy_format_and_mismatched_options() -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 263 | def test_public_options_validate_fields() -> None: | CODE |
| LOW | tests/unittest/test_render_api.py | 325 | def test_public_render_exposes_all_three_structured_output_names() -> None: | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 58 | def test_hybrid_txt_reuses_loaded_chars_and_applies_styles( | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 172 | def test_hybrid_txt_efforts_apply_dehyphenated_links( | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 269 | def test_hybrid_txt_efforts_apply_shared_script_sidecar( | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 329 | def test_ocr_path_does_not_collect_or_apply_pdf_styles( | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 389 | def test_high_char_count_txt_path_skips_pdf_text_enrichment( | CODE |
| LOW | tests/unittest/test_pdf_text_styles.py | 456 | def test_native_span_fill_does_not_read_preloaded_page_chars_twice() -> None: | CODE |
| LOW | tests/unittest/test_parse_result_assets.py | 84 | def test_save_externalizes_assets_without_changing_json_only_contract(tmp_path: Path) -> None: | CODE |
| LOW | tests/unittest/test_parse_result_assets.py | 114 | def test_server_zip_roundtrip_restores_direct_and_markup_images( | CODE |
| 1780 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docvortex_boundary.py | 3 | CODE | |
| LOW | tools/compare_docvortex_boundary.py | 3 | CODE | |
| LOW | tests/conftest.py | 3 | CODE | |
| LOW | tests/get_coverage.py | 6 | CODE | |
| LOW | tests/unittest/test_doclib_legacy_page_ranges.py | 1 | CODE | |
| LOW | tests/unittest/test_docvortex_routing.py | 3 | CODE | |
| LOW | tests/unittest/test_pdf_memory_lifecycle.py | 3 | CODE | |
| LOW | tests/unittest/test_filetypes.py | 1 | CODE | |
| LOW | tests/unittest/test_content_list_render.py | 1 | CODE | |
| LOW | tests/unittest/test_kit_gradio_epub_preview.py | 3 | CODE | |
| LOW | tests/unittest/test_kit_gradio_i18n.py | 3 | CODE | |
| LOW | tests/unittest/test_parser_model_preload.py | 1 | CODE | |
| LOW | tests/unittest/test_render_api.py | 1 | CODE | |
| LOW | tests/unittest/test_pdf_text_styles.py | 1 | CODE | |
| LOW | tests/unittest/test_parse_result_assets.py | 3 | CODE | |
| LOW | tests/unittest/test_flash_pdf_render_scheduling.py | 3 | CODE | |
| LOW | tests/unittest/test_process_heap_memory.py | 3 | CODE | |
| LOW | tests/unittest/test_http_api_example_script.py | 11 | CODE | |
| LOW | tests/unittest/test_source_metadata.py | 3 | CODE | |
| LOW | tests/unittest/test_structured_content_render.py | 1 | CODE | |
| LOW | tests/unittest/test_cli_output_markup.py | 1 | CODE | |
| LOW | tests/unittest/_docx_equationxml_test_utils.py | 3 | CODE | |
| LOW | tests/unittest/test_doclib_cache_semantics.py | 1 | CODE | |
| LOW | tests/unittest/test_render_config.py | 1 | CODE | |
| LOW | tests/unittest/test_doclib_api_page_remap.py | 3 | CODE | |
| LOW | tests/unittest/test_markdown_render.py | 1 | CODE | |
| LOW | tests/unittest/test_vlm_config.py | 1 | CODE | |
| LOW | tests/unittest/test_errors.py | 1 | CODE | |
| LOW | tests/unittest/_mtef_test_utils.py | 3 | CODE | |
| LOW | tests/unittest/test_mfr_latex_utils.py | 1 | CODE | |
| LOW | tests/unittest/test_kit_gradio.py | 1 | CODE | |
| LOW | tests/unittest/test_api_server_logging.py | 3 | CODE | |
| LOW | tests/unittest/test_doclib_config.py | 1 | CODE | |
| LOW | tests/unittest/test_stdio.py | 1 | CODE | |
| LOW | tests/unittest/test_kit_gradio_json.py | 3 | CODE | |
| LOW | tests/unittest/test_flash_model.py | 1 | CODE | |
| LOW | tests/unittest/test_flash_legacy_ppt.py | 1 | CODE | |
| LOW | tests/unittest/test_cli_runtime_contract.py | 1 | CODE | |
| LOW | tests/unittest/test_text_block_anchor.py | 1 | CODE | |
| LOW | tests/unittest/test_flash_office_image_mtef.py | 1 | CODE | |
| LOW | tests/unittest/test_vlm_remote.py | 1 | CODE | |
| LOW | tests/unittest/test_model_json.py | 1 | CODE | |
| LOW | tests/unittest/test_backend_architecture.py | 1 | CODE | |
| LOW | tests/unittest/test_cli_i18n.py | 3 | CODE | |
| LOW | tests/unittest/test_kit_gradio_mhtml_preview.py | 3 | CODE | |
| LOW | tests/unittest/test_pdf_layout_integration.py | 3 | CODE | |
| LOW | tests/unittest/test_pdf_analyze_visual_blocks.py | 1 | CODE | |
| LOW | tests/unittest/test_cli_command_contract.py | 1 | CODE | |
| LOW | tests/unittest/test_kit_commands.py | 1 | CODE | |
| LOW | tests/unittest/_legacy_xls_test_utils.py | 3 | CODE | |
| LOW | tests/unittest/test_flash_html.py | 1 | CODE | |
| LOW | tests/unittest/_odf_test_utils.py | 1 | CODE | |
| LOW | tests/unittest/test_flash_odf.py | 1 | CODE | |
| LOW | tests/unittest/test_pdf_model_inputs.py | 3 | CODE | |
| LOW | tests/unittest/test_kit_gradio_download.py | 3 | CODE | |
| LOW | tests/unittest/test_doclib_telemetry_core.py | 1 | CODE | |
| LOW | tests/unittest/_span_test_utils.py | 1 | CODE | |
| LOW | tests/unittest/test_pdf_native_script_detection.py | 1 | CODE | |
| LOW | tests/unittest/test_native_async_runtime.py | 3 | CODE | |
| LOW | tests/unittest/test_kit_gradio_page_range.py | 3 | CODE | |
| 594 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/unittest/test_http_api_example_script.py | 47 | # ─── helpers ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/unittest/test_http_api_example_script.py | 110 | # ─── mock V1 service ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/unittest/test_http_api_example_script.py | 247 | # ─── real Flash service (no model download, no GPU) ───────────────────────── | COMMENT |
| MEDIUM | tests/unittest/test_http_api_example_script.py | 327 | # ─── mock service: protocol and exit-code contract ────────────────────────── | COMMENT |
| MEDIUM | tests/unittest/test_http_api_example_script.py | 458 | # ─── mock service: same-origin credential isolation ───────────────────────── | COMMENT |
| MEDIUM | tests/unittest/test_http_api_example_script.py | 526 | # ─── mock service: download redirects do not leak credentials ─────────────── | COMMENT |
| MEDIUM | mineru/filetypes.py | 9 | # ── file types ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/errors.py | 20 | # ── error_code → type mapping ────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/errors.py | 154 | # ── exception hierarchy ──────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/errors.py | 207 | # ── FastAPI error response builder ───────────────────────────────── | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 169 | # ── helper ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 179 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 181 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 186 | # ── Error ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 987 | # ── defaults → app state ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 1001 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 1003 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 1020 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_server.py | 1022 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 135 | # ── literal type aliases ──────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 295 | # ── Health ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 312 | # ── Models API ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 338 | # ── Tiers API ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 360 | # ── Upload ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 402 | # ── File ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 435 | # ── Job sources ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 492 | # ── Job responses ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 584 | # ── Usage ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 618 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 620 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 659 | # ── ID generation ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 669 | # ── blob helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 693 | # ── uploads ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 888 | # ── files ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1318 | # ── source helpers ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1579 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1581 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1649 | # ── Models ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1693 | # ── Tiers ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1712 | # ── Uploads ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1798 | # ── Files ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1870 | # ── Parse Jobs ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 2062 | # ── Usage ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 2080 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 2082 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 2480 | # ── CLI ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_server.py | 1618 | # ── Health ─────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | mineru/parser/api_client.py | 583 | # ── build ParseResult ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | mineru/parser/api_client.py | 592 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | mineru/parser/api_client.py | 594 | # ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | mineru/parser/api_client.py | 153 | # ── DocumentParser interface ───────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_client.py | 217 | # ── payload construction ───────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_client.py | 297 | # ── HTTP helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_client.py | 333 | # ── upload ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/parser/api_client.py | 507 | # ── parse execution ────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/doclib/core/fts.py | 19 | # ── tokenization ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/doclib/core/fts.py | 41 | # ── FTS manager ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/doclib/core/fts.py | 48 | # ── fts_contents ──────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/doclib/core/fts.py | 98 | # ── fts_filenames ──────────────────────────────────────────── | COMMENT |
| MEDIUM | mineru/doclib/core/fts.py | 134 | # ── helpers ──────────────────────────────────────────────────────── | COMMENT |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/unittest/test_transformers5_runtime.py | 102 | except asyncio.CancelledError: | CODE |
| HIGH | mineru/kit/gradio/source_preview.py | 166 | except (LookupError, UnicodeDecodeError): | CODE |
| HIGH | mineru/kit/gradio/source_preview.py | 220 | except ValueError: | CODE |
| HIGH | mineru/kit/gradio/source_preview.py | 276 | except ValueError: | CODE |
| HIGH | mineru/kit/gradio/client.py | 398 | except Exception: | CODE |
| HIGH | mineru/kit/gradio/mhtml_preview.py | 29 | except LookupError: | CODE |
| HIGH | mineru/kit/gradio/mhtml_preview.py | 84 | except MhtmlParseError: | CODE |
| HIGH | …ru/kit/gradio/_vendor/ofd2html/render/page_renderer.py | 369 | except ValueError: | CODE |
| HIGH | …ru/kit/gradio/_vendor/ofd2html/render/page_renderer.py | 341 | except ValueError: | CODE |
| HIGH | mineru/kit/router/proxy.py | 307 | except RouterProxyError: | CODE |
| HIGH | mineru/kit/router/proxy.py | 317 | except RouterProxyError: | CODE |
| HIGH | mineru/kit/router/proxy.py | 153 | except ValueError: | CODE |
| HIGH | mineru/kit/router/app.py | 420 | except asyncio.CancelledError: | CODE |
| HIGH | mineru/kit/router/workers.py | 395 | except asyncio.CancelledError: | CODE |
| HIGH | mineru/kit/router/workers.py | 281 | except subprocess.TimeoutExpired: | CODE |
| HIGH | mineru/utils/async_utils.py | 34 | except BaseException: | CODE |
| HIGH | mineru/utils/logger.py | 65 | except ValueError: | CODE |
| HIGH | mineru/utils/cli_parser.py | 17 | except ValueError: | CODE |
| HIGH | mineru/backend/analysis/pdf/window.py | 127 | except Exception: | CODE |
| HIGH | mineru/backend/analysis/pdf/window.py | 671 | except BaseException: | CODE |
| HIGH | mineru/cli/commands/server.py | 124 | except OSError: | CODE |
| HIGH | mineru/cli/commands/server.py | 144 | except OSError: | CODE |
| HIGH | mineru/cli/commands/server.py | 152 | except OSError: | CODE |
| HIGH | mineru/cli/commands/server.py | 201 | except DoclibLockUnavailable: | CODE |
| HIGH | mineru/cli/commands/parse.py | 295 | except Exception: | CODE |
| HIGH | mineru/parser/process_control.py | 61 | except FileNotFoundError: | CODE |
| HIGH | mineru/parser/process_control.py | 139 | except OSError: | CODE |
| HIGH | mineru/parser/process_control.py | 147 | except OSError: | CODE |
| HIGH | mineru/parser/process_control.py | 239 | except OSError: | CODE |
| HIGH | mineru/parser/api_server.py | 1325 | except Exception: | CODE |
| HIGH | mineru/doclib/endpoint.py | 66 | except OSError: | CODE |
| HIGH | mineru/doclib/endpoint.py | 76 | except OSError: | CODE |
| HIGH | mineru/doclib/app.py | 559 | except KeyboardInterrupt: | CODE |
| HIGH | mineru/doclib/app.py | 599 | except FileNotFoundError: | CODE |
| HIGH | mineru/doclib/background/ingest.py | 125 | except Exception: | CODE |
| HIGH | mineru/doclib/background/parse_worker.py | 80 | except Exception: | CODE |
| HIGH | mineru/doclib/background/compaction.py | 227 | except OSError: | CODE |
| HIGH | mineru/doclib/background/compaction.py | 215 | except OSError: | CODE |
| HIGH | mineru/doclib/background/watch.py | 71 | except asyncio.TimeoutError: | CODE |
| HIGH | mineru/doclib/core/db.py | 183 | except Exception: | CODE |
| HIGH | mineru/doclib/services/cleanup_svc.py | 186 | except OSError: | CODE |
| HIGH | mineru/doclib/services/cleanup_svc.py | 193 | except OSError: | CODE |
| HIGH | mineru/model/runtime/device.py | 29 | except Exception: | CODE |
| HIGH | mineru/model/runtime/device.py | 34 | except Exception: | CODE |
| HIGH | mineru/model/runtime/device.py | 41 | except Exception: | CODE |
| HIGH | mineru/model/runtime/device.py | 48 | except Exception: | CODE |
| HIGH | mineru/model/vlm/async_runtime.py | 182 | except BaseException: | CODE |
| HIGH | scripts/benchmark_async_analysis.py | 117 | except asyncio.TimeoutError: | CODE |
| HIGH | scripts/benchmark_async_analysis.py | 102 | except psutil.Error: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/_docx_equationxml_test_utils.py | 70 | def _set_paragraph_style(shape: etree._Element, style_id: str) -> None: | CODE |
| LOW | mineru/config.py | 271 | def update_config_file(patch: dict[str, Any]) -> None: | CODE |
| LOW | mineru/config.py | 577 | __all__ = [ | CODE |
| LOW | mineru/__init__.py | 27 | __all__ = [ | CODE |
| LOW | mineru/types.py | 226 | __all__ = [ | CODE |
| LOW | mineru/kit/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/errors.py | 19 | __all__ = ["exit_with_message"] | CODE |
| LOW | mineru/kit/output.py | 7 | __all__ = ["print_error", "print_info", "print_json", "print_success"] | CODE |
| LOW | mineru/kit/vlm_server/mlx_vlm_server.py | 60 | __all__ = ["main"] | CODE |
| LOW | mineru/kit/gradio/preview.py | 30 | __all__ = ["draw_layout_overlay"] | CODE |
| LOW | mineru/kit/gradio/pdf_preview.py | 30 | __all__ = ["pdf_preview_js", "register_pdf_preview_resources"] | CODE |
| LOW | mineru/kit/gradio/epub_preview.py | 8 | __all__ = ["register_epub_preview_resources"] | CODE |
| LOW | mineru/kit/gradio/source_preview.py | 20 | __all__ = ["build_html_preview", "build_mhtml_preview", "prepare_source_preview"] | CODE |
| LOW | mineru/kit/gradio/client.py | 487 | __all__ = [ | CODE |
| LOW | mineru/kit/gradio/conversion.py | 118 | __all__ = ["ConversionRun", "SessionConversions", "await_task_completion", "run_sync_output"] | CODE |
| LOW | mineru/kit/gradio/__init__.py | 6 | __all__ = [ | CODE |
| LOW | mineru/kit/gradio/page_range.py | 86 | __all__ = ["PdfPageMetadata", "effective_page_range", "pdf_page_metadata", "read_pdf_page_count", "validate_max_pages"] | CODE |
| LOW | mineru/kit/gradio/mhtml_preview.py | 273 | __all__ = ["build_mhtml_preview"] | CODE |
| LOW | mineru/kit/gradio/app.py | 1390 | __all__ = ["build_gradio_app", "launch_gradio"] | CODE |
| LOW | mineru/kit/gradio/ofd_preview.py | 7 | __all__ = ["build_ofd_preview"] | CODE |
| LOW | mineru/kit/gradio/i18n.py | 199 | __all__ = ["MESSAGES", "localized_message", "localized_text", "preview_placeholder", "translations"] | CODE |
| LOW | mineru/kit/gradio/artifacts.py | 689 | __all__ = [ | CODE |
| LOW | mineru/kit/gradio/status.py | 149 | __all__ = [ | CODE |
| LOW | mineru/kit/gradio/_vendor/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/gradio/_vendor/ofd2html/__init__.py | 5 | __all__ = ["ofd_to_html"] | CODE |
| LOW | mineru/kit/gradio/_vendor/ofd2html/reader/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/gradio/_vendor/ofd2html/render/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/gradio/_vendor/ofd2html/html/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/gradio/_vendor/ofd2html/pkg/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/kit/commands/models.py | 219 | __all__ = ["app", "download_cmd", "download_main", "show_cmd", "verify_cmd", "model_repo_names"] | CODE |
| LOW | mineru/kit/commands/webui.py | 129 | __all__ = ["webui_cmd", "main"] | CODE |
| LOW | mineru/kit/commands/__init__.py | 5 | __all__ = ["api_server", "models", "parse", "router", "vlm_server", "webui"] | CODE |
| LOW | mineru/kit/commands/api_server.py | 132 | __all__ = ["api_server_cmd", "main"] | CODE |
| LOW | mineru/kit/commands/router.py | 6 | __all__ = ["router_cmd"] | CODE |
| LOW | mineru/kit/commands/vlm_server.py | 149 | __all__ = ["FORWARD_CONTEXT_SETTINGS", "main", "vlm_server_cmd"] | CODE |
| LOW | mineru/kit/router/proxy.py | 429 | __all__ = [ | CODE |
| LOW | mineru/kit/router/__init__.py | 8 | __all__ = ["RouterSettings", "create_app", "main"] | CODE |
| LOW | mineru/kit/router/cli.py | 79 | __all__ = ["main", "router_cmd"] | CODE |
| LOW | mineru/kit/router/app.py | 906 | __all__ = ["create_app", "create_app_from_env"] | CODE |
| LOW | mineru/kit/router/resources.py | 265 | __all__ = [ | CODE |
| LOW | mineru/kit/router/workers.py | 513 | __all__ = [ | CODE |
| LOW | mineru/render/docx.py | 24 | __all__ = ["DocxRenderError", "render_docx"] | CODE |
| LOW | mineru/render/html.py | 30 | __all__ = ["render_html"] | CODE |
| LOW | mineru/render/__init__.py | 32 | __all__ = [ | CODE |
| LOW | mineru/render/pdf.py | 28 | __all__ = ["render_pdf"] | CODE |
| LOW | mineru/render/content_list.py | 23 | __all__ = ["render_content_list"] | CODE |
| LOW | mineru/render/structured_content.py | 27 | __all__ = ["render_structured_content"] | CODE |
| LOW | mineru/render/api.py | 245 | __all__ = ["render"] | CODE |
| LOW | mineru/render/content_list_v2.py | 23 | __all__ = ["render_content_list_v2"] | CODE |
| LOW | mineru/render/markdown.py | 30 | __all__ = ["render_markdown"] | CODE |
| LOW | mineru/render/contracts.py | 84 | __all__ = [ | CODE |
| LOW | mineru/render/epub.py | 36 | __all__ = ["render_epub"] | CODE |
| LOW | mineru/render/latex.py | 25 | __all__ = ["render_latex"] | CODE |
| LOW | mineru/render/_internal/content_list/v1.py | 256 | __all__ = ["render_content_list"] | CODE |
| LOW | mineru/render/_internal/content_list/common.py | 277 | __all__ = [ | CODE |
| LOW | mineru/render/_internal/content_list/v2.py | 319 | __all__ = ["render_content_list_v2"] | CODE |
| LOW | mineru/utils/async_utils.py | 39 | __all__ = ["drain_future", "run_sync"] | CODE |
| LOW | mineru/utils/__init__.py | 3 | __all__ = [] | CODE |
| LOW | mineru/utils/logger.py | 74 | __all__ = ["LogLevel", "configure_global_log_level"] | CODE |
| LOW | mineru/utils/timing.py | 26 | __all__ = ["stage_timer"] | CODE |
| 111 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docvortex_boundary.py | 76 | except Exception as error: | CODE |
| LOW | tools/validate_docvortex_boundary.py | 78 | except Exception as error: | CODE |
| MEDIUM | tests/clean_coverage.py | 16 | print(f"Error deleting file '{path}': {e}") | CODE |
| MEDIUM | tests/clean_coverage.py | 22 | print(f"Error deleting directory '{path}': {e}") | CODE |
| MEDIUM⚡ | tests/unittest/test_cli_runtime_contract.py | 21 | monkeypatch.setattr(output, "print_error", lambda msg: print(f"Error: {msg}", file=sys.stderr)) | CODE |
| LOW | …cs/plans/2026-06-17-cli-json-error-consistency-plan.md | 92 | except Exception as exc: | CODE |
| LOW | docs/zh/usage/sdk_api.md | 83 | except Exception as exc: # 终态任务失败与传输错误都会抛出异常 | CODE |
| LOW | docs/en/usage/sdk_api.md | 83 | except Exception as exc: # terminal job failures and transport errors both raise | CODE |
| LOW | mineru/config.py | 58 | except Exception: | CODE |
| MEDIUM | mineru/config.py | 54 | def _uds_available() -> bool: | CODE |
| LOW | mineru/kit/gradio/source_preview.py | 347 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/client.py | 235 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/client.py | 358 | except Exception: | CODE |
| LOW | mineru/kit/gradio/client.py | 368 | except Exception: | CODE |
| LOW | mineru/kit/gradio/client.py | 398 | except Exception: | CODE |
| LOW | mineru/kit/gradio/conversion.py | 104 | except Exception: | CODE |
| LOW | mineru/kit/gradio/page_range.py | 41 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/app.py | 917 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/app.py | 1383 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/artifacts.py | 181 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/artifacts.py | 287 | except Exception as exc: | CODE |
| LOW | mineru/kit/gradio/artifacts.py | 472 | except Exception: | CODE |
| LOW | mineru/kit/commands/models.py | 109 | except Exception as exc: | CODE |
| LOW | mineru/kit/commands/webui.py | 116 | except Exception as exc: | CODE |
| LOW | mineru/kit/commands/parse.py | 81 | except Exception as exc: | CODE |
| LOW | mineru/kit/commands/parse.py | 113 | except Exception as exc: | CODE |
| LOW | mineru/kit/router/proxy.py | 417 | except Exception: | CODE |
| LOW | mineru/kit/router/workers.py | 235 | except Exception: | CODE |
| LOW | mineru/kit/router/workers.py | 243 | except Exception: | CODE |
| LOW | mineru/kit/router/workers.py | 381 | except Exception as exc: | CODE |
| LOW | mineru/kit/router/workers.py | 434 | except Exception as exc: | CODE |
| LOW | mineru/kit/router/workers.py | 457 | except Exception as exc: | CODE |
| LOW | mineru/utils/i18n.py | 57 | except Exception: # noqa: BLE001 — Windows API 探测失败时静默回退英文 | CODE |
| LOW | mineru/backend/analysis/pdf/window.py | 127 | except Exception: | CODE |
| LOW⚡ | mineru/backend/analysis/pdf/tables.py | 523 | except Exception as exc: | CODE |
| LOW⚡ | mineru/backend/analysis/pdf/tables.py | 533 | except Exception as exc: | CODE |
| LOW⚡ | mineru/backend/analysis/pdf/tables.py | 540 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 291 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 507 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 828 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 858 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 903 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 909 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 931 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 1009 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/tables.py | 1059 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/text/native.py | 91 | except Exception as exc: | CODE |
| LOW | mineru/backend/analysis/pdf/text/content.py | 453 | except Exception: | CODE |
| LOW | mineru/backend/postprocess/llm_client.py | 64 | except Exception as exc: | CODE |
| LOW⚡ | mineru/cli/telemetry.py | 63 | except Exception: | STRING |
| LOW⚡ | mineru/cli/telemetry.py | 72 | except Exception: | STRING |
| LOW | mineru/cli/runtime.py | 79 | except Exception as exc: | CODE |
| LOW | mineru/cli/runtime.py | 197 | except Exception: | CODE |
| LOW | mineru/cli/commands/server.py | 165 | except Exception: | CODE |
| LOW | mineru/cli/commands/server.py | 266 | except Exception as exc: | CODE |
| LOW | mineru/cli/commands/server.py | 298 | except Exception as exc: | CODE |
| MEDIUM | mineru/cli/commands/server.py | 158 | def _server_running() -> bool: | CODE |
| MEDIUM | mineru/cli/commands/server.py | 169 | def _doclib_lock_available() -> bool: | CODE |
| LOW | mineru/cli/commands/parse.py | 217 | except Exception: | CODE |
| LOW | mineru/cli/commands/parse.py | 295 | except Exception: | CODE |
| 86 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docvortex_boundary.py | 12 | CODE | |
| LOW | tools/compare_docvortex_boundary.py | 25 | CODE | |
| LOW | tools/compare_docvortex_boundary.py | 59 | CODE | |
| LOW | tests/unittest/test_pdf_text_styles.py | 29 | CODE | |
| LOW | tests/unittest/test_parse_result_assets.py | 150 | CODE | |
| LOW | tests/unittest/_docx_equationxml_test_utils.py | 87 | CODE | |
| LOW | tests/unittest/test_doclib_api_page_remap.py | 106 | CODE | |
| LOW | tests/unittest/test_backend_architecture.py | 139 | CODE | |
| LOW | tests/unittest/test_backend_architecture.py | 154 | CODE | |
| LOW | tests/unittest/test_cli_i18n.py | 152 | CODE | |
| LOW | tests/unittest/test_cli_command_contract.py | 95 | CODE | |
| LOW | tests/unittest/test_kit_commands.py | 1237 | CODE | |
| LOW | tests/unittest/test_docvortex_import_boundary.py | 24 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 299 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 402 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 469 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 631 | CODE | |
| LOW | tests/benchmarks/pdf_cpu_gaps.py | 56 | CODE | |
| LOW | tests/benchmarks/opencv_paths.py | 16 | CODE | |
| LOW | mineru/config.py | 129 | CODE | |
| LOW | mineru/kit/common.py | 27 | CODE | |
| LOW | mineru/kit/common.py | 107 | CODE | |
| LOW | mineru/kit/vlm_server/llama_cpp_server.py | 122 | CODE | |
| LOW | mineru/kit/vlm_server/llama_cpp_server.py | 140 | CODE | |
| LOW | mineru/kit/vlm_server/llama_cpp_server.py | 187 | CODE | |
| LOW | mineru/kit/gradio/client.py | 373 | CODE | |
| LOW | mineru/kit/gradio/client.py | 437 | CODE | |
| LOW | mineru/kit/gradio/mhtml_preview.py | 88 | CODE | |
| LOW | mineru/kit/gradio/mhtml_preview.py | 157 | CODE | |
| LOW | mineru/kit/gradio/mhtml_preview.py | 177 | CODE | |
| LOW | mineru/kit/gradio/app.py | 362 | CODE | |
| LOW | mineru/kit/gradio/artifacts.py | 520 | CODE | |
| LOW | mineru/kit/gradio/status.py | 89 | CODE | |
| LOW | …ru/kit/gradio/_vendor/ofd2html/render/page_renderer.py | 98 | CODE | |
| LOW | mineru/kit/gradio/_vendor/ofd2html/html/exporter.py | 11 | CODE | |
| LOW | mineru/kit/commands/vlm_server.py | 88 | CODE | |
| LOW | mineru/kit/router/proxy.py | 216 | CODE | |
| LOW | mineru/kit/router/app.py | 244 | CODE | |
| LOW | mineru/kit/router/workers.py | 269 | CODE | |
| LOW | mineru/kit/router/workers.py | 413 | CODE | |
| LOW | mineru/backend/analyze.py | 32 | CODE | |
| LOW | mineru/backend/analysis/pdf/window.py | 349 | CODE | |
| LOW | mineru/backend/analysis/pdf/visual_containers.py | 22 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 204 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 390 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 481 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 669 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 814 | CODE | |
| LOW | mineru/backend/analysis/pdf/tables.py | 888 | CODE | |
| LOW | mineru/backend/analysis/pdf/normalization.py | 112 | CODE | |
| LOW | mineru/backend/analysis/pdf/text/native.py | 73 | CODE | |
| LOW | mineru/backend/analysis/pdf/text/native.py | 613 | CODE | |
| LOW | mineru/backend/analysis/pdf/text/content.py | 256 | CODE | |
| LOW | mineru/backend/analysis/pdf/text/content.py | 376 | CODE | |
| LOW | mineru/backend/postprocess/legacy_schema_adapter.py | 139 | CODE | |
| LOW | mineru/backend/postprocess/legacy_schema_adapter.py | 636 | CODE | |
| LOW | mineru/backend/postprocess/llm_aided.py | 30 | CODE | |
| LOW | mineru/backend/postprocess/title_leveling.py | 18 | CODE | |
| LOW | mineru/backend/postprocess/legacy_middle_json.py | 105 | CODE | |
| LOW | mineru/cli/commands/server.py | 192 | CODE | |
| 91 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/_docx_equationxml_test_utils.py | 137 | CODE | |
| LOW | tests/unittest/_epub_test_utils.py | 11 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 299 | CODE | |
| LOW | tests/unittest/_ooxml_mtef_test_utils.py | 631 | CODE | |
| LOW | tests/benchmarks/opencv_paths.py | 114 | CODE | |
| LOW | mineru/kit/commands/webui.py | 62 | CODE | |
| LOW | mineru/kit/commands/api_server.py | 33 | CODE | |
| LOW | mineru/kit/commands/parse.py | 29 | CODE | |
| LOW | mineru/kit/router/cli.py | 20 | CODE | |
| LOW | mineru/backend/analyze.py | 32 | CODE | |
| LOW | mineru/backend/analyze.py | 95 | CODE | |
| LOW | mineru/backend/analysis/pdf/images.py | 61 | CODE | |
| LOW | mineru/cli/commands/parse.py | 78 | CODE | |
| LOW | mineru/cli/commands/parse.py | 299 | CODE | |
| LOW | mineru/parser/api_server.py | 2255 | CODE | |
| LOW | mineru/parser/api_client.py | 817 | CODE | |
| LOW | mineru/parser/api_client.py | 836 | CODE | |
| LOW | mineru/doclib/server.py | 391 | CODE | |
| LOW | mineru/doclib/client.py | 136 | CODE | |
| LOW | mineru/doclib/base.py | 112 | CODE | |
| LOW | mineru/doclib/base.py | 572 | CODE | |
| LOW | mineru/doclib/services/parse_svc.py | 1101 | CODE | |
| LOW | mineru/model/_internal/pytorchocr/modeling/necks/rnn.py | 91 | CODE | |
| LOW | mineru/model/_internal/pytorchocr/modeling/necks/rnn.py | 324 | CODE | |
| LOW | …del/_internal/pytorchocr/modeling/heads/det_db_head.py | 162 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 1308 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 159 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 682 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 798 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 995 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 1433 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 1646 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 1954 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 2035 | CODE | |
| LOW | …ternal/pytorchocr/modeling/heads/rec_unimernet_head.py | 2346 | CODE | |
| LOW | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 406 | CODE | |
| LOW | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 642 | CODE | |
| LOW | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 718 | CODE | |
| LOW | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 919 | CODE | |
| LOW | …nternal/pytorchocr/modeling/backbones/rec_pphgnetv2.py | 42 | CODE | |
| LOW | …nternal/pytorchocr/modeling/backbones/rec_pphgnetv2.py | 1208 | CODE | |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 21 | CODE | |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 53 | CODE | |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 131 | CODE | |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 200 | CODE | |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 405 | CODE | |
| LOW | …ternal/pytorchocr/modeling/backbones/rec_donut_swin.py | 437 | CODE | |
| LOW | …ternal/pytorchocr/modeling/backbones/rec_donut_swin.py | 21 | CODE | |
| LOW | mineru/model/ocr/pp_ocr_v6_onnx.py | 70 | CODE | |
| LOW | mineru/model/ocr/pp_ocr_v6_onnx.py | 363 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 699 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1221 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1481 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1609 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1723 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1850 | CODE | |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1996 | CODE | |
| LOW | …nimernet_hf/unimer_mbart/configuration_unimer_mbart.py | 106 | CODE | |
| LOW | …ernet/unimernet_hf/unimer_swin/modeling_unimer_swin.py | 400 | CODE | |
| LOW | …/unimernet_hf/unimer_swin/configuration_unimer_swin.py | 91 | CODE | |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | mineru/kit/gradio/source_preview.py | 52 | if (event.source !== parent || !data || data.type !== "mineru-source-preview-probe") return; | CODE |
| HIGH⚡ | mineru/kit/gradio/source_preview.py | 56 | if (window.navigation && typeof window.navigation.addEventListener === "function") { | CODE |
| HIGH⚡ | mineru/kit/gradio/source_preview.py | 66 | if (injectedWidth >= 320 && injectedWidth <= 2400) return injectedWidth; | CODE |
| HIGH⚡ | mineru/kit/gradio/source_preview.py | 73 | if (numeric >= 320 && numeric <= 2400) return numeric; | CODE |
| HIGH | mineru/kit/gradio/source_preview.py | 85 | var width = viewportWidth || innerWidth || 0; | CODE |
| HIGH | mineru/kit/gradio/source_preview.py | 107 | if (!preferredWidth || measured > preferredWidth) preferredWidth = measured; | CODE |
| HIGH⚡ | mineru/model/mfr/utils.py | 325 | r'\\(?:lefteqn|boldmath|ensuremath|centering|textsubscript|sides|textsl|textcent|emph|protect|null)') | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/unittest/test_parser_api_contract.py | 2963 | tier: runtime.effort for tier, runtime in server.config.app.state.tier_runtime_options.items() | CODE |
| CRITICAL | tests/unittest/test_parser_api_contract.py | 2986 | tier: runtime.effort for tier, runtime in server.config.app.state.tier_runtime_options.items() | CODE |
| CRITICAL | tests/unittest/test_parser_api_contract.py | 3010 | tier: runtime.effort for tier, runtime in server.config.app.state.tier_runtime_options.items() | CODE |
| CRITICAL⚡ | mineru/resources/epub_preview/epub.min.js | 1 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("JSZip")):"function"==typeof d | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mineru/filetypes.py | 1 | from __future__ import annotations | COMMENT |
| LOW | mineru/resources/pdf_preview/viewer.css | 21 | #status { position: absolute; z-index: 5; top: calc(var(--toolbar-height) + 10px); left: 10px; right: 10px; padding: 10p | COMMENT |
| LOW | …/model/_internal/pytorchocr/modeling/necks/__init__.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | mineru/model/_internal/pytorchocr/modeling/necks/rnn.py | 21 | # def forward(self, x): | COMMENT |
| LOW | …internal/pytorchocr/modeling/architectures/__init__.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | …/model/_internal/pytorchocr/modeling/heads/__init__.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | …el/_internal/pytorchocr/modeling/backbones/__init__.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | …_internal/pytorchocr/modeling/backbones/rec_lcnetv3.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | …el/_internal/pytorchocr/postprocess/rec_postprocess.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | …neru/model/_internal/pytorchocr/data/imaug/__init__.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | …eru/model/_internal/pytorchocr/data/imaug/operators.py | 1 | """ | COMMENT |
| LOW | mineru/model/ocr/seal_det_warp.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | mineru/model/ocr/seal_crop.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | …net/unimernet_hf/unimer_mbart/modeling_unimer_mbart.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …nimernet_hf/unimer_mbart/configuration_unimer_mbart.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …ernet/unimernet_hf/unimer_swin/modeling_unimer_swin.py | 1 | # coding=utf-8 | COMMENT |
| LOW | …/unimernet_hf/unimer_swin/configuration_unimer_swin.py | 1 | # coding=utf-8 | COMMENT |
| LOW | mineru/model/table/rec/slanet_plus/matcher.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | mineru/model/table/rec/slanet_plus/table_structure.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | …u/model/table/rec/slanet_plus/table_structure_utils.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | mineru/model/table/rec/slanet_plus/matcher_utils.py | 1 | # Copyright (c) Opendatalab. All rights reserved. | COMMENT |
| LOW | mineru/model/table/rec/slanet_plus/matcher_utils.py | 121 | if not has_span_in_head: | COMMENT |
| LOW | mineru/model/table/rec/unet_table/main.py | 201 | continue | COMMENT |
| LOW | scripts/http_api_example.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/http_api_example.sh | 21 | # TRANSFER_TIMEOUT (optional) Max seconds per upload/download (default: 300). | COMMENT |
| LOW | .github/workflows/cla.yml | 41 | #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assista | COMMENT |
| LOW | .github/workflows/cli.yml | 41 | # notify_to_feishu: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …_internal/pytorchocr/modeling/backbones/rec_svtrnet.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | …ternal/pytorchocr/modeling/backbones/rec_donut_swin.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | …ernet/unimernet_hf/unimer_swin/modeling_unimer_swin.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | mineru/resources/epub_preview/epub.min.js | 1 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("JSZip")):"function"==typeof d | CODE |
| MEDIUM⚡ | mineru/resources/epub_preview/epub.min.js | 1 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("JSZip")):"function"==typeof d | CODE |
| MEDIUM | …ru/kit/gradio/_vendor/ofd2html/render/page_renderer.py | 108 | # robust against documents that interleave comments with content. | COMMENT |
| MEDIUM | …nal/pytorchocr/modeling/heads/rec_ppformulanet_head.py | 976 | # 1. Check whether the user has defined `decoder_input_ids` manually. To facilitate in terms of input naming, | COMMENT |
| MEDIUM | …el/_internal/pytorchocr/postprocess/rec_postprocess.py | 112 | ): # grouping word with '-', such as 'state-of-the-art' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …nternal/pytorchocr/modeling/backbones/rec_pphgnetv2.py | 546 | use 'handle_func' to modify the sub-layer(s) specified by 'layer_name_pattern'. Args: layer_name_pa | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/http_api_example.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/test_kit_gradio.py | 1133 | source.write_bytes(b"placeholder") | CODE |
| LOW | tests/unittest/test_kit_gradio.py | 1264 | source.write_bytes(b"placeholder") | CODE |