| calculate_acc |
Ran ran; our contract draft was wrong, not the code |
princeton-vl/uniqa-3d/Human_Study/relative_camera_pose/evaluate_mturk.py code served (permissive licence) · get_code("16822eba1e76ac6c") 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 tempfile
import shutil
from scipy.stats import mode
# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
# Create folder structure with meta.json files
folder_id_1 = "folder_1"
folder_id_2 = "folder_2"
os.makedirs(os.path.join(temp_dir, folder_id_1), exist_ok=True)
os.makedirs(os.path.join(temp_dir, folder_id_2), exist_ok=True)
# Create meta.json files
meta_1 = {"answer": "Answer_up"}
meta_2 = {"answer": "Answer_left"}
with open(os.path.join(temp_dir, folder_id_1, "meta.json"), "w") as f:
json.dump(meta_1, f)
with open(os.path.join(temp_dir, folder_id_2, "meta.json"), "w") as f:
json.dump(meta_2, f)
# Create answers_zipped dict
# Keys are image filenames in format "folder_id/image_name"
# Values are lists of answers (0 or 1)
answers_zipped = {
"folder_1/image1.jpg": [0, 0, 0], # unanimous vote for 0
"folder_2/image2.jpg": [1, 1], # unanimous vote for 1
}
ARGS = {
"data_folder": temp_dir,
"answers_zipped": answers_zipped,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- scipy — 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
|
| calculate_bic |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_depth.py code served (permissive licence) · get_code("dd80736bb1d636c2") 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 torch
import numpy as np
torch.manual_seed(0)
class SimpleMixtureModel:
"""Minimal mixture model that satisfies calculate_bic's requirements"""
def __init__(self, n_components=2):
self.priors = [0.5, 0.5] # List of prior probabilities
def log_probability(self, X):
"""Return log probability for each sample"""
n_samples = len(X)
# Return a simple array of log probabilities
return np.array([-1.5] * n_samples)
# Create a small toy dataset
X = torch.randn(2, 4) # 2 samples, 4 dimensions
# Create the model
model = SimpleMixtureModel(n_components=2)
ARGS = {
"model": model,
"X": X
}
- 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 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
|
| calculate_flow_auc |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/evaluation.py code served (permissive licence) · get_code("8c191d61503f8e12") 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
import matplotlib.pyplot as plt
import tempfile
import os
# Create temporary directory for output
temp_dir = tempfile.mkdtemp()
output_path = os.path.join(temp_dir, "flow_auc.png")
# Generate sample flow magnitude data
# flows_per_frame: List of arrays containing flow magnitudes per frame
frame1_flows = np.random.uniform(0, 50, 100) # 100 flow magnitudes for frame 1
frame2_flows = np.random.uniform(0, 60, 120) # 120 flow magnitudes for frame 2
frame3_flows = np.random.uniform(0, 40, 80) # 80 flow magnitudes for frame 3
flows_per_frame = [frame1_flows, frame2_flows, frame3_flows]
# resolution: Tuple (width, height) of the camera resolution
resolution = (640, 480)
ARGS = {
"flows_per_frame": flows_per_frame,
"resolution": resolution,
"output_path": output_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- matplotlib, 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
|
| compare_answers |
Ran ran, honoured the contract we drafted |
princeton-vl/uniqa-3d/Human_Study/clevr_vqa/utils.py code served (permissive licence) · get_code("c3c486bf7368e6dd") 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 numpy as np
# The function compare_answers takes two parameters:
# - correct: can be a bool, int, or string
# - model_ans: a string that gets processed
# Test case 1: correct is a bool, model_ans matches after processing
correct_bool = True
model_ans_bool = "Yes"
# Test case 2: correct is an int, model_ans matches after processing
correct_int = 2
model_ans_int = "2"
# Test case 3: correct is a string, model_ans matches after processing
correct_str = "hello"
model_ans_str = "Hello."
# We'll use test case 1 for ARGS
ARGS = {
"correct": True,
"model_ans": "Yes"
}
- 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 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
|
| compress_folder |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/upload_submission.py code served (permissive licence) · get_code("d8ce07490601448a") 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 os
import tempfile
import shutil
# Create a temporary directory with some content to compress
temp_root = tempfile.mkdtemp()
test_folder = os.path.join(temp_root, 'test_data')
os.makedirs(test_folder, exist_ok=True)
# Create a small test file in the folder
with open(os.path.join(test_folder, 'test.txt'), 'w') as f:
f.write('test content')
ARGS = {
'path': test_folder
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| convert_depth_click_raw |
Ran ran, honoured the contract we drafted |
princeton-vl/uniqa-3d/Human_Study/relative_camera_pose/evaluate_mturk.py code served (permissive licence) · get_code("26f9efe7accdcfe5") 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 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 numpy as np
import json
import tempfile
import os
# Create temporary directory structure with required files
temp_dir = tempfile.mkdtemp()
# Create folder structure: data_folder/folder_id/meta.json
folder_id = "test_folder"
folder_path = os.path.join(temp_dir, folder_id)
os.makedirs(folder_path, exist_ok=True)
# Create meta.json file with required fields
meta_data = {
"answer": "A", # starts with 'A' so gt_ans will be 0
"box_1": [[10, 10], [50, 50]], # box coordinates: [[x_min, y_min], [x_max, y_max]]
"box_2": [[60, 60], [100, 100]]
}
meta_fn = os.path.join(folder_path, "meta.json")
with open(meta_fn, 'w') as f:
json.dump(meta_data, f)
# Create the answer_raw JSON string with a single click inside box_1
answer_raw_dict = [{"x": 30, "y": 30}] # Click inside box_1
answer_raw = json.dumps(answer_raw_dict)
# Define image filename with folder structure
image_fn = f"{folder_id}/test_image.jpg"
ARGS = {
"data_folder": temp_dir,
"image_fn": image_fn,
"answer_raw": answer_raw
}
- 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 tuple, ndim 1, dtype family int — 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
|
| create_bins |
Ran ran, honoured the contract we drafted |
princeton-vl/uniqa-3d/Human_Study/clevr_vqa/utils.py code served (permissive licence) · get_code("b864e6061f32b2a5") 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 1, dtype family float, shape (11,) 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
ARGS = {
"min_val": 0.0,
"max_val": 100.0,
"num_bins": 10
}
- 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 1, dtype family float, shape (11,) — shape (11,) 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
|
| encode_image |
Ran ran; our contract draft was wrong, not the code |
princeton-vl/uniqa-3d/LLM_evaluations/clevr_vqa/generate_gpt_response.py pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from jongwoopark7978/LVNet, is pointer only (licence: NONE) · get_code("f41cb1a19b154297") How it ranThe body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from jongwoopark7978/LVNet, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| find_bin_number |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
princeton-vl/uniqa-3d/Human_Study/clevr_vqa/utils.py code served (permissive licence) · get_code("c6596d9a9fde47de") 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 1, dtype family int, shape (4,) 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
# Set random seed for reproducibility
np.random.seed(0)
# Create bin_edges: monotonically increasing array that defines bin boundaries
# np.digitize requires bin_edges to be sorted
bin_edges = np.array([0.0, 1.0, 2.0, 3.0, 4.0])
# Create a value to find the bin for
# This can be a scalar or an array
value = np.array([0.5, 1.5, 2.5, 3.5])
ARGS = {
"value": value,
"bin_edges": bin_edges
}
- 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 1, dtype family int, shape (4,) — shape (4,) 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
|
| get_answer_from_depth |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
princeton-vl/uniqa-3d/Human_Study/relative_depth/utils.py code served (permissive licence) · get_code("a708f802b11577e8") 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 numpy as np
import json
import os
import tempfile
torch.manual_seed(0)
# Create a temporary directory for metadata
temp_dir = tempfile.mkdtemp()
# Create a sample metadata JSON file
image_id = "test_image_001"
meta_data = {
"sample_coord": [[10, 15], [20, 25]]
}
meta_fn = os.path.join(temp_dir, image_id + '_meta.json')
with open(meta_fn, 'w') as f:
json.dump(meta_data, f)
# Create a depth prediction tensor (4x3 to have distinct dimensions)
# The function indexes into it at specific coordinates
depth_pred = torch.ones(30, 30) # Large enough to contain coordinates [20, 25]
depth_pred[10, 15] = 0.1 # depth_pred_1 will be 1/0.1 = 10
depth_pred[20, 25] = 0.2 # depth_pred_2 will be 1/0.2 = 5
# Since 10 > 5, pred_relative_depth should be 1
ARGS = {
"meta_folder": temp_dir,
"image_id": image_id,
"depth_pred": depth_pred
}
- 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 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
|
| inside_box |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
princeton-vl/uniqa-3d/Human_Study/relative_camera_pose/evaluate_mturk.py code served (permissive licence) · get_code("fd604ee0fb02592a") 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
import numpy as np
# The function checks if a coordinate is inside a bounding box
# coord: a sequence with at least 2 elements (coord[0], coord[1])
# box: a sequence of two points, each with at least 2 elements
# box[0] = (min_x, min_y), box[1] = (max_x, max_y)
# Create a coordinate (x, y)
coord = [5.0, 7.0]
# Create a bounding box: [[min_x, min_y], [max_x, max_y]]
box = [[0.0, 0.0], [10.0, 10.0]]
ARGS = {
"coord": coord,
"box": box
}
- 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 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
|
| median_edge_selection |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_graph.py code served (permissive licence) · get_code("ea1138983c9e7b12") 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 MultiDiGraph. 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
import statistics
# Create a small graph with multiple edges between nodes
G = nx.MultiDiGraph()
# Add multiple edges between same node pairs with distance and transformation data
G.add_edge(0, 1, distance=10.0, transformation='transform_a')
G.add_edge(0, 1, distance=12.0, transformation='transform_b')
G.add_edge(0, 1, distance=11.0, transformation='transform_c')
G.add_edge(1, 2, distance=5.0, transformation='transform_d')
G.add_edge(1, 2, distance=6.0, transformation='transform_e')
G.add_edge(1, 2, distance=5.5, transformation='transform_f')
G.add_edge(2, 0, distance=20.0, transformation='transform_g')
G.add_edge(2, 0, distance=22.0, transformation='transform_h')
ARGS = {
'G': G
}
- 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 MultiDiGraph — a MultiDiGraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MultiDiGraph output the recorded ndim 1 and dtype family int 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
|
| numpy_to_list |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_io.py code served (permissive licence) · get_code("42b0f493d1cb2f37") 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 numpy as np
# Create various test objects with numpy arrays
numpy_array_1d = np.array([1, 2, 3, 4])
numpy_array_2d = np.array([[1, 2], [3, 4], [5, 6]])
numpy_array_3d = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
# Test with list containing numpy arrays
list_with_arrays = [
np.array([10, 20, 30]),
np.array([[1, 2, 3], [4, 5, 6]]),
42
]
# Test with dict containing numpy arrays
dict_with_arrays = {
"arr1": np.array([1.5, 2.5, 3.5]),
"arr2": np.array([[10, 20], [30, 40]]),
"scalar": 100,
"nested_list": [np.array([7, 8, 9]), 50]
}
# Test with nested structure
nested_structure = {
"level1": {
"level2": [
np.array([1, 2]),
{"level3": np.array([[1, 2, 3], [4, 5, 6]])}
]
},
"arrays": [np.array([99]), np.array([88, 77])]
}
# Test with scalar (non-numpy)
scalar_value = 42
# Test with plain list
plain_list = [1, 2, 3, "hello"]
# Test with plain dict
plain_dict = {"key1": "value1", "key2": 123}
ARGS = {
"obj": nested_structure
}
- 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 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
|
| preprocess_depth_frame |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_depth.py code served (permissive licence) · get_code("8e1c7e85e2a677ba") 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 (5,) 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 a single parameter 'frame' which should be:
# - A tensor or array-like object with numeric values
# - Support boolean indexing (frame > 0)
# - Support .flatten() method
# - Contain some positive and some non-positive values (to test filtering)
# Create a small depth frame with mixed valid and invalid values
frame = torch.tensor([
[1.5, 2.3, 0.0, -1.0],
[3.2, 0.0, 4.1, 2.8]
], dtype=torch.float32)
ARGS = {
"frame": frame
}
- 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 Tensor, ndim 1, dtype family float, shape (5,) — shape (5,) 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
|
| read_pfm |
Ran ran; our contract draft was wrong, not the code |
princeton-vl/uniqa-3d/Human_Study/relative_depth/utils.py code served (permissive licence) · get_code("b7b4d1f83d4d65fd") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import tempfile
import os
# Create a temporary PFM file for testing
def create_test_pfm():
"""Create a minimal valid PFM file"""
fd, path = tempfile.mkstemp(suffix='.pfm')
# Write PFM file format
with open(path, 'wb') as f:
# Header: color format
f.write(b'PF\n')
# Dimensions: width=2, height=3
f.write(b'2 3\n')
# Scale (negative indicates little-endian)
f.write(b'-1.0\n')
# Data: 3 channels, 2x3 = 6 pixels * 3 channels = 18 floats
data = np.random.randn(18).astype('<f')
data.tofile(f)
os.close(fd)
return path
# Generate test PFM file path
test_pfm_path = create_test_pfm()
ARGS = {
'path': test_pfm_path
}
- 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 tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| read_rotation_from_json |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_io.py code served (permissive licence) · get_code("cca70d6ea8336990") 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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import numpy as np
import tempfile
import os
# Create a temporary JSON file with valid rotation data
temp_dir = tempfile.mkdtemp()
temp_filepath = os.path.join(temp_dir, "rotation.json")
rotation_data = {
"rotation": {
"pan": 45.0,
"tilt": 30.0,
"roll": 15.0
}
}
with open(temp_filepath, 'w') as f:
json.dump(rotation_data, f)
ARGS = {
"filepath": temp_filepath
}
- 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 tuple, ndim 1, 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
|
| read_zed_depth |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_depth.py code served (permissive licence) · get_code("201e1778250b09d6") 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 3, dtype family float, shape (2, 4, 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 h5py
import tempfile
import numpy as np
import os
# Create a temporary HDF5 file with depth data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_depth.h5")
# Create a valid HDF5 file with depth data
with h5py.File(temp_file, 'w') as f:
depth_data = np.random.rand(2, 4, 3).astype(np.float32)
f.create_dataset('data', data=depth_data)
ARGS = {
'file_path': temp_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
|
| retrieve_metadata |
Ran ran; our contract draft was wrong, not the code |
princeton-vl/uniqa-3d/Human_Study/relative_depth/utils.py code served (permissive licence) · get_code("e201c2c212680682") 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 tempfile
import os
# Create a temporary directory and metadata file
temp_dir = tempfile.mkdtemp()
meta_file = os.path.join(temp_dir, "metadata.json")
# Create sample metadata
metadata = {
"model": "test_model",
"version": "1.0",
"layers": 3,
"hidden_dim": 128,
"parameters": {
"learning_rate": 0.001,
"batch_size": 32,
"epochs": 10
}
}
# Write metadata to file
with open(meta_file, 'w') as f:
json.dump(metadata, f)
ARGS = {
"meta_fn": meta_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| snap_coordinate_systems |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_graph.py code served (permissive licence) · get_code("9211482a65400287") 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 Graph. 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 networkx as nx
# Create a simple graph with nodes that have pose attributes
G = nx.Graph()
# Create 4x4 homogeneous transformation matrices (pose = rotation + translation)
# Node 0 - identity pose
pose_0 = np.eye(4)
# Node 1 - rotated and translated
pose_1 = np.eye(4)
pose_1[:3, :3] = np.array([
[0.8, -0.6, 0.0],
[0.6, 0.8, 0.0],
[0.0, 0.0, 1.0]
])
pose_1[:3, 3] = np.array([1.0, 2.0, 3.0])
# Node 2 - different transformation
pose_2 = np.eye(4)
pose_2[:3, :3] = np.array([
[0.707, 0.0, 0.707],
[0.0, 1.0, 0.0],
[-0.707, 0.0, 0.707]
])
pose_2[:3, 3] = np.array([2.0, 1.0, 4.0])
# Node 3 - another transformation
pose_3 = np.eye(4)
pose_3[:3, :3] = np.array([
[1.0, 0.0, 0.0],
[0.0, 0.707, -0.707],
[0.0, 0.707, 0.707]
])
pose_3[:3, 3] = np.array([0.5, 3.0, 2.5])
# Add nodes with poses
G.add_node(0)
G.nodes[0]['pose'] = pose_0
G.add_node(1)
G.nodes[1]['pose'] = pose_1
G.add_node(2)
G.nodes[2]['pose'] = pose_2
G.add_node(3)
G.nodes[3]['pose'] = pose_3
# Add edges (bidirectional)
G.add_edge(0, 1)
G.add_edge(1, 2)
G.add_edge(2, 3)
G.add_edge(0, 3)
ARGS = {
'G': G,
'plane': 2
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
|
| update_edge_transformations |
Ran ran on a synthesized input |
princeton-vl/Princeton365/princeton365/utils/utils_graph.py code served (permissive licence) · get_code("8eee5df111605343") 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 Graph. 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 networkx as nx
# Create a small graph with nodes that have 'pose' attributes
G = nx.Graph()
# Create 4x4 transformation matrices (homogeneous coordinates)
# Node 0 pose: identity matrix
pose_0 = np.eye(4)
# Node 1 pose: translation by (1, 2, 3)
pose_1 = np.eye(4)
pose_1[:3, 3] = np.array([1.0, 2.0, 3.0])
# Node 2 pose: translation by (4, 5, 6)
pose_2 = np.eye(4)
pose_2[:3, 3] = np.array([4.0, 5.0, 6.0])
# Add nodes with pose attributes
G.add_node(0, pose=pose_0)
G.add_node(1, pose=pose_1)
G.add_node(2, pose=pose_2)
# Add edges
G.add_edge(0, 1)
G.add_edge(1, 2)
G.add_edge(0, 2)
# Initialize edge attributes
for u, v in G.edges():
G[u][v]['transformation'] = None
G[u][v]['distance'] = None
ARGS = {
'G': G
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph output the recorded ndim 1 and dtype family int 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
|
| create_board |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/board_generator.py code served (permissive licence) · get_code("16d8cfdce0ca9089") How it ran |
| detect_pose |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/utils/utils_aruco.py code served (permissive licence) · get_code("5b4e7fee01cf2b32") How it ran |
| estimate_relative_pose |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/utils/utils_aruco.py code served (permissive licence) · get_code("b4a96fd355a29c5b") How it ran |
| generate_charuco_boards |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/board_generator.py code served (permissive licence) · get_code("f9cb044d350d4f6f") How it ran |
| get_response |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/uniqa-3d/LLM_evaluations/clevr_vqa/generate_gpt_response.py code served (permissive licence) · get_code("f609b882d3318e8a") How it ran |
| get_response |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/uniqa-3d/LLM_evaluations/relative_camera_pose/generate_gpt4v_response.py code served (permissive licence) · get_code("864f8f7c8a83f0b3") How it ran |
| get_response |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/uniqa-3d/LLM_evaluations/relative_depth/generate_gpt4v_response.py code served (permissive licence) · get_code("42bf1823205a9ad2") How it ran |
| get_result_save_path |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/utils/utils_io.py code served (permissive licence) · get_code("624504bd4df1f096") How it ran |
| multiboard_pnp |
Not yet run unverified (harvested, no recorded run) |
princeton-vl/Princeton365/princeton365/utils/utils_aruco.py code served (permissive licence) · get_code("5566a27037c99eb4") How it ran |