| MaxPool2D |
Ran ran on a synthesized input |
Lornatang/tensorflow-vgg/vgg19.py code served (permissive licence) · get_code("d4eeda2872667d44") 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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 1) 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 tensorflow as tf
import numpy as np
# Create a small input tensor with shape (batch=2, height=4, width=3, channels=1)
# TensorFlow max_pool expects NHWC format (batch, height, width, channels)
input_tensor = tf.constant(np.random.randn(2, 4, 3, 1).astype(np.float32))
# Define parameters
kernel_size = 2
stride = 1
name = "max_pool_layer"
ARGS = {
"input_op": input_tensor,
"kernel_size": kernel_size,
"stride": stride,
"name": name
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 1) — shape (2, 4, 3, 1) 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
|
| VGG11 |
Ran ran; our contract draft was wrong, not the code |
CryptoSalamander/pytorch_paper_implementation/vgg/vgg.py pointer only (licence: NONE) · get_code("d8c07e278a45ed42") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, CryptoSalamander/pytorch_paper_implementation 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. |
| VGG13 |
Ran ran; our contract draft was wrong, not the code |
CryptoSalamander/pytorch_paper_implementation/vgg/vgg.py pointer only (licence: NONE) · get_code("c6b041dd541a64d6") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, CryptoSalamander/pytorch_paper_implementation 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. |
| add_bb_into_image |
Ran ran on a synthesized input |
MaliParag/ScanSSD/IOU_lib/iou_utils.py code served (permissive licence) · get_code("ada830818fd6f55d") 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 (100, 100, 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 cv2
import numpy as np
from enum import Enum
class BBFormat(Enum):
"""
Class representing the format of a bounding box.
It can be (X,Y,width,height) => XYWH
or (X1,Y1,X2,Y2) => XYX2Y2
Developed by: Rafael Padilla
Last modification: May 24 2018
"""
XYWH = 1
XYX2Y2 = 2
class BoundingBox:
"""Stand-in bounding box class"""
def __init__(self, x1, y1, x2, y2):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
def getAbsoluteBoundingBox(self, format_type):
if format_type == BBFormat.XYX2Y2:
return (self.x1, self.y1, self.x2, self.y2)
elif format_type == BBFormat.XYWH:
width = self.x2 - self.x1
height = self.y2 - self.y1
return (self.x1, self.y1, width, height)
return (self.x1, self.y1, self.x2, self.y2)
# Create a small test image (100x100 RGB)
test_image = np.ones((100, 100, 3), dtype=np.uint8) * 255
# Create a bounding box
test_bb = BoundingBox(x1=10, y1=20, x2=80, y2=90)
# Define ARGS
ARGS = {
'image': test_image,
'bb': test_bb,
'color': (255, 0, 0),
'thickness': 2,
'label': 'test_label'
}
- 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 (100, 100, 3) — shape (100, 100, 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
|
| add_extras |
Ran ran on a synthesized input |
MaliParag/ScanSSD/ssd.py code served (permissive licence) · get_code("4c0d484f565e9580") 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 torch.nn as nn
torch.manual_seed(0)
# Construct cfg dict with 'extras' key containing size-based layer configs
cfg = {
'extras': {
'300': [256, 'S', 512, 'S', 128],
'512': [256, 'S', 512, 'S', 128, 'S', 256]
}
}
# i is the input channels (integer)
size = 512
i = 1024
batch_norm = False
ARGS = {
'cfg': cfg,
'size': size,
'i': i,
'batch_norm': batch_norm
}
- 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
|
| all_possible_filename_combinations |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/SAVC/prepare_av_correspondence_csvs.py code served (permissive licence) · get_code("1d584691ec2a4ccf") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family 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 itertools
def all_possible_filename_combinations(filename_ls):
""" Returns a list of tuples, where each tuple is a unique combination of
elements from the list. The list contains all possible combinations of
size 2.
"""
congruent_tfrecords_1 = list(itertools.combinations(filename_ls, 2))
congruent_tfrecords_2 = [(tup[1], tup[0]) for tup in congruent_tfrecords_1]
congruent_tfrecords = congruent_tfrecords_1 + congruent_tfrecords_2
congruent_tfrecords.extend([(f, f) for f in filename_ls])
return congruent_tfrecords
# Setup code
ARGS = {
"filename_ls": ["file_a.tfrecord", "file_b.tfrecord", "file_c.tfrecord"]
}
- 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 list, ndim 2, 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
|
| arg_optimizer |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/NNModule.py code served (permissive licence) · get_code("876a8c8959d78cbb") 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 function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from torch.optim import SGD
torch.manual_seed(0)
# Create a simple model with parameters
model = nn.Linear(4, 3)
params = model.parameters()
# Create an optimizer callable (e.g., SGD)
optimizer = SGD
# Define keyword arguments for the optimizer
optimizer_kwargs = {
'lr': 0.01,
'momentum': 0.9
}
ARGS = {
'optimizer': optimizer,
'args': (),
'kwargs': optimizer_kwargs
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| broadcast |
Ran ran on a synthesized input |
vwegn/dm/custom_layers.py code served (permissive licence) · get_code("42eea443a34aa478") 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 EagerTensor, ndim 2, dtype family float, shape (2, 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 tensorflow as tf
import numpy as np
def broadcast(tensor, shape):
return tensor + tf.zeros(shape, dtype=tensor.dtype)
# Create a small TensorFlow tensor
tensor = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)
# Define a target shape for broadcasting
target_shape = (2, 4)
ARGS = {
"tensor": tensor,
"shape": target_shape
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
|
| build_video_path |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/audiovisual_similarity/audio_present.py code served (permissive licence) · get_code("85808eb19afd43f3") 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
MIT_dir = '/Moments_in_Time_Raw/'
def build_video_path(row):
if row['video_location'] == 'MIT_training':
split = 'training'
elif row['video_location'] == 'MIT_validation':
split = 'validation'
return MIT_dir + split + '/' + row['filename']
# Create a minimal dict that satisfies the function's requirements
row = {
'video_location': 'MIT_training',
'filename': 'sample_video.mp4'
}
ARGS = {
'row': row
}
- 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
|
| bytes_feature |
Ran ran; our contract draft was wrong, not the code |
mjoannou/audiovisual-moments-in-time/feature_extractor/extract_features.py code served (permissive licence) · get_code("d682a9593710857e") 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 Feature. 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 tensorflow as tf
# bytes_feature expects a single parameter 'value' which should be bytes
# The function wraps it in tf.train.BytesList and then tf.train.Feature
ARGS = {
"value": b"example_bytes_data"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Feature — a Feature output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Feature 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
|
| center_size |
Ran ran on a synthesized input |
chosj95/PFPNet.pytorch/layers/box_utils.py code served (permissive licence) · get_code("1283157b9af10fce") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch
torch.manual_seed(0)
# The function takes boxes in point_form (xmin, ymin, xmax, ymax)
# and converts to center-size form (cx, cy, w, h)
# boxes should be a tensor of shape (batch_size, 4)
boxes = torch.tensor([
[10.0, 20.0, 30.0, 40.0],
[5.0, 15.0, 25.0, 35.0]
])
ARGS = {
"boxes": boxes
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
|
| check_inside |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/box_utils.py code served (permissive licence) · get_code("364c2403ae6c48ec") 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
torch.manual_seed(0)
# The function check_inside checks if rectA is completely inside rectB
# by comparing their coordinates: [x_min, y_min, x_max, y_max]
# rectA is inside rectB if:
# rectA[0] >= rectB[0] and rectA[1] >= rectB[1] and rectA[2] <= rectB[2] and rectA[3] <= rectB[3]
# Create two rectangles as lists or tuples with 4 coordinates each
# rectA should be inside rectB for a True case
rectA = [1, 1, 3, 3] # smaller rectangle
rectB = [0, 0, 4, 4] # larger rectangle containing rectA
ARGS = {
"rectA": rectA,
"rectB": rectB
}
- 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
|
| check_inside |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/create_segmentation_gt.py code served (permissive licence) · get_code("bc011d5b295c72cd") 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
torch.manual_seed(0)
# Analyzing the function:
# - check_inside takes two parameters: rectA and rectB
# - Both are used with indexing (e.g., rectA[0], rectA[1], rectA[2], rectA[3])
# - The function compares these indices as if they represent rectangle bounds
# - Rectangles are typically represented as [x_min, y_min, x_max, y_max] or similar
# - The comparisons suggest: rectA[0] and rectA[2] are x-coordinates, rectA[1] and rectA[3] are y-coordinates
# Create two rectangles as lists/tuples with 4 elements each
# Rectangle format: [x_min, y_min, x_max, y_max]
rectA = [1, 2, 5, 6] # A rectangle from (1,2) to (5,6)
rectB = [2, 1, 7, 8] # A rectangle from (2,1) to (7,8)
ARGS = {
"rectA": rectA,
"rectB": rectB
}
- 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
|
| compute_coordinate_k |
Ran ran on a synthesized input |
vwegn/dm/dm.py code served (permissive licence) · get_code("563cc812f053fff8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Set random seed for reproducibility
np.random.seed(0)
# Define arguments for compute_coordinate_k
q1 = np.array([10.5, 20.3, 15.7])
q2 = np.array([5.2, 8.9, 12.1])
p1 = np.array([2.1, 3.4, 4.5])
p2 = np.array([1.2, 2.3, 3.4])
const_r = 8
const_l = 2
ARGS = {
"q1": q1,
"q2": q2,
"p1": p1,
"p2": p2,
"const_r": const_r,
"const_l": const_l,
}
- 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 2, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| construct_class_filter |
Ran ran; our contract draft was wrong, not the code |
trzy/VGG16/VGG16/__main__.py pointer only (licence: NONE) · get_code("74f3a3649ad0a1d1") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, trzy/VGG16 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. |
| contains_word |
Ran ran on a synthesized input |
UKPLab/coling18-multimodalSurvey/coling18-multimodalSurvey_experiments.py code served (permissive licence) · get_code("a88563d8f67f8a7d") 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
class MockWord2VecEmbeddings:
def __init__(self):
self.vocab = {'hello', 'world', 'python', 'machine', 'learning'}
word2vec = MockWord2VecEmbeddings()
ARGS = {
'word2VecEmbeddings': word2vec,
'word': 'hello'
}
- 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
|
| conv1x1 |
Ran ran; our contract draft was wrong, not the code |
zjsong/sspl/sspl_w_pcm/models/sound_net.py code served (permissive licence) · get_code("d9def42110729a85") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters
ARGS = {
"in_planes": 3,
"out_planes": 64,
"stride": 1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
|
| conv3x3 |
Ran ran; our contract draft was wrong, not the code |
zjsong/sspl/sspl_w_pcm/models/sound_net.py code served (permissive licence) · get_code("160bb14bd76201b4") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
ARGS = {
"in_planes": 3,
"out_planes": 64,
"stride": 1,
"groups": 1,
"dilation": 1,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
|
| convertToAbsoluteValues |
Ran ran on a synthesized input |
MaliParag/ScanSSD/IOU_lib/iou_utils.py code served (permissive licence) · get_code("5fa22628f1bde0ae") 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 torch
import numpy as np
torch.manual_seed(0)
# Analyzing the function:
# - size: tuple/list of 2 elements (width, height of image)
# - box: tuple/list of 4 elements (center_x, center_y, width, height in normalized coords)
# Both are accessed with indexing and converted to float
# Create valid arguments
size = (640, 480) # Image dimensions: width=640, height=480
# box format appears to be normalized coordinates:
# [center_x, center_y, box_width, box_height] all in range [0, 1]
box = [0.5, 0.5, 0.3, 0.4] # Center at (0.5, 0.5), width=0.3, height=0.4
ARGS = {
"size": size,
"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 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
|
| convertToRelativeValues |
Ran ran on a synthesized input |
MaliParag/ScanSSD/IOU_lib/iou_utils.py code served (permissive licence) · get_code("478a1014eb6ca877") 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 torch
import numpy as np
torch.manual_seed(0)
# Analyzing the function:
# - size: indexed as size[0] and size[1], should be a tuple/list with 2 elements
# - box: indexed as box[0], box[1], box[2], box[3], should be a tuple/list with 4 elements
# representing bounding box coordinates (x_min, x_max, y_min, y_max)
# Create valid arguments
size = (640, 480) # width, height of image/canvas
box = (10.0, 100.0, 20.0, 150.0) # (x_min, x_max, y_min, y_max) - bounding box coordinates
ARGS = {
"size": size,
"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 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
|
| create_bb |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/create_gt_math.py code served (permissive licence) · get_code("4fdedd61b47c63bb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family 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)
# math_regions_chars: list of regions, where each region is a list of character IDs
math_regions_chars = [
[0, 1, 2], # first region contains char IDs 0, 1, 2
[3, 4] # second region contains char IDs 3, 4
]
# char_info: dict mapping character ID to [x_min, y_min, x_max, y_max]
char_info = {
0: [10.0, 20.0, 30.0, 40.0],
1: [25.0, 15.0, 50.0, 45.0],
2: [5.0, 25.0, 35.0, 50.0],
3: [100.0, 100.0, 120.0, 130.0],
4: [110.0, 95.0, 140.0, 135.0]
}
ARGS = {
"math_regions_chars": math_regions_chars,
"char_info": char_info
}
- 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 2, 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
|
| create_doc_bboxes_map |
Ran ran on a synthesized input |
MaliParag/ScanSSD/IOU_lib/IOUevaluater.py code served (permissive licence) · get_code("d8b64980508f94bd") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
import shutil
# Define the stand-in classes needed by the function
class CoordinatesType:
Absolute = "Absolute"
class BBType:
GroundTruth = "GroundTruth"
class BBFormat:
XYX2Y2 = "XYX2Y2"
class BoundingBox:
def __init__(self, name, class_id, x, y, x2, y2, coordinates_type, image_size, bb_type, format=None):
self.name = name
self.class_id = class_id
self.x = x
self.y = y
self.x2 = x2
self.y2 = y2
self.coordinates_type = coordinates_type
self.image_size = image_size
self.bb_type = bb_type
self.format = format
# Create a temporary directory with test CSV files
temp_dir = tempfile.mkdtemp()
# Create a sample CSV file with math region data
csv_content = """1.0,10.5,20.3,100.5,150.3
1.0,110.5,220.3,200.5,250.3
2.0,15.2,25.8,105.2,155.8
2.0,115.2,225.8,205.2,255.8
3.0,5.1,15.1,95.1,145.1
"""
csv_file_path = os.path.join(temp_dir, "test_math.csv")
with open(csv_file_path, 'w') as f:
f.write(csv_content)
# Create another CSV file
csv_content_2 = """1.0,30.0,40.0,120.0,160.0
"""
csv_file_path_2 = os.path.join(temp_dir, "test_math2.csv")
with open(csv_file_path_2, 'w') as f:
f.write(csv_content_2)
ARGS = {
"dir_path": temp_dir,
"flag": "math"
}
- 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
|
| cross_entropy_loss_fn |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/loss_functions.py code served (permissive licence) · get_code("ef5b943ff93d3198") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Construct valid arguments for cross_entropy_loss_fn
# The function expects:
# - output: logits tensor of shape (batch_size, num_classes)
# - target: target class indices tensor of shape (batch_size,)
batch_size = 2
num_classes = 4
# Create output tensor (logits) with shape (2, 4)
output = torch.randn(batch_size, num_classes)
# Create target tensor with class indices in range [0, num_classes)
target = torch.tensor([0, 2])
ARGS = {
"output": output,
"target": target
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 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
|
| dfs |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/create_gt_math.py code served (permissive licence) · get_code("83cd98c436eef2a7") 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 set. 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.
# Construct arguments for the dfs function
# The function performs depth-first search on a graph represented as a dict
# where keys are vertices and values are sets of adjacent vertices
# Build a simple graph as a dictionary
# Keys are vertices (integers), values are sets of neighboring vertices
graph = {
0: {1, 2},
1: {0, 3},
2: {0, 4},
3: {1},
4: {2}
}
# Starting vertex for the DFS
start = 0
ARGS = {
"graph": graph,
"start": start
}
- 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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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_intersecting_boxes |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/box_utils.py code served (permissive licence) · get_code("81a654fc5cd84ebd") 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 OrderedDict. 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
from collections import OrderedDict
# Analyze the function:
# - find_intersecting_boxes takes math_regions and sorted parameter
# - math_regions is iterated over with len() and indexed
# - Each element is indexed with [0], [1], [2], [3] (4-tuple access)
# - intersects() checks if bounding boxes overlap using coordinates
# - The function compares boxes pairwise
# math_regions should be a list of bounding boxes
# Each box is a 4-tuple/list representing [x_min, y_min, x_max, y_max]
# Create sample bounding boxes (x_min, y_min, x_max, y_max)
# Box 1: (0, 0, 5, 5)
# Box 2: (3, 3, 8, 8) - overlaps with Box 1
# Box 3: (10, 10, 15, 15) - no overlap
math_regions = [
(0, 0, 5, 5), # First box
(3, 3, 8, 8), # Overlaps with first
(10, 10, 15, 15) # No overlap
]
ARGS = {
"math_regions": math_regions,
"sorted": True
}
- 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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
|
| flip_images |
Ran ran on a synthesized input |
Yashgh7076/CPSC-8810-Project/Bully_Victim_prediction_resnet.py code served (permissive licence) · get_code("06428a843ff6a1c2") 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 4, dtype family float, shape (2, 224, 224, 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
# Create a small dataset with shape (N, height, width, channels)
# Using N=2, height=224, width=224, channels=3
dataset = np.random.rand(2, 224, 224, 3).astype(np.float32)
ARGS = {
"dataset": dataset
}
- 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 4, dtype family float, shape (2, 224, 224, 3) — shape (2, 224, 224, 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
|
| flip_images |
Ran ran on a synthesized input |
Yashgh7076/CPSC-8810-Project/model1_vgg.py code served (permissive licence) · get_code("e6ae69f8023053d5") 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 4, dtype family float, shape (2, 224, 224, 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
ROWS = 224
COLS = 224
# Create a small dataset with shape (N, ROWS, COLS, 3)
# N=2 for batch size, ROWS=224, COLS=224, 3 channels for RGB
dataset = np.random.randint(0, 256, size=(2, ROWS, COLS, 3), dtype=np.uint8)
ARGS = {
"dataset": dataset
}
- 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 4, dtype family float, shape (2, 224, 224, 3) — shape (2, 224, 224, 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
|
| flow_compute_color |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
vwegn/dm/flow_vis.py code served (permissive licence) · get_code("63c5a2b51dee1425") 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 (4, 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
# Create small test flow fields (u and v components)
# Shape: (4, 3) for height=4, width=3
u = np.random.randn(4, 3).astype(np.float32) * 5
v = np.random.randn(4, 3).astype(np.float32) * 5
# Test with convert_to_bgr=False (default RGB)
ARGS = {
"u": u,
"v": v,
"convert_to_bgr": False
}
- 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 3, dtype family int, shape (4, 3, 3) — shape (4, 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
|
| flow_to_color |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
vwegn/dm/flow_vis.py code served (permissive licence) · get_code("c869c75bbde6fc92") 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 (4, 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
# Create a small optical flow field with shape [H, W, 2]
# H=4, W=3 for distinct dimensions
H, W = 4, 3
flow_uv = np.random.randn(H, W, 2).astype(np.float32) * 10
ARGS = {
"flow_uv": flow_uv,
"clip_flow": 5.0,
"convert_to_bgr": False
}
- 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 3, dtype family int, shape (4, 3, 3) — shape (4, 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
|
| generate_validpairs |
Ran ran on a synthesized input |
MaliParag/ScanSSD/IOU_lib/IOUevaluater.py code served (permissive licence) · get_code("22a85525af1b01c0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Analyze the function:
# - Takes 'pairs' parameter
# - Iterates over pairs
# - For each pair, checks len(pair) > 2
# - If len > 2, creates tuples of consecutive elements
# - If len <= 2, uses the pair as-is
# - Checks membership with 'not in' and 'in' operators
# - Appends to a list
# So pairs should be a list of tuples or sequences
ARGS = {
"pairs": [
(1, 2),
(3, 4, 5),
(6, 7),
(8, 9, 10, 11),
]
}
- 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 2, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_centre_frames |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/audiovisual_similarity/audiovisual_similarity.py code served (permissive licence) · get_code("2b261d112a2e4e04") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, dtype family 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)
# The function takes an iterable of frames/audio samples and returns sample_sz samples from the centre.
# It uses len() on frame_ls and slicing operations, so frame_ls should be a list or similar sequence.
# sample_sz should be an integer representing the number of samples to extract.
# Create a list of frame data (could be tensors, arrays, or simple values)
# Using a list of 10 tensors as frames
frame_ls = [torch.randn(3, 4) for _ in range(10)]
# sample_sz should be an integer that's less than or equal to len(frame_ls)
sample_sz = 4
ARGS = {
"frame_ls": frame_ls,
"sample_sz": sample_sz,
}
- 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 3, 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_congruent_data |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/SAVC/prepare_av_correspondence_csvs.py code served (permissive licence) · get_code("b47a88c4286e6e8a") 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 itertools
from random import shuffle
# Create a sample dataframe with the structure expected by get_congruent_data
df = pd.DataFrame({
'label': ['action_1', 'action_1', 'action_1', 'action_2', 'action_2', 'action_2'],
'tfrecord_filename': [
'video_1.tfrecord',
'video_2.tfrecord',
'video_3.tfrecord',
'video_4.tfrecord',
'video_5.tfrecord',
'video_6.tfrecord'
]
})
ARGS = {
'df': df,
'label_col': 'label',
'sample_size': None
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_files |
Ran ran on a synthesized input |
Little-Frog-233/imagecluster/imagecluster/common.py code served (permissive licence) · get_code("29ef3a86fe537728") 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 re
import os
import tempfile
import shutil
# Create a temporary directory with test image files
temp_dir = tempfile.mkdtemp()
# Create some test files with various image extensions
test_files = [
'image1.jpg',
'image2.JPG',
'image3.png',
'image4.PNG',
'image5.jpeg',
'image6.bmp',
'document.pdf',
'text.txt'
]
for filename in test_files:
filepath = os.path.join(temp_dir, filename)
with open(filepath, 'w') as f:
f.write('test content')
# Define arguments for get_files function
ARGS = {
'dr': temp_dir,
'ext': 'jpg|jpeg|bmp|png'
}
- 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 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_image_coordinate_p |
Ran ran on a synthesized input |
vwegn/dm/custom_layers.py code served (permissive licence) · get_code("549ac5711387a18b") 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 torch
import numpy as np
torch.manual_seed(0)
# Analyze the function:
# - i1 and i2 appear to be inputs that get multiplied by alpha and added to beta
# - alpha appears to be a scalar multiplier
# - beta appears to be a scalar offset
# - The function performs element-wise operations: p1 = alpha * i1 + beta, p2 = alpha * i2 + beta
# - Returns a tuple of two results
# Create small tensors for i1 and i2
i1 = torch.randn(2, 4)
i2 = torch.randn(2, 4)
# Create scalar values for alpha and beta
alpha = torch.tensor(2.5)
beta = torch.tensor(1.0)
ARGS = {
"i1": i1,
"i2": i2,
"alpha": alpha,
"beta": beta
}
- 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 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
|
| get_lower_loss_instances |
Ran ran on a synthesized input |
kaist-dmlab/SELFIE/SELFIE/algorithm/coteaching.py code served (permissive licence) · get_code("ad1b59a2e5fbcfeb") 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 torch
import numpy as np
import operator
torch.manual_seed(0)
# Construct arguments for get_lower_loss_instances
batch_size = 4
ids = ['id_0', 'id_1', 'id_2', 'id_3']
images = [
np.random.randn(3, 32, 32),
np.random.randn(3, 32, 32),
np.random.randn(3, 32, 32),
np.random.randn(3, 32, 32)
]
labels = [0, 1, 2, 1]
xentropy_array = np.array([0.5, 0.2, 0.8, 0.3])
ratio = 0.5
ARGS = {
'batch_size': batch_size,
'ids': ids,
'images': images,
'labels': labels,
'xentropy_array': xentropy_array,
'ratio': ratio
}
- 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 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
|
| get_next_batch |
Ran ran on a synthesized input |
Yashgh7076/CPSC-8810-Project/model1.py code served (permissive licence) · get_code("c82f21df47a746bc") 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
# Create a small dataset with shape (batch_size + extra, height, width, channels)
# Using distinct dimensions: 10 samples, 4 height, 3 width, 2 channels
dataset = np.random.randn(70, 4, 3, 2).astype(np.float32)
# Create corresponding class labels
classes = np.random.randint(0, 5, size=70).astype(np.int32)
# Define arguments
ARGS = {
"index": 0,
"dataset": dataset,
"classes": classes,
"batch_size": 64
}
- 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
|
| get_relative_path |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/path_functions.py code served (permissive licence) · get_code("6205a6fa46293aa8") 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 pathlib
# The function takes two parameters:
# 1. this - a file path (string or path-like object)
# 2. path - a relative path (string)
# The function uses: os.path.normpath, os.path.abspath, os.path.join, pathlib.Path, .parent, .absolute()
# All of these work with string paths
ARGS = {
"this": "/home/user/myfile.py",
"path": "../config/settings.json"
}
- 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_vgg_v1 |
Ran ran on a synthesized input |
nidolow/image-classification/src/models.py code served (permissive licence) · get_code("1990674074b95071") 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 Sequential. 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.
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D, BatchNormalization, ReLU
# Define configuration dictionary with all required parameters
conf = {
'height': 32,
'width': 32,
'dropout': True,
'batch_norm': True
}
ARGS = {
'conf': conf
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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_vgg_v2 |
Ran ran on a synthesized input |
nidolow/image-classification/src/models.py code served (permissive licence) · get_code("539f501a397e02ad") 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 Sequential. 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.
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D, BatchNormalization, ReLU
# Create a minimal config dictionary for get_vgg_v2
conf = {
'height': 32,
'width': 32,
'dropout': True,
'batch_norm': True
}
ARGS = {
'conf': conf
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential 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_visual_frames |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/audiovisual_similarity/audiovisual_similarity.py code served (permissive licence) · get_code("637b3aefaa3d90c4") 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 4, dtype family float, shape (30, 200, 200, 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 cv2
import tempfile
import os
# Create a temporary video file for testing
def create_dummy_video(filename, num_frames=40, fps=10, width=200, height=200):
"""Create a simple dummy video file"""
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter(filename, fourcc, fps, (width, height))
for i in range(num_frames):
# Create a simple frame with changing content
frame = np.zeros((height, width, 3), dtype=np.uint8)
frame[:, :] = (i * 6) % 256
out.write(frame)
out.release()
# Create temporary video file
temp_dir = tempfile.mkdtemp()
video_path = os.path.join(temp_dir, "test_video.mp4")
create_dummy_video(video_path, num_frames=40, fps=10, width=200, height=200)
ARGS = {
"filename": video_path,
"frame_rate_ms": 100
}
- 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 4, dtype family float, shape (30, 200, 200, 3) — shape (30, 200, 200, 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
|
| group_math |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/create_gt_math.py code served (permissive licence) · get_code("2a273411361ff72f") 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)
# Analyze the function:
# group_math takes char_map as parameter
# It calls dfs(char_map, key) for each key in char_map
# dfs expects graph to be a dict where graph[vertex] returns a set
# dfs uses: graph[vertex] - visited (set subtraction)
# So char_map must be a dict mapping keys to sets
# Create a simple char_map that represents a graph
# Keys are characters/vertices, values are sets of adjacent vertices
char_map = {
'a': {'b', 'c'},
'b': {'a', 'd'},
'c': {'a'},
'd': {'b', 'e'},
'e': {'d'}
}
ARGS = {
'char_map': char_map
}
- 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
|
| indicator_function |
Ran ran on a synthesized input |
vwegn/dm/custom_layers.py code served (permissive licence) · get_code("861d70ebabfa4313") 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 EagerTensor, ndim 1, dtype family float, shape (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 tensorflow as tf
import numpy as np
# Create small test tensors
z = tf.constant(np.random.randn(2, 4).astype(np.float32))
sigma = tf.constant(0.5, dtype=tf.float32)
ARGS = {
"z": z,
"sigma": sigma,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, ndim 1, dtype family float, shape (2,) — shape (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
|
| int_feature |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/feature_extractor/extract_features.py code served (permissive licence) · get_code("83210a36a6c4a2c9") 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 Feature. 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 tensorflow as tf
ARGS = {
"value": 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Feature — a Feature output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Feature 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
|
| intersect |
Ran ran; our contract draft was wrong, not the code |
MaliParag/ScanSSD/layers/box_utils.py pointer only (licence: MIT); the stored copy get_code serves, from NVlabs/AL-MDN, is pointer only (licence: NOASSERTION) · get_code("f01c5f73515770a5") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from NVlabs/AL-MDN, and GitHub could not classify the licence of that repository (NOASSERTION). 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. |
| intersect |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
chosj95/PFPNet.pytorch/utils/augmentations.py pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from 360cvgroup/hico_t2i, is pointer only (licence: NONE) · get_code("6ec11ee890696819") 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 360cvgroup/hico_t2i, 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. |
| intersects |
Ran ran on a synthesized input |
MaliParag/ScanSSD/gtdb/box_utils.py code served (permissive licence) · get_code("a7fa6169bb911a78") 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 checks if two rectangles intersect by comparing their bounds
# first and other are expected to be indexable sequences with at least 4 elements
# representing [x_min, y_min, x_max, y_max] or similar bounding box format
first = [0, 1, 5, 6] # [x_min, y_min, x_max, y_max]
other = [3, 2, 8, 7] # [x_min, y_min, x_max, y_max] - overlaps with first
ARGS = {
"first": first,
"other": other
}
- 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
|
| is_using_cuda |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/cuda.py code served (permissive licence) · get_code("9ad246df7a19f849") 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. 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 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)
ARGS = {
'device_name': 'cpu'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 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
|
| jaccard_numpy |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
chosj95/PFPNet.pytorch/utils/augmentations.py pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from 360cvgroup/hico_t2i, is pointer only (licence: NONE) · get_code("13675bf1f3f88001") 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 360cvgroup/hico_t2i, 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. |
| load_img_rgb |
Ran ran on a synthesized input |
Little-Frog-233/imagecluster/imagecluster/calc.py code served (permissive licence) · get_code("4a15a4145e52a6ac") 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 Image. 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
from PIL import Image
# Create a temporary RGB image file
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")
# Create a simple RGB image and save it
img = Image.new('RGB', (4, 3), color=(255, 0, 0))
img.save(temp_image_path)
ARGS = {
'fn': temp_image_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 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
|
| make_fc_layer |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/vgg11.py code served (permissive licence) · get_code("a5861c050d03e440") 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 Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
ARGS = {
"dropout": True,
"relu_class": nn.ReLU,
"out_features": 10
}
- 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_feature_extractor |
Ran ran; our contract draft was wrong, not the code |
woongjoonchoi/DeepLearningPaper-Reproducing/Vgg/model.py code served (permissive licence) · get_code("0d308167df91d7ad") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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
from torch import nn
torch.manual_seed(0)
# The function expects two lists: cfg_c (output channels config) and cfg_k (kernel sizes config)
# Looking at the function logic:
# - cfg_c can contain integers (out_channels), 'M' (MaxPool), 'LRN' (LocalResponseNorm), or 1 (special conv case)
# - cfg_k contains corresponding kernel sizes for each layer
# - They should be zipped together, so same length
# Create a simple configuration that exercises different branches
cfg_c = [64, 'M', 128, 'LRN', 256, 1]
cfg_k = [3, 2, 3, None, 3, 3] # kernel sizes; None for LRN (not used in that branch)
ARGS = {
'cfg_c': cfg_c,
'cfg_k': cfg_k
}
- Setup block drafted by
- a language model, Claude Sonnet 4.5, prompt python_fixture_v1
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_feature_layers |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/vgg11.py code served (permissive licence) · get_code("b9b3a10879c70f08") 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 Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
# Construct arguments for make_feature_layers
cfg = [64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512]
relu_class = nn.ReLU
batch_norm = False
ARGS = {
'cfg': cfg,
'relu_class': relu_class,
'batch_norm': batch_norm
}
- 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| make_layer |
Ran ran; our contract draft was wrong, not the code |
CryptoSalamander/pytorch_paper_implementation/vgg/vgg.py pointer only (licence: NONE) · get_code("2f2081e378efbded") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, CryptoSalamander/pytorch_paper_implementation 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. |
| multibox |
Ran ran on a synthesized input |
MaliParag/ScanSSD/ssd.py code served (permissive licence) · get_code("d4a831ade777ecb0") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Create a minimal args object with the required attributes
class Args:
def __init__(self):
self.kernel = 3
self.padding = 1
args = Args()
# Build a minimal vgg model
# The function accesses vgg[21] and vgg[-2], so we need at least 22 layers
vgg_layers = []
for i in range(20):
vgg_layers.append(nn.Conv2d(64, 64, 3, padding=1))
# Add two more layers to reach index 21 and ensure -2 works
vgg_layers.append(nn.Conv2d(64, 512, 3, padding=1)) # index 21
vgg_layers.append(nn.Conv2d(512, 512, 3, padding=1)) # index -1, so -2 is index 21... we need another
vgg_layers.append(nn.Conv2d(512, 512, 3, padding=1)) # index -1 now
vgg_model = nn.Sequential(*vgg_layers)
# Build extra_layers
# The function accesses extra_layers[1::2], so we need layers at indices 1, 3, 5, etc.
# We need at least 6 layers (indices 0,1,2,3,4,5) to have meaningful [1::2]
extra_layers = [
nn.Conv2d(512, 256, 3, padding=1), # index 0
nn.Conv2d(256, 512, 3, padding=1), # index 1
nn.Conv2d(512, 128, 3, padding=1), # index 2
nn.Conv2d(128, 256, 3, padding=1), # index 3
nn.Conv2d(256, 128, 3, padding=1), # index 4
nn.Conv2d(128, 256, 3, padding=1), # index 5
]
# cfg should have enough entries for:
# - 2 entries for vgg_source (indices 0, 1)
# - len(extra_layers[1::2]) = 3 entries for extra_layers (indices 2, 3, 4)
# Total: 5 entries
cfg = [6, 6, 6, 6, 6]
size = 300
num_classes = 21
ARGS = {
'args': args,
'vgg': vgg_model,
'extra_layers': extra_layers,
'cfg': cfg,
'size': size,
'num_classes': num_classes,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — 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
|
| multibox |
Ran ran on a synthesized input |
chosj95/PFPNet.pytorch/models/PFPNetR.py code served (permissive licence) · get_code("8980b60414eddea6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
CHNS = 256
# cfg is a list/sequence that's indexed with range(4)
# Each element cfg[k] is multiplied by 4 for loc_layers and by num_classes for conf_layers
# So cfg should be a list of 4 integers representing the number of anchor boxes per feature map
cfg = [4, 6, 6, 4]
# num_classes is an integer used to compute output channels
num_classes = 21
ARGS = {
"cfg": cfg,
"num_classes": num_classes,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| nll_loss_fn |
Ran ran on a synthesized input |
Vivswan/ECE-3195-Course-Project/src/loss_functions.py code served (permissive licence) · get_code("5cd718b561a9618e") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# The function expects:
# - output: a tensor that supports .argmax(dim=1, keepdim=True) and is used as input to NLLLoss
# NLLLoss expects shape (N, C) where N is batch size and C is number of classes
# The output should be log probabilities
# - target: a tensor that can be viewed and compared with argmax results
# Should have shape (N,) with class indices
# Create output: batch_size=2, num_classes=4
# NLLLoss expects log probabilities
output = torch.randn(2, 4)
output = torch.nn.functional.log_softmax(output, dim=1)
# Create target: batch_size=2, with class indices in range [0, 3]
target = torch.tensor([1, 3])
ARGS = {
"output": output,
"target": target
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 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
|
| normalize_audio |
Ran ran on a synthesized input |
zjsong/sspl/sspl_w_pcm/utils.py code served (permissive licence) · get_code("d3dd81531644a188") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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 torch
import numpy as np
torch.manual_seed(0)
# The function normalize_audio takes audio_data and performs:
# - .min() operation
# - in-place subtraction with -=
# - .max() operation
# - in-place division with /=
# - in-place subtraction with -=
# - in-place multiplication with *=
# - return the modified tensor
# Create a small audio tensor - needs to support min(), max(), and in-place ops
# Using shape (2, 4) for batch of 2 audio samples with 4 time steps
audio_data = torch.randn(2, 4, dtype=torch.float32)
ARGS = {
"audio_data": audio_data
}
- 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 2, dtype family float, shape (2, 4) — shape (2, 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
|
| normalize_img |
Ran ran on a synthesized input |
zjsong/sspl/sspl_w_pcm/utils.py code served (permissive licence) · get_code("f3de63f91af92ad1") 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
# Test case 1: 2D grayscale image
image_2d = np.array([
[10.0, 20.0, 30.0],
[40.0, 50.0, 60.0],
[70.0, 80.0, 90.0]
])
# Test case 2: 3D RGB image
image_3d = np.array([
[[10.0, 20.0, 30.0], [40.0, 50.0, 60.0]],
[[70.0, 80.0, 90.0], [100.0, 110.0, 120.0]],
[[130.0, 140.0, 150.0], [160.0, 170.0, 180.0]]
])
ARGS = {
"image": image_2d
}
- 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
|
| parse_function |
Ran ran on a synthesized input |
mjoannou/audiovisual-moments-in-time/SAVC/train_with_euclidean_distance.py code served (permissive licence) · get_code("4230e96a78e01bc4") 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 tensorflow as tf
def create_serialized_example():
"""Create a valid serialized TFRecord example for testing"""
# Create context features
context_features = {
'filename': tf.train.Feature(bytes_list=tf.train.BytesList(value=[b'test_audio.wav'])),
'label': tf.train.Feature(bytes_list=tf.train.BytesList(value=[b'speech'])),
'audio_timesteps': tf.train.Feature(int64_list=tf.train.Int64List(value=[3])),
'visual_timesteps': tf.train.Feature(int64_list=tf.train.Int64List(value=[2])),
}
# Create sequence features with raw float32 data
audio_data = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0], dtype=tf.float32)
visual_data = tf.constant([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8], dtype=tf.float32)
sequence_features = {
'audio': tf.train.FeatureList(feature=[
tf.train.Feature(bytes_list=tf.train.BytesList(value=[audio_data.numpy().tobytes()]))
]),
'visual_object': tf.train.FeatureList(feature=[
tf.train.Feature(bytes_list=tf.train.BytesList(value=[visual_data.numpy().tobytes()]))
]),
}
# Create the SequenceExample
example = tf.train.SequenceExample(
context=tf.train.Features(feature=context_features),
feature_lists=tf.train.FeatureLists(feature_list=sequence_features)
)
return example.SerializeToString()
serialised_example = create_serialized_example()
ARGS = {
'serialised_example': serialised_example
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tensorflow — 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
|
| point_form |
Ran ran; our contract draft was wrong, not the code |
MaliParag/ScanSSD/layers/box_utils.py pointer only (licence: MIT); the stored copy get_code serves, from NVlabs/AL-MDN, is pointer only (licence: NOASSERTION) · get_code("3bea1addc1e14162") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from NVlabs/AL-MDN, and GitHub could not classify the licence of that repository (NOASSERTION). 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. |