| compute_md5 |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/download_dataset.py code served (permissive licence) · get_code("c50e82e85641fa92") 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 tempfile
import os
# Create a temporary file with some content
temp_dir = tempfile.mkdtemp()
temp_file_path = os.path.join(temp_dir, "test_file.txt")
with open(temp_file_path, 'w') as f:
f.write("Hello, World! This is test content for MD5 checksum computation.")
ARGS = {
"file_path": temp_file_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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_from_timestamp_wise_to_tracks_wise |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/annotations.py code served (permissive licence) · get_code("00a4364595afb64f") 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
# Construct timestamp-wise labels as the input to the function
# This simulates what convert_labels_from_tracks_wise_to_timestamp_wise() would produce
ts_wise_labels = {
1000: [
{
'track_id': 'track_001',
'object_type': 'car',
'position': [10.5, 20.3, 0.0],
'orientation': [0.0, 0.0, 1.57],
'dimension': [4.5, 2.0, 1.8],
'attributes': {'color': 'red', '4': 'moving', 'state': 'active'}
},
{
'track_id': 'track_002',
'object_type': 'pedestrian',
'position': [15.2, 25.1, 0.0],
'orientation': [0.0, 0.0, 0.0],
'dimension': [0.5, 0.5, 1.7],
'attributes': {'gait': 'walking', '5': 'north'}
}
],
1001: [
{
'track_id': 'track_001',
'object_type': 'car',
'position': [11.0, 20.8, 0.0],
'orientation': [0.0, 0.0, 1.57],
'dimension': [4.5, 2.0, 1.8],
'attributes': {'color': 'red', '4': 'moving', 'state': 'active'}
},
{
'track_id': 'track_003',
'object_type': 'bike',
'position': [5.5, 10.2, 0.0],
'orientation': [0.0, 0.0, 0.785],
'dimension': [1.8, 0.6, 1.2],
'attributes': {'type': 'motorcycle', '5': 'east'}
}
],
1002: [
{
'track_id': 'track_002',
'object_type': 'pedestrian',
'position': [15.5, 25.8, 0.0],
'orientation': [0.0, 0.0, 0.1],
'dimension': [0.5, 0.5, 1.7],
'attributes': {'gait': 'walking', '4': 'fast', '5': 'north'}
}
]
}
ARGS = {
'ts_wise_labels': ts_wise_labels
}
- 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
|
| convert_labels_from_tracks_wise_to_timestamp_wise |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/annotations.py code served (permissive licence) · get_code("c6cc24e565b70212") 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 numpy as np
# Construct a valid labels dict that matches the expected structure
labels = {
'tracks': [
{
'track_id': 1,
'object_type': 'car',
'timestamps': [100, 101, 102],
'positions': [[1.0, 2.0, 3.0], [1.1, 2.1, 3.1], [1.2, 2.2, 3.2]],
'orientations': [[0.0, 0.0, 0.0], [0.1, 0.1, 0.1], [0.2, 0.2, 0.2]],
'dimensions': [[4.5, 2.0, 1.5]], # Single dimension for all timestamps
'attributes': {
'color': ['red', 'red', 'red'], # List attribute
'speed': 25.0 # Scalar attribute
}
},
{
'track_id': 2,
'object_type': 'pedestrian',
'timestamps': [100, 101],
'positions': [[5.0, 6.0, 0.0], [5.1, 6.1, 0.0]],
'orientations': [[0.5, 0.0, 0.0], [0.5, 0.0, 0.0]],
'dimensions': [[0.5, 0.5, 1.8], [0.5, 0.5, 1.8]], # Per-timestamp dimensions
'attributes': {
'visible': [True, True], # List attribute
'confidence': 0.95 # Scalar attribute
}
}
]
}
skip_tracks = []
ARGS = {
'labels': labels,
'skip_tracks': skip_tracks
}
- 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 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
|
| convert_mmdet_to_bev_bboxes |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/mmdetection3d/demo/driving_inference.py code served (permissive licence) · get_code("fd3274f945c4e725") 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. 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 torch
torch.manual_seed(0)
class MockInstance3DBoxes:
"""Mock class mimicking mmdet3d's LiDARInstance3DBoxes"""
def __init__(self, boxes_tensor):
self.tensor = boxes_tensor
def __getitem__(self, mask):
"""Support boolean indexing"""
filtered_tensor = self.tensor[mask]
return MockInstance3DBoxes(filtered_tensor)
# Create sample 3D boxes tensor
# Format: [x, y, z, x_size, y_size, z_size, yaw, ...]
# 2 boxes with format compatible with mmdet3d
boxes_data = torch.tensor([
[0.5, 0.5, 0.0, 2.0, 1.5, 1.0, 0.785, 0.0, 0.0], # box at (0.5, 0.5) with yaw ~45deg
[5.0, 5.0, 0.0, 3.0, 2.0, 1.5, 0.0, 0.0, 0.0], # box at (5.0, 5.0) with yaw 0
], dtype=torch.float32)
bboxes_3d = MockInstance3DBoxes(boxes_data)
# Create scores for each box
scores_3d = torch.tensor([0.9, 0.7], dtype=torch.float32)
# Score threshold
score_thr = 0.5
# Point cloud range [x_min, y_min, z_min, x_max, y_max, z_max]
pc_range = [0.0, 0.0, -2.0, 10.0, 10.0, 2.0]
ARGS = {
"bboxes_3d": bboxes_3d,
"scores_3d": scores_3d,
"score_thr": score_thr,
"pc_range": pc_range,
}
- 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 — a list 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
|
| create_timesync_file_for_sequence |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_sequences_from_annotation_file.py code served (permissive licence) · get_code("83c742714be75111") 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 copy
# Construct timesync_content dict with realistic structure
# The function expects 'timestamp_nanoseconds' key and several data keys
timesync_content = {
'timestamp_nanoseconds': [1000000000, 2000000000, 3000000000],
'sensor_x': [10.5, 20.3, 30.1],
'sensor_y': [15.2, 25.4, 35.6],
'sensor_z': [5.1, 10.2, 15.3],
'metadata': ['frame_0', 'frame_1', 'frame_2']
}
# Construct timestamps list - these must be valid keys from timestamp_nanoseconds
timestamps = [1000000000, 3000000000, 2000000000]
ARGS = {
'timesync_content': timesync_content,
'timestamps': timestamps
}
- 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
|
| enu_axes_from_llh |
Ran ran, honoured the contract we drafted |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_geo_ref_format.py code served (permissive licence) · get_code("32205797563fa678") 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, 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 numpy as np
ARGS = {
"lon": 45.0,
"lat": 30.0,
}
- 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, 3) — shape (3, 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
|
| extract_tar_gz |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/unzip_dataset.py code served (permissive licence) · get_code("1360429eef0fc38a") 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 tarfile
import tempfile
import gzip
import shutil
# Create a temporary directory for our test
temp_dir = tempfile.mkdtemp()
# Create a simple test file to tar
test_content_dir = os.path.join(temp_dir, "test_content")
os.makedirs(test_content_dir, exist_ok=True)
# Write some test files
with open(os.path.join(test_content_dir, "file1.txt"), "w") as f:
f.write("test content 1")
with open(os.path.join(test_content_dir, "file2.txt"), "w") as f:
f.write("test content 2")
# Create a tar.gz file
tar_path = os.path.join(temp_dir, "test.tar.gz")
with tarfile.open(tar_path, "w:gz") as tar:
tar.add(test_content_dir, arcname="test_content")
# Define the output directory
output_dir = os.path.join(temp_dir, "extracted")
# Clean up the source directory so extraction is meaningful
shutil.rmtree(test_content_dir)
ARGS = {
"tar_path": tar_path,
"output_dir": output_dir,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| find_all_chunk_groups |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/unzip_dataset.py code served (permissive licence) · get_code("c6fdd0fec4fa94fc") 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 re
import tempfile
import shutil
# Create a temporary directory with mock chunk files
temp_dir = tempfile.mkdtemp()
# Create some mock chunk files following the pattern "base.tar.gz.NNN"
chunk_files = [
"digital_twin.tar.gz.000",
"digital_twin.tar.gz.001",
"digital_twin.tar.gz.002",
"DrivIng.tar.gz.000",
"DrivIng.tar.gz.001",
"other_file.txt",
"not_a_chunk.tar",
]
for fname in chunk_files:
open(os.path.join(temp_dir, fname), 'w').close()
ARGS = {
"input_dir": temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_attribute_options_by_id |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_nuscenes_format.py code served (permissive licence) · get_code("c7ffb71f42241427") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# The function get_attribute_options_by_id takes a single parameter _id
# and returns different lists of strings based on the id value.
# We need to provide a valid _id that will not raise ValueError.
# Valid ids are 1, 2, 3, 4, 5, 6
# Let's use id=1 as a test case
ARGS = {
'_id': 1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_nuscenes_attribute |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_nuscenes_format.py code served (permissive licence) · get_code("8a39b12b54b9778a") 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.
# Setup code for get_nuscenes_attribute function
# Define the track dictionary with valid structure
track = {
'object_type': 'Car',
'attributes': {
'2': 'regular',
'3': 'car_trailer',
'4': 's',
'5': 's'
}
}
ARGS = {
'track': track
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_nuscenes_object_types |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_nuscenes_format.py code served (permissive licence) · get_code("28035ef5d6448459") 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
# The function get_nuscenes_object_types takes a 'track' parameter
# which is a dict with 'object_type' (string) and 'attributes' (dict) keys
# Create a valid track dict for a Pedestrian (adult)
track_pedestrian = {
'object_type': 'Pedestrian',
'attributes': {
'1': 'adult' # attribute ID 1 with value 'adult'
}
}
# Create a valid track dict for a Bus (rigid)
track_bus = {
'object_type': 'Bus',
'attributes': {
'6': 'rigid' # attribute ID 6 with value 'rigid'
}
}
# Create a valid track dict for a Car (no attributes required)
track_car = {
'object_type': 'Car',
'attributes': {}
}
# Test with the Car example
ARGS = {
'track': track_car
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_adma_file_data |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/adma.py code served (permissive licence) · get_code("7d9afb2acce1c4e6") 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 JSON file with sample data
temp_dir = tempfile.mkdtemp()
adma_file_path = os.path.join(temp_dir, "test_adma.json")
sample_data = {
"model": "test_model",
"version": "1.0",
"parameters": [1, 2, 3],
"config": {"learning_rate": 0.001, "batch_size": 32}
}
with open(adma_file_path, 'w') as f:
json.dump(sample_data, f)
ARGS = {
"adma_file_path": adma_file_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_annotation_data |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/annotations.py code served (permissive licence) · get_code("9e29cc59b1737a8d") 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
# Create a temporary directory and file with valid JSON annotation data
temp_dir = tempfile.mkdtemp()
labels_file = os.path.join(temp_dir, "labels.json")
# Create sample annotation data
sample_labels = {
"track_1": {"artist": "Artist A", "duration": 180},
"track_2": {"artist": "Artist B", "duration": 240}
}
with open(labels_file, 'w') as f:
json.dump(sample_labels, f)
ARGS = {
"labels_path": labels_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
|
| load_image |
Ran ran, honoured the contract we drafted |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/camera.py code served (permissive licence) · get_code("3e70a3cdabf7d1aa") 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 int, shape (10, 10, 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 os
import tempfile
import cv2
import numpy as np
# Create a temporary directory and a dummy image file
temp_dir = tempfile.mkdtemp()
img_path = os.path.join(temp_dir, "test_image.png")
# Create a simple dummy image using numpy and save it with cv2
dummy_image = np.zeros((10, 10, 3), dtype=np.uint8)
dummy_image[2:8, 2:8] = [255, 128, 64]
cv2.imwrite(img_path, dummy_image)
ARGS = {
"img_path": img_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 int, shape (10, 10, 3) — shape (10, 10, 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
|
| plot_images_combined |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/utils/camera.py code served (permissive licence) · get_code("c5f3ceea21349870") 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 int, shape (1080, 1920, 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 numpy as np
import tempfile
import os
# Create sample images with shape (N, H, W, C)
# Using small but distinct dimensions
image1 = np.random.randint(0, 256, size=(100, 150, 3), dtype=np.uint8)
image2 = np.random.randint(0, 256, size=(100, 150, 3), dtype=np.uint8)
image3 = np.random.randint(0, 256, size=(100, 150, 3), dtype=np.uint8)
image4 = np.random.randint(0, 256, size=(100, 150, 3), dtype=np.uint8)
images = np.array([image1, image2, image3, image4])
# Create a temporary file path for output
temp_dir = tempfile.gettempdir()
out_path = os.path.join(temp_dir, "combined_images.jpg")
ARGS = {
"images": images,
"rows": 2,
"out_path": out_path,
"img_size": (1080, 1920)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, 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 int, shape (1080, 1920, 3) — shape (1080, 1920, 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
|
| reassemble_tar_gz |
Ran ran; our contract draft was wrong, not the code |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/unzip_dataset.py code served (permissive licence) · get_code("d848baaee99a607d") 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 for testing
temp_dir = tempfile.mkdtemp()
# Create mock chunk files
chunk_files = []
for i in range(3):
chunk_name = f"archive.tar.gz.part{i:02d}"
chunk_path = os.path.join(temp_dir, chunk_name)
# Write some dummy data to each chunk
with open(chunk_path, 'wb') as f:
f.write(b"chunk_data_" * (100 + i * 50))
chunk_files.append(chunk_name)
ARGS = {
'input_dir': temp_dir,
'base_name': 'archive.tar.gz',
'chunks': chunk_files,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tqdm — 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
|
| split_by_chunk_size |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
cvims/DrivIng/dataset_scripts/driving_dataset_scripts/data_conversion/create_sequences_from_annotation_file.py code served (permissive licence) · get_code("2c3bc7cd32e7bd53") 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 3, 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 copy
# Create a minimal timesync_content structure
# The function uses: timesync_content['timestamp_nanoseconds'] and accesses by index
timesync_content = {
'timestamp_nanoseconds': np.array([1000000000, 2000000000, 3000000000, 4000000000, 5000000000, 6000000000, 7000000000, 8000000000], dtype=np.int64),
'sensor_id': ['sensor_1', 'sensor_2', 'sensor_1', 'sensor_2', 'sensor_1', 'sensor_2', 'sensor_1', 'sensor_2'],
'frame_index': [0, 1, 2, 3, 4, 5, 6, 7],
'data_field': [10.1, 20.2, 30.3, 40.4, 50.5, 60.6, 70.7, 80.8]
}
# Create ts_wise_annotations - a dictionary mapping timestamps to annotations
ts_wise_annotations = {
1000000000: {'label': 'class_a'},
2000000000: {'label': 'class_b'},
3000000000: {'label': 'class_a'},
4000000000: {'label': 'class_c'},
5000000000: {'label': 'class_b'},
6000000000: {'label': 'class_a'},
7000000000: {'label': 'class_c'},
8000000000: {'label': 'class_b'}
}
# Define arguments
ARGS = {
'chunks': 2,
'timesync_content': timesync_content,
'ts_wise_annotations': ts_wise_annotations,
'split_sizes': (0.7, 0.15, 0.15)
}
- 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 3, 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
|