PDF craft can convert PDF files into various other formats. This project will focus on processing PDF files of scanned books.
This report presents the forensic synthetic code analysis of oomol-lab/pdf-craft, a Python project with 6,231 GitHub stars. SynthScan v2.0 examined 27,687 lines of code across 228 source files, recording 688 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 30.4 places this repository in the Strong 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 688 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft_tool/runtime.py | 48 | def create_ocr_config_from_env(mode: OCRMode | None = None) -> OCRConfig: | CODE |
| LOW | pdf_craft_tool/cli.py | 405 | def _resolve_translation_profiles(translation: dict[str, Any] | None, output_root: Path) -> dict[str, Any] | None: | CODE |
| LOW | pdf_craft_tool/smoke/runner.py | 406 | def _xml_translation_transformer(run: SmokeRun, run_path: Path) -> ChapterXMLTransformer | None: | CODE |
| LOW⚡ | tests/test_parser.py | 66 | def test_html_comment_removal(self): | CODE |
| LOW⚡ | tests/test_parser.py | 71 | def test_processing_instruction_removal(self): | CODE |
| LOW⚡ | tests/test_parser.py | 76 | def test_cdata_section_removal(self): | CODE |
| LOW⚡ | tests/test_parser.py | 86 | def test_gfm_tagfilter_script(self): | CODE |
| LOW⚡ | tests/test_parser.py | 96 | def test_gfm_tagfilter_iframe(self): | CODE |
| LOW⚡ | tests/test_parser.py | 130 | def test_allowed_url_protocol_https(self): | CODE |
| LOW⚡ | tests/test_parser.py | 139 | def test_allowed_url_protocol_http(self): | CODE |
| LOW⚡ | tests/test_parser.py | 148 | def test_allowed_url_protocol_mailto(self): | CODE |
| LOW⚡ | tests/test_parser.py | 157 | def test_allowed_relative_url(self): | CODE |
| LOW⚡ | tests/test_parser.py | 166 | def test_disallowed_url_protocol_javascript(self): | CODE |
| LOW⚡ | tests/test_parser.py | 176 | def test_disallowed_url_protocol_data(self): | CODE |
| LOW | tests/test_parser.py | 43 | def test_inline_tag_with_text(self): | CODE |
| LOW | tests/test_parser.py | 119 | def test_disallowed_attributes_filtered(self): | CODE |
| LOW | tests/test_parser.py | 188 | def test_disallowed_tag_escaped(self): | CODE |
| LOW | tests/test_parser.py | 196 | def test_disallowed_tag_with_allowed_child(self): | CODE |
| LOW | tests/test_parser.py | 235 | def test_blockquote_with_cite(self): | CODE |
| LOW | tests/test_parser.py | 263 | def test_multiple_tags_in_sequence(self): | CODE |
| LOW | tests/test_parser.py | 299 | def test_html_entities_in_attributes(self): | CODE |
| LOW | tests/test_parser.py | 340 | def test_mixed_content_complex(self): | CODE |
| LOW | tests/test_parser.py | 352 | def test_incomplete_tag_treated_as_text(self): | CODE |
| LOW | tests/test_parser.py | 357 | def test_video_tag_with_attributes(self): | CODE |
| LOW | tests/test_parser.py | 385 | def test_multiple_attributes_filtering(self): | CODE |
| LOW | tests/test_parser.py | 401 | def test_case_insensitive_tag_names(self): | CODE |
| LOW | tests/test_parser.py | 433 | def test_single_quoted_attributes(self): | CODE |
| LOW | tests/test_llm_loop.py | 8 | def test_retries_with_typed_protocol_and_bounded_history(self): | CODE |
| LOW | tests/test_llm_loop.py | 35 | def test_preserves_initial_messages_when_history_is_cropped(self): | CODE |
| LOW | tests/test_llm_loop.py | 57 | def test_reset_history_discards_previous_retry_messages_but_keeps_initial(self): | CODE |
| LOW | tests/test_llm_loop.py | 78 | def test_max_attempts_is_total_requests_and_transport_errors_propagate(self): | CODE |
| LOW | tests/test_llm_loop.py | 104 | def test_protocol_callback_exceptions_propagate(self): | CODE |
| LOW⚡ | tests/test_jointer.py | 550 | def test_single_dollar_inline_formula(self): | CODE |
| LOW⚡ | tests/test_jointer.py | 560 | def test_double_dollar_formula(self): | CODE |
| LOW⚡ | tests/test_jointer.py | 570 | def test_parenthesis_inline_formula(self): | CODE |
| LOW⚡ | tests/test_jointer.py | 580 | def test_bracket_display_formula(self): | CODE |
| LOW | tests/test_jointer.py | 19 | def test_equation_with_bracket_notation(self): | CODE |
| LOW | tests/test_jointer.py | 35 | def test_equation_with_double_dollar(self): | CODE |
| LOW | tests/test_jointer.py | 51 | def test_equation_with_parenthesis_notation(self): | CODE |
| LOW | tests/test_jointer.py | 67 | def test_equation_with_single_dollar(self): | CODE |
| LOW | tests/test_jointer.py | 83 | def test_equation_without_title(self): | CODE |
| LOW | tests/test_jointer.py | 99 | def test_equation_without_caption(self): | CODE |
| LOW | tests/test_jointer.py | 133 | def test_equation_with_existing_title(self): | CODE |
| LOW | tests/test_jointer.py | 149 | def test_equation_with_existing_caption(self): | CODE |
| LOW | tests/test_jointer.py | 165 | def test_equation_empty_content(self): | CODE |
| LOW | tests/test_jointer.py | 181 | def test_equation_no_latex_found(self): | CODE |
| LOW | tests/test_jointer.py | 201 | def test_table_with_title_and_caption(self): | CODE |
| LOW | tests/test_jointer.py | 233 | def test_table_without_caption(self): | CODE |
| LOW | tests/test_jointer.py | 265 | def test_table_with_attributes(self): | CODE |
| LOW | tests/test_jointer.py | 310 | def test_table_case_insensitive(self): | CODE |
| LOW | tests/test_jointer.py | 326 | def test_table_with_existing_title(self): | CODE |
| LOW | tests/test_jointer.py | 342 | def test_table_with_existing_caption(self): | CODE |
| LOW | tests/test_jointer.py | 374 | def test_table_no_table_found(self): | CODE |
| LOW | tests/test_jointer.py | 392 | def test_table_internal_title_and_caption_still_normalized(self): | CODE |
| LOW | tests/test_jointer.py | 414 | def test_adjacent_title_paragraph_is_attached_to_table(self): | CODE |
| LOW | tests/test_jointer.py | 441 | def test_adjacent_note_paragraph_is_attached_to_table_caption(self): | CODE |
| LOW | tests/test_jointer.py | 463 | def test_adjacent_footnote_paragraph_is_attached_to_table_caption(self): | CODE |
| LOW | tests/test_jointer.py | 485 | def test_numeric_leading_body_text_is_not_attached_to_table_caption(self): | CODE |
| LOW | tests/test_jointer.py | 514 | def test_normal_following_paragraph_is_not_attached_to_table_caption(self): | CODE |
| LOW | tests/test_jointer.py | 647 | def test_complex_latex_content(self): | CODE |
| 234 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft_tool/smoke/__init__.py | 3 | CODE | |
| LOW | pdf_craft_tool/smoke/__init__.py | 3 | CODE | |
| LOW | pdf_craft_tool/smoke/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 1 | CODE | |
| LOW | pdf_craft/__init__.py | 1 | CODE | |
| LOW | pdf_craft/__init__.py | 1 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 3 | CODE | |
| LOW | pdf_craft/__init__.py | 11 | CODE | |
| LOW | pdf_craft/__init__.py | 12 | CODE | |
| LOW | pdf_craft/__init__.py | 12 | CODE | |
| LOW | pdf_craft/__init__.py | 12 | CODE | |
| LOW | pdf_craft/__init__.py | 13 | CODE | |
| LOW | pdf_craft/__init__.py | 14 | CODE | |
| LOW | pdf_craft/__init__.py | 14 | CODE | |
| LOW | pdf_craft/__init__.py | 14 | CODE | |
| LOW | pdf_craft/__init__.py | 14 | CODE | |
| LOW | pdf_craft/__init__.py | 14 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 15 | CODE | |
| LOW | pdf_craft/__init__.py | 26 | CODE | |
| LOW | pdf_craft/__init__.py | 27 | CODE | |
| LOW | pdf_craft/__init__.py | 27 | CODE | |
| LOW | pdf_craft/__init__.py | 27 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 28 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 40 | CODE | |
| LOW | pdf_craft/__init__.py | 51 | CODE | |
| LOW | pdf_craft/__init__.py | 51 | CODE | |
| LOW | pdf_craft/__init__.py | 52 | CODE | |
| LOW | pdf_craft/__init__.py | 53 | CODE | |
| LOW | pdf_craft/__init__.py | 53 | CODE | |
| LOW | pdf_craft/pipeline/__init__.py | 1 | CODE | |
| 161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README_zh-CN.md | 69 | api_key="your-api-key", | CODE |
| HIGH | README_zh-CN.md | 100 | api_key="your-api-key", | CODE |
| HIGH | README_zh-CN.md | 161 | key="your-api-key", | CODE |
| HIGH | README.md | 69 | api_key="your-api-key", | CODE |
| HIGH | README.md | 96 | api_key="your-api-key", | CODE |
| HIGH | README.md | 154 | key="your-api-key", | CODE |
| HIGH | format.template.json | 2 | "key": "<YOUR_API_KEY>", | CODE |
| HIGH | format.template.json | 2 | "key": "<YOUR_API_KEY>", | CODE |
| HIGH | docs/changelog/v1.0.9.md | 55 | key="your-api-key", | CODE |
| HIGH | docs/changelog/v1.0.10.md | 86 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/API_REFERENCE.md | 310 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/API_REFERENCE.md | 354 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/API_REFERENCE.md | 442 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/PDF_TRANSLATION.md | 33 | api_key="your-api-key", | CODE |
| HIGH | docs/zh-CN/EPUB_TRANSLATION.md | 16 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/EPUB_TRANSLATION.md | 86 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/EPUB_TRANSLATION.md | 102 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/EPUB_TRANSLATION.md | 109 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/EPUB_TRANSLATION.md | 176 | key="your-api-key", | CODE |
| HIGH | docs/zh-CN/OCR_BACKENDS.md | 163 | api_key="your-api-key", | CODE |
| HIGH | docs/zh-CN/OCR_BACKENDS.md | 177 | api_key="your-api-key", | CODE |
| HIGH | docs/zh-CN/OCR_BACKENDS.md | 216 | api_key="your-api-key", | CODE |
| HIGH | docs/en/PDF_TRANSLATION.md | 24 | api_key="your-api-key", | CODE |
| HIGH | docs/en/EPUB_TRANSLATION.md | 15 | key="your-api-key", | CODE |
| HIGH | docs/en/EPUB_TRANSLATION.md | 78 | key="your-api-key", | CODE |
| HIGH | docs/en/EPUB_TRANSLATION.md | 122 | key="your-api-key", url="https://example.com/v1", | CODE |
| HIGH | docs/en/EPUB_TRANSLATION.md | 126 | key="your-api-key", url="https://example.com/v1", | CODE |
| HIGH | docs/en/OCR_BACKENDS.md | 44 | api_key="your-api-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft/expression.py | 23 | CODE | |
| LOW | pdf_craft/expression.py | 36 | CODE | |
| LOW | pdf_craft/expression.py | 51 | CODE | |
| LOW | pdf_craft/expression.py | 68 | CODE | |
| LOW | pdf_craft/pipeline/pdf/pipeline.py | 165 | CODE | |
| LOW | pdf_craft/pipeline/pdf/pipeline.py | 143 | CODE | |
| LOW | pdf_craft/pipeline/pdf/patcher.py | 69 | CODE | |
| LOW | pdf_craft/pipeline/epub/translation/translator.py | 42 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 93 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 368 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 430 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/zip.py | 28 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/spines.py | 10 | CODE | |
| LOW | pdf_craft/pipeline/epub/adapter/math.py | 56 | CODE | |
| LOW | pdf_craft/renderer/epub/render.py | 43 | CODE | |
| LOW | pdf_craft/renderer/epub/render.py | 119 | CODE | |
| LOW | pdf_craft/renderer/epub/render.py | 188 | CODE | |
| LOW | pdf_craft/renderer/epub/render.py | 266 | CODE | |
| LOW | pdf_craft/renderer/epub/render.py | 299 | CODE | |
| LOW | pdf_craft/llm/runtime.py | 93 | CODE | |
| LOW | pdf_craft/llm/runtime.py | 105 | CODE | |
| LOW | pdf_craft/markdown/paragraph/render.py | 63 | CODE | |
| LOW | pdf_craft/markdown/paragraph/render.py | 77 | CODE | |
| LOW | pdf_craft/markdown/paragraph/parser.py | 8 | CODE | |
| LOW | pdf_craft/markdown/paragraph/parser.py | 280 | CODE | |
| LOW | pdf_craft/markdown/paragraph/parser.py | 372 | CODE | |
| LOW | pdf_craft/markdown/paragraph/parser.py | 396 | CODE | |
| LOW | pdf_craft/markdown/render/layouts.py | 159 | CODE | |
| LOW | …ft/transformer/xml_translator/segment/block_segment.py | 67 | CODE | |
| LOW | …t/transformer/xml_translator/segment/inline_segment.py | 39 | CODE | |
| LOW | …t/transformer/xml_translator/segment/inline_segment.py | 189 | CODE | |
| LOW | …t/transformer/xml_translator/segment/inline_segment.py | 325 | CODE | |
| LOW | pdf_craft/transformer/xml_translator/xml/xml_like.py | 235 | CODE | |
| LOW | pdf_craft/transformer/xml_translator/xml/xml_like.py | 106 | CODE | |
| LOW | pdf_craft/transformer/xml_translator/xml/xml_like.py | 146 | CODE | |
| LOW | …f_craft/transformer/xml_translator/xml/self_closing.py | 116 | CODE | |
| LOW | …aft/transformer/xml_translator/xml/friendly/decoder.py | 23 | CODE | |
| LOW | …raft/transformer/xml_translator/xml/friendly/parser.py | 49 | CODE | |
| LOW | …sformer/xml_translator/xml_translator/stream_mapper.py | 29 | CODE | |
| LOW | …sformer/xml_translator/xml_translator/stream_mapper.py | 194 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/translator.py | 95 | CODE | |
| LOW | …transformer/xml_translator/xml_translator/submitter.py | 300 | CODE | |
| LOW | …transformer/xml_translator/xml_translator/submitter.py | 212 | CODE | |
| LOW | …aft/transformer/xml_translator/xml_translator/score.py | 99 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/validation.py | 95 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/validation.py | 268 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/validation.py | 281 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/validation.py | 296 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/validation.py | 344 | CODE | |
| LOW | pdf_craft/transformer/xml_translator/serial/chunk.py | 46 | CODE | |
| LOW | pdf_craft/pdf/handler.py | 62 | CODE | |
| LOW | pdf_craft/pdf/ngrams.py | 1 | CODE | |
| LOW | pdf_craft/pdf/page_extractor.py | 167 | CODE | |
| LOW | pdf_craft/pdf/ocr.py | 66 | CODE | |
| LOW | pdf_craft/extractor/toc/toc_levels.py | 64 | CODE | |
| LOW | pdf_craft/extractor/chapter/chapter.py | 302 | CODE | |
| LOW | pdf_craft/extractor/chapter/chapter.py | 445 | CODE | |
| LOW | pdf_craft/extractor/chapter/generation.py | 45 | CODE | |
| LOW | pdf_craft/extractor/chapter/generation.py | 90 | CODE | |
| LOW | pdf_craft/extractor/chapter/jointer.py | 178 | CODE | |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 61 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 63 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 84 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 86 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 101 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 103 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 193 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 195 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 214 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 216 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 229 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 231 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 453 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 455 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 530 | # ============================================================================ | COMMENT |
| MEDIUM | pdf_craft/markdown/paragraph/tags.py | 532 | # ============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test.py | 26 | except Exception as e: | CODE |
| LOW | pdf_craft_tool/smoke/runner.py | 80 | except Exception: | CODE |
| LOW | pdf_craft_tool/smoke/runner.py | 161 | except Exception as error: # preserve the full failure report for manual inspection | CODE |
| LOW | pdf_craft_tool/smoke/runner.py | 242 | except Exception as error: | CODE |
| LOW | pdf_craft_tool/smoke/checks.py | 219 | except Exception as error: | CODE |
| LOW | pdf_craft/pipeline/epub/translation/xml_interrupter.py | 157 | except Exception: | CODE |
| LOW | pdf_craft/pipeline/epub/translation/translator.py | 183 | except Exception: | CODE |
| MEDIUM | pdf_craft/pipeline/epub/translation/translator.py | 180 | def _get_version() -> str: | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/zip.py | 15 | except Exception: | CODE |
| LOW | pdf_craft/renderer/epub/latex_to_text.py | 9 | except Exception: | CODE |
| LOW | pdf_craft/llm/guaranteed.py | 78 | except Exception as error: | CODE |
| LOW | pdf_craft/llm/runtime.py | 137 | except Exception as error: | CODE |
| LOW | pdf_craft/transformer/xml_translator/xml/xml_like.py | 76 | except Exception as error: | CODE |
| LOW | pdf_craft/pdf/handler.py | 129 | except Exception as error: | CODE |
| LOW | pdf_craft/pdf/handler.py | 140 | except Exception as error: | CODE |
| MEDIUM | pdf_craft/pdf/handler.py | 62 | def metadata(self) -> PDFDocumentMetadata: | CODE |
| LOW | pdf_craft/pdf/page_ref.py | 23 | except Exception as error: | CODE |
| LOW | pdf_craft/pdf/page_ref.py | 51 | except Exception as error: | CODE |
| LOW | pdf_craft/pdf/page_ref.py | 107 | except Exception as error: | CODE |
| LOW | pdf_craft/pdf/page_extractor.py | 218 | except Exception as error: | CODE |
| LOW | pdf_craft/extractor/toc/llm_analyser.py | 336 | except Exception as e: | CODE |
| LOW | pdf_craft/extractor/toc/llm_analyser.py | 506 | except Exception as e: | CODE |
| LOW | pdf_craft/extractor/toc/llm_analyser.py | 603 | except Exception as error: | CODE |
| LOW | pdf_craft/extractor/chapter/chapter.py | 293 | except Exception as e: | CODE |
| LOW | pdf_craft/extractor/chapter/reader.py | 21 | except Exception as e: | CODE |
| LOW | pdf_craft/common/asset.py | 31 | except Exception as e: | CODE |
| LOW | pdf_craft/common/xml.py | 24 | except Exception as error: | CODE |
| LOW | pdf_craft/common/xml.py | 37 | except Exception as err: | CODE |
| LOW | pdf_craft/common/reader.py | 40 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft_tool/smoke/__init__.py | 5 | __all__ = ["SmokeRun", "expand_matrix", "run_smoke"] | CODE |
| LOW | pdf_craft/pipeline/__init__.py | 3 | __all__ = ["PDFPatcher", "PDFTranslationPipeline"] | CODE |
| LOW | pdf_craft/pipeline/pdf/__init__.py | 5 | __all__ = [ | CODE |
| LOW | pdf_craft/pipeline/epub/__init__.py | 5 | __all__ = ["translate", "translate_epub"] | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 178 | def _update_ncx_toc(root: Element, toc_list: list[Toc]) -> None: | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 208 | def _update_nav_point_content(nav_point: Element, toc: Toc, ns: str | None, play_order: int) -> None: | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 324 | def _update_nav_toc(root: Element, toc_list: list[Toc]) -> None: | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 342 | def _update_nav_lis(ol: Element, toc_list: list[Toc], ns: str | None) -> None: | CODE |
| LOW | pdf_craft/pipeline/epub/adapter/toc.py | 368 | def _update_nav_li_content(li: Element, toc: Toc, ns: str | None) -> None: | CODE |
| LOW | pdf_craft/renderer/__init__.py | 5 | __all__ = ["EpubRenderer", "MarkdownRenderer"] | CODE |
| LOW | pdf_craft/renderer/markdown/__init__.py | 4 | __all__ = ["MarkdownRenderer"] | CODE |
| LOW | pdf_craft/renderer/epub/__init__.py | 4 | __all__ = ["EpubRenderer"] | CODE |
| LOW | pdf_craft/llm/__init__.py | 8 | __all__ = ["LLM", "LLMContext", "LLMRuntime", "Message", "MessageRole", "runtime_for", | CODE |
| LOW | pdf_craft/transformer/__init__.py | 7 | __all__ = ["ChapterTransformer", "ChapterXMLTransformer", "ChapterPackageTransformer", "PackageTransformer", "FillFailed | CODE |
| LOW | pdf_craft/transformer/xml_translator/__init__.py | 4 | __all__ = ["FillFailedEvent", "SubmitKind", "TranslationTask", "XMLTranslator", "TranslationEvent", "TranslationEventKin | CODE |
| LOW | pdf_craft/extractor/__init__.py | 4 | __all__ = ["PDFExtractor"] | CODE |
| LOW | pdf_craft/extractor/toc/analysing.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | pdf_craft/extractor/pdf/__init__.py | 4 | __all__ = ["PDFExtractor"] | CODE |
| LOW | pdf_craft/document/__init__.py | 4 | __all__ = ["DocumentPackage", "SourceLocation", "source_location"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft/markdown/paragraph/parser.py | 125 | # Check if it's a closing tag | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 147 | # Check if this tag should be filtered by GFM tagfilter | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 152 | # Check if tag is in whitelist | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 170 | # Check if this tag should be filtered by GFM tagfilter | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 175 | # Check if this tag should be ignored (removed but children preserved) | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 194 | # Check if tag is in whitelist | COMMENT |
| LOW | pdf_craft/markdown/paragraph/parser.py | 383 | # Check if attribute is allowed for this tag | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft/craft.py | 192 | CODE | |
| LOW | pdf_craft/pipeline/epub/translation/translator.py | 42 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/translator.py | 58 | CODE | |
| LOW | …ransformer/xml_translator/xml_translator/translator.py | 95 | CODE | |
| LOW | pdf_craft/pdf/ocr.py | 66 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdf_craft/pipeline/epub/translation/xml_interrupter.py | 101 | block_depth=find_block_depth(parent_stack), | COMMENT |
| LOW | pdf_craft/transformer/xml_translator/xml/xml_like.py | 41 | # attribute, including ones that should remain unprefixed (e.g., <link type="text/css">). | COMMENT |
| LOW | …transformer/xml_translator/xml_translator/submitter.py | 301 | # 需要翻译的文字会被嵌套到两种不同的结构中。 | COMMENT |
| LOW | pdf_craft/extractor/toc/text.py | 1 | import re | COMMENT |