Convert PDF to markdown + JSON quickly with high accuracy
This report presents the forensic synthetic code analysis of datalab-to/marker, a Python project with 37,464 GitHub stars. SynthScan v2.0 examined 60,493 lines of code across 233 source files, recording 234 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 234 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 | examples/marker_modal_deployment.py | 92 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 117 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 286 | except Exception as e: | CODE |
| LOW | examples/marker_modal_deployment.py | 343 | except Exception as e: | CODE |
| MEDIUM | examples/marker_modal_deployment.py | 344 | print(f"Error getting web URL: {e}") | CODE |
| LOW | examples/marker_modal_deployment.py | 363 | except Exception as e: | CODE |
| MEDIUM | examples/marker_modal_deployment.py | 394 | print(f"Error: {response.text}") | CODE |
| LOW | examples/marker_modal_deployment.py | 396 | except Exception as e: | CODE |
| LOW | benchmarks/table/inference.py | 156 | except Exception as e: | CODE |
| LOW | benchmarks/overall/elo.py | 119 | except Exception as e: | STRING |
| MEDIUM | benchmarks/overall/elo.py | 120 | print(f"Error: {e}") | STRING |
| LOW | benchmarks/overall/elo.py | 159 | except Exception as e: | STRING |
| MEDIUM | benchmarks/overall/elo.py | 160 | print(f"Error: {e}") | STRING |
| LOW | benchmarks/overall/overall.py | 60 | except Exception as e: | CODE |
| LOW | benchmarks/overall/overall.py | 72 | except Exception as e: | CODE |
| LOW | benchmarks/overall/methods/olmocr.py | 66 | except Exception: | CODE |
| LOW | benchmarks/overall/methods/olmocr.py | 69 | except Exception: | CODE |
| LOW | benchmarks/overall/scorers/clean.py | 87 | except Exception as e: | CODE |
| MEDIUM | benchmarks/overall/scorers/clean.py | 78 | def standardize_math(self, match): | CODE |
| MEDIUM⚡ | benchmarks/overall/download/base.py | 48 | print(f"Error with sample {idx}: {e}") | CODE |
| LOW⚡ | benchmarks/overall/download/base.py | 50 | except Exception as e: | CODE |
| MEDIUM⚡ | benchmarks/overall/download/base.py | 51 | print(f"Error with sample {idx}: {e}") | CODE |
| LOW | benchmarks/overall/display/dataset.py | 34 | except Exception as e: | CODE |
| LOW | marker/builders/ocr.py | 369 | except Exception: | CODE |
| LOW | marker/config/parser.py | 148 | except Exception as e: | CODE |
| LOW | marker/config/parser.py | 159 | except Exception as e: | CODE |
| LOW | marker/providers/spreadsheet.py | 40 | except Exception as e: | STRING |
| LOW | marker/providers/registry.py | 79 | except Exception: | CODE |
| LOW | marker/providers/html.py | 16 | except Exception as e: | CODE |
| LOW | marker/providers/pdf.py | 449 | except Exception: | CODE |
| LOW | marker/providers/powerpoint.py | 53 | except Exception as e: | STRING |
| LOW | marker/providers/powerpoint.py | 223 | except Exception as e: | STRING |
| LOW | marker/providers/document.py | 61 | except Exception as e: | STRING |
| LOW | marker/providers/document.py | 100 | except Exception as e: | STRING |
| MEDIUM | marker/providers/document.py | 89 | def convert_image(match): | CODE |
| LOW | marker/providers/epub.py | 56 | except Exception as e: | STRING |
| LOW | marker/utils/gpu.py | 122 | except Exception as e: | CODE |
| MEDIUM | marker/utils/gpu.py | 98 | def stop_mps_server(self) -> None: | CODE |
| LOW | marker/processors/block_relabel.py | 55 | except Exception as e: | CODE |
| LOW | marker/processors/llm/llm_meta.py | 60 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 127 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 143 | except Exception as e: | CODE |
| LOW | marker/processors/llm/__init__.py | 189 | except Exception as e: | CODE |
| LOW | marker/processors/llm/llm_page_correction.py | 196 | except Exception as e: | STRING |
| LOW | marker/processors/llm/llm_page_correction.py | 217 | except Exception as e: | STRING |
| LOW | marker/processors/llm/llm_page_correction.py | 264 | except Exception as e: | STRING |
| LOW | marker/scripts/server.py | 106 | except Exception as e: | CODE |
| LOW | marker/scripts/convert.py | 56 | except Exception: | CODE |
| LOW | marker/scripts/convert.py | 96 | except Exception as e: | CODE |
| LOW | marker/scripts/extraction_app.py | 166 | except Exception as e: | CODE |
| LOW | marker/scripts/extraction_app.py | 228 | except Exception as e: | CODE |
| LOW | marker/scripts/file_to_s3.py | 38 | except Exception as e: | CODE |
| MEDIUM | marker/scripts/file_to_s3.py | 39 | print(f"Error uploading {filepath}: {str(e)}") | CODE |
| LOW | marker/scripts/common.py | 156 | except Exception as e: | CODE |
| MEDIUM | marker/scripts/common.py | 157 | print(f"Error parsing schema: {e}") | CODE |
| LOW | marker/services/claude.py | 52 | except Exception: | CODE |
| LOW | marker/services/claude.py | 58 | except Exception: | CODE |
| LOW | marker/services/claude.py | 130 | except Exception as e: | STRING |
| LOW | marker/services/gemini.py | 126 | except Exception as e: | CODE |
| LOW | marker/services/openai.py | 123 | except Exception as e: | CODE |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/table/inference.py | 14 | CODE | |
| LOW | benchmarks/table/inference.py | 15 | CODE | |
| LOW | benchmarks/table/table.py | 6 | CODE | |
| LOW | benchmarks/overall/elo.py | 3 | CODE | |
| LOW | benchmarks/overall/elo.py | 5 | CODE | |
| LOW | benchmarks/overall/elo.py | 6 | CODE | |
| LOW | benchmarks/overall/elo.py | 6 | CODE | |
| LOW | benchmarks/overall/elo.py | 6 | CODE | |
| LOW | benchmarks/overall/elo.py | 18 | CODE | |
| LOW | benchmarks/overall/methods/__init__.py | 2 | CODE | |
| LOW | benchmarks/overall/methods/__init__.py | 4 | CODE | |
| LOW | benchmarks/overall/methods/olmocr.py | 7 | CODE | |
| LOW | benchmarks/overall/scorers/llm.py | 13 | CODE | |
| LOW | benchmarks/overall/scorers/schema.py | 1 | CODE | |
| LOW | benchmarks/overall/display/table.py | 2 | CODE | |
| LOW | marker/builders/line.py | 6 | CODE | |
| LOW | marker/schema/polygon.py | 1 | CODE | |
| LOW | marker/schema/polygon.py | 5 | CODE | |
| LOW | marker/schema/document.py | 1 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 1 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 3 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 4 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 5 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 6 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 7 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 8 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 9 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 10 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 11 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 12 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 13 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 14 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 15 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 16 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 17 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 18 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 19 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 20 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 21 | CODE | |
| LOW | marker/schema/blocks/__init__.py | 22 | CODE | |
| LOW | marker/schema/blocks/form.py | 1 | CODE | |
| LOW | marker/schema/blocks/base.py | 1 | CODE | |
| LOW | marker/schema/groups/__init__.py | 1 | CODE | |
| LOW | marker/schema/groups/__init__.py | 2 | CODE | |
| LOW | marker/schema/groups/__init__.py | 3 | CODE | |
| LOW | marker/schema/groups/__init__.py | 4 | CODE | |
| LOW | marker/schema/groups/__init__.py | 5 | CODE | |
| LOW | marker/schema/groups/__init__.py | 6 | CODE | |
| LOW | marker/schema/text/__init__.py | 1 | CODE | |
| LOW | marker/schema/text/__init__.py | 2 | CODE | |
| LOW | marker/processors/util.py | 1 | CODE | |
| LOW | marker/processors/order.py | 1 | CODE | |
| LOW | marker/scripts/file_to_s3.py | 1 | CODE | |
| LOW | marker/scripts/file_to_s3.py | 2 | CODE | |
| LOW | marker/scripts/file_to_s3.py | 3 | CODE | |
| LOW | marker/scripts/file_to_s3.py | 7 | CODE | |
| LOW | marker/scripts/chunk_convert.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 130 | CODE | |
| LOW | benchmarks/table/inference.py | 45 | CODE | |
| LOW | benchmarks/overall/elo.py | 180 | CODE | |
| LOW | benchmarks/overall/overall.py | 24 | CODE | |
| LOW | benchmarks/overall/scorers/heuristic.py | 50 | CODE | |
| LOW | benchmarks/overall/display/dataset.py | 11 | CODE | |
| LOW | benchmarks/overall/display/table.py | 17 | CODE | |
| LOW | marker/output.py | 55 | CODE | |
| LOW | marker/renderers/ocr_json.py | 55 | CODE | |
| LOW | marker/renderers/html.py | 50 | CODE | |
| LOW | marker/renderers/html.py | 81 | CODE | |
| LOW | marker/renderers/markdown.py | 29 | CODE | |
| LOW | marker/renderers/markdown.py | 120 | CODE | |
| LOW | marker/builders/layout.py | 94 | CODE | |
| LOW | marker/builders/ocr.py | 165 | CODE | |
| LOW | marker/builders/ocr.py | 252 | CODE | |
| LOW | marker/config/printer.py | 9 | CODE | |
| LOW | marker/config/crawler.py | 34 | CODE | |
| LOW | marker/config/crawler.py | 99 | CODE | |
| LOW | marker/providers/spreadsheet.py | 81 | CODE | |
| LOW | marker/providers/pdf.py | 127 | CODE | |
| LOW | marker/providers/pdf.py | 202 | CODE | |
| LOW | marker/providers/powerpoint.py | 64 | CODE | |
| LOW | marker/providers/powerpoint.py | 140 | CODE | |
| LOW | marker/converters/__init__.py | 24 | CODE | |
| LOW | marker/converters/pdf.py | 154 | CODE | |
| LOW | marker/schema/polygon.py | 78 | CODE | |
| LOW | marker/schema/polygon.py | 117 | CODE | |
| LOW | marker/schema/polygon.py | 193 | CODE | |
| LOW | marker/schema/groups/page.py | 262 | CODE | |
| LOW | marker/schema/text/line.py | 60 | CODE | |
| LOW | marker/schema/text/span.py | 82 | CODE | |
| LOW | marker/processors/list.py | 57 | CODE | |
| LOW | marker/processors/ignoretext.py | 44 | CODE | |
| LOW | marker/processors/order.py | 15 | CODE | |
| LOW | marker/processors/debug.py | 62 | CODE | |
| LOW | marker/processors/blockquote.py | 35 | CODE | |
| LOW | marker/processors/table.py | 85 | CODE | |
| LOW | marker/processors/table.py | 234 | CODE | |
| LOW | marker/processors/table.py | 312 | CODE | |
| LOW | marker/processors/table.py | 457 | CODE | |
| LOW | marker/processors/table.py | 604 | CODE | |
| LOW | marker/processors/line_numbers.py | 40 | CODE | |
| LOW | marker/processors/line_numbers.py | 76 | CODE | |
| LOW | marker/processors/sectionheader.py | 38 | CODE | |
| LOW | marker/processors/llm/llm_table_merge.py | 156 | CODE | |
| LOW | marker/processors/llm/llm_table.py | 249 | CODE | |
| LOW | marker/scripts/common.py | 96 | CODE | |
| LOW | marker/services/gemini.py | 43 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/renderers/test_html_renderer.py | 14 | def test_html_renderer_block_ids(pdf_document, config): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 18 | def test_markdown_renderer_auto_ocr(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 27 | def test_markdown_renderer_pagination(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 36 | def test_markdown_renderer_pagination_blank_last_page(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 52 | def test_markdown_renderer_metadata(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 59 | def test_markdown_renderer_images(pdf_document): | CODE |
| LOW⚡ | tests/renderers/test_markdown_renderer.py | 68 | def test_markdown_renderer_tables(pdf_document): | CODE |
| LOW | tests/renderers/test_json_renderer.py | 7 | def test_markdown_renderer_pagination(pdf_document): | CODE |
| LOW | tests/renderers/test_extract_images.py | 8 | def test_disable_extract_images(pdf_document): | CODE |
| LOW | tests/builders/test_ocr_pipeline.py | 44 | def test_ocr_with_inline_pipeline(pdf_document): | CODE |
| LOW | tests/builders/test_document_builder.py | 28 | def test_document_builder_inline_eq(pdf_document): | CODE |
| LOW | tests/providers/test_image_provider.py | 13 | def test_image_provider_conversion(pdf_converter, temp_image): | CODE |
| LOW | tests/converters/test_extraction_converter.py | 52 | def test_extraction_converter(config, model_dict, mock_llm_service, temp_doc): | CODE |
| LOW | tests/converters/test_extraction_converter.py | 66 | def test_extraction_converter_multiple_pages(extraction_converter, temp_doc): | CODE |
| LOW | tests/processors/test_llm_processors.py | 19 | def test_llm_form_processor_no_config(pdf_document, llm_service): | CODE |
| LOW | tests/processors/test_llm_processors.py | 30 | def test_llm_form_processor_no_cells(pdf_document, llm_service): | CODE |
| LOW | tests/processors/test_llm_processors.py | 107 | def test_llm_caption_processor_disabled(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 119 | def test_llm_caption_processor(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 141 | def test_llm_complex_region_processor(pdf_document): | STRING |
| LOW | tests/processors/test_llm_processors.py | 167 | def test_multi_llm_processors(pdf_document): | STRING |
| LOW | tests/processors/test_table_merge.py | 11 | def test_llm_table_processor_nomerge(pdf_document, table_rec_model, recognition_model, detection_model, mocker): | CODE |
| LOW | tests/processors/test_document_toc_processor.py | 7 | def test_document_toc_processor(pdf_document, detection_model, recognition_model, table_rec_model): | CODE |
| LOW | tests/processors/test_ignoretext.py | 10 | def test_ignoretext_processor(pdf_document): | CODE |
| LOW⚡ | examples/marker_modal_deployment.py | 33 | def setup_models_with_cache_check(logger, commit_volume=False): | CODE |
| LOW | marker/renderers/__init__.py | 117 | def generate_document_metadata(self, document: Document, document_output): | CODE |
| LOW | marker/renderers/chunk.py | 36 | def assemble_html_with_images(block: JSONBlockOutput, image_blocks: set[str]) -> str: | CODE |
| LOW | marker/renderers/json.py | 29 | def reformat_section_hierarchy(section_hierarchy): | CODE |
| LOW | marker/builders/ocr.py | 96 | def get_recognition_batch_size(self): | CODE |
| LOW | marker/builders/ocr.py | 105 | def select_ocr_blocks_by_mode( | CODE |
| LOW | marker/builders/ocr.py | 120 | def get_ocr_images_polygons_ids( | CODE |
| LOW | marker/config/crawler.py | 64 | def _gather_super_annotations(cls: Type) -> Dict[str, Type]: | CODE |
| LOW | marker/utils/batch.py | 4 | def get_batch_sizes_worker_counts(gpu_manager: GPUManager, peak_worker_vram: int): | CODE |
| LOW | marker/schema/groups/page.py | 139 | def compute_line_block_intersections( | CODE |
| LOW | marker/schema/groups/page.py | 163 | def compute_max_structure_block_intersection_pct(self): | CODE |
| LOW | marker/processors/table.py | 705 | def get_recognition_batch_size(self): | CODE |
| LOW | marker/processors/line_numbers.py | 61 | def ignore_line_number_blocks(self, document: Document): | CODE |
| LOW | marker/scripts/common.py | 96 | def extract_root_pydantic_class(schema_code: str) -> Optional[str]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | examples/marker_modal_deployment.py | 41 | # Check if models exist in cache | COMMENT |
| LOW | examples/marker_modal_deployment.py | 207 | # Read file content | COMMENT |
| LOW | marker/providers/spreadsheet.py | 95 | # Check if this cell is the start of a merged range | STRING |
| LOW | marker/providers/registry.py | 76 | # Check if there are any HTML tags | COMMENT |
| LOW | marker/schema/groups/page.py | 60 | # Check if RGB, convert if needed | COMMENT |
| LOW | marker/processors/footnote.py | 25 | # Check if it is top-level | COMMENT |
| LOW | marker/processors/llm/llm_mathblock.py | 126 | # Check if the ratio of math blocks to additional blocks is high enough | STRING |
| LOW | marker/processors/llm/llm_table_merge.py | 297 | # Check if the number of rows is the same | STRING |
| LOW | marker/processors/llm/llm_table_merge.py | 302 | # Check if the number of columns is the same | STRING |
| LOW | marker/scripts/chunk_convert.sh | 5 | # Check if NUM_DEVICES is set | COMMENT |
| LOW | marker/scripts/extraction_app.py | 83 | # Check if this is a new file | STRING |
| LOW | marker/scripts/extraction_app.py | 196 | # Check if schema is provided before running | COMMENT |
| LOW | marker/scripts/common.py | 107 | # Check if this class inherits from BaseModel | COMMENT |
| LOW | marker/scripts/common.py | 129 | # Check if this field references another class | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/marker_modal_deployment.py | 9 | # Define the Modal app | COMMENT |
| MEDIUM | examples/marker_modal_deployment.py | 14 | # Define the container image with all dependencies | COMMENT |
| MEDIUM⚡ | examples/marker_modal_deployment.py | 30 | # Create a persistent volume for model caching | COMMENT |
| MEDIUM | marker/builders/structure.py | 68 | # Create a merged block | COMMENT |
| MEDIUM | marker/scripts/extraction_app.py | 80 | # Create a unique identifier for the current file | STRING |
| MEDIUM | marker/scripts/extraction_app.py | 109 | # Initialize schema variable | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | data/examples/markdown/thinkpython/thinkpython.md | 8598 | Figure [C.7](#page-237-1) shows the result. Each class is represented with a box that contains the name of the class, an | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | data/examples/json/multicolcnn.json | 1164 | "html": "<p block-type=\"Text\">We propose the use of dilated convolutions as an attractive alternative to the | CODE |
| MEDIUM | data/examples/json/multicolcnn.json | 1865 | "html": "<p block-type=\"Text\">Furthermore, we performed a set of experiments in which we varied the number o | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/marker_modal_deployment.py | 304 | # that you can use to test your deployment. It'll store the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 561 | import mesh tensorflow as mtf | COMMENT |
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 661 | # d model = model hidden size (scalar). | COMMENT |
| LOW | …/examples/markdown/switch_transformers/switch_trans.md | 681 | # probability. | COMMENT |