SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.00800 · 2026

Generating Statistical Charts with Validation-Driven LLM Workflows

Blaž Zupan, Pavlin Poličar, Andraž Pevcin

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 1 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.00800.json · badge: /api/ran/2605.00800.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
pavlin-policar/llm-chart-generation canonical (classifier label)
classifier basis: census
15 ran · 1 no recorded run
FunctionStatusWhere it lives
after_think Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/add_question_types.py
code served (permissive licence) · get_code("be718bc45dd7129d")
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 tuple, 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.

import torch
import numpy as np

def after_think(text: str):
    athink = text.split('</think>', 1)[1] if '<think>' in text else text
    think = text.split('</think>', 1)[0] if '<think>' in text else None
    return (think, athink)

# Test case 1: text with think tags
text_with_think = "<think>This is my reasoning</think>This is my answer"

# Test case 2: text without think tags
text_without_think = "This is just plain text with no tags"

# Test case 3: text with think tags but empty after
text_with_think_empty = "<think>reasoning</think>"

ARGS = {
    "text": text_with_think
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
choose_code Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/render_chart_from_metadata.py
code served (permissive licence) · get_code("c3b08adda222c442")
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 torch

ARGS = {
    'entry': {
        'graph': {
            'code': 'graph_code_string'
        },
        'images': [
            {
                'code': 'first_image_code'
            },
            {
                'code': 'last_image_code'
            }
        ]
    },
    'code_source': 'graph'
}
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 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
clip_loss Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/model_scripts/0_train_vit_clip.py
code served (permissive licence) · get_code("89367cb0848f8519")
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 Tensor, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# img_f: image features tensor - needs to support:
#   - F.normalize(dim=-1)
#   - .size(0) to get batch size
#   - @ operator with txt_f.t()
#   - .device attribute
batch_size = 2
feature_dim = 4

img_f = torch.randn(batch_size, feature_dim)
txt_f = torch.randn(batch_size, feature_dim)
logit_scale = torch.tensor(100.0)

ARGS = {
    "img_f": img_f,
    "txt_f": txt_f,
    "logit_scale": logit_scale,
}
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 Tensor, 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
collate_multicrop Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/model_scripts/0_train_vit.py
code served (permissive licence) · get_code("588c8b6aeafc92dc")
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. 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
import torch.nn as nn

torch.manual_seed(0)

# The function expects batch to be a list of tuples where:
# - Each tuple is (crops, _)
# - crops is a sequence/list of tensors with length n_crops
# - The second element of the tuple is ignored

# Create a batch with 2 samples, each with 3 crops
# Each crop is a small tensor
batch = [
    (
        [
            torch.randn(2, 4),  # crop 0: shape (2, 4)
            torch.randn(2, 5),  # crop 1: shape (2, 5)
            torch.randn(2, 6),  # crop 2: shape (2, 6)
        ],
        0  # dummy label
    ),
    (
        [
            torch.randn(2, 4),  # crop 0: shape (2, 4)
            torch.randn(2, 5),  # crop 1: shape (2, 5)
            torch.randn(2, 6),  # crop 2: shape (2, 6)
        ],
        1  # dummy label
    ),
]

ARGS = {
    "batch": batch
}
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 list — a list output has no array shape of its own; none is 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
cosine_schedule Ran
ran, honoured the contract we drafted
pavlin-policar/llm-chart-generation/generation_pipeline/model_scripts/0_train_vit.py
code served (permissive licence) · get_code("58c569e50e886778")
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 float, 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 math

ARGS = {
    "base": 1.0,
    "final": 0.1,
    "step": 5,
    "total_steps": 10
}
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 float, 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
estimate_openai_image_tokens Ran
ran, honoured the contract we drafted
pavlin-policar/llm-chart-generation/generation_pipeline/evaluation_online.py
code served (permissive licence) · get_code("8068563543683978")
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 float, 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.

from PIL import Image
from io import BytesIO
import numpy as np

# Create a small test image in memory
img_array = np.random.randint(0, 256, (100, 150, 3), dtype=np.uint8)
img = Image.fromarray(img_array, mode='RGB')

# Convert image to bytes
img_buffer = BytesIO()
img.save(img_buffer, format='PNG')
img_bytes = img_buffer.getvalue()

ARGS = {
    'img_bytes': img_bytes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
estimate_tokens Ran
ran, honoured the contract we drafted
pavlin-policar/llm-chart-generation/generation_pipeline/evaluation_online.py
code served (permissive licence) · get_code("c06cfd129bafce2f")
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 torch

ARGS = {
    "text": "This is a sample text string for token estimation purposes. It contains enough characters to demonstrate the token counting functionality."
}
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 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
format_messages Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/evaluation_job.py
code served (permissive licence) · get_code("bf94a8cff30d8e3f")
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 tuple. 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
from PIL import Image
import numpy as np

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

# Create a simple test image and save it
def create_test_image(filename, size=(100, 100)):
    img_array = np.random.randint(0, 256, (size[0], size[1], 3), dtype=np.uint8)
    img = Image.fromarray(img_array)
    img.save(filename)
    return filename

# Create test images
image_path_1 = os.path.join(temp_dir, "chart_1.png")
image_path_2 = os.path.join(temp_dir, "chart_2.png")
create_test_image(image_path_1)
create_test_image(image_path_2)

# Construct messages list
messages = [
    {
        'dataset_description': 'Sales data from Q1 2024 showing regional performance metrics.',
        'question': {
            'question': 'What region had the highest sales?'
        },
        'image': 'chart_1.png'
    },
    {
        'dataset_description': 'Temperature trends across major cities in January.',
        'question': {
            'question': 'Which city had the lowest average temperature?'
        },
        'image': 'chart_2.png'
    }
]

ARGS = {
    'messages': messages,
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
format_messages_check Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/evaluation_job.py
code served (permissive licence) · get_code("d6460313c1aa38a0")
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 2, 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.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "messages": [
        {
            "dataset_description": "A dataset containing bar chart data about student performance across different subjects.",
            "question": {
                "question": "What is the height of the bar for Mathematics?",
                "answer": "85"
            },
            "test_answer": "84"
        },
        {
            "dataset_description": "A dataset containing line chart data about temperature trends over months.",
            "question": {
                "question": "What was the temperature in July?",
                "answer": "28 degrees Celsius"
            },
            "test_answer": "29 degrees Celsius"
        }
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
load_metadata_entry Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/render_chart_from_metadata.py
code served (permissive licence) · get_code("bd1a1c07fd76847e")
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 tuple, 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.

import json
import tempfile
from pathlib import Path

# Create a temporary metadata file with test data
temp_dir = tempfile.TemporaryDirectory()
metadata_path = Path(temp_dir.name) / "metadata.jsonl"

# Write test metadata entries
test_entries = [
    {"id": "graph_001", "data": "entry_0"},
    {"id": "graph_002", "data": "entry_1"},
    {"id": "graph_003", "data": "entry_2"},
]

with metadata_path.open('w', encoding='utf-8') as f:
    for entry in test_entries:
        f.write(json.dumps(entry) + '\n')

# Define arguments for the function
ARGS = {
    'metadata_path': metadata_path,
    'graph_id': 'graph_002',
    'index': 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 tuple, ndim 1, dtype family float — a tuple 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
make_collate Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/model_scripts/1_train_connector.py
code served (permissive licence) · get_code("20eab8fdd8345186")
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 function. 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
import torch.nn as nn
from PIL import Image
import numpy as np

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 1

class MockProcessor:
    def __call__(self, images, return_tensors='pt'):
        batch_size = len(images)
        pixel_values = torch.randn(batch_size, 3, 224, 224)
        return {'pixel_values': pixel_values}

tokenizer = MockTokenizer()
processor = MockProcessor()

ARGS = {
    'tokenizer': tokenizer,
    'processor': processor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
parse_column_overrides Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/render_chart_from_metadata.py
code served (permissive licence) · get_code("af5d4f21e00f8ae1")
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 torch
import numpy as np

# The function parse_column_overrides takes a list of strings
# Each string should be in format "RAW=RENAMED"
# The function parses them and returns a dict mapping raw names to renamed names

ARGS = {
    "items": [
        "old_column=new_column",
        "feature_1=renamed_feature_1",
        "x=y",
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
pick_random_dataset_id Ran
ran, honoured the contract we drafted
pavlin-policar/llm-chart-generation/generation_pipeline/generation_job.py
code served (permissive licence) · get_code("59b4251a6a836a43")
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 numpy as np

# Create a mock RNG object that has a choice method
class MockRNG:
    def __init__(self, seed=0):
        self.rng = np.random.RandomState(seed)
    
    def choice(self, arr):
        return self.rng.choice(arr)

# Create sample dataset metadata matching the structure expected
datasets = [
    {
        'did': '1',
        'NumberOfInstances': '250',
        'NumberOfFeatures': '10'
    },
    {
        'did': '2',
        'NumberOfInstances': '500',
        'NumberOfFeatures': '50'
    },
    {
        'did': '3',
        'NumberOfInstances': '1000',
        'NumberOfFeatures': '100'
    },
    {
        'did': '4',
        'NumberOfInstances': '150',
        'NumberOfFeatures': '20'
    },
    {
        'did': '5',
        'NumberOfInstances': '2000',
        'NumberOfFeatures': '500'
    }
]

rng = MockRNG(seed=42)

ARGS = {
    'datasets': datasets,
    'rng': rng,
    'min_instances': 200,
    'max_features': 2000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
quality_to_dict Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/generation_job.py
code served (permissive licence) · get_code("1ee65a1cee1cbdf3")
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 torch
import numpy as np

def quality_to_dict(d):
    """
    Convert OpenML qualities into a dict.

    With the Python client:
    - list_datasets already returns qualities as flat keys (e.g. 'NumberOfInstances')
      rather than a list of {'name','value'} dicts.
    - If the input is from get_dataset(...).qualities it is also already a dict.

    This function keeps compatibility and just returns a dict view.
    """
    if d is None:
        return {}
    if isinstance(d, dict):
        return d
    return {}

# Test case 1: None input
test_none = None

# Test case 2: dict input with sample OpenML qualities
test_dict = {
    'NumberOfInstances': 1000,
    'NumberOfFeatures': 42,
    'NumberOfClasses': 5,
    'MajorityClassSize': 500
}

# The function accepts a single parameter 'd' which can be None or a dict
ARGS = {
    'd': test_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
split_think Ran
ran; our contract draft was wrong, not the code
pavlin-policar/llm-chart-generation/generation_pipeline/evaluation_job.py
code served (permissive licence) · get_code("3adcca8a82aff44c")
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 tuple, 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.

import torch

torch.manual_seed(0)

# The function takes a single parameter: text (str)
# It checks if '</think>' is in the text and splits accordingly
# Returns a tuple of (think, athink) or (None, text)

ARGS = {
    'text': '<think>This is the reasoning part</think>This is the answer part'
}
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 tuple, ndim 1, dtype family float — a tuple 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
canonicalize_chart_type Not yet run
unverified (harvested, no recorded run)
pavlin-policar/llm-chart-generation/dataset-viewer/local/chart_types.py
code served (permissive licence) · get_code("7d9d4bbb77408baa")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 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 16 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

Generating diverse, readable statistical charts from tabular data remains challenging for LLMs, as many failures become apparent after rendering and are not detectable from data or code alone. Existing chart datasets also rarely provide fully aligned artifacts, such as executable code, dataset context, and question-answer pairs. We present a structured LLM-based workflow that decomposes chart generation into dataset screening, plot proposal, code synthesis, rendering, validation-driven refinement, description generation, and question-answer generation. By incorporating renderedoutput validation, the workflow addresses visualization-specific failure modes such as readability and semantic mismatch. It treats chart generation as an inspectable process rather than a one-shot promptto-code task, retaining each chart with its code, dataset context, description, and question-answer pairs. Applied to UCI datasets, the workflow produces 1,500 charts from 74 datasets, spanning 24 chart families and paired with 30,003 question-answer pairs. We evaluate 16 multimodal LLMs (MLLMs) on these chart-question pairs. The results show that chart-syntax questions are nearly saturated, while value extraction, comparison, and reasoning remain more challenging, illustrating the workflow's utility for diagnostic studies of chart-grounded multimodal reasoning.

For agents

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

get_harvested_code_for_paper("2605.00800")
get_code_for_paper("2605.00800")
have("2605.00800")

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

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

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

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

Connect an agent — have() is free.