| GiB |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/python/common.py code served (permissive licence) · get_code("9b7ca59c50ad0b33") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
def GiB(val):
return val * 1 << 30
# The function takes a single parameter 'val' which is multiplied by 2^30
# This is a simple utility function that converts a value to gigabytes (in bytes)
# val can be any numeric type (int, float, etc.)
ARGS = {
"val": 5
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| add_camera_args |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/demo/utils/camera.py code served (permissive licence) · get_code("354b43fcf60e2b42") 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 ArgumentParser. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import argparse
ARGS = {
'parser': argparse.ArgumentParser()
}
- 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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
|
| add_extras |
Ran ran; our contract draft was wrong, not the code |
arvind1998/SSD-Object-Detection/ssd.py code served (permissive licence) · get_code("2a8545e480332b47") 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 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)
# The function expects:
# - cfg: a list/tuple that can contain integers and 'S' strings
# - i: an integer representing initial in_channels
# - batch_norm: a boolean (default False)
# Looking at the function logic:
# - It iterates over cfg with enumerate
# - cfg elements can be 'S' or integers (representing out_channels)
# - When v == 'S', it looks at cfg[k+1] for the next value
# - in_channels starts as i and gets updated to v in each iteration
# - flag alternates between False and True to choose kernel_size (1 or 3)
# A valid cfg would be a list with integers and 'S' markers
# Example: [256, 'S', 512, 128, 'S', 256, 128]
# This means:
# - First layer: in_channels=i, out_channels=256, kernel_size=1
# - Second layer: in_channels=256, out_channels=512 (from cfg[k+1]), kernel_size=3, stride=2
# - Third layer: in_channels=512, out_channels=128, kernel_size=1
# - Fourth layer: in_channels=128, out_channels=256 (from cfg[k+1]), kernel_size=3, stride=2
# - Fifth layer: in_channels=256, out_channels=128, kernel_size=1
cfg = [256, 'S', 512, 128, 'S', 256, 128]
i = 1024
batch_norm = False
ARGS = {
'cfg': cfg,
'i': i,
'batch_norm': batch_norm
}
- 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 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
|
| add_extras |
Ran ran on a synthesized input |
lufficc/SSD/ssd/modeling/backbone/vgg.py code served (permissive licence) · get_code("4033f0f966d86b4c") 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 valid arguments for add_extras function
# The function takes:
# - cfg: a config (iterable of values, some integers and 'S' strings)
# - i: input channels (integer)
# - size: optional size parameter (default 300)
# Build a minimal cfg that exercises the function logic
# cfg should contain integers and 'S' markers
cfg = [64, 'S', 128, 'S', 256, 512]
# i is the initial input channels
i = 3
# size can be 300 or 512 to test different branches
size = 300
ARGS = {
'cfg': cfg,
'i': i,
'size': size
}
- 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
|
| add_vgg |
Ran ran on a synthesized input |
lufficc/SSD/ssd/modeling/backbone/vgg.py code served (permissive licence) · get_code("b3ab5e255848ed6e") 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)
# The function expects:
# - cfg: a list/iterable containing integers (channel counts) and strings ('M' or 'C' for pooling)
# - batch_norm: a boolean flag
cfg = [64, 'M', 128, 'M', 256, 256, 'C', 512, 512, 'M', 512, 512]
batch_norm = False
ARGS = {
'cfg': cfg,
'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
|
| apply_inverse_transforms |
Ran ran on a synthesized input |
ajinkyakhoche/Object-Detection-Project/ssd_keras/data_generator/object_detection_2d_misc_utils.py code served (permissive licence) · get_code("367389d665f9dacb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Define some simple inverter functions
def inverter_scale(predictions):
"""Scale predictions by 2x"""
return predictions * 2.0
def inverter_translate(predictions):
"""Translate predictions by adding offset"""
return predictions + 10.0
def inverter_identity(predictions):
"""Identity transform - no change"""
return predictions
# Create sample predictions as a list of numpy arrays
# Each array has shape (num_predictions, 6) where 6 = class_id, confidence, x1, y1, x2, y2
batch_item_1 = np.array([
[1, 0.95, 10.0, 20.0, 30.0, 40.0],
[2, 0.87, 50.0, 60.0, 70.0, 80.0]
], dtype=np.float32)
batch_item_2 = np.array([
[1, 0.92, 15.0, 25.0, 35.0, 45.0]
], dtype=np.float32)
y_pred_decoded_list = [batch_item_1, batch_item_2]
# Create inverse transforms - a list of lists, one per batch item
inverse_transforms_list = [
[inverter_scale, inverter_translate, None],
[inverter_identity, None]
]
ARGS = {
"y_pred_decoded": y_pred_decoded_list,
"inverse_transforms": inverse_transforms_list
}
- 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 list — a list output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| apply_nms |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
2023-MindSpore-1/ms-code-32/src/eval_utils.py code served (permissive licence) · get_code("634e9e93841b9461") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create sample bounding boxes in format [y1, x1, y2, x2]
all_boxes = np.array([
[10.0, 20.0, 100.0, 200.0],
[15.0, 25.0, 105.0, 205.0],
[300.0, 400.0, 400.0, 500.0],
[305.0, 405.0, 405.0, 505.0],
], dtype=np.float32)
# Create sample confidence scores
all_scores = np.array([0.9, 0.8, 0.85, 0.75], dtype=np.float32)
# NMS threshold
thres = 0.5
# Maximum number of boxes to keep
max_boxes = 3
ARGS = {
"all_boxes": all_boxes,
"all_scores": all_scores,
"thres": thres,
"max_boxes": max_boxes,
}
- 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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| bounding_box_to_df |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
kanesoban/ssd/prepare_pascal_data.py pointer only (licence: NONE) · get_code("6039e68af889bc61") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, kanesoban/ssd 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. |
| calculate_mAP |
Ran ran on a synthesized input |
sgrvinod/a-pytorch-tutorial-to-object-detection/utils.py code served (permissive licence) · get_code("f6e9692bac33f123") 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)
# Create sample data for 2 images
# Image 1: 2 detected objects, 2 true objects
# Image 2: 1 detected object, 1 true object
# Detected boxes for each image (list of tensors, each (n, 4) in boundary coords)
det_boxes = [
torch.tensor([[10., 10., 50., 50.], [60., 60., 100., 100.]], dtype=torch.float32),
torch.tensor([[20., 20., 80., 80.]], dtype=torch.float32)
]
# Detected labels for each image (list of tensors, each (n,))
det_labels = [
torch.tensor([1, 2], dtype=torch.int64),
torch.tensor([3], dtype=torch.int64)
]
# Detected scores for each image (list of tensors, each (n,))
det_scores = [
torch.tensor([0.9, 0.8], dtype=torch.float32),
torch.tensor([0.85], dtype=torch.float32)
]
# True boxes for each image (list of tensors, each (m, 4) in boundary coords)
true_boxes = [
torch.tensor([[10., 10., 50., 50.], [60., 60., 100., 100.]], dtype=torch.float32),
torch.tensor([[20., 20., 80., 80.]], dtype=torch.float32)
]
# True labels for each image (list of tensors, each (m,))
true_labels = [
torch.tensor([1, 2], dtype=torch.int64),
torch.tensor([3], dtype=torch.int64)
]
# True difficulties for each image (list of tensors, each (m,), values 0 or 1)
true_difficulties = [
torch.tensor([0, 0], dtype=torch.uint8),
torch.tensor([0], dtype=torch.uint8)
]
ARGS = {
'det_boxes': det_boxes,
'det_labels': det_labels,
'det_scores': det_scores,
'true_boxes': true_boxes,
'true_labels': true_labels,
'true_difficulties': true_difficulties
}
- 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
|
| callback |
Ran ran on a synthesized input |
nutintin/Robotic_SP2019/src/thymio2.py code served (permissive licence) · get_code("69d237f60c5f699e") 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
torch.manual_seed(0)
def example_fun(x, multiplier=1, offset=0):
"""Example function that will be called by the delay closure"""
return x * multiplier + offset
def another_fun(x, scale=2.0):
"""Another example function"""
return x * scale
# Define ARGS mapping every parameter of callback to a value
ARGS = {
'fun': example_fun,
'args': (2, 3),
'kwargs': {'multiplier': 5, 'offset': 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 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
|
| categories_predictions_loss |
Ran ran on a synthesized input |
PuchatekwSzortach/voc_ssd/net/ml.py code served (permissive licence) · get_code("c608535d15eb1726") 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 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 tensorflow as tf
import numpy as np
# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)
# Create small test tensors
# labels_data: shape (batch_size, num_default_boxes) with category IDs
# We'll use shape (2, 4) - 2 batches, 4 default boxes per batch
# Category IDs: 0 means background (negative), >0 means positive class
labels_data = tf.constant([
[0, 1, 2, 0], # batch 1: 2 positive boxes (classes 1, 2), 2 negative (class 0)
[0, 0, 3, 1] # batch 2: 2 positive boxes (classes 3, 1), 2 negative (class 0)
], dtype=tf.int32)
# predictions_data: shape (batch_size, num_default_boxes, num_classes)
# Probabilities from softmax (from_logits=False)
# We'll use shape (2, 4, 4) - 2 batches, 4 default boxes, 4 classes
# Create valid probability distributions (softmax output)
np.random.seed(0)
raw_logits = np.random.randn(2, 4, 4).astype(np.float32)
# Convert to probabilities using softmax
predictions_data = tf.nn.softmax(raw_logits, axis=-1)
ARGS = {
"labels_data": labels_data,
"predictions_data": predictions_data
}
- 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 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
|
| class_text_to_int |
Ran ran on a synthesized input |
aubricot/object_detection_for_image_cropping/object_detection_for_image_cropping/chiroptera/.archive/chiroptera_generate_tfrecord.py code served (permissive licence) · get_code("06ca71c05aeb91e6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
def class_text_to_int(row_label):
if row_label == 'Chiroptera':
return 1
else:
None
ARGS = {
'row_label': 'Chiroptera'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| class_text_to_int |
Ran ran on a synthesized input |
aubricot/object_detection_for_image_cropping/object_detection_for_image_cropping/lepidoptera/.archive/lepidoptera_generate_tfrecord.py code served (permissive licence) · get_code("256b26df2868c0b1") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
def class_text_to_int(row_label):
if row_label == 'Lepidoptera':
return 1
else:
None
# The function takes a single string parameter
row_label = 'Lepidoptera'
ARGS = {
'row_label': row_label
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compute_ap |
Ran ran on a synthesized input |
ChunML/ssd-tf2/voc_eval.py code served (permissive licence) · get_code("4061e19604fd35c9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Construct valid arguments for compute_ap function
rec = np.array([0.1, 0.3, 0.5, 0.7, 0.9])
prec = np.array([0.9, 0.8, 0.7, 0.6, 0.5])
ap = 0.0
use_07_metric = False
ARGS = {
"rec": rec,
"prec": prec,
"ap": ap,
"use_07_metric": use_07_metric
}
- 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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compute_area |
Ran ran on a synthesized input |
ChunML/ssd-tf2/box_utils.py code served (permissive licence) · get_code("07782ea33b0a489d") 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 sample tensor data for top_left coordinates
# Shape: (num_boxes, 2) where num_boxes=2
top_left = tf.constant([[10.0, 20.0], [30.0, 40.0]], dtype=tf.float32)
# Create sample tensor data for bottom_right coordinates
# Shape: (num_boxes, 2) where num_boxes=2
bot_right = tf.constant([[50.0, 80.0], [70.0, 120.0]], dtype=tf.float32)
ARGS = {
"top_left": top_left,
"bot_right": bot_right,
}
- 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
|
| compute_iou |
Ran ran on a synthesized input |
ChunML/ssd-tf2/box_utils.py code served (permissive licence) · get_code("366a1b1467436d59") 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, 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 tensorflow as tf
# Create small test tensors for boxes
# boxes format: [x1, y1, x2, y2] where (x1, y1) is top-left and (x2, y2) is bottom-right
boxes_a = tf.constant([
[10.0, 20.0, 50.0, 60.0],
[15.0, 25.0, 55.0, 65.0]
], dtype=tf.float32) # shape (2, 4)
boxes_b = tf.constant([
[30.0, 40.0, 70.0, 80.0],
[5.0, 10.0, 45.0, 50.0],
[20.0, 30.0, 60.0, 70.0]
], dtype=tf.float32) # shape (3, 4)
ARGS = {
"boxes_a": boxes_a,
"boxes_b": boxes_b
}
- 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 EagerTensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compute_on_dataset |
Ran ran on a synthesized input |
object-detection-algorithm/SSD/py/ssd/engine/inference.py code served (permissive licence) · get_code("75cc7cb3f9efa8d2") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
import torch.utils.data
torch.manual_seed(0)
# Define a minimal model that accepts images and returns a list of outputs
class MinimalModel(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 3)
def forward(self, x):
# x shape: (batch_size, 4)
# Return a list of tensors, one per image in batch
batch_size = x.shape[0]
outputs = [self.linear(x[i:i+1]) for i in range(batch_size)]
return outputs
# Create model
model = MinimalModel()
# Create a minimal data loader
# Each batch should be (images, targets, image_ids)
class MinimalDataset(torch.utils.data.Dataset):
def __init__(self, num_samples=4):
self.num_samples = num_samples
def __len__(self):
return self.num_samples
def __getitem__(self, idx):
# images: tensor of shape (4,)
# targets: dummy tensor
# image_ids: string identifier
images = torch.randn(4)
targets = torch.tensor(0)
image_ids = f"img_{idx}"
return images, targets, image_ids
# Create dataset and data loader
dataset = MinimalDataset(num_samples=4)
data_loader = torch.utils.data.DataLoader(
dataset,
batch_size=2,
collate_fn=lambda batch: (
torch.stack([item[0] for item in batch]),
torch.stack([item[1] for item in batch]),
[item[2] for item in batch]
)
)
# Set device to CPU
device = torch.device('cpu')
# Define ARGS
ARGS = {
'model': model,
'data_loader': data_loader,
'device': device
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, tqdm — 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
|
| compute_on_dataset |
Ran ran on a synthesized input |
lufficc/SSD/ssd/engine/inference.py code served (permissive licence) · get_code("8f7664e088b9d2e6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
torch.manual_seed(0)
# Create a minimal model that takes images and returns a list of outputs
class DummyModel(nn.Module):
def __init__(self):
super().__init__()
self.fc = nn.Linear(4, 3)
def forward(self, images):
# images shape: (batch_size, 4)
# Return a list of tensors (one per image in batch)
batch_size = images.shape[0]
outputs = [self.fc(images[i:i+1]) for i in range(batch_size)]
return outputs
# Create a minimal dataset as a list of batches
# Each batch is (images, targets, image_ids)
class DummyDataset:
def __init__(self):
self.data = []
# Create 2 batches of size 2
for batch_idx in range(2):
images = torch.randn(2, 4)
targets = torch.tensor([0, 1])
image_ids = torch.tensor([batch_idx * 2 + i for i in range(2)])
self.data.append((images, targets, image_ids))
def __iter__(self):
return iter(self.data)
def __len__(self):
return len(self.data)
# Create instances
model = DummyModel()
data_loader = DummyDataset()
device = torch.device('cpu')
ARGS = {
'model': model,
'data_loader': data_loader,
'device': device
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, tqdm — 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
|
| compute_target |
Ran ran on a synthesized input |
ChunML/ssd-tf2/box_utils.py code served (permissive licence) · get_code("778befe18869a61e") 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
# Set seed for reproducibility
tf.random.set_seed(0)
# Create small tensors for testing
# default_boxes: (num_default, 4) in format (cx, cy, w, h)
num_default = 2
default_boxes = tf.constant([
[50.0, 50.0, 20.0, 30.0],
[100.0, 100.0, 40.0, 50.0]
], dtype=tf.float32)
# gt_boxes: (num_gt, 4) in format (xmin, ymin, xmax, ymax)
num_gt = 3
gt_boxes = tf.constant([
[40.0, 40.0, 70.0, 90.0],
[90.0, 90.0, 150.0, 160.0],
[10.0, 10.0, 30.0, 40.0]
], dtype=tf.float32)
# gt_labels: (num_gt,) - class labels (0 is background, 1+ are object classes)
gt_labels = tf.constant([1, 2, 1], dtype=tf.int64)
# iou_threshold: scalar float
iou_threshold = 0.5
ARGS = {
"default_boxes": default_boxes,
"gt_boxes": gt_boxes,
"gt_labels": gt_labels,
"iou_threshold": iou_threshold
}
- 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
|
| compute_target |
Ran ran on a synthesized input |
aniketmaurya/ssd-tf2-tfds/box_utils.py code served (permissive licence) · get_code("e9555c4df991a16b") 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
# Create small tensors for testing
num_default = 5
num_gt = 2
# default_boxes: tensor (num_default, 4) of format (cx, cy, w, h)
default_boxes = tf.constant([
[50.0, 50.0, 100.0, 100.0],
[100.0, 100.0, 80.0, 80.0],
[150.0, 150.0, 60.0, 60.0],
[200.0, 200.0, 120.0, 120.0],
[250.0, 250.0, 100.0, 100.0],
], dtype=tf.float32)
# gt_boxes: tensor (num_gt, 4) of format (xmin, ymin, xmax, ymax)
gt_boxes = tf.constant([
[30.0, 30.0, 130.0, 130.0],
[180.0, 180.0, 280.0, 280.0],
], dtype=tf.float32)
# gt_labels: tensor (num_gt,)
gt_labels = tf.constant([1, 2], dtype=tf.int64)
# iou_threshold: scalar
iou_threshold = 0.5
ARGS = {
"default_boxes": default_boxes,
"gt_boxes": gt_boxes,
"gt_labels": gt_labels,
"iou_threshold": iou_threshold,
}
- 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
|
| conv_1x1_bn |
Ran ran; our contract draft was wrong, not the code |
lufficc/SSD/ssd/modeling/backbone/mobilenetv3.py code served (permissive licence) · get_code("4e90491a30c2dc28") 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)
# Define the custom activation modules needed by conv_1x1_bn
class h_sigmoid(nn.Module):
def __init__(self, inplace=True):
super(h_sigmoid, self).__init__()
self.relu = nn.ReLU6(inplace=inplace)
def forward(self, x):
return self.relu(x + 3) / 6
class h_swish(nn.Module):
def __init__(self, inplace=True):
super(h_swish, self).__init__()
self.sigmoid = h_sigmoid(inplace=inplace)
def forward(self, x):
return x * self.sigmoid(x)
def conv_1x1_bn(inp, oup):
return nn.Sequential(
nn.Conv2d(inp, oup, 1, 1, 0, bias=False),
nn.BatchNorm2d(oup),
h_swish()
)
# Create arguments for conv_1x1_bn
# inp: number of input channels (distinct from oup)
# oup: number of output channels
inp_channels = 4
oup_channels = 3
ARGS = {
'inp': inp_channels,
'oup': oup_channels
}
- 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
|
| conv_3x3_bn |
Ran ran; our contract draft was wrong, not the code |
lufficc/SSD/ssd/modeling/backbone/mobilenetv3.py code served (permissive licence) · get_code("5221887077e3fb54") 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 = {
'inp': 3,
'oup': 16,
'stride': 1
}
- 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
|
| convert_pretrained |
Ran ran on a synthesized input |
LanqingLi/Chromosome/train/train_net.py code served (permissive licence) · get_code("069f39bcc2d502f6") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
# The function convert_pretrained takes a name (str) and args (dict)
# and returns processed arguments as dict.
# Since the function body just returns args unchanged, we need:
# - name: a string representing a pretrained model name
# - args: a dict with loaded arguments
# Create a minimal args dict that could represent loaded model arguments
args_dict = {
"hidden_size": 768,
"num_layers": 12,
"num_heads": 12,
"intermediate_size": 3072,
"vocab_size": 30522,
"max_position_embeddings": 512,
"type_vocab_size": 2,
"initializer_range": 0.02,
"layer_norm_eps": 1e-12,
"dropout_rate": 0.1,
"attention_probs_dropout_prob": 0.1,
}
ARGS = {
"name": "bert-base-uncased",
"args": args_dict,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| convert_to_xywh |
Ran ran, honoured the contract we drafted |
Guillem96/ssd-pytorch/ssd/coco/coco_eval.py pointer only (licence: MIT); the stored copy get_code serves, from yuhangzang/contextdet, is pointer only (licence: NOASSERTION) · get_code("f31a58bf6457ced5") 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 yuhangzang/contextdet, 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. |
| create_category_index |
Ran ran; our contract draft was wrong, not the code |
Chubbyman2/SSD_MobileNet_Hand_Tracker/label_map_util.py code served (permissive licence) · get_code("dc6b3dd700e4eea1") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Based on the function, it expects a list of category dictionaries
# Each dict must have 'id' and 'name' keys
# The function iterates through categories and builds a dict keyed by 'id'
categories = [
{'id': 1, 'name': 'cat'},
{'id': 2, 'name': 'dog'},
{'id': 3, 'name': 'pizza'},
]
ARGS = {
'categories': categories,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| create_conf_head_layers |
Ran ran on a synthesized input |
ChunML/ssd-tf2/layers.py code served (permissive licence) · get_code("88ac9aedda40162d") 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 tensorflow.keras.layers as layers
# The function create_conf_head_layers takes only one parameter: num_classes
# It creates a list of Conv2D layers with different filter counts based on num_classes
# No actual execution with data is needed - it just constructs layer objects
ARGS = {
"num_classes": 10
}
- 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 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
|
| create_losses |
Ran ran on a synthesized input |
ChunML/ssd-tf2/losses.py code served (permissive licence) · get_code("a01fceddc3002ce6") 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 SSDLosses. 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
# Set random seed for reproducibility
tf.random.set_seed(0)
# Define ARGS dict with parameters for create_losses function
ARGS = {
"neg_ratio": 3,
"num_classes": 21,
}
- 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 SSDLosses — a SSDLosses output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SSDLosses 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
|
| decimate |
Ran ran on a synthesized input |
sgrvinod/a-pytorch-tutorial-to-object-detection/utils.py code served (permissive licence) · get_code("f252a2bdc38b1751") 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 3, dtype family float, shape (2, 3, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create a small tensor with distinct dimensions for testing
# Using shape (4, 3, 2) to have distinguishable dimensions
tensor = torch.randn(4, 3, 2)
# Create decimation factors for each dimension
# m[0] = 2 means keep every 2nd element along dimension 0
# m[1] = None means don't decimate along dimension 1
# m[2] = 1 means keep every element along dimension 2 (no decimation)
m = [2, None, 1]
ARGS = {
"tensor": tensor,
"m": m,
}
- 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 3, dtype family float, shape (2, 3, 2) — shape (2, 3, 2) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| detect_objects |
Ran ran on a synthesized input |
Chubbyman2/SSD_MobileNet_Hand_Tracker/detector_utils.py code served (permissive licence) · get_code("37c521aa30e10947") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import tensorflow as tf
# Create a minimal detection graph with the required tensor outputs
detection_graph = tf.Graph()
with detection_graph.as_default():
# Create placeholder for input image
image_tensor = tf.compat.v1.placeholder(tf.uint8, shape=[None, 480, 640, 3], name='image_tensor')
# Create dummy output tensors with appropriate shapes
detection_boxes = tf.constant(np.random.rand(1, 100, 4).astype(np.float32), name='detection_boxes')
detection_scores = tf.constant(np.random.rand(1, 100).astype(np.float32), name='detection_scores')
detection_classes = tf.constant(np.random.rand(1, 100).astype(np.float32), name='detection_classes')
num_detections = tf.constant(np.array([100], dtype=np.float32), name='num_detections')
# Create a test image (480x640x3 RGB image)
image_np = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
# Create a TensorFlow session
sess = tf.compat.v1.Session(graph=detection_graph)
ARGS = {
'image_np': image_np,
'detection_graph': detection_graph,
'sess': sess
}
- 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 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
|
| draw_box_on_image |
Ran ran on a synthesized input |
aubricot/object_detection_for_image_cropping/object_detection_for_image_cropping/helper_funcs/coords_display/wrangle_data.py code served (permissive licence) · get_code("e8aa6a63e08ec888") 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 cv2
import pandas as pd
import numpy as np
# Create a sample image (BGR format for OpenCV)
img = np.zeros((480, 640, 3), dtype=np.uint8)
# Create a DataFrame with required columns
df = pd.DataFrame({
'xmin': np.array([50, 100]),
'ymin': np.array([60, 120]),
'crop_width': np.array([200, 150]),
'crop_height': np.array([180, 160]),
'im_height': np.array([480, 480]),
'im_width': np.array([640, 640]),
'class_name': ['dog', 'cat']
})
ARGS = {
'df': df,
'img': img,
'i': 0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, numpy, pandas — 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
|
| draw_boxed_text |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/demo/utils/visualization.py code served (permissive licence) · get_code("6b365067ede19bb5") 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, 80, 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
# Create a small test image: 100x80 pixels with 3 channels (BGR)
img = np.random.randint(0, 256, size=(100, 80, 3), dtype=np.uint8)
# Define the arguments
ARGS = {
"img": img,
"text": "Test Label",
"topleft": (10, 20),
"color": (200, 100, 50)
}
- 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, 80, 3) — shape (100, 80, 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
|
| draw_boxes |
Ran ran on a synthesized input |
Guillem96/ssd-pytorch/ssd/viz.py code served (permissive licence) · get_code("a8375bb7763e126b") 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, 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 cv2
import numpy as np
# Create a sample image (height=100, width=200, 3 channels for BGR)
im = np.zeros((100, 200, 3), dtype=np.uint8)
# Define bounding boxes as list of [x1, y1, x2, y2]
boxes = [
[10, 10, 50, 40],
[60, 20, 120, 80]
]
# Define class names for each box
class_names = ["cat", "dog"]
# Define confidence scores for each box
scores = [0.95, 0.87]
# Define colors for each box (BGR format)
colors = [(255, 0, 0), (0, 255, 0)]
ARGS = {
"im": im,
"boxes": boxes,
"class_names": class_names,
"scores": scores,
"colors": colors
}
- 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, 200, 3) — shape (100, 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
|
| draw_boxes |
Ran ran on a synthesized input |
aniketmaurya/ssd-tf2-tfds/tfds_data.py code served (permissive licence) · get_code("24c2c675a37bd12c") 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 numpy as np
# Create a small image array (RGB image, height=10, width=8)
image = np.random.randint(0, 256, (10, 8, 3), dtype=np.uint8)
# Create boxes array with normalized coordinates [xmin, ymin, xmax, ymax]
# Shape (2, 4) - 2 boxes, 4 coordinates each
# Normalized to [0, 1] range
boxes = np.array([
[0.1, 0.2, 0.5, 0.6],
[0.3, 0.1, 0.8, 0.7]
], dtype=np.float32)
ARGS = {
"image": image,
"boxes": boxes,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy — 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
|
| draw_boxes |
Ran ran on a synthesized input |
aubricot/object_detection_for_image_cropping/object_detection_for_image_cropping/helper_funcs/preprocessing/wrangle_data.py code served (permissive licence) · get_code("23cd8e0109e7419e") 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, 150, 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
# Create a small dummy image (height=100, width=150, channels=3)
image = np.ones((100, 150, 3), dtype=np.uint8) * 255
# Create a bounding box as [x1, y1, x2, y2]
box = [10, 20, 80, 90]
# Class name as a string
class_name = "person"
ARGS = {
"image": image,
"box": box,
"class_name": class_name
}
- 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, 150, 3) — shape (100, 150, 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
|
| evaluate |
Ran ran on a synthesized input |
Guillem96/ssd-pytorch/ssd/engine.py code served (permissive licence) · get_code("2a45aba9d5792ec4") 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 MockCocoEvaluator. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from collections import defaultdict
torch.manual_seed(0)
# Mock CocoEvaluator class
class MockCocoEvaluator:
def __init__(self, coco, iou_types):
self.coco = coco
self.iou_types = iou_types
self.results = defaultdict(list)
def update(self, detections_dict):
self.results.update(detections_dict)
def synchronize_between_processes(self):
pass
def accumulate(self):
pass
def summarize(self):
pass
# Patch the CocoEvaluator import
import sys
import types
mock_coco_eval = types.ModuleType('ssd.coco.coco_eval')
mock_coco_eval.CocoEvaluator = MockCocoEvaluator
sys.modules['ssd.coco.coco_eval'] = mock_coco_eval
# Minimal model that outputs detections in expected format
class MockDetectionModel(nn.Module):
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 4)
def forward(self, x):
# x shape: (batch_size, 3, H, W)
batch_size = x.shape[0]
# Return list with one dict containing detection outputs
detections = {
'boxes': torch.rand(5, 4), # 5 boxes with 4 coords each
'scores': torch.rand(5), # 5 scores
'labels': torch.randint(1, 3, (5,)) # 5 labels (1-indexed)
}
return [detections]
# Minimal COCO dataset mock
class MockCocoDataset:
def __init__(self, num_images=2):
self.num_images = num_images
self.dataset = {
'images': [
{'id': 0, 'width': 640, 'height': 480},
{'id': 1, 'width': 640, 'height': 480}
]
}
def __len__(self):
return self.num_images
def __getitem__(self, idx):
# Return (image, targets)
image = torch.rand(3, 32, 32) # 3 channels, small spatial dims
targets = {'boxes': torch.rand(2, 4), 'labels': torch.randint(0, 2, (2,))}
return image, targets
# Create model
model = MockDetectionModel()
model.eval()
# Create dataset
dataset = MockCocoDataset(num_images=2)
# Create COCO mock
coco = MockCocoDataset(num_images=2)
# Device
device = 'cpu'
ARGS = {
'model': model,
'dataset': dataset,
'coco': coco,
'device': device
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- ssd, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type MockCocoEvaluator — a MockCocoEvaluator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockCocoEvaluator 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
|
| evaluate |
Ran ran; our contract draft was wrong, not the code |
Guillem96/ssd-pytorch/ssd/coco/coco_eval.py code served (permissive licence) · get_code("7c1eb870ebf9fea8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import copy
class MockParams:
def __init__(self):
self.useSegm = None
self.iouType = 'bbox'
self.imgIds = [1, 2, 1, 3]
self.useCats = True
self.catIds = [1, 2, 1]
self.maxDets = [100, 300, 1000]
self.areaRng = [[0, 10000], [0, 1024], [1024, 10000]]
class MockCOCOEval:
def __init__(self):
self.params = MockParams()
self.evalImgs = None
self.ious = {}
self._paramsEval = None
def _prepare(self):
pass
def computeIoU(self, imgId, catId):
return np.random.rand(5, 5)
def computeOks(self, imgId, catId):
return np.random.rand(5, 5)
def evaluateImg(self, imgId, catId, areaRng, maxDet):
return {
'image_id': imgId,
'category_id': catId,
'areaRng': areaRng,
'maxDet': maxDet,
'scores': np.random.rand(10)
}
def evaluate(self):
p = self.params
if p.useSegm is not None:
p.iouType = 'segm' if p.useSegm == 1 else 'bbox'
print('useSegm (deprecated) is not None. Running {} evaluation'.format(p.iouType))
p.imgIds = list(np.unique(p.imgIds))
if p.useCats:
p.catIds = list(np.unique(p.catIds))
p.maxDets = sorted(p.maxDets)
self.params = p
self._prepare()
catIds = p.catIds if p.useCats else [-1]
if p.iouType == 'segm' or p.iouType == 'bbox':
computeIoU = self.computeIoU
elif p.iouType == 'keypoints':
computeIoU = self.computeOks
self.ious = {(imgId, catId): computeIoU(imgId, catId) for imgId in p.imgIds for catId in catIds}
evaluateImg = self.evaluateImg
maxDet = p.maxDets[-1]
evalImgs = [evaluateImg(imgId, catId, areaRng, maxDet) for catId in catIds for areaRng in p.areaRng for imgId in p.imgIds]
evalImgs = np.asarray(evalImgs).reshape(len(catIds), len(p.areaRng), len(p.imgIds))
self._paramsEval = copy.deepcopy(self.params)
return (p.imgIds, evalImgs)
ARGS = {
'self': MockCOCOEval()
}
- 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
|
| gen_colors |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/demo/utils/visualization.py code served (permissive licence) · get_code("2070b2caeb63c391") 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 random
import colorsys
def gen_colors(num_colors):
"""Generate different colors.
# Arguments
num_colors: total number of colors/classes.
# Output
bgrs: a list of (B, G, R) tuples which correspond to each of
the colors/classes.
"""
hsvs = [[float(x) / num_colors, 1.0, 0.7] for x in range(num_colors)]
random.seed(1234)
random.shuffle(hsvs)
rgbs = list(map(lambda x: list(colorsys.hsv_to_rgb(*x)), hsvs))
bgrs = [(int(rgb[2] * 255), int(rgb[1] * 255), int(rgb[0] * 255)) for rgb in rgbs]
return bgrs
ARGS = {
"num_colors": 5
}
- 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 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
|
| generate_default_boxes |
Ran ran on a synthesized input |
ChunML/ssd-tf2/anchor.py code served (permissive licence) · get_code("96a5d2de7035f0bb") 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 (14440, 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 math
ARGS = {
'config': {
'scales': [0.2, 0.35, 0.5, 0.65, 0.8, 0.95, 1.0],
'fm_sizes': [38, 19],
'ratios': [
[1.0, 2.0, 0.5],
[1.0, 2.0, 0.5]
]
}
}
- 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 EagerTensor, ndim 2, dtype family float, shape (14440, 4) — shape (14440, 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
|
| generate_default_boxes |
Ran ran on a synthesized input |
aniketmaurya/ssd-tf2-tfds/anchor.py code served (permissive licence) · get_code("c4ee02ddce2ec047") 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 (160, 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 math
import itertools
import tensorflow as tf
# Create a minimal config dict with the required keys
config = {
'scales': [0.2, 0.35, 0.5, 0.65, 0.8, 0.95, 1.0],
'fm_sizes': [4, 2],
'ratios': [[1.0, 2.0, 0.5], [1.0, 2.0, 0.5]]
}
ARGS = {
'config': config
}
- 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 EagerTensor, ndim 2, dtype family float, shape (160, 4) — shape (160, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_annotation |
Ran ran on a synthesized input |
ChunML/ssd-tf2/voc_eval.py code served (permissive licence) · get_code("10536426cf9004cb") 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 xml.etree.ElementTree as ET
import tempfile
import os
# Create a temporary XML file with valid annotation structure
xml_content = """<?xml version="1.0"?>
<annotation>
<object>
<name>dog</name>
<pose>Frontal</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>10</xmin>
<ymin>20</ymin>
<xmax>100</xmax>
<ymax>150</ymax>
</bndbox>
</object>
<object>
<name>cat</name>
<pose>Left</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>30</xmin>
<ymin>40</ymin>
<xmax>80</xmax>
<ymax>120</ymax>
</bndbox>
</object>
</annotation>
"""
# Write to a temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.xml', delete=False) as f:
f.write(xml_content)
temp_anno_file = f.name
ARGS = {
'anno_file': temp_anno_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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_cls_dict |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/demo/utils/ssd_classes.py code served (permissive licence) · get_code("881d0360e0837399") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
COCO_CLASSES_LIST = ['background', 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', 'fire hydrant', 'street sign', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'hat', 'backpack', 'umbrella', 'shoe', 'eye glasses', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', 'tennis racket', 'bottle', 'plate', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted plant', 'bed', 'mirror', 'dining table', 'window', 'desk', 'toilet', 'door', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'blender', 'book', 'clock', 'vase', 'scissors', 'teddy bear', 'hair drier', 'toothbrush']
EGOHANDS_CLASSES_LIST = ['background', 'hand']
WIDER_FACE_CLASSES_LIST = ['background', 'face']
def get_cls_dict(model):
"""Get the class ID to name translation dictionary."""
if model == 'wider':
cls_list = WIDER_FACE_CLASSES_LIST
elif model == 'coco':
cls_list = COCO_CLASSES_LIST
elif model == 'egohands':
cls_list = EGOHANDS_CLASSES_LIST
else:
raise ValueError('Bad model name')
return {i: n for i, n in enumerate(cls_list)}
ARGS = {
'model': 'coco'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_dataset_filenames |
Ran ran on a synthesized input |
PuchatekwSzortach/voc_ssd/net/data.py code served (permissive licence) · get_code("44fe71371693375f") 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 os
import tempfile
# Create a temporary directory and a dataset file
temp_dir = tempfile.mkdtemp()
dataset_file = os.path.join(temp_dir, "dataset_filenames.txt")
# Write some sample filenames to the file
with open(dataset_file, 'w', encoding='utf-8') as f:
f.write("image1.jpg\n")
f.write("image2.png\n")
f.write("image3.jpg\n")
ARGS = {
"data_directory": temp_dir,
"data_set_path": "dataset_filenames.txt"
}
- 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_imageId_from_fileName |
Ran ran, honoured the contract we drafted |
2023-MindSpore-1/ms-code-32/src/dataset.py code served (permissive licence) · get_code("49e682a5fcd89812") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
ARGS = {
"filename": "12345.jpg",
"id_iter": 0
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_imgSize |
Ran ran on a synthesized input |
2023-MindSpore-1/ms-code-32/postprocess.py code served (permissive licence) · get_code("97972df8ab55347b") 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
from PIL import Image
import io
# Create a small test image in memory
img_array = np.random.randint(0, 256, (100, 150, 3), dtype=np.uint8)
img = Image.fromarray(img_array, mode='RGB')
# Save to bytes buffer
img_buffer = io.BytesIO()
img.save(img_buffer, format='PNG')
img_buffer.seek(0)
# Write to a temporary file path (we'll use a string path)
# Since we can't do actual file I/O, we'll create a minimal mock
import tempfile
import os
temp_file = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
temp_file.write(img_buffer.getvalue())
temp_file.close()
ARGS = {
'file_name': temp_file.name
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, 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
|
| get_logger |
Ran ran on a synthesized input |
PuchatekwSzortach/voc_ssd/net/utilities.py code served (permissive licence) · get_code("53d58592c2d8cdc7") 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 Logger. 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 logging
import tempfile
# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()
log_path = os.path.join(temp_dir, 'log.html')
ARGS = {
'path': log_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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_model_detection_function |
Ran ran on a synthesized input |
victordibia/handtracking/handtrack/utils/model_utils.py code served (permissive licence) · get_code("aa10d59aba56f0cc") 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 tensorflow as tf
import numpy as np
class MockModel:
"""Minimal mock model that satisfies the function's requirements."""
def preprocess(self, image):
"""Preprocess image and return processed image and shapes."""
# Return a preprocessed image tensor and shapes tensor
processed_image = tf.cast(image, tf.float32)
shapes = tf.constant([[2, 4, 3]], dtype=tf.int32)
return processed_image, shapes
def predict(self, image, shapes):
"""Generate prediction dictionary."""
# Return a dict with prediction tensors
batch_size = tf.shape(image)[0]
prediction_dict = {
'detection_boxes': tf.random.normal([batch_size, 10, 4]),
'detection_scores': tf.random.uniform([batch_size, 10]),
'detection_classes': tf.random.uniform([batch_size, 10], maxval=90, dtype=tf.int32),
'num_detections': tf.constant([10, 10], dtype=tf.int32)
}
return prediction_dict
def postprocess(self, prediction_dict, shapes):
"""Postprocess predictions and return detections."""
# Return detections tensor
detections = {
'detection_boxes': prediction_dict['detection_boxes'],
'detection_scores': prediction_dict['detection_scores'],
'detection_classes': prediction_dict['detection_classes'],
'num_detections': prediction_dict['num_detections']
}
return detections
model = MockModel()
ARGS = {
'model': model
}
- 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 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
|
| get_optimizer_params |
Ran ran on a synthesized input |
LanqingLi/Chromosome/train/train_net.py code served (permissive licence) · get_code("1b144e0f7de2125e") 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 logging
import torch
import torch.nn as nn
# Create a logger
logger = logging.getLogger('test_logger')
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)
# Create a simple learning rate scheduler (can be any object with appropriate interface)
class SimpleLRScheduler:
def __init__(self):
self.last_epoch = 0
lr_scheduler = SimpleLRScheduler()
# Create context list (mimics MXNet context list, used for len() check)
ctx = ['cpu', 'cpu']
# Define all arguments
ARGS = {
'optimizer': 'sgd',
'learning_rate': 0.01,
'momentum': 0.9,
'weight_decay': 0.0001,
'lr_scheduler': lr_scheduler,
'ctx': ctx,
'logger': logger
}
- 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
|
| get_precision_recall_analysis_report |
Ran ran on a synthesized input |
PuchatekwSzortach/voc_ssd/net/analysis.py code served (permissive licence) · get_code("987e6319f756428f") 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
# Stand-in class for Annotation
class Annotation:
def __init__(self, annotation_id, label=None, confidence=None):
self.id = annotation_id
self.label = label or "object"
self.confidence = confidence or 0.9
# Create matched and unmatched annotations and predictions
matched_annotations = [
Annotation(1, "person"),
Annotation(2, "car"),
Annotation(3, "dog"),
]
unmatched_annotations = [
Annotation(4, "bicycle"),
Annotation(5, "cat"),
]
matched_predictions = [
Annotation(101, "person"),
Annotation(102, "car"),
]
unmatched_predictions = [
Annotation(103, "truck"),
Annotation(104, "tree"),
Annotation(105, "house"),
]
ARGS = {
"matched_annotations": matched_annotations,
"unmatched_annotations": unmatched_annotations,
"matched_predictions": matched_predictions,
"unmatched_predictions": unmatched_predictions,
}
- 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
|
| get_relative_gt_box |
Ran ran, violated the contract we drafted |
kanesoban/ssd/loss.py pointer only (licence: NONE) · get_code("7e8f8e6063722961") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, kanesoban/ssd 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. |
| grab_single_frame |
Ran ran on a synthesized input |
paulwarkentin/tf-ssd-vgg/src/infer_live.py code served (permissive licence) · get_code("efb57378cabce604") 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 (480, 640, 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
class MockCapture:
"""Mock OpenCV capture device that returns a valid frame."""
def __init__(self):
self.call_count = 0
def read(self):
self.call_count += 1
# Create a simple BGR frame (3 channel image)
frame = np.zeros((480, 640, 3), dtype=np.uint8)
# Add some variation to make it a valid frame
frame[:, :, 0] = 100 # Blue channel
frame[:, :, 1] = 150 # Green channel
frame[:, :, 2] = 200 # Red channel
return True, frame
capture = MockCapture()
ARGS = {
"capture": capture
}
- 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 (480, 640, 3) — shape (480, 640, 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
|
| grab_single_frame |
Ran ran on a synthesized input |
paulwarkentin/tf-ssd-vgg/src/infer_live_opencv.py code served (permissive licence) · get_code("8bde72371f675b8e") 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 (480, 640, 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
# Create a mock capture device that simulates OpenCV's VideoCapture
class MockCapture:
def __init__(self, return_success=True):
self.return_success = return_success
self.call_count = 0
def read(self):
self.call_count += 1
if self.return_success:
# Return a valid frame (BGR format, typical OpenCV shape)
frame = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
return True, frame
else:
return False, None
# Create a mock capture device that successfully returns a frame
capture = MockCapture(return_success=True)
ARGS = {
"capture": capture
}
- 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 (480, 640, 3) — shape (480, 640, 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_annotation_by_class |
Ran ran; our contract draft was wrong, not the code |
Richard-cpu2333/tx2dl/eval_ssd.py code served (permissive licence) · get_code("1b2736c7aa8cd37f") 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 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)
class MockDataset:
def __init__(self):
# Create a small mock dataset with 3 images
self.annotations = [
(
"image_001",
(
np.array([[10.0, 20.0, 30.0, 40.0], [15.0, 25.0, 35.0, 45.0]]), # gt_boxes
np.array([1, 2]), # classes
np.array([False, False]) # is_difficult
)
),
(
"image_002",
(
np.array([[5.0, 10.0, 15.0, 20.0]]), # gt_boxes
np.array([1]), # classes
np.array([True]) # is_difficult
)
),
(
"image_003",
(
np.array([[100.0, 110.0, 120.0, 130.0], [200.0, 210.0, 220.0, 230.0], [300.0, 310.0, 320.0, 330.0]]), # gt_boxes
np.array([2, 1, 3]), # classes
np.array([False, False, True]) # is_difficult
)
)
]
def __len__(self):
return len(self.annotations)
def get_annotation(self, i):
return self.annotations[i]
dataset = MockDataset()
ARGS = {
'dataset': dataset
}
- Setup block drafted by
- a language model, Claude Sonnet 4.5, prompt python_fixture_v1
- 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
|
| hard_negative_mining |
Ran ran on a synthesized input |
ChunML/ssd-tf2/losses.py code served (permissive licence) · get_code("4dfdab67656d468c") 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 tensorflow as tf
import numpy as np
# Set seed for reproducibility
tf.random.set_seed(0)
# Create small test tensors
batch_size = 2
num_default = 4
# loss: classification losses of all default boxes (B, num_default)
# Values should be positive (they are losses)
loss = tf.constant([
[0.5, 1.2, 0.3, 2.1],
[0.8, 0.2, 1.5, 0.9]
], dtype=tf.float32)
# gt_confs: classification targets (B, num_default)
# Positive targets > 0, negative/background = 0
gt_confs = tf.constant([
[1, 0, 2, 0],
[0, 1, 0, 1]
], dtype=tf.int32)
# neg_ratio: negative / positive ratio (scalar)
neg_ratio = 3
ARGS = {
"loss": loss,
"gt_confs": gt_confs,
"neg_ratio": neg_ratio
}
- 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 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
|
| horizontal_flip |
Ran ran on a synthesized input |
ChunML/ssd-tf2/image_utils.py code served (permissive licence) · get_code("5d4b242231605b8c") 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 tensorflow as tf
from PIL import Image
import numpy as np
# Create a small PIL Image for testing
img = Image.new('RGB', (100, 100), color='red')
# Create gt boxes tensor (num_boxes, 4) with normalized coordinates [x1, y1, x2, y2]
boxes = tf.constant([
[0.1, 0.2, 0.4, 0.5],
[0.3, 0.3, 0.7, 0.8]
], dtype=tf.float32)
# Create gt labels tensor (num_boxes,)
labels = tf.constant([1, 2], dtype=tf.int32)
ARGS = {
'img': img,
'boxes': boxes,
'labels': labels
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, tensorflow, 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
|
| horizontal_flip |
Ran ran on a synthesized input |
aniketmaurya/ssd-tf2-tfds/image_utils.py code served (permissive licence) · get_code("1a0ea2773cf21c51") 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
from PIL import Image
import numpy as np
# Create a small PIL Image (width=10, height=8, RGB)
img = Image.new('RGB', (10, 8), color='red')
# Create gt boxes tensor (num_boxes=2, 4 coordinates)
# Boxes in normalized coordinates [x1, y1, x2, y2]
boxes = tf.constant([
[0.1, 0.2, 0.5, 0.7],
[0.3, 0.4, 0.8, 0.9]
], dtype=tf.float32)
# Create gt labels tensor (num_boxes=2)
labels = tf.constant([1, 2], dtype=tf.int32)
ARGS = {
'img': img,
'boxes': boxes,
'labels': labels
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, 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
|
| img_to_nparray |
Ran ran on a synthesized input |
victordibia/handtracking/handtrack/utils/model_utils.py code served (permissive licence) · get_code("c42a2f2c9fe432d1") 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 (3, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tensorflow as tf
from PIL import Image, ImageDraw
import numpy as np
from io import BytesIO
import tempfile
import os
# Create a temporary image file for testing
def create_test_image():
# Create a small 4x3 RGB image
img = Image.new('RGB', (4, 3), color='red')
# Write to a temporary file
temp_dir = tempfile.gettempdir()
img_path = os.path.join(temp_dir, 'test_image.png')
img.save(img_path)
return img_path
# Generate test image path
test_img_path = create_test_image()
ARGS = {
'img_path': test_img_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy, six, tensorflow — 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 (3, 4, 3) — shape (3, 4, 3) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| intersect |
Ran ran; our contract draft was wrong, not the code |
Guillem96/ssd-pytorch/ssd/boxes.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) |
2023-MindSpore-1/ms-code-32/src/box_utils.py code served (permissive licence) · get_code("320960c2db6c2963") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Construct box_a: shape (2, 4) - 2 boxes with 4 coordinates each (y_min, x_min, y_max, x_max)
box_a = np.array([
[1.0, 2.0, 5.0, 6.0],
[2.0, 3.0, 7.0, 8.0]
], dtype=np.float32)
# Construct box_b: shape (4,) - single box with 4 coordinates (y_min, x_min, y_max, x_max)
box_b = np.array([2.0, 3.0, 6.0, 7.0], dtype=np.float32)
ARGS = {
"box_a": box_a,
"box_b": box_b
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (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
|
| jaccard_numpy |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
yqyao/ssd.pytorch/utils/augmentations.py pointer only (licence: MIT); 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 (MIT), 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. |
| locate_files |
Ran ran on a synthesized input |
aiha-lab/AI-thermometer/python/common.py code served (permissive licence) · get_code("2186d589c82c92b6") 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 os
import tempfile
import shutil
# Create temporary directories and files for testing
temp_dir1 = tempfile.mkdtemp()
temp_dir2 = tempfile.mkdtemp()
# Create some test files
test_file1 = os.path.join(temp_dir1, "file1.txt")
test_file2 = os.path.join(temp_dir2, "file2.txt")
with open(test_file1, "w") as f:
f.write("test content 1")
with open(test_file2, "w") as f:
f.write("test content 2")
# Also create file2.txt in temp_dir1 to test the "first directory" preference
test_file2_alt = os.path.join(temp_dir1, "file2.txt")
with open(test_file2_alt, "w") as f:
f.write("test content 2 alt")
ARGS = {
"data_paths": [temp_dir1, temp_dir2],
"filenames": ["file1.txt", "file2.txt"]
}
- 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
|