| aggregate_isomorphic_scores |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/fixes/utils.py code served (permissive licence) · get_code("a0cd5cb2d67c483f") 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 numpy as np
import pandas as pd
# Create sample data for the function
np.random.seed(0)
# Create a DataFrame with the required columns
data = pd.DataFrame({
'new_net': ['net_A', 'net_A', 'net_B', 'net_B', 'net_C'],
'val_accs': [0.85, 0.86, 0.90, 0.91, 0.88],
'proxy_score_1': [0.75, 0.76, 0.80, 0.81, 0.78],
'proxy_score_2': [0.65, 0.66, 0.70, 0.71, 0.68],
})
proxy_cols = ['proxy_score_1', 'proxy_score_2']
ARGS = {
'data': data,
'proxy_cols': proxy_cols,
'agg_func': np.median,
'val_accs_std': 3,
'score_std': 3,
'net_key': 'new_net',
}
- 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
|
| apply_layer_dropout_relu |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/predictors/gnn.py code served (permissive licence) · get_code("8f09f06ced25bf21") 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 Tensor, ndim 2, dtype family float, shape (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import torch.nn.functional as F
torch.manual_seed(0)
# Create a small neural network with linear layers
layers = nn.ModuleList([
nn.Linear(4, 3), # First layer: input 4 -> output 3
nn.Linear(3, 5), # Second layer: input 3 -> output 5
nn.Linear(5, 2), # Third layer: input 5 -> output 2
])
# Create input tensor (batch_size=2, features=4)
x = torch.randn(2, 4)
# Dropout probability
p = 0.5
# Training flag
training = True
ARGS = {
"x": x,
"layers": layers,
"p": p,
"training": training,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
|
| compute_feature_df |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/dataset.py code served (permissive licence) · get_code("076a7b43b581f744") 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 torch
import torch.nn as nn
import pandas as pd
torch.manual_seed(0)
class SimpleNet(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def forward(self, x):
return self.linear(x)
def feature_func_list(net):
"""Returns a list of (name, feature) tuples"""
return [
("weight_mean", torch.mean(net.linear.weight).item()),
("bias_sum", torch.sum(net.linear.bias).item())
]
def feature_func_dict(net):
"""Returns a dict of features"""
return {
"param_count": sum(p.numel() for p in net.parameters()),
"activation": "relu"
}
def feature_func_scalar(net):
"""Returns a scalar value"""
return 42.0
nets_dict = {
0: SimpleNet(),
1: SimpleNet(),
2: SimpleNet()
}
ARGS = {
"nets": nets_dict,
"feature_func": feature_func_dict,
"name": "test"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas, torch — 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
|
| count_edges |
Ran ran, honoured the contract we drafted |
gabikadlecova/zc_combine/zc_combine/features/nasbench101.py code served (permissive licence) · get_code("feee61f724f4fe31") 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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class SimpleEdgeContainer:
def __init__(self, num_edges):
self.edges = list(range(num_edges))
class SimpleNet:
def __init__(self):
self.layer1 = nn.Linear(4, 3)
self.layer2 = nn.Linear(3, 2)
self.edges = SimpleEdgeContainer(5)
net = [None, None, SimpleEdgeContainer(7)]
ARGS = {
"net": net
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| count_ops |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/base.py code served (permissive licence) · get_code("fc531b68e3daae1c") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Analyze the function:
# - count_ops takes (net, to_names=False)
# - net is unpacked as: ops, edges = net
# - ops is a dict that is used as: ops.keys() and ops[o] (indexing)
# - edges is a dict that is used as: edges.values()
# - op_counts is built as {i: 0 for i in ops.keys()}
# - Then for each val in edges.values(), op_counts[val] is incremented
# - _to_names(op_counts, ops) is called when to_names=True
# - _to_names does: {ops[o]: v for o, v in op_dict.items()}
# - So it maps ops[o] -> v for each o, v pair
# This suggests:
# - ops is a dict mapping indices to names/identifiers
# - edges is a dict mapping edge identifiers to operation indices
# - op_counts maps operation indices to counts
# - When to_names=True, we convert indices to their names via ops
# Create a simple ops dict: index -> name mapping
ops = {
0: "conv1",
1: "relu",
2: "conv2",
3: "pool"
}
# Create edges dict: maps some keys to operation indices that appear in ops.keys()
edges = {
"edge_0": 0,
"edge_1": 0,
"edge_2": 1,
"edge_3": 2,
"edge_4": 2,
"edge_5": 3,
}
# net should be a tuple of (ops, edges)
net = (ops, edges)
ARGS = {
"net": net,
"to_names": False
}
- 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 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
|
| count_ops_opnodes |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/base.py code served (permissive licence) · get_code("820f496e1ce6d0c5") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# The function expects net to be a tuple of (op_names, ops, _)
# where:
# - op_names is a list/tuple of operation names (used as keys)
# - ops is a list of indices into op_names (used to count operations)
# - _ is ignored (third element)
op_names = ['conv', 'relu', 'pool', 'fc']
ops = [0, 1, 0, 2, 1, 0, 3] # indices referencing op_names
net = (op_names, ops, None)
ARGS = {
'net': net,
'to_names': False
}
- 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 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
|
| count_switches |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/tnb101_macro.py code served (permissive licence) · get_code("4074afd5d8f8712e") 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 torch
torch.manual_seed(0)
# The function expects `net` to be an iterable of dictionaries
# Each dictionary should have 'channel' and 'stride' keys with boolean values
net = [
{'channel': True, 'stride': True},
{'channel': True, 'stride': False},
{'channel': False, 'stride': True},
{'channel': False, 'stride': False},
{'channel': True, 'stride': True},
]
ARGS = {
'net': net
}
- 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 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
|
| edge |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
gabikadlecova/zc_combine/zc_combine/fixes/utils.py code served (permissive licence) · get_code("da5ba5a4db691671") 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
torch.manual_seed(0)
# edge_map is indexed with [i, j], so it should be a 2D tensor or array
# The result is used to index into op_list, so edge_map values should be valid indices
edge_map = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)
# op_list is indexed by the value from edge_map[i, j]
# Create a simple list of operations (can be strings, functions, or any objects)
op_list = ["op_a", "op_b"]
# i and j are indices used to access edge_map[i, j]
i = 0
j = 1
ARGS = {
"edge_map": edge_map,
"op_list": op_list,
"i": i,
"j": j,
}
- 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
|
| filter_by_range |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/fixes/operations.py code served (permissive licence) · get_code("72ce8a466cc40e81") 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 a column to filter by
df = pd.DataFrame({
'values': [1.5, 2.3, 3.7, 4.2, 5.1, 6.8],
'other_col': ['a', 'b', 'c', 'd', 'e', 'f']
})
# Set up arguments for filter_by_range
ARGS = {
'df': df,
'zc': 'values',
'min': 2.0,
'max': 5.0
}
- 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
|
| get_state_at_i |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/tnb101_macro.py code served (permissive licence) · get_code("38fba84176f9db88") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# The function iterates through net with len() and accesses net[i] as a dict
# with keys 'channel' and 'stride', converting values to int
# We need a list of dicts with these keys
net = [
{'channel': 3, 'stride': 1},
{'channel': 64, 'stride': 2},
{'channel': 128, 'stride': 1},
{'channel': 256, 'stride': 2},
{'channel': 512, 'stride': 1},
]
ARGS = {
'net': net
}
- 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 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_from_config |
Ran ran, honoured the contract we drafted |
gabikadlecova/zc_combine/zc_combine/features/dataset.py code served (permissive licence) · get_code("9a4c1d594afc3573") 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 torch
import torch.nn as nn
import pandas as pd
torch.manual_seed(0)
# Define a minimal nn.Module for testing
class SimpleNet(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def forward(self, x):
return self.linear(x)
# Create a dict of nets indexed by string keys
nets = {
'net_a': SimpleNet(),
'net_b': SimpleNet(),
}
# Define a simple feature function that returns a single value
def simple_feature_func(net):
return 42.0
# Define a feature function that returns a dict
def dict_feature_func(net):
return {'param_count': sum(p.numel() for p in net.parameters())}
# Define a feature function that returns a list of tuples
def list_feature_func(net):
return [
('weights', sum(p.numel() for p in net.parameters())),
('bias', 1.0),
]
# Create func_dict with different feature extraction functions
func_dict = {
'simple_feature': simple_feature_func,
'dict_feature': dict_feature_func,
'list_feature': list_feature_func,
}
# Test case 1: simple function without kwargs
func_cfg_1 = {
'name': 'simple_feature',
}
# Test case 2: function with kwargs
func_cfg_2 = {
'name': 'dict_feature',
'kwargs': {
'layer_size': [10, 20],
}
}
# Build the args dict for the function call
# Using func_cfg_1 which is the simplest case
ARGS = {
'nets': nets,
'func_cfg': func_cfg_1,
'func_dict': func_dict,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas, torch — 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
|
| log_dataset_args |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/utils/args_utils.py code served (permissive licence) · get_code("83112c2bbada9b2c") 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 torch
torch.manual_seed(0)
ARGS = {
'args': {
'use_all_proxies': False,
'use_features': True,
'features': ['feature1', 'feature2'],
'proxy': 'proxy_value',
'use_flops_params': True,
'other_key': 'other_value'
}
}
- 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 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
|
| op_on_pos |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/nasbench201.py code served (permissive licence) · get_code("19f379c601ea9e9f") 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 torch
torch.manual_seed(0)
def make_net():
"""
Construct a valid argument for the net parameter.
net is unpacked as: ops, edges = net
ops should be a dict (used with .keys())
edges should be a dict (used with .keys() and .items())
The function creates op_positions using combinations of ops and edges keys,
then uses edges values as keys into op_positions.
"""
ops = {
'op_1': None,
'op_2': None,
'op_3': None,
}
edges = {
'edge_a': ('op_1',),
'edge_b': ('op_2',),
'edge_c': ('op_3',),
}
return (ops, edges)
ARGS = {
'net': make_net()
}
- 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 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_and_read_args |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/utils/args_utils.py code served (permissive licence) · get_code("7d6da07092b48621") 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 argparse
import json
import sys
import tempfile
import os
# Create a temporary JSON file with some test arguments
temp_dir = tempfile.gettempdir()
arg_file_path = os.path.join(temp_dir, "test_args.json")
test_args = {
"learning_rate": 0.001,
"batch_size": 32,
"epochs": 10,
"model_name": "test_model"
}
with open(arg_file_path, 'w') as f:
json.dump(test_args, f)
# Create a parser with some arguments
parser = argparse.ArgumentParser()
parser.add_argument('--args_json_', type=str, default=None, help='Path to JSON file with arguments')
parser.add_argument('--learning_rate', type=float, default=0.01)
parser.add_argument('--batch_size', type=int, default=16)
parser.add_argument('--epochs', type=int, default=5)
parser.add_argument('--model_name', type=str, default='default_model')
# Simulate command line arguments
sys.argv = ['test_script.py', '--args_json_', arg_file_path, '--epochs', '20']
ARGS = {
'parser': parser
}
- 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_ops_nb201 |
Ran ran, honoured the contract we drafted |
gabikadlecova/zc_combine/zc_combine/fixes/operations.py code served (permissive licence) · get_code("963aae00115ab847") 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 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pandas as pd
# Test case 1: DataFrame input with 'net' column containing string representations
df_frame = pd.DataFrame({
'net': ['(1, 2, 3)', '(0, 1, 2)']
})
# Test case 2: Series input
series_input = pd.Series({'net': '(4, 5, 6)'})
# Test case 3: String input
string_input = '(7, 8, 9)'
# We'll test with the DataFrame case as the primary example
ARGS = {
'df': df_frame,
'net_key': 'net'
}
- 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 list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_ops_nb301 |
Ran ran, honoured the contract we drafted |
gabikadlecova/zc_combine/zc_combine/fixes/operations.py code served (permissive licence) · get_code("c79827e617a35632") 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 3, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pandas as pd
import torch
# The function parse_ops_nb301 expects a dataframe with a 'net' column
# Each entry in 'net' should be a string representation of a tuple of two lists
# Each list contains tuples where the second element (index 1) is an integer
# Create sample data that matches what the function expects
# The 'net' column contains string representations of tuples of two lists
# Each inner list contains tuples with integers at position 1
net_data = [
"([('conv', 0, 3), ('pool', 1, 2)], [('relu', 2, 1), ('bn', 0, 4)])",
"([('linear', 1, 5), ('dropout', 0, 1)], [('sigmoid', 2, 3), ('tanh', 1, 2)])"
]
df = pd.DataFrame({
'net': net_data
})
ARGS = {
'df': df
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 3, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| remap_values |
Ran ran, honoured the contract we drafted |
gabikadlecova/zc_combine/zc_combine/features/conversions.py code served (permissive licence) · get_code("da732986788c2dc3") 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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
def remap_values(c, val1, val2):
if c != val1 and c != val2:
return c
return val1 if c == val2 else val2
ARGS = {
"c": 5,
"val1": 10,
"val2": 15
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| to_graph |
Ran ran; our contract draft was wrong, not the code |
gabikadlecova/zc_combine/zc_combine/features/base.py code served (permissive licence) · get_code("73cae9b8d56e5f84") 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 DiGraph. 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 networkx as nx
# The function takes edges as a parameter
# edges should be an iterable of (from, to) tuples representing directed edges
# Looking at the function body, it iterates over edges and unpacks each as (e_from, e_to)
# Then adds each edge to a DiGraph
# Create a simple list of edges
edges = [
('node_a', 'node_b'),
('node_b', 'node_c'),
('node_c', 'node_a'),
('node_a', 'node_d'),
]
ARGS = {
'edges': edges
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- networkx — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DiGraph — a DiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiGraph output the recorded ndim 1 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
|
| zero_outgoing |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
gabikadlecova/zc_combine/zc_combine/fixes/utils.py code served (permissive licence) · get_code("fd21b29f71363669") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Analyzing the function:
# - edge_map: indexed with [i, j], so needs to be a 2D tensor or array
# - op_list: indexed with integers from edge_map values, so needs to be indexable
# - net: indexed with integers from edge_map values, needs to support item assignment
# - The function accesses edge_map[i, j] for i in range(1, node) and j in range(node+1, 5)
# - node iterates over [2, 3], so edge_map needs indices up to at least (3, 4)
# - edge_map values should be valid indices into op_list and net
# - net appears to be modified in-place and returned
# Create edge_map: a 2D tensor/array mapping node pairs to operation indices
# Dimensions need to accommodate nodes 1-3 and edges up to node 4
edge_map = torch.tensor([
[0, 0, 0, 0, 0],
[0, 0, 1, 2, 3],
[0, 0, 0, 1, 2],
[0, 0, 0, 0, 1],
[0, 0, 0, 0, 0]
], dtype=torch.long)
# Create op_list: list of operation indices that edge_map references
# edge_map contains values 0, 1, 2, 3 so op_list needs at least 4 elements
op_list = [0, 1, 2, 3]
# Create net: a list/array that will be modified
# It needs to be indexable and mutable by integer indices from edge_map
# edge_map values range from 0-3, so net should have at least 4 elements
net = [0, 1, 2, 3]
# zero_op: the operation value to consider as "zero" (default is 1)
zero_op = 1
ARGS = {
"net": net,
"edge_map": edge_map,
"zero_op": zero_op
}
- 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 int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_feature_dataset |
Not yet run unverified (harvested, no recorded run) |
gabikadlecova/zc_combine/zc_combine/features/dataset.py code served (permissive licence) · get_code("6a2d7c76fc5717cd") How it ran |
| to_dataset |
Not yet run unverified (harvested, no recorded run) |
gabikadlecova/zc_combine/zc_combine/predictors/gnn.py code served (permissive licence) · get_code("2c6ead1f8f01739f") How it ran |
| train |
Not yet run unverified (harvested, no recorded run) |
gabikadlecova/zc_combine/zc_combine/predictors/gnn.py code served (permissive licence) · get_code("21314b00e73896ce") How it ran |