| ADE_best_of |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/metrics.py code served (permissive licence) · get_code("2b4360c86f098dbe") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
num_sample = 2
seq_length = 12
N_agents = 3
num_coords = 2
obs_length = 8
predictions = torch.randn(num_sample, seq_length, N_agents, num_coords)
ground_truth = torch.randn(seq_length, N_agents, num_coords)
metric_mask = torch.tensor([True, False, True])
ARGS = {
"predictions": predictions,
"ground_truth": ground_truth,
"metric_mask": metric_mask,
"obs_length": obs_length
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| BCE_loss_sample |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/losses.py code served (permissive licence) · get_code("aaa355270e781d8a") 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 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 torch.nn as nn
torch.manual_seed(0)
# Define dimensions: batch_size=2, T=3, H=4, W=5
batch_size = 2
T = 3
H = 4
W = 5
# logit_map: shape (batch_size, T, H, W) - logits for BCE
logit_map = torch.randn(batch_size, T, H, W)
# goal_map_GT: shape (batch_size, T, H, W) - probability targets (0-1)
goal_map_GT = torch.sigmoid(torch.randn(batch_size, T, H, W))
# loss_mask: a tensor where loss_mask[-1] is indexed
# loss_mask[-1] should have shape (batch_size,) based on how it's used:
# (loss * full_agents).sum(dim=0) / full_agents.sum()
# This indicates full_agents is shape (batch_size,)
loss_mask = torch.tensor([[1.0, 1.0], [1.0, 1.0]]) # shape (2, 2)
ARGS = {
"logit_map": logit_map,
"goal_map_GT": goal_map_GT,
"loss_mask": loss_mask,
}
- 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 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
|
| FDE_best_of |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/metrics.py code served (permissive licence) · get_code("7715545c03b6e0dd") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create small tensors matching the function's shape requirements
# predictions: (num_sample, seq_length, N_agents, num_coords)
num_sample = 2
seq_length = 4
N_agents = 3
num_coords = 2
predictions = torch.randn(num_sample, seq_length, N_agents, num_coords)
ground_truth = torch.randn(seq_length, N_agents, num_coords)
metric_mask = torch.tensor([True, True, False])
obs_length = 8
ARGS = {
"predictions": predictions,
"ground_truth": ground_truth,
"metric_mask": metric_mask,
"obs_length": obs_length,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| Goal_BCE_loss |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/losses.py code served (permissive licence) · get_code("45fd898892ba2496") 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 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 torch.nn as nn
torch.manual_seed(0)
# Analyze the function requirements:
# Goal_BCE_loss takes:
# 1. logit_map: iterated over with "for logit_map_sample_i in logit_map"
# Each sample is passed to BCE_loss_sample
# 2. goal_map_GT: passed to BCE_loss_sample, used in view() and BCE criterion
# 3. loss_mask: passed to BCE_loss_sample, indexed with loss_mask[-1]
#
# BCE_loss_sample expects:
# - logit_map: tensor with shape (batch_size, T, H, W) - reshaped to (batch_size, -1)
# - goal_map_GT: tensor with same spatial dims, reshaped to (batch_size, -1)
# - loss_mask: indexed with [-1] to get full_agents, then used in multiplication
# full_agents should be broadcastable with loss (which has shape batch_size)
# logit_map should be iterable (list of samples) where each sample is (T, H, W) shaped
# Actually, looking more carefully: logit_map is iterated over, and each element
# is passed to BCE_loss_sample which expects shape (batch_size, T, H, W)
# So logit_map is a list/sequence of tensors, each with shape (batch_size, T, H, W)
batch_size = 2
T = 3
H = 4
W = 5
num_samples = 2
# Create logit_map as a list of tensors, each with shape (batch_size, T, H, W)
logit_map = [
torch.randn(batch_size, T, H, W),
torch.randn(batch_size, T, H, W)
]
# goal_map_GT should have shape (batch_size, T, H, W) and values in [0, 1] for BCE
goal_map_GT = torch.sigmoid(torch.randn(batch_size, T, H, W))
# loss_mask[-1] is accessed and should be broadcastable with loss (shape: batch_size)
# loss_mask[-1] should have shape compatible for element-wise multiplication with (batch_size,)
# and then sum reduction
loss_mask = [
torch.ones(batch_size),
torch.ones(batch_size)
]
ARGS = {
'logit_map': logit_map,
'goal_map_GT': goal_map_GT,
'loss_mask': loss_mask
}
- 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 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
|
| MSE_loss |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/losses.py code served (permissive licence) · get_code("5dd5988bfbd47cc3") 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 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
torch.manual_seed(0)
# Build tensors with distinct dimensions
# outputs: (num_samples=2, seq_length=3, num_agent=4, n_coords=2)
outputs = torch.randn(2, 3, 4, 2)
# ground_truth: same shape as outputs
ground_truth = torch.randn(2, 3, 4, 2)
# loss_mask: (num_samples=2, seq_length=3, num_agent=4) - boolean mask
loss_mask = torch.rand(2, 3, 4) > 0.5
ARGS = {
"outputs": outputs,
"ground_truth": ground_truth,
"loss_mask": loss_mask,
}
- 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 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
|
| check_and_add_additional_args |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/parser.py code served (permissive licence) · get_code("2eb7cc0d4aca658a") 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 Args. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
# Create a minimal args object that satisfies the function requirements
class Args:
def __init__(self):
self.device = 'cpu'
self.dataset = 'eth'
self.test_set = 'eth'
self.num_epochs = 100
self.save_every = None
self.num_test_samples = 5
self.add_noise_traj = True
self.fast_debug = False
self.num_test_runs = 10
self.start_validation = 5
self.model_name = 'test_model'
self.phase = 'train'
args = Args()
ARGS = {
'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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
|
| compute_metric_mask |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/metrics.py code served (permissive licence) · get_code("daac15363c345ceb") 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 1, dtype family float, shape (3,) 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)
# Construct a small tensor representing sequence presence mask
# Shape: (seq_len, N_pedestrians) = (5, 3)
# Boolean mask where 1 = pedestrian present, 0 = pedestrian absent
seq_list = torch.tensor([
[1, 1, 1],
[1, 1, 0],
[1, 1, 0],
[1, 0, 0],
[1, 0, 0]
], dtype=torch.float32)
ARGS = {
"seq_list": seq_list
}
- 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 1, dtype family float, shape (3,) — shape (3,) 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_term |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/parser.py code served (permissive licence) · get_code("81236cafc46b4e11") 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 Args. 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
class Args:
pass
args = Args()
ARGS = {"args": args}
- 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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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_dataloader |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/data_loader.py code served (permissive licence) · get_code("d3f3d5f739da0c8f") 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 DataLoader. 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 pickle
import random
import tempfile
import torch
import numpy as np
torch.manual_seed(0)
np.random.seed(0)
random.seed(0)
# Create a temporary directory structure with mock pickle files
temp_dir = tempfile.mkdtemp()
data_batches_dir = os.path.join(temp_dir, 'data_batches')
os.makedirs(data_batches_dir, exist_ok=True)
# Create train, valid, and test batch directories
for set_name in ['train', 'valid', 'test']:
set_dir = os.path.join(data_batches_dir, f'{set_name}_batches')
os.makedirs(set_dir, exist_ok=True)
# Create 2 mock batch files for each set
for batch_idx in range(2):
batch_data = {
'tensor_image': torch.randn(3, 64, 64),
'abs_pixel_coord': torch.randint(0, 64, (2, 5, 2)).float(),
'input_traj_maps': torch.randn(2, 4, 64, 64),
}
batch_id = f'{set_name}_batch_{batch_idx}'
batch_file_path = os.path.join(set_dir, f'batch_{batch_idx}.pkl')
with open(batch_file_path, 'wb') as f:
pickle.dump((batch_data, batch_id), f)
# Create args class
class Args:
def __init__(self):
self.save_dir = temp_dir
self.data_augmentation = True
self.down_factor = 2
self.shuffle_train_batches = True
self.shuffle_test_batches = False
ARGS = {
'args': Args(),
'set_name': 'train'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- albumentations, cv2, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_legitimate_traj |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/data_pre_process.py code served (permissive licence) · get_code("b7c2f3ef3135a983") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import pandas as pd
# Create a simple DataFrame that represents a valid trajectory
# The function expects:
# - traj_df with columns: agent_id, frame_id
# - step parameter for the spacing check
# Create a valid trajectory dataframe
agent_id_values = np.array([1, 1, 1, 1, 1])
frame_id_values = np.array([0, 2, 4, 6, 8])
traj_df = pd.DataFrame({
'agent_id': agent_id_values,
'frame_id': frame_id_values
})
step = 2
ARGS = {
'traj_df': traj_df,
'step': step
}
- 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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_power_of_two |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/utils.py code served (permissive licence) · get_code("fba0e99a69709c33") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# The function is_power_of_two takes a single integer parameter n
# and checks if n is a power of 2 using bitwise operations.
# It returns True if n is a power of 2 and n != 0, False otherwise.
# Test with a power of 2
ARGS = {
"n": 8
}
- 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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| pixel2world_numpy |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py code served (permissive licence) · get_code("665b9e99a83e511e") 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 ndarray, ndim 2, dtype family float, shape (4, 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 numpy as np
# Create pixel coordinates: seq_length x 2
# Using 4 sample points
pixel_coord = np.array([
[100.0, 200.0],
[150.0, 250.0],
[200.0, 300.0],
[50.0, 100.0]
])
# Create a 3x3 homography matrix
# A simple homography that includes scaling and translation
H = np.array([
[1.5, 0.1, 10.0],
[0.05, 1.2, 20.0],
[0.001, 0.002, 1.0]
])
ARGS = {
"pixel_coord": pixel_coord,
"H": H
}
- 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 ndarray, ndim 2, dtype family float, shape (4, 2) — shape (4, 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
|
| split_at_fragment_lambda |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py code served (permissive licence) · get_code("ed295e9fe1e58373") 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 small DataFrame with agent_id and other columns
df = pd.DataFrame({
'agent_id': ['agent_1', 'agent_1', 'agent_2', 'agent_2'],
'value': [10, 20, 30, 40],
'new_agent_id': [None, None, None, None]
})
# Create a GroupBy object for fragmentation
# This simulates groups of indices for each agent
class MockGroupBy:
def __init__(self):
self.groups = {
'agent_1': [0, 1],
'agent_2': [2, 3]
}
gb_frag = MockGroupBy()
# Fragment index dictionary mapping agent_id to fragment info
frag_idx = {
'agent_1': True,
'agent_2': True
}
# Create a Series-like object wrapper for x to match the function's usage
x = df.copy()
ARGS = {
'x': x,
'frag_idx': frag_idx,
'gb_frag': gb_frag
}
- 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
|
| str2bool |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/utils.py code served (permissive licence) · get_code("e7d27a57b83c42b8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import argparse
def str2bool(v):
if isinstance(v, bool):
return v
elif v.lower() in ('true', 't', 'yes', 'y', 'on', '1'):
return True
elif v.lower() in ('false', 'f', 'no', 'n', 'off', '0'):
return False
else:
raise argparse.ArgumentTypeError('Boolean value expected.')
# The function str2bool takes one parameter: v
# It handles bool, string, and raises ArgumentTypeError otherwise
# We need to provide values that exercise the different branches
ARGS = {
'v': 'true' # string input that converts to True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| strOrNone |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/utils.py code served (permissive licence) · get_code("c8eca73e83667851") 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
def strOrNone(v):
if v is None:
return v
elif v.lower() in ('none', 'no', 'n', 'false', 'f', 'off', '0'):
return None
else:
return v
# The function takes a single parameter 'v' which should be either None or a string
# It calls .lower() on v if v is not None, so v must be a string or have a .lower() method
ARGS = {
'v': 'test_string'
}
- 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
|
| world2pixel_numpy |
Ran ran on a synthesized input |
luigifilippochiara/Goal-SAR/src/data_src/data_utils.py code served (permissive licence) · get_code("e122daf238c6c1d4") 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 ndarray, ndim 2, dtype family float, shape (3, 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 numpy as np
# Create world coordinates: seq_length x 2 array of (x, y) world coordinates
world_coord = np.array([
[1.0, 2.0],
[3.0, 4.0],
[5.0, 6.0]
], dtype=np.float32)
# Create a 3x3 inverse homography matrix
H_inv = np.array([
[1.2, 0.1, 0.5],
[0.05, 1.1, 0.3],
[0.01, 0.02, 1.0]
], dtype=np.float32)
ARGS = {
"world_coord": world_coord,
"H_inv": H_inv
}
- 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 ndarray, ndim 2, dtype family float, shape (3, 2) — shape (3, 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
|
| load_args |
Not yet run unverified (harvested, no recorded run) |
luigifilippochiara/Goal-SAR/src/parser.py code served (permissive licence) · get_code("2a6d9ff5181be851") How it ran |