| as_float |
Ran ran, honoured the contract we drafted |
fpxlei/LabAgent/evaluation/score_proteingym.py code served (permissive licence) · get_code("b586a50ce9eb33f9") 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 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
def as_float(v):
try:
f = float(v)
except (TypeError, ValueError):
return None
return None if math.isnan(f) or math.isinf(f) else f
ARGS = {
"v": 42.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 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
|
| canon |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_susie2.py code served (permissive licence) · get_code("9b6a2f668383afb5") 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 canon(name: str) -> str | None:
"""Fold whatever the agent called a method onto the paper's five names.
The superscript in "SuSiE²" has to become a 2 before punctuation is
stripped, or the method that the whole paper is about is silently scored
as single-trait SuSiE.
"""
s = (name or '').lower().replace('²', '2').replace('^2', '2')
s = re.sub('[^a-z0-9]+', '', s)
if not s:
return None
if 'mvsusie' in s:
return 'mvsusie'
if 'flashfm' in s or 'flashfm' in s:
return 'flashfm'
if 'paintor' in s:
return 'fastpaintor'
if 'susie2' in s or 'susiesq' in s or 'susietwo' in s:
return 'susie2'
if 'susie' in s:
return 'susie'
return None
ARGS = {
'name': 'SuSiE²'
}
- 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_phase1_prompt |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/src/labagent/explore/claude_code_adapter.py code served (permissive licence) · get_code("1374236f92971694") 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 torch.nn as nn
# Define ARGS dict with all required parameters for get_phase1_prompt
ARGS = {
"task_name": "Named Entity Recognition in Biomedical Text",
"task_description": "Identify and classify named entities (proteins, diseases, chemicals, genes) in biomedical literature abstracts using neural sequence labeling models.",
"dataset_description": "BioNER dataset containing 5,000 annotated PubMed abstracts with entity annotations across 10 entity types. Average abstract length: 200 tokens. Entity density: 15-20 entities per abstract.",
"output_path": "/tmp/task_memory_biomedical_ner.md"
}
- 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
|
| get_phase2_prompt |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/src/labagent/explore/claude_code_adapter.py code served (permissive licence) · get_code("fc7411b3400e2c78") 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
ARGS = {
"task_name": "scientific_model_exploration",
"task_description": "Explore and document machine learning models, tools, and methods relevant to neural network research and scientific computing",
"memory_path": "/tmp/task_memory.txt",
"skills_path": "/tmp/skills_output"
}
- 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
|
| get_phase2_update_prompt |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/src/labagent/explore/claude_code_adapter.py code served (permissive licence) · get_code("61bae2442de3d784") 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
# Build minimal valid arguments for get_phase2_update_prompt
ARGS = {
"task_name": "ML Model Optimization",
"task_description": "Develop skills for optimizing machine learning models across different domains and architectures.",
"memory_path": "/tmp/task_memory.md",
"skills_path": "/tmp/skills",
"existing_skills": [
{
"name": "PyTorch Lightning",
"category": "library",
"description": "High-level PyTorch framework for training deep learning models with minimal boilerplate"
},
{
"name": "Hugging Face Transformers",
"category": "library",
"description": "State-of-the-art transformers library for NLP and vision tasks"
},
{
"name": "Ray Tune",
"category": "tool",
"description": "Distributed hyperparameter tuning framework"
},
{
"name": "ONNX",
"category": "tool",
"description": "Open Neural Network Exchange format for model interoperability"
},
{
"name": "Optuna",
"category": "library",
"description": "Bayesian optimization framework for hyperparameter tuning"
},
{
"name": "TensorBoard",
"category": "tool",
"description": "Visualization toolkit for TensorFlow training"
}
],
"num_new_skills": 9,
"focus_categories": ["model", "tool", "library"],
"target_counts": {
"library": 8,
"tool": 6,
"method": 4,
"model": 5,
"database": 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
|
| load |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_susie2.py code served (permissive licence) · get_code("3201e5b42f2b29dd") 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 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 csv
import tempfile
from pathlib import Path
# Create a temporary CSV file with valid metrics data
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)
csv_file = temp_path / "metrics.csv"
# Write a valid metrics.csv file
csv_content = """Scenario,H2,Method,Power,Coverage,Avg_Size,N_Credible_Sets,N_Reps
A,0.1,SuSiE,0.85,0.95,2.5,1.2,100
B,0.2,SuSiE2,0.90,0.92,3.1,1.5,100
C,0.3,mvSuSiE,0.88,0.94,2.8,1.3,100
A,0.1,flashfm,0.82,0.93,2.6,1.1,100
B,0.2,fastPAINTOR,0.87,0.91,3.0,1.4,100
"""
with open(csv_file, 'w', newline='', encoding='utf-8') as f:
f.write(csv_content)
ARGS = {
'path': csv_file
}
- 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 — 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
|
| nearest_h2 |
Ran ran, honoured the contract we drafted |
fpxlei/LabAgent/evaluation/score_susie2.py code served (permissive licence) · get_code("bc3b704b0449e7a4") 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
# The function expects a dict `rows` where keys are tuples
# and it extracts the second element (index [1]) from each key,
# collects unique values, and returns them sorted.
# Create a simple dict with tuple keys where the second element
# represents heritability levels
rows = {
("sample_0", 0.3): "value_a",
("sample_1", 0.5): "value_b",
("sample_2", 0.3): "value_c",
("sample_3", 0.8): "value_d",
("sample_4", 0.5): "value_e",
}
ARGS = {
"rows": rows
}
- 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
|
| normalize_for_match |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_biomnibench.py code served (permissive licence) · get_code("9c684d8f23bbbbc3") 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_for_match(s: str) -> str:
"""Case-fold, unify underscore/hyphen/whitespace, strip punctuation.
'AoSMCs' / 'AOSMC' / 'aosmc' → 'aosmc'
'epithelial_mesenchymal_transition' / 'EMT program' → collapsed forms.
'r≈0.64' → 'r 0.64' (numeric preserved)
"""
s = s.lower()
s = re.sub('[_\\-≈~]+', ' ', s)
s = re.sub('[^a-z0-9. ]+', ' ', s)
s = re.sub('\\s+', ' ', s).strip()
return s
ARGS = {
's': 'AoSMCs_epithelial-mesenchymal≈transition r≈0.64'
}
- 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_rubric_criteria |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_biomnibench.py code served (permissive licence) · get_code("6311523eaf55a5b8") 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 re
def parse_rubric_criteria(rubric_text: str) -> dict[int, dict[str, str]]:
"""Return {criterion_n: {"A": description, "B": description, "C": description}}."""
out = {}
parts = re.split('^Criterion\\s+(\\d+)\\s*:', rubric_text, flags=re.MULTILINE)
for i in range(1, len(parts), 2):
try:
n = int(parts[i])
except ValueError:
continue
body = parts[i + 1]
sections = {}
level_pattern = re.compile('\\[([A-Z])\\]\\s*:?\\s*(.+?)(?=\\[[A-Z]\\]|$)', re.DOTALL)
for m in level_pattern.finditer(body):
level = m.group(1).upper()
text = m.group(2).strip()
sections[level] = text
if sections:
out[n] = sections
return out
rubric_text = """Criterion 1:
[A]: Excellent work demonstrating mastery
[B]: Good work with minor issues
[C]: Satisfactory work with some gaps
Criterion 2:
[A]: Outstanding performance
[B]: Acceptable performance
[C]: Needs improvement
"""
ARGS = {
"rubric_text": rubric_text
}
- 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
|
| parse_rubric_levels |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_biomnibench.py code served (permissive licence) · get_code("ed9ce1374b2f5313") 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 re
def parse_rubric_levels(rubric_text: str) -> dict[int, dict[str, int]]:
"""Return {criterion_number: {"A": pts, "B": pts, "C": pts}}."""
out = {}
parts = re.split('^Criterion\\s+(\\d+)\\s*:', rubric_text, flags=re.MULTILINE)
for i in range(1, len(parts), 2):
try:
n = int(parts[i])
except ValueError:
continue
body = parts[i + 1]
levels = {}
for lm in re.finditer('^\\s*Levels:\\s*(.+)$', body, flags=re.MULTILINE):
for m in re.finditer('\\b([A-Z])\\s*=\\s*(-?\\d+)', lm.group(1)):
levels[m.group(1).upper()] = int(m.group(2))
break
if not levels:
for lm in re.finditer('\\[([A-Z])\\]\\s*\\(\\s*(-?\\d+)\\s*points?\\s*\\)', body):
levels[lm.group(1).upper()] = int(lm.group(2))
if levels:
out[n] = levels
return out
rubric_text_simple = """
Criterion 1:
Levels: A = 10, B = 5, C = 0
Criterion 2:
[A] (20 points)
[B] (15 points)
[C] (5 points)
Criterion 3:
Levels: A = 8, B = 4, C = 2
"""
ARGS = {
"rubric_text": rubric_text_simple
}
- 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_truth |
Ran ran; our contract draft was wrong, not the code |
fpxlei/LabAgent/evaluation/score_proteingym.py code served (permissive licence) · get_code("8928eeaa8a543236") 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 csv
import math
from pathlib import Path
import tempfile
import os
# Create a temporary CSV file with test data
temp_dir = tempfile.mkdtemp()
csv_path = Path(temp_dir) / "test_truth.csv"
# Write a valid CSV with DMS_score column
with open(csv_path, 'w', newline='', encoding='utf-8') as f:
writer = csv.DictWriter(f, fieldnames=['mutant', 'DMS_score'])
writer.writeheader()
writer.writerow({'mutant': 'WT', 'DMS_score': '0.5'})
writer.writerow({'mutant': 'A1B', 'DMS_score': '0.75'})
writer.writerow({'mutant': ' C2D ', 'DMS_score': '0.25'})
writer.writerow({'mutant': 'E3F', 'DMS_score': 'invalid'})
writer.writerow({'mutant': '', 'DMS_score': '0.9'})
ARGS = {
'path': csv_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
|
| spearman |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
fpxlei/LabAgent/evaluation/score_proteingym.py code served (permissive licence) · get_code("3e6c8a01b17ac7cb") 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 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
def spearman(xs: list[float], ys: list[float]) -> float | None:
"""Pearson on ranks, with ties averaged. No scipy dependency: this has to
run in whichever environment the cluster shell happens to be in."""
n = len(xs)
if n < 3:
return None
def ranks(v):
order = sorted(range(n), key=lambda i: v[i])
r = [0.0] * n
i = 0
while i < n:
j = i
while j + 1 < n and v[order[j + 1]] == v[order[i]]:
j += 1
avg = (i + j) / 2 + 1
for k in range(i, j + 1):
r[order[k]] = avg
i = j + 1
return r
rx, ry = (ranks(xs), ranks(ys))
mx, my = (sum(rx) / n, sum(ry) / n)
num = sum(((a - mx) * (b - my) for a, b in zip(rx, ry)))
dx = math.sqrt(sum(((a - mx) ** 2 for a in rx)))
dy = math.sqrt(sum(((b - my) ** 2 for b in ry)))
if dx == 0 or dy == 0:
return None
return num / (dx * dy)
ARGS = {
"xs": [1.0, 2.5, 3.7, 4.2, 5.1],
"ys": [1.1, 2.3, 3.9, 4.0, 5.2],
}
- 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
|