| autodetect_refs_col |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/expand-refs-attach-dois.py code served (permissive licence) · get_code("9030765a631afe83") How it ranRan 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 pandas as pd
# Create a simple DataFrame with a references column
df = pd.DataFrame({
'Name': ['Alice', 'Bob', 'Charlie'],
'Reference': ['Ref1', 'Ref2', 'Ref3'],
'Value': [1, 2, 3]
})
# Test case 1: preferred column exists
preferred = 'Reference'
ARGS = {
'df': df,
'preferred': preferred
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — 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
|
| build_user_prompt |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/context_injected_doc_qa.py code served (permissive licence) · get_code("4711d8b4405f7c5c") How it ranRan 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
import numpy as np
# Define the arguments for build_user_prompt
pdf_content = """
Title: Deep Learning for Natural Language Processing
Authors: Jane Smith, John Doe
Abstract: This paper presents a novel approach to NLP using transformer architectures.
1. Introduction
Natural Language Processing (NLP) has seen significant advances in recent years.
The introduction of attention mechanisms has revolutionized the field.
2. Methods
We employ a BERT-based model with fine-tuning on domain-specific data.
Our model achieves 94.2% accuracy on the benchmark dataset.
Table 1: Performance Metrics
Model | Accuracy | F1-Score | Precision
BERT | 94.2% | 0.938 | 0.945
RoBERTa | 95.1% | 0.948 | 0.952
3. Results
The results demonstrate the effectiveness of our approach.
We observe improvements across all metrics compared to baseline models.
4. Conclusion
Our work provides new insights into transformer-based NLP systems.
Future work will explore multi-lingual applications.
"""
nl_query_detailed = """
Extract the following information from the scientific article:
1. List all authors mentioned
2. What is the main model architecture used?
3. Extract the performance metrics table and present it as a formatted list with model name, accuracy, F1-score, and precision
4. What are the main contributions claimed in the abstract?
Please format the answer as a structured JSON object with keys: authors, model_architecture, performance_metrics, contributions
"""
ARGS = {
"pdf_content": pdf_content,
"nl_query_detailed": nl_query_detailed,
}
- 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 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
|
| classify_system |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/eval_deplot_rms/eval_rms_all_queries.py code served (permissive licence) · get_code("9daa84b5bf5a9ade") How it ranRan 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
def classify_system(filename: str) -> dict:
"""Map a results_*.csv filename to setting metadata."""
base = os.path.basename(filename)
if not base.endswith('.csv'):
raise ValueError(f'Not a CSV file: {base}')
stem = base[:-4]
if not stem.startswith('results_'):
raise ValueError(f"Unexpected results file name (expected 'results_*.csv'): {base}")
label = stem[len('results_'):]
if label.lower() == 'sparql':
return {'system_name': 'SPARQL', 'system_label': label, 'setting_major': 1, 'setting_id': '1', 'variant': 'symbolic', 'is_gold': True}
if label.startswith('neurosymbolic_'):
model_id = label[len('neurosymbolic_'):]
proprietary_models = {'chatgpt5-1', 'claude-sonnet-4_5', 'gemini3-pro'}
if model_id in proprietary_models:
setting_id = '3.1'
variant = 'neurosym_proprietary'
else:
setting_id = '3.2'
variant = 'neurosym_open'
return {'system_name': model_id, 'system_label': label, 'setting_major': 3, 'setting_id': setting_id, 'variant': variant, 'is_gold': False}
proprietary_models = {'chatgpt5-1', 'claude-sonnet-4_5', 'gemini3-pro'}
if label in proprietary_models:
return {'system_name': label, 'system_label': label, 'setting_major': 2, 'setting_id': '2.1', 'variant': 'neural_proprietary', 'is_gold': False}
if label.startswith('rag_'):
model_id = label[len('rag_'):]
return {'system_name': model_id, 'system_label': label, 'setting_major': 2, 'setting_id': '2.2b', 'variant': 'neural_open_rag', 'is_gold': False}
return {'system_name': label, 'system_label': label, 'setting_major': 2, 'setting_id': '2.2a', 'variant': 'neural_open_context', 'is_gold': False}
with tempfile.TemporaryDirectory() as tmpdir:
test_filename = os.path.join(tmpdir, 'results_sparql.csv')
with open(test_filename, 'w') as f:
f.write('dummy')
ARGS = {
'filename': test_filename
}
- 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
|
| df_to_deplot_markdown |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/eval_deplot_rms/eval_rms_all_queries.py code served (permissive licence) · get_code("1b25004cfed11298") How it ranRan 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 pandas as pd
import numpy as np
# Create a simple DataFrame with various data types and some NaN values
df = pd.DataFrame({
'Name': ['Alice', 'Bob', np.nan, 'David'],
'Age': [25, 30, 28, np.nan],
'Score': [95.5, 87.3, 92.1, 88.9],
'Grade': ['A', 'B', 'A', 'B']
})
ARGS = {
'df': df
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — 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_actual_column |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/convert_to_orkg_csv.py code served (permissive licence) · get_code("9e35f9df64bb485a") How it ranRan 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 re
def _norm_header(s: str) -> str:
s = s or ''
s = s.replace('\ufeff', '').replace('\u200b', '').replace('\u200c', '').replace('\u200d', '')
s = s.replace('\xa0', ' ')
s = re.sub('\\s+', ' ', s).strip().lower()
return s
def _tokens(s: str):
return [t for t in re.split('[^a-z0-9]+', _norm_header(s)) if t]
def find_actual_column(df_cols, candidates):
norm_map = {_norm_header(c): c for c in df_cols}
for cand in candidates:
nc = _norm_header(cand)
if nc in norm_map:
return norm_map[nc]
cand_tokens_list = [(cand, _tokens(cand)) for cand in candidates]
cand_tokens_list = [(cand, toks) for cand, toks in cand_tokens_list if len(toks) >= 2]
for cand, cand_toks in cand_tokens_list:
for k_norm, orig in norm_map.items():
hdr_toks = set(_tokens(orig))
if all((t in hdr_toks for t in cand_toks)):
return orig
return None
# Setup code
df_cols = [
"First Name",
"Last Name",
"Email Address",
"Phone Number"
]
candidates = [
"first name",
"given_name",
"email addr"
]
ARGS = {
"df_cols": df_cols,
"candidates": candidates
}
- 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
|
| get_summary |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/pdf_extractor.py code served (permissive licence) · get_code("3457963ab426d87b") How it ranRan 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
import numpy as np
# Construct a valid results dictionary with the structure expected by get_summary
results = {
'root_path': '/home/user/papers',
'categories': {
'machine_learning': {
'papers': {
'paper_001': {
'pdf_files': {
'main.pdf': {
'pages': [
{'content': 'Page 1 content', 'page_num': 1},
{'content': 'Page 2 content', 'page_num': 2},
]
},
'appendix.pdf': {
'pages': [
{'content': 'Appendix page 1', 'page_num': 1},
]
}
}
},
'paper_002': {
'pdf_files': {
'research.pdf': {
'pages': [
{'content': 'Research page 1', 'page_num': 1},
{'content': 'Research page 2', 'page_num': 2},
{'content': 'Research page 3', 'page_num': 3},
]
}
}
}
}
},
'computer_vision': {
'papers': {
'paper_003': {
'pdf_files': {
'vision.pdf': {
'pages': [
{'content': 'Vision page 1', 'page_num': 1},
]
}
}
}
}
}
}
}
ARGS = {
'results': results
}
- 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 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
|
| norm |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/resolve_refs_from_txt_to_doi.py code served (permissive licence) · get_code("61140fc2c019c028") How it ranRan 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 re
def norm(s: str) -> str:
s = (s or '').lower().strip()
s = re.sub('\\s+', ' ', s)
return s
ARGS = {
's': 'Hello WORLD test'
}
- 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
|
| norm_punct |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/resolve_refs_from_txt_to_doi.py code served (permissive licence) · get_code("8c4ffb3d3dfd30c3") How it ranRan 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 re
def norm(s: str) -> str:
s = (s or '').lower().strip()
s = re.sub('\\s+', ' ', s)
return s
def norm_punct(s: str) -> str:
s = norm(s)
s = re.sub('[^\\w\\s&]', ' ', s)
s = re.sub('\\s+', ' ', s)
return s
ARGS = {
"s": "Hello, World! This is a TEST string."
}
- 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
|
| normalize_molecule |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/convert_to_orkg_csv.py code served (permissive licence) · get_code("059467038b21b3f5") How it ranRan 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 re
def normalize_molecule(value: str) -> str:
s = (str(value) or '').strip()
if not s:
return ''
s = re.sub('\\s+', ' ', s)
m = re.search('\\bplasma\\b', s, flags=re.IGNORECASE)
if m:
base = s[:m.start()].strip()
base_compact = re.sub('\\s+', '', base)
return f'{base_compact} plasma'
return re.sub('\\s+', '', s)
ARGS = {
'value': 'sodium chloride PLASMA solution'
}
- 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
|
| only_digits |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/resolve_refs_from_txt_to_doi.py code served (permissive licence) · get_code("d319790d55c2975a") How it ranRan 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 re
def only_digits(s: str) -> str:
return re.sub('\\D+', '', s or '')
ARGS = {
's': 'abc123def456ghi'
}
- 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
|
| parse_refs_cell |
Ran ran, honoured the contract we drafted |
sciknoworg/ald-ale-orkg-review/table-to-csv/expand-refs-attach-dois.py code served (permissive licence) · get_code("3b9ac68abd474fe2") How it ranRan 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 int; 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 re
from typing import List, Dict, Optional
# The function parse_refs_cell takes a single parameter: val
# Looking at the function body, val is expected to be Optional[str]
# It processes string input containing references in various formats
ARGS = {
"val": "[1; 2-4, 6]"
}
- 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 int — 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
|
| read_csv_any |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/table-to-csv/expand-refs-attach-dois.py code served (permissive licence) · get_code("a15c5edd87d294dd") How it ranRan 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 DataFrame. 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 pandas as pd
# Create a temporary CSV file with UTF-8 encoding
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test.csv"
# Write a simple CSV file
df = pd.DataFrame({
'col1': [1, 2, 3],
'col2': ['a', 'b', 'c']
})
df.to_csv(temp_path, index=False, encoding='utf-8')
ARGS = {
'path': temp_path,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
|
| read_csv_sample |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/nl_query_generator_csv_onetable.py code served (permissive licence) · get_code("ebb0b27ef76bc4d9") How it ranRan 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 csv
from pathlib import Path
import tempfile
# Create a temporary CSV file for testing
temp_dir = Path(tempfile.gettempdir())
temp_csv = temp_dir / "test_sample.csv"
# Write some test data to the CSV file
csv_data = [
["name", "age", "city"],
["Alice", "30", "New York"],
["Bob", "25", "Los Angeles"],
["Charlie", "35", "Chicago"],
["Diana", "28", "Houston"],
["Eve", "32", "Phoenix"],
["Frank", "29", "Philadelphia"]
]
with temp_csv.open('w', encoding='utf-8', newline='') as f:
writer = csv.writer(f)
writer.writerows(csv_data)
ARGS = {
'path': temp_csv,
'max_rows': 5
}
- 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
|
| read_metadata |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/nl_query_generator_csv_onetable.py code served (permissive licence) · get_code("e240e56048532d2e") How it ranRan 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
from pathlib import Path
import tempfile
import os
# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
# Create a valid JSON file
valid_json_path = Path(temp_dir) / "valid.json"
valid_json_path.write_text(json.dumps({"key": "value", "number": 42}), encoding='utf-8')
# Create a path to a non-existent file
nonexistent_path = Path(temp_dir) / "nonexistent.json"
# Create a path to a directory (not a file)
dir_path = Path(temp_dir) / "subdir"
dir_path.mkdir()
ARGS = {
"path": valid_json_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
|
| read_text |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/nl_query_generator_csv_onetable.py code served (permissive licence) · get_code("a1d9b2a4ec83505a") How it ranRan 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 file with some text content
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8') as f:
f.write('Hello, World!')
temp_file_path = Path(f.name)
ARGS = {
'path': temp_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 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
|
| read_text_file |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/neurosymbolic_table_qa.py code served (permissive licence) · get_code("0021168124eb1741") How it ranRan 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 file with some test content
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8') as f:
f.write('Hello, World!\nThis is a test file.')
temp_file_path = Path(f.name)
ARGS = {
'path': temp_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 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
|
| sanitize_model_name |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/context_injected_doc_qa.py code served (permissive licence) · get_code("5a027a1ce00d4753") How it ranRan 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 re
def sanitize_model_name(model: str) -> str:
"""
Sanitize model name for use in file names.
Keeps letters, digits, dot, dash, underscore; replaces others with '_'.
"""
return re.sub('[^A-Za-z0-9_.-]+', '_', model)
ARGS = {
"model": "bert-base-uncased_v2.0"
}
- 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
|
| strip_markdown_code_fences |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/llm-experiments/context_injected_doc_qa.py code served (permissive licence) · get_code("107d077186aada09") How it ranRan 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 re
def strip_markdown_code_fences(text: str) -> str:
"""
Remove surrounding Markdown triple backtick fences (``` or ```csv, ```table, etc.)
from the given text, if present.
"""
if not text:
return text
s = text.strip()
fence_match = re.match('^```[a-zA-Z0-9_-]*\\s*\\n(.*?)(\\n```)?\\s*$', s, re.DOTALL)
if fence_match:
return fence_match.group(1).strip()
if s.startswith('```') and s.endswith('```'):
return s[3:-3].strip()
return s
ARGS = {
"text": "```python\nprint('hello world')\n```"
}
- 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
|
| table_number_accuracy |
Ran ran; our contract draft was wrong, not the code |
sciknoworg/ald-ale-orkg-review/eval_deplot_rms/deplot/metrics.py code served (permissive licence) · get_code("91070def17b663a9") How it ranRan 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 numpy as np
from scipy import optimize
# Define ARGS for table_number_accuracy function
ARGS = {
'targets': [
['Price | 100', 'Quantity | 5', 'Total | 500'],
['Value A | 42.5', 'Value B | 17.3']
],
'predictions': [
'Price | 99.5 | Quantity | 5.1 | Total | 505',
'Value A | 42.7 | Value B | 17.2'
]
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — 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
|
| table_number_accuracy_per_point |
Ran ran, honoured the contract we drafted |
sciknoworg/ald-ale-orkg-review/eval_deplot_rms/deplot/metrics.py code served (permissive licence) · get_code("27b884a7a5793c2a") How it ranRan 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.
import numpy as np
from scipy import optimize
def _get_relative_distance(target, prediction, theta=1.0):
"""Returns min(1, |target-prediction|/|target|)."""
if not target:
return int(not prediction)
distance = min(abs((target - prediction) / target), 1)
return distance if distance < theta else 1
def _table_numbers_match(target, prediction):
"""Calculates matching similarity between two tables following ChartQA."""
target_numbers = _get_table_numbers(target)
prediction_numbers = _get_table_numbers(prediction)
if not target_numbers and (not prediction_numbers):
return 1
if not target_numbers or not prediction_numbers:
return 0
max_len = max(len(target_numbers), len(prediction_numbers))
distance = []
for t in target_numbers:
distance.append([_get_relative_distance(t, p) for p in prediction_numbers])
cost_matrix = np.array(distance)
row_ind, col_ind = optimize.linear_sum_assignment(cost_matrix)
return 1 - cost_matrix[row_ind, col_ind].sum() / max_len
def _get_table_numbers(text):
numbers = []
for line in text.splitlines():
for part in line.split(' | '):
if part.strip():
try:
numbers.append(float(part))
except ValueError:
pass
return numbers
def table_number_accuracy_per_point(targets, predictions):
"""Calculates matching similarity between two tables following ChartQA.
Keeps only numbers and performas a linear matching using the relative error.
Args:
targets: ground truth text.
predictions: predicted text.
Returns:
A list of float numbers.
"""
all_points_scores = []
for p, targets in zip(predictions, targets):
all_points_scores.append(max((_table_numbers_match(t, p) for t in targets)))
return all_points_scores
# Create test data
# targets is a list of lists of strings (each inner list contains target texts)
targets = [
["Name | Value\nAlice | 10\nBob | 20"],
["Product | Sales\nA | 5.5\nB | 15.2"]
]
# predictions is a list of strings (one prediction per sample)
predictions = [
"Name | Value\nAlice | 10.5\nBob | 19",
"Product | Sales\nA | 5.4\nB | 15.3"
]
ARGS = {
"targets": targets,
"predictions": predictions
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — 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
|
| call_grobid |
Not yet run unverified (harvested, no recorded run) |
sciknoworg/ald-ale-orkg-review/table-to-csv/extract_tables_from_pdf.py code served (permissive licence) · get_code("c069c282f5bb39e2") How it ran |
| parse_facsimile_zones |
Not yet run unverified (harvested, no recorded run) |
sciknoworg/ald-ale-orkg-review/table-to-csv/extract_tables_from_pdf.py code served (permissive licence) · get_code("b547f99f1339a8a4") How it ran |
| run_mineru |
Not yet run unverified (harvested, no recorded run) |
sciknoworg/ald-ale-orkg-review/table-to-csv/extract_tables_with_mineru.py code served (permissive licence) · get_code("b0e30fbe309d3b5d") How it ran |