| bootstrap_interval |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/stats.py code served (permissive licence) · get_code("75eaf805c4700138") 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 Interval. 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
# Construct test data
values = [1.5, 2.3, 1.8, 2.1, 1.9, 2.4, 2.0, 1.7, 2.2, 2.5]
# Define ARGS dict with all parameters
ARGS = {
'values': values,
'n_boot': 1000,
'alpha': 0.05,
'seed': 42,
'statistic': np.mean
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Interval — a Interval output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Interval 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
|
| category_table |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/metrics.py code served (permissive licence) · get_code("e979091b7579c2dc") 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 pandas as pd
import numpy as np
# Create a sample DataFrame with the required columns
data = {
'system': ['system_A', 'system_A', 'system_A', 'system_B', 'system_B', 'system_B', 'system_C', 'system_C', 'system_C'],
'category': ['cat1', 'cat2', 'cat3', 'cat1', 'cat2', 'cat3', 'cat1', 'cat2', 'cat3'],
'correct': [1, 0, 1, 0, 1, 1, 1, 1, 0]
}
df = pd.DataFrame(data)
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 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
|
| cells |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/conversion.py code served (permissive licence) · get_code("59721fd3d0e46447") 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 torch
torch.manual_seed(0)
# The function 'cells' takes a single string parameter 'line'
# It strips whitespace, removes pipe characters from edges, splits by pipe,
# and strips whitespace from each resulting cell.
# A valid test case would be a markdown-style table row string.
line = " | cell1 | cell2 | cell3 | "
ARGS = {
"line": line
}
- 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, 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
|
| extract_figures |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/judge.py code served (permissive licence) · get_code("eabdc8dcec977c00") 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 re
from dataclasses import dataclass
_NUM_RE = re.compile('\n (?P<paren>\\()? # ( for a bracketed negative\n (?:\\(-\\)|-|−)? # (-) or a minus sign\n \\s*(?:₹|Rs\\.?|INR)?\\s* # currency marker\n # The grouped alternative REQUIRES a comma (`+`, not `*`). With `*` it\n # matched the leading 3 digits of an ungrouped number and stopped, so\n # "48964.89" parsed as 489 and "99999.99" split into two figures.\n (?P<num>\\d{1,3}(?:,\\d{2,3})+(?:\\.\\d+)?|\\d+(?:\\.\\d+)?)\n (?(paren)\\)) # closing ) only if it opened\n \\s*(?P<unit>crores?|lakhs?|thousands?|cr\\b|%)?\n ', re.IGNORECASE | re.VERBOSE)
_UNIT_SCALE = {'crore': 1.0, 'crores': 1.0, 'cr': 1.0, 'lakh': 0.01, 'lakhs': 0.01, 'thousand': 0.0001, 'thousands': 0.0001}
@dataclass
class Figure:
"""A number found in text, normalized to a comparable magnitude."""
raw: str
value: float
unit: str | None = None
def in_crore(self) -> float:
return self.value * _UNIT_SCALE.get((self.unit or 'crore').lower(), 1.0)
def extract_figures(text: str) -> list[Figure]:
"""Pull every number out of `text`, normalizing separators and sign."""
out: list[Figure] = []
for m in _NUM_RE.finditer(text or ''):
raw = m.group(0)
digits = m.group('num').replace(',', '')
try:
val = float(digits)
except ValueError:
continue
if m.group('paren') or raw.lstrip().startswith(('(-)', '-', '−')):
val = -val
unit = (m.group('unit') or '').lower() or None
if unit == '%':
unit = None
out.append(Figure(raw=raw.strip(), value=val, unit=unit))
return out
ARGS = {
'text': 'The company reported Rs. 1,500 crores in revenue and (250) lakhs in expenses. Sales increased by 15% to 5000 thousand units.'
}
- 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
|
| fig_cost_accuracy |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/plotting.py code served (permissive licence) · get_code("dbeeb6fa624202ce") 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 PosixPath. 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
from pathlib import Path
# Create a sample DataFrame with the required columns
df = pd.DataFrame({
'system': ['read', 'read_naive_grep', 'dense', 'bm25', 'hybrid', 'oracle'],
'correct': [True, True, False, True, True, True],
'cost_usd': [0.015, 0.012, 0.008, 0.010, 0.018, 0.020],
'latency_s': [2.5, 2.3, 1.8, 2.0, 3.1, 3.5],
})
# Add more rows to make groupby work properly
df = pd.concat([
df,
pd.DataFrame({
'system': ['read', 'read_naive_grep', 'dense', 'bm25', 'hybrid', 'oracle'],
'correct': [True, False, True, False, True, True],
'cost_usd': [0.016, 0.011, 0.009, 0.011, 0.017, 0.021],
'latency_s': [2.6, 2.2, 1.9, 2.1, 3.0, 3.6],
})
], ignore_index=True)
ARGS = {
'df': df,
'out': '/tmp/test_cost_accuracy.pdf',
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| fig_teaser |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/plotting.py code served (permissive licence) · get_code("43a536b7da47e192") 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 PosixPath. 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
from pathlib import Path
import tempfile
# Create a small DataFrame with the required columns for the function
df = pd.DataFrame([
{'system': 'read', 'correct': 1},
{'system': 'read', 'correct': 1},
{'system': 'read', 'correct': 0},
{'system': 'dense', 'correct': 1},
{'system': 'dense', 'correct': 0},
{'system': 'dense', 'correct': 0},
])
# Create a temporary directory for output
with tempfile.TemporaryDirectory() as tmpdir:
out_path = Path(tmpdir) / "teaser.pdf"
ARGS = {
'df': df,
'out': out_path,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| indian_group |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/judge.py code served (permissive licence) · get_code("ebabcfe74f022a2f") 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
# Analyze the function signature and body
# The function takes:
# - value: float - a numeric value to format
# - decimals: int (default=2) - number of decimal places
# The function uses:
# - value < 0 to check if negative
# - abs(), round() on value
# - divmod() to split into whole and fractional parts
# - String operations on the digits
# - No external objects or models are used
# Test cases covering different scenarios
ARGS = {
"value": 472397.46,
"decimals": 2,
}
- 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
|
| is_nil_marker |
Ran ran, violated the contract we drafted |
twospoon/READ/read_eval/conversion.py code served (permissive licence) · get_code("bdc014c1cc569d13") 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 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 re
NIL_MARKER_RE = re.compile('^\\**\\s*\\.{2,}\\s*\\**$')
def is_nil_marker(cell: str) -> bool:
return bool(NIL_MARKER_RE.match(cell))
# Test cases for nil markers:
# - ".." matches (minimal nil marker)
# - "..." matches (multiple dots)
# - "*..*" matches (stars around dots)
# - " .. " matches (spaces around dots)
# - "**...**" matches (multiple stars and dots with spaces)
# - "hello" does not match (regular text)
# - "." does not match (only one dot)
ARGS = {
"cell": "**..**"
}
- 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
|
| load_benchmark |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/runner.py code served (permissive licence) · get_code("ffbeca37f7514969") 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 json
import tempfile
from pathlib import Path
# Create a temporary file with valid benchmark data in JSONL format
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False, encoding='utf-8')
# Write valid benchmark rows
benchmark_rows = [
{"id": "q1", "question": "What is 2+2?", "category": "math"},
{"id": "q2", "question": "What is the capital of France?", "category": "geography"},
{"id": "q3", "question": "Who wrote Hamlet?", "category": "literature", "gold_answer": "Shakespeare"},
]
for row in benchmark_rows:
temp_file.write(json.dumps(row) + '\n')
temp_file.close()
ARGS = {
"path": temp_file.name,
}
- 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
|
| load_completed |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/runner.py code served (permissive licence) · get_code("c983f0619c95ada4") 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 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 json
import tempfile
from pathlib import Path
# Create a temporary file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl', encoding='utf-8')
temp_path = temp_file.name
# Write sample JSONL data
test_data = [
{'system': 'sys1', 'model': 'model_a', 'question_id': 'q1', 'seed': 42},
{'system': 'sys2', 'model': 'model_b', 'question_id': 'q2', 'seed': 0},
{'system': 'sys1', 'model': 'model_a', 'question_id': 'q3'}, # seed defaults to 0
{'system': 'sys3', 'model': 'model_c', 'question_id': 'q4', 'seed': 100, 'error_fatal': True}, # should be skipped
'', # empty line
'invalid json', # invalid json line
]
for line in test_data:
if line and line != 'invalid json':
if isinstance(line, dict):
temp_file.write(json.dumps(line) + '\n')
elif line == 'invalid json':
temp_file.write('not valid json\n')
else:
temp_file.write('\n')
temp_file.close()
ARGS = {
'path': temp_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 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
|
| load_results |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/metrics.py code served (permissive licence) · get_code("6d4808b78e1515fc") 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 json
from pathlib import Path
import tempfile
import pandas as pd
# Create a temporary file with append-only log entries
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl', encoding='utf-8')
temp_path = temp_file.name
# Write sample log entries
log_entries = [
{"system": "sys1", "model": "gpt2", "question_id": 1, "seed": 42, "correct": True, "scores": {"acc": 0.9}, "tool_summary": {"tools": ["calc"]}},
{"system": "sys1", "model": "gpt2", "question_id": 1, "seed": 42, "correct": False, "scores": {"acc": 0.5}, "tool_summary": {}},
{"system": "sys2", "model": "bert", "question_id": 2, "seed": 43, "correct": True, "scores": {}, "tool_summary": None},
{"system": "sys1", "model": "gpt2", "question_id": 3, "seed": 44, "correct": None, "scores": {"acc": 0.7}, "tool_summary": {"tools": ["search"]}},
{"system": "sys3", "model": "llama", "question_id": 4, "seed": 45, "error_fatal": "OOM", "correct": True, "scores": {}, "tool_summary": {}},
"",
"invalid json line {[}",
{"system": "sys1", "model": "gpt2", "question_id": 5, "seed": 46, "correct": True, "scores": {"f1": 0.85}, "tool_summary": None},
]
for entry in log_entries:
if isinstance(entry, dict):
temp_file.write(json.dumps(entry) + '\n')
else:
temp_file.write(entry + '\n')
temp_file.close()
ARGS = {
'path': temp_path,
'drop_fatal': True,
}
- 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
|
| numeric_variants |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/judge.py code served (permissive licence) · get_code("f1a091eea06464a7") 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 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
import numpy as np
ARGS = {
'value': 1234567.89
}
- 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 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
|
| paired_bootstrap_delta |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/stats.py code served (permissive licence) · get_code("620f02fea54bd33e") 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 Interval. 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
# Create sample paired boolean data
a = [True, False, True, True, False, True, False, True]
b = [True, True, False, True, True, False, True, True]
ARGS = {
'a': a,
'b': b,
'n_boot': 10000,
'alpha': 0.05,
'seed': 0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Interval — a Interval output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Interval 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
|
| statement_key |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/corpus.py code served (permissive licence) · get_code("a6f426629de5ec27") 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
_NON_ALNUM = re.compile('[^a-z0-9]+')
_CONTINUATION = re.compile('\\b(contd|concld|cont|concluded|continued)\\b')
_WS = re.compile('\\s+')
_U_TAG = re.compile('</?u>', re.IGNORECASE)
def statement_key(title: str) -> str:
"""Collapse repeated page headers of one statement onto a single key.
Mirrors `memory_mcp.store._outline_key` so the corpus view and the tool view
of "how many statements are there" agree.
"""
t = _NON_ALNUM.sub(' ', _U_TAG.sub('', title).casefold())
t = _CONTINUATION.sub('', t)
return _WS.sub('', t)
ARGS = {
'title': 'Financial Statement <u>CONTD</u> - Q3 2024 Report'
}
- 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
|
| summarize |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/provenance.py code served (permissive licence) · get_code("6a7e660ff0f3240d") 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
import pandas as pd
from pathlib import Path
# Create a temporary directory for results
temp_dir = tempfile.mkdtemp()
results_dir = Path(temp_dir) / 'results' / 'provenance'
results_dir.mkdir(parents=True, exist_ok=True)
# Create a sample timings.csv file
timings_data = {
'event': ['training', 'training', 'validation', 'validation', 'inference'],
'step': [1, 2, 1, 2, 1],
'seconds': [10.5, 9.8, 5.2, 5.1, 2.3]
}
timings_df = pd.DataFrame(timings_data)
timings_csv_path = results_dir / 'timings.csv'
timings_df.to_csv(timings_csv_path, index=False)
ARGS = {
'out_dir': str(results_dir)
}
- 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
|
| timings_table |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/provenance.py code served (permissive licence) · get_code("d370439b005fe80d") 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
import os
from pathlib import Path
import pandas as pd
# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
# Create the 'results/provenance' subdirectory structure
out_dir = os.path.join(temp_dir, 'results', 'provenance')
os.makedirs(out_dir, exist_ok=True)
# Create a sample timings.csv file
timings_data = {
'experiment': ['exp1', 'exp2', 'exp3'],
'duration_seconds': [10.5, 20.3, 15.7],
'timestamp': ['2024-01-01', '2024-01-02', '2024-01-03']
}
df = pd.DataFrame(timings_data)
csv_path = Path(out_dir) / 'timings.csv'
df.to_csv(csv_path, index=False)
ARGS = {
'out_dir': out_dir
}
- 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
|
| tools_for |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/read_tools.py code served (permissive licence) · get_code("7293c795cca0ba9e") 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 torch
import numpy as np
from typing import Literal
Profile = Literal['full', 'naive_grep', 'no_outline']
GREP_TOOL_NORMALIZED = {'name': 'memory_grep', 'description': 'Search the document line by line. Matches come back as `line_no:` plus surrounding context lines, ready to feed into memory_read.\n\nThe search is normalization-aware: it ignores case, `*`/`_` emphasis markers, `|` table-cell boundaries, extra whitespace, and commas in numbers. So "Fiscal Deficit" matches the converted text `|**Fiscal**| **Defi**|**cit**|`, and "48964.89" matches "48,964.89". Search for figures and row labels directly; do NOT pre-mangle the query. If a phrase finds nothing, retry with its single most distinctive word, or switch to memory_outline.', 'input_schema': {'type': 'object', 'properties': {'query': {'type': 'string', 'description': 'Text to find.'}, 'path': {'type': 'string', 'description': 'Optional file or subdirectory to scope the search.'}, 'context': {'type': 'integer', 'description': 'Lines of context around each match (0-10, default 2).'}, 'max_matches': {'type': 'integer', 'description': 'Cap on matches shown (default 25).'}}, 'required': ['query']}}
GREP_TOOL_NAIVE = {'name': 'memory_grep', 'description': 'Search the document line by line using a regular expression. Matches come back as `line_no:` plus surrounding context lines, ready to feed into memory_read. Matching is literal against the raw converted text. If a phrase finds nothing, retry with its single most distinctive word, or switch to memory_outline.', 'input_schema': {'type': 'object', 'properties': {'query': {'type': 'string', 'description': 'Regular expression to find.'}, 'path': {'type': 'string', 'description': 'Optional file or subdirectory to scope the search.'}, 'context': {'type': 'integer', 'description': 'Lines of context around each match (0-10, default 2).'}, 'max_matches': {'type': 'integer', 'description': 'Cap on matches shown (default 25).'}}, 'required': ['query']}}
OUTLINE_TOOL = {'name': 'memory_outline', 'description': 'Show the document\'s heading structure with line numbers — the map of the book. Use it to locate the statement you need, then jump straight there with memory_read. Prefer this over grepping when you know roughly WHERE the answer lives (e.g. "Statement No. 2") rather than an exact phrase.', 'input_schema': {'type': 'object', 'properties': {'path': {'type': 'string', 'description': 'Optional file or subdirectory to scope the outline.'}}, 'required': []}}
LIST_TOOL = {'name': 'memory_list', 'description': 'List every file available with its size and line count. Start here when you do not know what files exist.', 'input_schema': {'type': 'object', 'properties': {'path': {'type': 'string', 'description': 'Optional subdirectory.'}}, 'required': []}}
READ_TOOL = {'name': 'memory_read', 'description': "Read lines start_line..end_line (1-indexed, inclusive) of one file, numbered. Use line numbers from memory_grep or memory_outline. When reading a financial table, extend the range upward to include the table's header rows — a figure is meaningless without its row label and year column. Capped at 400 lines per call; the output says where to resume if clipped.", 'input_schema': {'type': 'object', 'properties': {'path': {'type': 'string', 'description': 'File to read, relative to the memory root.'}, 'start_line': {'type': 'integer', 'description': 'First line (1-indexed, inclusive).'}, 'end_line': {'type': 'integer', 'description': 'Last line (1-indexed, inclusive).'}}, 'required': ['path', 'start_line', 'end_line']}}
def tools_for(profile: Profile) -> list[dict]:
grep = GREP_TOOL_NAIVE if profile == 'naive_grep' else GREP_TOOL_NORMALIZED
if profile == 'no_outline':
return [LIST_TOOL, grep, READ_TOOL]
return [LIST_TOOL, OUTLINE_TOOL, grep, READ_TOOL]
ARGS = {
'profile': 'full'
}
- 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 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
|
| unverified_questions |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/runner.py code served (permissive licence) · get_code("2d7ad11065cab7d7") 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 torch
ARGS = {
'rows': [
{
'id': 'q1',
'verified': False,
'unanswerable': False,
'reference_answer': 'Some answer'
},
{
'id': 'q2',
'verified': True,
'unanswerable': False,
'reference_answer': 'Another answer'
},
{
'id': 'q3',
'verified': False,
'unanswerable': True,
'reference_answer': 'Reference text'
},
{
'id': 'q4',
'verified': False,
'unanswerable': True
},
{
'id': 'q5',
'unanswerable': False,
'reference_answer': 'Answer text'
}
]
}
- 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, 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
|
| wilson_interval |
Ran ran; our contract draft was wrong, not the code |
twospoon/READ/read_eval/stats.py code served (permissive licence) · get_code("92ca9e4be54f3766") 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 Interval. 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 math
from dataclasses import dataclass
@dataclass
class Interval:
point: float
lo: float
hi: float
n: int
def pct(self, digits: int=1) -> str:
return f'{100 * self.point:.{digits}f} [{100 * self.lo:.{digits}f}, {100 * self.hi:.{digits}f}]'
def to_dict(self) -> dict:
return {'point': round(self.point, 4), 'lo': round(self.lo, 4), 'hi': round(self.hi, 4), 'n': self.n}
def wilson_interval(successes: int, n: int, z: float=1.96) -> Interval:
"""Wilson score interval — well behaved near 0 and 1, unlike the normal one."""
if n == 0:
return Interval(float('nan'), float('nan'), float('nan'), 0)
p = successes / n
denom = 1 + z ** 2 / n
centre = (p + z ** 2 / (2 * n)) / denom
half = z * math.sqrt(p * (1 - p) / n + z ** 2 / (4 * n ** 2)) / denom
return Interval(p, max(0.0, centre - half), min(1.0, centre + half), n)
ARGS = {
'successes': 42,
'n': 100,
'z': 1.96
}
- 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 Interval — a Interval output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Interval 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
|
| fig_main_accuracy |
Not yet run unverified (harvested, no recorded run) |
twospoon/READ/read_eval/plotting.py code served (permissive licence) · get_code("6e4f7927ce299bd9") How it ran |
| resolve_pricing |
Not yet run unverified (harvested, no recorded run) |
twospoon/READ/read_eval/llm.py code served (permissive licence) · get_code("06734d57b71c9231") How it ran |
| system_table |
Not yet run unverified (harvested, no recorded run) |
twospoon/READ/read_eval/metrics.py code served (permissive licence) · get_code("8629d6b7fe65e5ef") How it ran |