SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.03903 · 2026

CC-OCR v2: Fine-Grained Attribution of LMM Failures in Real-World Visual Document Understanding

Maosong Sun, Dayiheng Liu, Bing Zhao, Zhenghao Liu, Shuai Bai, Zulong Chen, Zhipeng Xu, Jun Tang, Jianqiang Wan, Zhibo Yang, Qing Liu, Chunyi Peng, and 3 more

arXiv · PDF

Code that ran

15 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 6 violated it and 0 have no contract verdict; 9 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.03903.json · badge: /api/ran/2605.03903.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
eioss/CC-OCR-V2 canonical (classifier label)
classifier basis: census
15 ran · 5 no recorded run
FunctionStatusWhere it lives
download_file Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_funsd.py
code served (permissive licence) · get_code("d18aa3036d3fc5e9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

# Create a temporary directory and file path for testing
temp_dir = tempfile.mkdtemp()
target_path = os.path.join(temp_dir, "test_file.txt")

# Define arguments for download_file
ARGS = {
    "url": "https://example.com/file.txt",
    "target_path": target_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests, urllib3 — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
download_gdrive_file Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
eioss/CC-OCR-V2/datasets_process/process_poie.py
code served (permissive licence) · get_code("670ab7d42b401f10")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile

# Create a temporary directory for the target path
temp_dir = tempfile.gettempdir()
target_file = os.path.join(temp_dir, "test_download.bin")

# Construct arguments for download_gdrive_file
ARGS = {
    "file_id": "1234567890abcdefghijklmnopqrstuvwxyz",
    "target_path": target_file,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gdown, requests, urllib3 — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_archive Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_cell.py
code served (permissive licence) · get_code("98691b6e1f5015c0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import zipfile
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a simple zip archive for testing
test_zip_path = os.path.join(temp_dir, "test_archive.zip")
with zipfile.ZipFile(test_zip_path, 'w') as zf:
    zf.writestr("test_file.txt", "test content")

# Create extraction destination
extract_to_path = os.path.join(temp_dir, "extracted")

ARGS = {
    "archive_path": test_zip_path,
    "extract_to": extract_to_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_image_filenames Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_cell.py
code served (permissive licence) · get_code("4890e4c321389b25")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from typing import Dict, Set

def extract_image_filenames(label_data: Dict) -> Set[str]:
    """Extract all image filenames from label.json"""
    image_filenames = set()
    for key in label_data.keys():
        if any((key.lower().endswith(ext.lower()) for ext in ['.jpg', '.jpeg', '.png', '.bmp'])):
            image_filenames.add(key)
    return image_filenames

ARGS = {
    'label_data': {
        'image1.jpg': {'bbox': [10, 20, 30, 40]},
        'image2.PNG': {'bbox': [5, 15, 25, 35]},
        'image3.jpeg': {'label': 'cat'},
        'image4.bmp': {'label': 'dog'},
        'metadata.json': {'version': 1},
        'config.txt': {'setting': 'value'}
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_images_from_parquet Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_nanonets_kie.py
code served (permissive licence) · get_code("a13983023805e352")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import pandas as pd
import base64
from io import BytesIO
from PIL import Image

# Create a temporary directory for output
temp_output_dir = tempfile.mkdtemp()

# Create a temporary parquet file with image data
temp_parquet_dir = tempfile.mkdtemp()
parquet_file = os.path.join(temp_parquet_dir, "test_images.parquet")

# Create sample image data
def create_sample_image_bytes():
    """Create a small sample image as bytes"""
    img = Image.new('RGB', (10, 10), color='red')
    img_bytes = BytesIO()
    img.save(img_bytes, format='JPEG')
    return img_bytes.getvalue()

# Create sample base64 encoded image
def create_sample_base64_image():
    """Create a small sample image as base64 string"""
    img = Image.new('RGB', (10, 10), color='blue')
    img_bytes = BytesIO()
    img.save(img_bytes, format='JPEG')
    img_bytes.seek(0)
    encoded = base64.b64encode(img_bytes.read()).decode('utf-8')
    return f"data:image/jpeg;base64,{encoded}"

# Create dataframe with image data
df = pd.DataFrame({
    'id': [0, 1, 2],
    'image': [
        create_sample_image_bytes(),
        create_sample_image_bytes(),
        create_sample_base64_image()
    ]
})

# Save to parquet
df.to_parquet(parquet_file)

ARGS = {
    'parquet_path': parquet_file,
    'output_dir': temp_output_dir,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_images_zip Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_sibr.py
code served (permissive licence) · get_code("e7964453b0bde023")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import zipfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a valid zip file with some dummy content
zip_path = os.path.join(temp_dir, "images.zip")
extract_to = os.path.join(temp_dir, "extracted")

# Create a minimal valid zip file
with zipfile.ZipFile(zip_path, 'w') as zf:
    zf.writestr("image1.txt", "dummy image data 1")
    zf.writestr("image2.txt", "dummy image data 2")
    zf.writestr("subdir/image3.txt", "dummy image data 3")

# Define arguments for the function
ARGS = {
    "zip_path": zip_path,
    "extract_to": extract_to
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_and_extract_archives Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_funsd.py
code served (permissive licence) · get_code("0ba5dc84418ccf8c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import zipfile
from pathlib import Path

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a simple test zip file
test_zip_path = os.path.join(temp_dir, "test_archive.zip")
with zipfile.ZipFile(test_zip_path, 'w') as zf:
    zf.writestr("test_file.txt", "test content")

# The directory parameter should point to a directory containing archives
# or where we want to search for archives
test_directory = temp_dir

ARGS = {
    "directory": test_directory
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_and_extract_archives Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_poie.py
code served (permissive licence) · get_code("350f7dc40d87cb88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import zipfile
from pathlib import Path

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a test zip archive
test_zip_path = os.path.join(temp_dir, "test_archive.zip")
with zipfile.ZipFile(test_zip_path, 'w') as zf:
    zf.writestr("test_file.txt", "test content")

# Create a subdirectory with archives to test recursive search
archive_subdir = os.path.join(temp_dir, "archives")
os.makedirs(archive_subdir, exist_ok=True)

test_zip_path_2 = os.path.join(archive_subdir, "nested_archive.zip")
with zipfile.ZipFile(test_zip_path_2, 'w') as zf:
    zf.writestr("nested_file.txt", "nested content")

# Define arguments for find_and_extract_archives
ARGS = {
    "directory": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_images_zip Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_sibr.py
code served (permissive licence) · get_code("1fca150d4fb436ea")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path
import os

# Create a temporary directory structure with an images.zip file
temp_dir = tempfile.mkdtemp()
subdir = os.path.join(temp_dir, 'subdir')
os.makedirs(subdir, exist_ok=True)

# Create a dummy images.zip file
zip_path = os.path.join(subdir, 'images.zip')
with open(zip_path, 'w') as f:
    f.write('dummy zip content')

ARGS = {
    'sibr_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_parquet_files Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_nanonets_kie.py
code served (permissive licence) · get_code("f3d2ead79164c378")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile
import os

# Create a temporary directory with some parquet files
temp_dir = tempfile.mkdtemp()
parquet_file_1 = os.path.join(temp_dir, "data1.parquet")
parquet_file_2 = os.path.join(temp_dir, "subdir", "data2.parquet")

# Create subdirectory
os.makedirs(os.path.dirname(parquet_file_2), exist_ok=True)

# Create dummy parquet files (empty files will work for this function)
Path(parquet_file_1).touch()
Path(parquet_file_2).touch()

ARGS = {
    "dataset_dir": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_pdf_file Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_deepform.py
code served (permissive licence) · get_code("3f558876e0aa525a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
from pathlib import Path

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create some test PDF files
pdf_dir = os.path.join(temp_dir, "pdfs")
os.makedirs(pdf_dir, exist_ok=True)

# Create a test PDF file that matches the image stem
test_pdf_path = os.path.join(pdf_dir, "document.pdf")
Path(test_pdf_path).touch()

# Create another PDF with similar name
similar_pdf_path = os.path.join(pdf_dir, "document_v2.pdf")
Path(similar_pdf_path).touch()

# Define arguments for the function
ARGS = {
    "image_filename": "document.png",
    "search_dir": pdf_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_pdf_file Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_docile.py
code served (permissive licence) · get_code("2d9c80fa434a258e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory structure with some PDF files
temp_dir = tempfile.mkdtemp()
search_dir = Path(temp_dir)

# Create some test PDF files
pdf_file_1 = search_dir / "document.pdf"
pdf_file_1.touch()

pdf_file_2 = search_dir / "report.pdf"
pdf_file_2.touch()

# Create a subdirectory with another PDF
subdir = search_dir / "subdir"
subdir.mkdir()
pdf_file_3 = subdir / "research.pdf"
pdf_file_3.touch()

# Create a file with mixed case
pdf_file_4 = search_dir / "MyDocument.pdf"
pdf_file_4.touch()

ARGS = {
    "pdf_name": "document",
    "search_dir": str(search_dir),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_label_json Ran
ran; our contract draft was wrong, not the code
eioss/CC-OCR-V2/datasets_process/process_cell.py
code served (permissive licence) · get_code("ba47656355c304bb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary directory and a valid label.json file
temp_dir = tempfile.mkdtemp()
label_file_path = os.path.join(temp_dir, "label.json")

# Write a valid JSON file
label_data = {
    "labels": ["cat", "dog", "bird"],
    "counts": [10, 20, 15],
    "metadata": {
        "version": "1.0",
        "created": "2024-01-01"
    }
}

with open(label_file_path, 'w', encoding='utf-8') as f:
    json.dump(label_data, f)

ARGS = {
    "label_path": label_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pdf_to_images Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
eioss/CC-OCR-V2/datasets_process/process_docile.py
code served (permissive licence) · get_code("7d7bc58a6b0eecac")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
from PIL import Image

# Create a temporary directory for output
temp_output_dir = tempfile.mkdtemp()

# Create a minimal valid PDF file for testing
temp_pdf_path = os.path.join(tempfile.gettempdir(), "test_document.pdf")

# Create a simple PDF using PIL and minimal PDF structure
# Since we want to avoid external dependencies, we'll create a minimal PDF
try:
    from reportlab.pdfgen import canvas
    from reportlab.lib.pagesizes import letter
    c = canvas.Canvas(temp_pdf_path, pagesize=letter)
    c.drawString(100, 750, "Test PDF Page 1")
    c.showPage()
    c.drawString(100, 750, "Test PDF Page 2")
    c.showPage()
    c.save()
except ImportError:
    # Fallback: create a minimal valid PDF manually
    pdf_content = b"""%PDF-1.4
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R >>
endobj
4 0 obj
<< /Length 44 >>
stream
BT
/F1 12 Tf
100 700 Td
(Test Page) Tj
ET
endstream
endobj
xref
0 5
0000000000 65535 f 
0000000009 00000 n 
0000000058 00000 n 
0000000115 00000 n 
0000000214 00000 n 
trailer
<< /Size 5 /Root 1 0 R >>
startxref
308
%%EOF
"""
    with open(temp_pdf_path, 'wb') as f:
        f.write(pdf_content)

ARGS = {
    "pdf_path": temp_pdf_path,
    "output_dir": temp_output_dir,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, pdf2image, reportlab — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_command Ran
ran, violated the contract we drafted
eioss/CC-OCR-V2/datasets_process/process_sibr.py
code served (permissive licence) · get_code("5a2559ab82d74b9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import subprocess
from typing import Dict, List, Set, Optional

def run_command(cmd: List[str], cwd: Optional[str]=None) -> bool:
    """Run command and return success status"""
    try:
        print(f"Executing command: {' '.join(cmd)}")
        result = subprocess.run(cmd, cwd=cwd, check=True, capture_output=True, text=True)
        if result.stdout:
            print(result.stdout)
        return True
    except subprocess.CalledProcessError as e:
        print(f'Command failed: {e}')
        if e.stderr:
            print(f'Error output: {e.stderr}')
        return False
    except Exception as e:
        print(f'Error executing command: {e}')
        return False


# Setup code
ARGS = {
    "cmd": ["echo", "Hello, World!"],
    "cwd": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
download_huggingface_dataset Not yet run
unverified (harvested, no recorded run)
eioss/CC-OCR-V2/datasets_process/process_nanonets_kie.py
code served (permissive licence) · get_code("30065dd0ad9b7ba0")
How it ran

no invocation recorded.

download_huggingface_dataset Not yet run
unverified (harvested, no recorded run)
eioss/CC-OCR-V2/datasets_process/process_cord.py
code served (permissive licence) · get_code("a5112d4e98b61cbc")
How it ran

no invocation recorded.

download_huggingface_tsv Not yet run
unverified (harvested, no recorded run)
eioss/CC-OCR-V2/datasets_process/process_ephoie.py
code served (permissive licence) · get_code("07b4febfa68aee51")
How it ran

no invocation recorded.

extract_images_from_parquet Not yet run
unverified (harvested, no recorded run)
eioss/CC-OCR-V2/datasets_process/process_cord.py
code served (permissive licence) · get_code("cfe0050f34d6c16d")
How it ran

no invocation recorded.

extract_images_from_tsv Not yet run
unverified (harvested, no recorded run)
eioss/CC-OCR-V2/datasets_process/process_ephoie.py
code served (permissive licence) · get_code("ab8b09f42c6e3905")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 20 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent Large Multimodal Models (LMMs) have achieved remarkable progress on OCR-centric document understanding and processing tasks. Existing benchmarks primarily evaluate LMMs across diverse tasks to reflect practical document-processing workflows or analyze how document characteristics influence model performance. However, they provide limited insight into the reliability of LMMs under real-world document acquisition conditions, where factors such as lighting, screen displays, imaging quality, and capture methods can substantially affect performance. To bridge this gap, we present CC-OCR v2, a comprehensive benchmark for attributing * indicates project leader. † indicates corresponding author.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.03903")
get_code_for_paper("2605.03903")
have("2605.03903")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.03903.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.03903.svg)](https://syntology.ai/paper/2605.03903)

Connect an agent — have() is free.