| aa_tensor_to_seq |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
mansoor181/chimera-bench/baselines/abflownet/chimera_trainer.py code served (permissive licence) · get_code("79282af996deca9f") 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
torch.manual_seed(0)
# The function takes an aa_tensor parameter and converts it to a sequence string
# by indexing into AA_INDEX_TO_ONE using .item() on each element
# So aa_tensor should be a 1D tensor of integers
aa_tensor = torch.tensor([0, 1, 2, 19, 20, 21], dtype=torch.long)
ARGS = {
"aa_tensor": aa_tensor
}
- 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
|
| aar |
Ran ran, honoured the contract we drafted |
mansoor181/chimera-bench/chimera_bench/metrics.py code served (permissive licence) · get_code("b53f8d569742068d") 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 torch
import numpy as np
torch.manual_seed(0)
# The function takes two string parameters: pred_seq and true_seq
# These represent predicted and true amino acid sequences
# The function compares them character by character and returns the fraction of matches
ARGS = {
"pred_seq": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAPILSRVGDGTQDNLSGAEKAVQVKVKALPDAQFEVV",
"true_seq": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAPILSRVGDGTQDNLSGAEKAVQVKVKALPDAQFEVV"
}
- 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 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
|
| build_config |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abflownet/chimera_trainer.py code served (permissive licence) · get_code("34a7e439b269781f") 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 SimpleNamespace. 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
from types import SimpleNamespace
torch_enabled = True
try:
import torch
except ImportError:
torch_enabled = False
# Build cfg parameter
cfg = {
'dataset': {
'split': 'epitope_group',
},
'model': {
'hidden_dim': 128,
'num_layers': 2,
},
'training': {
'seed': 2022,
'gpu': 0,
'max_iters': 200000,
'val_freq': 1000,
'batch_size': 16,
'max_grad_norm': 100.0,
'num_workers': 4,
'loss_weights': {'rot': 1.0, 'pos': 1.0, 'seq': 1.0, 'tb': 0.0},
'optimizer': {'lr': 0.001, 'weight_decay': 1e-4},
'scheduler': {'name': 'cosine', 'warmup': 1000},
},
'transforms': {
'patch_size': 128,
'antigen_size': 128,
},
'callbacks': {
'early_stopping': {'patience': 10, 'mode': 'min'},
'checkpoint': {'mode': 'min'},
},
'wandb': {
'enabled': False,
'project': 'chimera_baselines',
},
'numbering_scheme': 'chothia',
}
# Build shared parameter
shared = {
'paths': {
'data_root': '/tmp/data',
'trans_baselines': '/tmp/baselines',
'results_root': '/tmp/results',
}
}
# Build args parameter - a namespace with CLI override attributes
args = SimpleNamespace(
split=None,
gpu=None,
seed=None,
max_iters=None,
batch_size=None,
no_wandb=False,
test_only=False,
checkpoint=None,
)
ARGS = {
'cfg': cfg,
'shared': shared,
'args': args,
}
- 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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace 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_config |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abdockgen/chimera_trainer.py code served (permissive licence) · get_code("a5bac021b0bbd18b") 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 SimpleNamespace. 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
from types import SimpleNamespace
torch_seed = 0
# Build cfg dict with nested structure
cfg = {
'dataset': {
'split': 'epitope_group',
'cdr': 3,
},
'model': {
'hierarchical': True,
'hidden_size': 256,
'depth': 4,
'k_neighbors': 9,
'L_target': 20,
'clash_step': 10,
'num_rbf': 16,
'dropout': 0.1,
},
'training': {
'seed': 42,
'gpu': 0,
'lr': 0.001,
'batch_tokens': 100,
'max_epoch': 10,
'anneal_rate': 0.9,
'clip_norm': 1.0,
'print_iter': 50,
},
'callbacks': {
'early_stopping': {
'patience': 10,
'mode': 'min',
},
'checkpoint': {
'mode': 'min',
},
},
'wandb': {
'enabled': False,
'project': 'chimera_baselines',
},
}
# Build shared dict with paths
shared = {
'paths': {
'data_root': '/tmp/data',
'trans_baselines': '/tmp/baselines',
'results_root': '/tmp/results',
}
}
# Build args SimpleNamespace
args = SimpleNamespace(
split=None,
gpu=None,
seed=None,
lr=None,
max_epoch=None,
no_wandb=True,
)
ARGS = {
'cfg': cfg,
'shared': shared,
'args': args,
}
- 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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace 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_config |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abmedg/chimera_trainer.py code served (permissive licence) · get_code("90db42070b76db5c") 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 SimpleNamespace. 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
from types import SimpleNamespace
torch_called = False
cfg = {
'dataset': {
'split': 'epitope_group'
},
'model': {
'hidden_dim': 64,
'num_layers': 2
},
'training': {
'seed': 2024,
'gpu': 0,
'max_iters': 400000,
'val_freq': 1000,
'batch_size': 8,
'max_grad_norm': 100.0,
'num_workers': 4,
'loss_weights': {'rot': 1.0, 'pos': 1.0, 'seq': 1.0},
'optimizer': {'lr': 0.001, 'weight_decay': 1e-5},
'scheduler': {'step_size': 10000, 'gamma': 0.1}
},
'transforms': {
'patch_size': 128,
'antigen_size': 128
},
'callbacks': {
'early_stopping': {'patience': 10, 'mode': 'min'},
'checkpoint': {'mode': 'min'}
},
'wandb': {
'enabled': False,
'project': 'chimera_baselines'
},
'numbering_scheme': 'chothia'
}
shared = {
'paths': {
'data_root': '/tmp/data_root',
'trans_baselines': '/tmp/trans_baselines',
'results_root': '/tmp/results_root'
}
}
args = SimpleNamespace(
split=None,
gpu=None,
seed=None,
max_iters=None,
batch_size=None,
no_wandb=True,
test_only=False,
checkpoint=None
)
ARGS = {
'cfg': cfg,
'shared': shared,
'args': args
}
- 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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace 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_config |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abode/chimera_trainer.py code served (permissive licence) · get_code("d500d83402d91211") 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 SimpleNamespace. 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
from types import SimpleNamespace
torch_seed = 0
ARGS = {
'cfg': {
'dataset': {
'split': 'epitope_group',
'cdr_type': '3',
},
'model': {
'c_in': 30,
'c_out': 29,
},
'training': {
'seed': 10,
'gpu': 0,
'lr': 0.001,
'weight_decay': 0.001,
'max_epoch': 100,
'grad_clip': 0.0,
'mask': 0,
},
'ode': {
'solver': 'adaptive_heun',
'rtol': 0.5,
'atol': 0.5,
't_nsamples': 200,
},
'callbacks': {
'early_stopping': {
'patience': 10,
'mode': 'min',
},
'checkpoint': {
'mode': 'min',
},
},
'wandb': {
'enabled': False,
'project': 'chimera_baselines',
},
},
'shared': {
'paths': {
'data_root': '/tmp/data',
'trans_baselines': '/tmp/trans',
'results_root': '/tmp/results',
},
},
'args': SimpleNamespace(
split=None,
cdr_type=None,
gpu=None,
seed=None,
lr=None,
max_epoch=None,
no_wandb=True,
test_only=False,
checkpoint='model.ckpt',
),
}
- 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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace 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
|
| caar |
Ran ran, honoured the contract we drafted |
mansoor181/chimera-bench/chimera_bench/metrics.py code served (permissive licence) · get_code("c54970c74e72b1de") 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 float64, ndim 0, 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
# Construct arguments for caar function
# The function compares predicted and true sequences character-by-character,
# counting matches only where contact_mask is True
# Create sample sequences (strings of amino acid codes or similar)
pred_seq = "ACDEFGHIKLMNPQRSTVWY" # 20 characters
true_seq = "ACDEFGHIKLMNPQRSTVWY" # 20 characters, some will match
# Create a contact mask - boolean array indicating which positions are contacts
# Make it length 20 to match the sequences
contact_mask = np.array([True, False, True, True, False, True, False, True, True, False,
True, False, True, True, False, True, True, False, True, False])
ARGS = {
"pred_seq": pred_seq,
"true_seq": true_seq,
"contact_mask": contact_mask
}
- 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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| find_cdr_prediction_dirs |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abflownet/chimera_evaluate.py code served (permissive licence) · get_code("1ce170aacb410b09") 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 tempfile
import shutil
from pathlib import Path
# Create a temporary directory structure that mimics the expected results layout
temp_dir = tempfile.mkdtemp()
results_dir = Path(temp_dir)
# Create predictions subdirectory
pred_base = results_dir / 'predictions'
pred_base.mkdir(parents=True, exist_ok=True)
# Create CDR subdirectories with some dummy .pt files
for cdr_name in ['H1', 'H2', 'H3', 'L1', 'L2', 'L3']:
cdr_dir = pred_base / cdr_name
cdr_dir.mkdir(parents=True, exist_ok=True)
# Create dummy .pt files
(cdr_dir / 'prediction_1.pt').touch()
(cdr_dir / 'prediction_2.pt').touch()
ARGS = {
'results_dir': results_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| find_cdr_prediction_dirs |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abmedg/chimera_evaluate.py code served (permissive licence) · get_code("b73ff554c1e1ad1c") 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 tempfile
from pathlib import Path
# Create a temporary directory structure to simulate a results directory
# with CDR prediction subdirectories and .pt files
temp_dir = tempfile.TemporaryDirectory()
results_dir = Path(temp_dir.name)
# Create the predictions base directory
pred_base = results_dir / 'predictions'
pred_base.mkdir(parents=True, exist_ok=True)
# Create subdirectories for each CDR and add dummy .pt files
for cdr_name in ['H1', 'H2', 'H3', 'L1', 'L2', 'L3']:
cdr_dir = pred_base / cdr_name
cdr_dir.mkdir(parents=True, exist_ok=True)
# Create a dummy .pt file in each directory
dummy_file = cdr_dir / 'predictions.pt'
dummy_file.touch()
ARGS = {
'results_dir': str(results_dir)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| find_cdr_prediction_dirs |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abode/chimera_evaluate.py code served (permissive licence) · get_code("f98a572bee99b44a") 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 tempfile
from pathlib import Path
import os
# Create temporary directory structure for testing
tmpdir = tempfile.mkdtemp()
results_root = Path(tmpdir)
# Create mock CDR prediction directories
split_name = "val"
# Create directory for CDR1
cdr1_dir = results_root / f"model_cdr1_{split_name}"
cdr1_dir.mkdir(parents=True, exist_ok=True)
(cdr1_dir / "predictions").mkdir(parents=True, exist_ok=True)
# Create directory for CDR2
cdr2_dir = results_root / f"model_cdr2_{split_name}"
cdr2_dir.mkdir(parents=True, exist_ok=True)
(cdr2_dir / "predictions").mkdir(parents=True, exist_ok=True)
# Create directory for CDR3
cdr3_dir = results_root / f"model_cdr3_{split_name}"
cdr3_dir.mkdir(parents=True, exist_ok=True)
(cdr3_dir / "predictions").mkdir(parents=True, exist_ok=True)
# Create a directory that should be ignored (no split match)
other_dir = results_root / "other_model_test"
other_dir.mkdir(parents=True, exist_ok=True)
# Create a directory with split match but no predictions subdirectory
incomplete_dir = results_root / f"incomplete_cdr1_{split_name}"
incomplete_dir.mkdir(parents=True, exist_ok=True)
ARGS = {
"results_root": results_root,
"split": split_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 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
|
| find_prediction_dir |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abdockgen/chimera_evaluate.py code served (permissive licence) · get_code("e9373933d771de4c") 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 tempfile
from pathlib import Path
import os
# Create a temporary directory structure to test the function
temp_root = tempfile.mkdtemp()
results_root = Path(temp_root)
# Create the expected directory structure for a successful case
split = "test_split"
run_dir = results_root / f'abdockgen_H3_{split}'
pred_dir = run_dir / 'predictions' / 'H3'
pred_dir.mkdir(parents=True, exist_ok=True)
ARGS = {
'results_root': results_root,
'split': split,
}
- 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 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
|
| generate_master_jsonl |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/chimera_utils.py code served (permissive licence) · get_code("5460e4a0352c454d") 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
import csv
import json
from pathlib import Path
# Create temporary directory structure
temp_dir = tempfile.mkdtemp()
data_root = Path(temp_dir)
# Create necessary directories
(data_root / 'processed').mkdir(parents=True, exist_ok=True)
(data_root / 'raw' / 'structures').mkdir(parents=True, exist_ok=True)
# Create a minimal final_summary.csv
summary_path = data_root / 'processed' / 'final_summary.csv'
with open(summary_path, 'w', newline='') as f:
writer = csv.DictWriter(f, fieldnames=['complex_id', 'pdb', 'Hchain', 'Lchain', 'antigen_chain'])
writer.writeheader()
writer.writerow({
'complex_id': 'complex_001',
'pdb': 'pdb_001',
'Hchain': 'H',
'Lchain': 'L',
'antigen_chain': 'A|B'
})
writer.writerow({
'complex_id': 'complex_002',
'pdb': 'pdb_002',
'Hchain': 'H',
'Lchain': 'L',
'antigen_chain': 'A'
})
# Create dummy PDB files
structures_dir = data_root / 'raw' / 'structures'
(structures_dir / 'pdb_001.pdb').write_text('ATOM 1 N ALA A 1 0.000 0.000 0.000 1.00 0.00 N\n')
(structures_dir / 'pdb_002.pdb').write_text('ATOM 1 N ALA A 1 0.000 0.000 0.000 1.00 0.00 N\n')
# Create output path
output_path = os.path.join(temp_dir, 'output', 'master.jsonl')
# Create a mock shared_config.yaml
config_dir = tempfile.mkdtemp()
config_path = Path(config_dir) / 'shared_config.yaml'
config_path.write_text(f"paths:\n data_root: {data_root}\n")
# Patch the _SHARED_CONFIG_PATH to point to our test config
import sys
from unittest.mock import patch
ARGS = {
'output_path': output_path,
'data_root': str(data_root)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| generate_split_jsonl |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/chimera_utils.py code served (permissive licence) · get_code("0d3a9e12173aaf95") 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 json
import csv
import tempfile
from pathlib import Path
import yaml
# Create temporary directories and files to simulate the CHIMERA data structure
temp_dir = tempfile.mkdtemp()
data_root = Path(temp_dir)
# Create directory structure
(data_root / 'processed').mkdir(parents=True, exist_ok=True)
(data_root / 'splits').mkdir(parents=True, exist_ok=True)
(data_root / 'raw' / 'structures').mkdir(parents=True, exist_ok=True)
# Create a shared_config.yaml (though not used in this function, for completeness)
shared_config_path = Path(temp_dir) / 'shared_config.yaml'
with open(shared_config_path, 'w') as f:
yaml.dump({'paths': {'data_root': str(data_root)}}, f)
# Create final_summary.csv with test data
summary_path = data_root / 'processed' / 'final_summary.csv'
with open(summary_path, 'w', newline='') as f:
writer = csv.DictWriter(f, fieldnames=['complex_id', 'pdb', 'Hchain', 'Lchain', 'antigen_chain'])
writer.writeheader()
writer.writerow({
'complex_id': 'complex_1',
'pdb': 'pdb_1',
'Hchain': 'H',
'Lchain': 'L',
'antigen_chain': 'A|B'
})
writer.writerow({
'complex_id': 'complex_2',
'pdb': 'pdb_2',
'Hchain': 'H',
'Lchain': 'L',
'antigen_chain': 'C'
})
writer.writerow({
'complex_id': 'complex_3',
'pdb': 'pdb_3',
'Hchain': 'H',
'Lchain': 'L',
'antigen_chain': 'D'
})
# Create split JSON file
split_path = data_root / 'splits' / 'test_split.json'
split_data = {
'train': ['complex_1'],
'val': ['complex_2'],
'test': ['complex_3']
}
with open(split_path, 'w') as f:
json.dump(split_data, f)
# Create dummy PDB files
structures_dir = data_root / 'raw' / 'structures'
for pdb_id in ['pdb_1', 'pdb_2', 'pdb_3']:
pdb_path = structures_dir / f'{pdb_id}.pdb'
with open(pdb_path, 'w') as f:
f.write(f"REMARK dummy PDB file for {pdb_id}\n")
# Create output directory
output_dir = Path(tempfile.mkdtemp())
ARGS = {
'split_name': 'test_split',
'output_dir': str(output_dir),
'data_root': str(data_root)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| get_data_root |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/chimera_bench/data.py code served (permissive licence) · get_code("44e6810c2eee6932") 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 os
from pathlib import Path
# Test case 1: data_root provided as argument
ARGS = {
'data_root': '/tmp/test_data'
}
- 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 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
|
| load_metadata |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/chimera_bench/data.py code served (permissive licence) · get_code("61cec02d26468459") 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 os
import tempfile
import pandas as pd
from pathlib import Path
# Create a temporary directory structure with a valid metadata file
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)
# Create metadata directory
metadata_dir = temp_path / 'metadata'
metadata_dir.mkdir(exist_ok=True)
# Create a minimal valid final_summary.csv
summary_data = {
'complex_id': ['complex_1', 'complex_2'],
'pdb_id': ['1abc', '2def'],
'resolution': [2.5, 3.0]
}
summary_df = pd.DataFrame(summary_data)
summary_csv_path = metadata_dir / 'final_summary.csv'
summary_df.to_csv(summary_csv_path, index=False)
# Set the environment variable
os.environ['CHIMERA_DATA_ROOT'] = str(temp_path)
ARGS = {
'data_root': None
}
- 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
|
| load_split |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/chimera_bench/data.py code served (permissive licence) · get_code("5f834df35bfcc4f8") 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
import os
import tempfile
from pathlib import Path
# Create a temporary directory structure to simulate the dataset
temp_dir = tempfile.mkdtemp()
data_root = Path(temp_dir)
# Create splits directory
splits_dir = data_root / 'splits'
splits_dir.mkdir(parents=True, exist_ok=True)
# Create sample split files
sample_split_data = {
"train": [{"id": 1, "data": "train1"}, {"id": 2, "data": "train2"}],
"val": [{"id": 3, "data": "val1"}],
"test": [{"id": 4, "data": "test1"}]
}
for split_name in ('epitope_group', 'antigen_fold', 'temporal'):
split_file = splits_dir / f'{split_name}.json'
with open(split_file, 'w') as f:
json.dump(sample_split_data, f)
ARGS = {
'name': 'epitope_group',
'data_root': str(data_root)
}
- 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
|
| load_split_ids |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/chimera_utils.py code served (permissive licence) · get_code("f6390ecf34726194") 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 structure to simulate the CHIMERA data layout
temp_dir = tempfile.mkdtemp()
data_root = Path(temp_dir)
# Create splits directory
splits_dir = data_root / 'splits'
splits_dir.mkdir(parents=True, exist_ok=True)
# Create a sample split file with complex_ids
split_data = {
'train': ['complex_001', 'complex_002', 'complex_003'],
'val': ['complex_004', 'complex_005'],
'test': ['complex_006', 'complex_007', 'complex_008']
}
split_path = splits_dir / 'test_split.json'
with open(split_path, 'w') as f:
json.dump(split_data, f)
# Define the arguments dictionary
ARGS = {
'split_name': 'test_split',
'data_root': str(data_root)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| perplexity |
Ran ran, honoured the contract we drafted |
mansoor181/chimera-bench/chimera_bench/metrics.py code served (permissive licence) · get_code("6e4f7de8626ec3d9") 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 numpy as np
# Create sample log probabilities
# The function computes perplexity from per-residue log probabilities
# It expects an ndarray and calls .mean() on it, then applies np.exp()
log_probs = np.array([-2.5, -1.8, -3.2, -2.1, -1.5])
ARGS = {
"log_probs": log_probs
}
- 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 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
|
| split_by_cids |
Ran ran; our contract draft was wrong, not the code |
mansoor181/chimera-bench/baselines/abode/chimera_trainer.py code served (permissive licence) · get_code("ceb5d2cce51df649") 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, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
# Create mock graph objects - the function only iterates over them
# and includes them in the output if their corresponding cid matches
class MockGraph:
def __init__(self, graph_id):
self.graph_id = graph_id
self.features = torch.randn(2, 4)
def __repr__(self):
return f"MockGraph({self.graph_id})"
# Create sample graph data
graph_data = [
MockGraph(0),
MockGraph(1),
MockGraph(2),
MockGraph(3),
]
# Create corresponding cid list
cid_list = ["cid_a", "cid_b", "cid_a", "cid_c"]
# Create split_cids - the target set of complex IDs to filter by
split_cids = ["cid_a", "cid_c"]
ARGS = {
"graph_data": graph_data,
"cid_list": cid_list,
"split_cids": split_cids,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| evaluate_benchmark |
Not yet run unverified (harvested, no recorded run) |
mansoor181/chimera-bench/chimera_bench/evaluate.py code served (permissive licence) · get_code("7e01c2cfd8a357ef") How it ran |
| evaluate_designs |
Not yet run unverified (harvested, no recorded run) |
mansoor181/chimera-bench/chimera_bench/evaluate.py code served (permissive licence) · get_code("c015a2b37d9c57c4") How it ran |
| evaluate_single |
Not yet run unverified (harvested, no recorded run) |
mansoor181/chimera-bench/chimera_bench/evaluate.py code served (permissive licence) · get_code("d6c3923188727a2e") How it ran |