| mish |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
this paper's copy was not recorded; identical code first harvested from tanreinama/XceptionHourgrass---PyTorch pointer only · get_code("6a59ba4afdd39102") How it ranThe body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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. |
| build_release_tag |
Ran ran on a synthesized input |
wbenbihi/hourglasstensorflow/ci/readme.py code served (permissive licence) · get_code("10b27358398f2cb0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
def build_release_tag(version):
return f'<img src="https://badgen.net/badge/release/v{version}?color=blue"></img>'
ARGS = {
"version": "1.0.0"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| coord_transform |
Ran ran on a synthesized input |
BB-Repos/BBpose/bbpose/preprocess/utils.py code served (permissive licence) · get_code("ede58fc3ba58ed25") 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 int, 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
# Set seeds for reproducibility
tf.random.set_seed(0)
# Define arguments for coord_transform function
coords = tf.constant([10.0, 15.0], dtype=tf.float32)
center = [5.0, 5.0]
scale = 1.0
rotation = 0.0
invert = 0
size = 64
ARGS = {
"coords": coords,
"center": center,
"scale": scale,
"rotation": rotation,
"invert": invert,
"size": size
}
- 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 1, dtype family int, 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
|
| filter_params |
Ran ran on a synthesized input |
BB-Repos/BBpose/bbpose/utils.py code served (permissive licence) · get_code("6dbfb45b1ac19409") 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
# Call get_param_list to understand what parameters are expected
param_list = []
TYPES = ['string', 'integer', 'float', 'boolean', 'list']
DEFAULTS_BULAT = {'string': {'img_dir': '/PATH/TO/IMG/DIR', 'dataset': 'mpii', 'gcs_records': '', 'arch': 'softgate', 'initializer': 'glorot_uniform', 'strategy': 'default', 'tpu_address': '', 'gcs_results': ''}, 'integer': {'version': 0, 'img_size': 256, 'hm_size': 64, 'num_stacks': 4, 'batch_per_replica': 24, 'num_replicas': 1, 'train_size': 0, 'val_size': 0, 'toy_samples': 250, 'examples_per_record': 250, 'interleave_num': 2, 'interleave_block': 1, 'sigma': 1, 'num_filters': 144, 'num_epochs': 200, 'steps_per_execution': 1, 'track_every': 32, 'decay_steps': 2000}, 'float': {'momentum': 0.9, 'epsilon': 0.001, 'dropout_rate': 0.2, 'threshold': 0.5, 'decay_factor': 0.2, 'learning_rate': 0.00025, 'scale': 0.0, 'decay_rate': 0.96}, 'boolean': {'use_records': False, 'use_cloud': False, 'switch': False, 'download_images': False, 'toy_set': False, 'is_eager': False, 'mixed_precision': False, 'schedule_per_step': False}, 'list': {'mean': [0.4624228775501251, 0.44416481256484985, 0.4025438725948334], 'decay_epochs': [75, 100, 150]}}
for t in TYPES:
param_list += [k for k in DEFAULTS_BULAT[t]]
# Build param_dict with valid values for all parameters
param_dict = {}
# String parameters
param_dict['img_dir'] = '/PATH/TO/IMG/DIR'
param_dict['dataset'] = 'mpii'
param_dict['gcs_records'] = ''
param_dict['arch'] = 'softgate'
param_dict['initializer'] = 'glorot_uniform'
param_dict['strategy'] = 'default'
param_dict['tpu_address'] = ''
param_dict['gcs_results'] = ''
# Integer parameters
param_dict['version'] = 0
param_dict['img_size'] = 256
param_dict['hm_size'] = 64
param_dict['num_stacks'] = 4
param_dict['batch_per_replica'] = 24
param_dict['num_replicas'] = 1
param_dict['train_size'] = 0
param_dict['val_size'] = 0
param_dict['toy_samples'] = 250
param_dict['examples_per_record'] = 250
param_dict['interleave_num'] = 2
param_dict['interleave_block'] = 1
param_dict['sigma'] = 1
param_dict['num_filters'] = 144
param_dict['num_epochs'] = 200
param_dict['steps_per_execution'] = 1
param_dict['track_every'] = 32
param_dict['decay_steps'] = 2000
# Float parameters
param_dict['momentum'] = 0.9
param_dict['epsilon'] = 0.001
param_dict['dropout_rate'] = 0.2
param_dict['threshold'] = 0.5
param_dict['decay_factor'] = 0.2
param_dict['learning_rate'] = 0.00025
param_dict['scale'] = 0.0
param_dict['decay_rate'] = 0.96
# Boolean parameters
param_dict['use_records'] = False
param_dict['use_cloud'] = False
param_dict['switch'] = False
param_dict['download_images'] = False
param_dict['toy_set'] = False
param_dict['is_eager'] = False
param_dict['mixed_precision'] = False
param_dict['schedule_per_step'] = False
# List parameters
param_dict['mean'] = [0.4624228775501251, 0.44416481256484985, 0.4025438725948334]
param_dict['decay_epochs'] = [75, 100, 150]
ARGS = {'param_dict': param_dict}
- 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
|
| genertate_heatmap |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/util/util.py code served (permissive licence) · get_code("6b3e458447bde8c3") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (4, 48, 64) 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
# Analyze the function to understand parameter requirements:
# - imSize: tuple/list of 2 elements (width, height) - used as im_size[0], im_size[1]
# - keypoints: numpy array with shape (N, at least 2) - keypoints[i, :2] accesses first 2 columns
# - sigma: scalar value - used in arithmetic operations
# Create small test data
imSize = (64, 48) # width=64, height=48
# keypoints: shape (3, 2) - 3 keypoints with x,y coordinates
keypoints = np.array([
[32.0, 24.0], # center point
[16.0, 12.0], # top-left area
[48.0, 36.0], # bottom-right area
], dtype=np.float32)
# sigma: scalar parameter for gaussian
sigma = 1.0
ARGS = {
"imSize": imSize,
"keypoints": keypoints,
"sigma": sigma
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 3, dtype family float, shape (4, 48, 64) — shape (4, 48, 64) 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
|
| getBaseGrid |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/models/deform_transfer_model.py code served (permissive licence) · get_code("dd1c3c1cc330faf5") 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, 64, 64) 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)
ARGS = {
"N": 64,
"normalize": True,
"getbatch": False,
"batchSize": 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 Tensor, ndim 3, dtype family float, shape (2, 64, 64) — shape (2, 64, 64) 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_groups |
Ran ran on a synthesized input |
wbenbihi/hourglasstensorflow/ci/changelog.py code served (permissive licence) · get_code("8da26b7cda8f4004") 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 re
# The function expects a match object with named groups
# We need to create a regex match object that has the required group names
GROUP_KEYS = ['commitId', 'commitInfo', 'mergeInfo', 'author', 'date', 'msg']
# Create a regex pattern with named groups for all required keys
pattern = r'(?P<commitId>\w+)\s+(?P<commitInfo>[^\n]+)\s+(?P<mergeInfo>[^\n]*)\s+(?P<author>[^\n]+)\s+(?P<date>[^\n]+)\s+(?P<msg>.+)'
# Create a sample string that matches the pattern
sample_string = "abc123 info_value merge_value author_name 2024-01-01 commit message here"
# Create the match object
m = re.match(pattern, sample_string)
ARGS = {
'm': m
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_max_indices |
Ran ran on a synthesized input |
BB-Repos/BBpose/bbpose/train/utils.py code served (permissive licence) · get_code("eec92c49784b6838") 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 3, dtype family float, shape (2, 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 a valid heatmap tensor
# Shape: [batch_size, height, width, num_joints]
batch_size = 2
height = 4
width = 4
num_joints = 3
# Create a small heatmap with values between 0 and 1
heatmaps = tf.random.uniform(
shape=[batch_size, height, width, num_joints],
minval=0.0,
maxval=1.0,
dtype=tf.float32
)
ARGS = {
"heatmaps": heatmaps
}
- 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 3, dtype family float, shape (2, 2, 3) — shape (2, 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
|
| get_norm_layer |
Ran ran; our contract draft was wrong, not the code |
siyliepfl/deformation-aware-unpaired-image-translation/models/networks.py code served (permissive licence) · get_code("30190c576dd53b28") 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 partial. 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 functools
torch.manual_seed(0)
ARGS = {
'norm_type': 'instance'
}
- 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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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_scheduler |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/models/networks.py code served (permissive licence) · get_code("0dacd083f5b40969") 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 LambdaLR. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from torch.optim import Adam
torch.manual_seed(0)
# Create a minimal model
model = nn.Linear(4, 3)
# Create an optimizer
optimizer = Adam(model.parameters(), lr=0.001)
# Create a minimal options object with all required attributes
class OptConfig:
def __init__(self, lr_policy):
self.lr_policy = lr_policy
self.epoch_count = 0
self.niter = 100
self.niter_decay = 50
self.lr_decay_iters = 10
# Test with 'lambda' policy
opt = OptConfig(lr_policy='lambda')
ARGS = {
'optimizer': optimizer,
'opt': opt,
'Isdeform': False
}
- 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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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_tags_position |
Ran ran on a synthesized input |
wbenbihi/hourglasstensorflow/ci/readme.py code served (permissive licence) · get_code("ae6a5d4d6122a4d0") 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
from typing import List, Tuple, Optional
# Set seed for reproducibility
torch.manual_seed(0)
# Create test data - a list of strings representing lines from a file
lines = [
"Some header content",
"More content here",
"<!-- START BADGES -->",
"Badge 1",
"Badge 2",
"Badge 3",
"<!-- END BADGES -->",
"Footer content",
"More footer"
]
ARGS = {
"lines": lines
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- loguru, 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_transformation_matrix |
Ran ran on a synthesized input |
BB-Repos/BBpose/bbpose/preprocess/utils.py code served (permissive licence) · get_code("2092249af2b2fe48") 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 (3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tensorflow as tf
import numpy as np
# Set seed for reproducibility
tf.random.set_seed(0)
# Define the ARGS dictionary with valid arguments for get_transformation_matrix
ARGS = {
"center": tf.constant([100.0, 150.0], dtype=tf.float32),
"scale": 1.5,
"rotation": 45.0,
"invert": 0,
"size": 256
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_type |
Ran ran; our contract draft was wrong, not the code |
BB-Repos/BBpose/bbpose/utils.py code served (permissive licence) · get_code("ccea79b6b915e1b5") 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
torch.manual_seed(0)
ARGS = {
'param': 'img_size'
}
- 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
|
| group_commits_strings |
Ran ran on a synthesized input |
wbenbihi/hourglasstensorflow/ci/changelog.py code served (permissive licence) · get_code("dfe90fd4f8760f6c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from typing import List
# Create sample git commit log lines
lines = [
"commit abc123def456",
"Author: John Doe <john@example.com>",
"Date: Mon Jan 1 12:00:00 2024 +0000",
"",
"Initial commit message",
"commit def789ghi012",
"Author: Jane Smith <jane@example.com>",
"Date: Tue Jan 2 13:00:00 2024 +0000",
"",
"Second commit message",
"with multiple lines",
"commit jkl345mno678",
"Author: Bob Wilson <bob@example.com>",
"Date: Wed Jan 3 14:00:00 2024 +0000",
"",
"Third commit"
]
ARGS = {
"lines": lines
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| match_format |
Ran ran on a synthesized input |
yangyucheng000/StackedHourglass/postprocess.py code served (permissive licence) · get_code("7fc99ca12fb3528d") 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 4, 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 a dictionary with the required keys
# The function accesses:
# - dic['loc_k'][0, :, 0, :] -> needs shape (batch, seq, ?, features)
# - dic['val_k'][0, :, :] -> needs shape (batch, seq, features)
dic = {
'loc_k': np.random.randn(2, 5, 3, 4), # shape: (batch=2, seq=5, dim=3, features=4)
'val_k': np.random.randn(2, 5, 4), # shape: (batch=2, seq=5, features=4)
}
ARGS = {
'dic': dic
}
- 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 4, 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
|
| merge |
Ran ran; our contract draft was wrong, not the code |
yangyucheng000/StackedHourglass/model_utils/config.py code served (permissive licence) · get_code("b9e24c3e3e0e88a7") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned 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 argparse
torch.manual_seed(0)
# Create a mock args object with some attributes
args = argparse.Namespace(
learning_rate=0.001,
batch_size=32,
epochs=10,
model_name="test_model",
debug=True,
seed=42
)
# Create a base configuration dictionary
cfg = {
"default_lr": 0.0001,
"default_batch": 16,
"dataset": "cifar10"
}
ARGS = {
"args": args,
"cfg": cfg
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| parse_cli_to_yaml |
Ran ran; our contract draft was wrong, not the code |
yangyucheng000/StackedHourglass/model_utils/config.py code served (permissive licence) · get_code("738456e1b7388e7e") 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 Namespace. 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
import ast
# Create minimal parent parser
parent_parser = argparse.ArgumentParser(add_help=False)
# Create base configuration dict with various types
cfg = {
'learning_rate': 0.001,
'batch_size': 32,
'epochs': 10,
'use_cuda': False,
'model_name': 'resnet50',
'dropout': 0.5,
'debug': True,
'nested_list': [1, 2, 3], # This will be skipped since it's a list
'nested_dict': {'a': 1}, # This will be skipped since it's a dict
}
# Create helper descriptions
helper = {
'learning_rate': 'Learning rate for optimizer',
'batch_size': 'Batch size for training',
'epochs': 'Number of training epochs',
'use_cuda': 'Whether to use CUDA',
'model_name': 'Name of the model architecture',
'dropout': 'Dropout rate',
'debug': 'Enable debug mode',
}
# Create choices for specific parameters
choices = {
'model_name': ['resnet50', 'vgg16', 'mobilenet'],
}
# Set config path
cfg_path = 'default_config.yaml'
ARGS = {
'parser': parent_parser,
'cfg': cfg,
'helper': helper,
'choices': choices,
'cfg_path': cfg_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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
|
| parse_readme |
Ran ran on a synthesized input |
wbenbihi/hourglasstensorflow/ci/readme.py code served (permissive licence) · get_code("b8877366aa9f23ef") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
def parse_readme(readme: str) -> list[str]:
lines = readme.split('\n')
return lines
# Create a sample readme string with multiple lines
sample_readme = """# My Project
This is a sample README file.
It has multiple lines.
## Installation
Run `pip install myproject`
## Usage
Import and use the module.
"""
ARGS = {
"readme": sample_readme
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_yaml |
Ran ran on a synthesized input |
yangyucheng000/StackedHourglass/model_utils/config.py code served (permissive licence) · get_code("96a9939953d5992d") 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 tempfile
import os
import yaml
# Create a temporary YAML file with valid config structure
temp_dir = tempfile.mkdtemp()
yaml_path = os.path.join(temp_dir, "config.yaml")
# Write a valid YAML file with 3 documents: config, helper, and choices
yaml_content = """
model: resnet50
learning_rate: 0.001
batch_size: 32
---
model: "Model architecture to use"
learning_rate: "Learning rate for optimization"
batch_size: "Batch size for training"
---
model: [resnet50, resnet101, vgg16]
learning_rate: [0.0001, 0.001, 0.01]
batch_size: [16, 32, 64]
"""
with open(yaml_path, 'w') as f:
f.write(yaml_content)
ARGS = {
"yaml_path": yaml_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| putGaussianMaps |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/util/util.py code served (permissive licence) · get_code("7dc7eef5b6e0e070") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (48, 64) 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
# Analyze the function to determine required arguments:
# - center: tuple/list of 2 floats (x, y coordinates)
# - accumulate_confid_map: numpy array that gets modified
# - sigma: float (standard deviation for Gaussian)
# - im_size: tuple of 2 ints (width, height)
# Create valid arguments
center = (32.5, 24.3) # x, y coordinates for Gaussian center
sigma = 5.0 # standard deviation
im_size = (64, 48) # width=64, height=48
# Create accumulate_confid_map as a numpy array initialized to zeros
accumulate_confid_map = np.zeros((im_size[1], im_size[0]), dtype=np.float32)
ARGS = {
"center": center,
"accumulate_confid_map": accumulate_confid_map,
"sigma": sigma,
"im_size": im_size,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (48, 64) — shape (48, 64) 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
|
| rotate_transformation_matrix |
Ran ran on a synthesized input |
BB-Repos/BBpose/bbpose/preprocess/utils.py code served (permissive licence) · get_code("4dbdf834bb0a03f6") 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 (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tensorflow as tf
import numpy as np
PI = 3.14159265
def rotate_transformation_matrix(transfromation_matrix, rotation, size):
rotation = -rotation
sn = tf.sin(rotation * (PI / 180))
csn = tf.cos(rotation * (PI / 180))
rot_matrix = tf.TensorArray(tf.float32, size=3, dynamic_size=False)
rot_matrix = rot_matrix.write(0, value=[csn, -sn, 0])
rot_matrix = rot_matrix.write(1, value=[sn, csn, 0])
rot_matrix = rot_matrix.write(2, value=[0, 0, 1])
rot_matrix = rot_matrix.stack()
tr_matrix = tf.TensorArray(tf.float32, size=3, dynamic_size=False)
tr_matrix = tr_matrix.write(0, value=[1, 0, -size / 2])
tr_matrix = tr_matrix.write(1, value=[0, 1, -size / 2])
tr_matrix = tr_matrix.write(2, value=[0, 0, 1])
tr_matrix = tr_matrix.stack()
inv_matrix = tf.TensorArray(tf.float32, size=3, dynamic_size=False)
inv_matrix = inv_matrix.write(0, value=[1, 0, size / 2])
inv_matrix = inv_matrix.write(1, value=[0, 1, size / 2])
inv_matrix = inv_matrix.write(2, value=[0, 0, 1])
inv_matrix = inv_matrix.stack()
transfromation_matrix = tf.tensordot(tr_matrix, transfromation_matrix, axes=1)
transfromation_matrix = tf.tensordot(rot_matrix, transfromation_matrix, axes=1)
transfromation_matrix = tf.tensordot(inv_matrix, transfromation_matrix, axes=1)
return transfromation_matrix
# Create a small transformation matrix (3x4)
transformation_matrix = tf.constant([
[1.0, 0.0, 0.0, 5.0],
[0.0, 1.0, 0.0, 3.0],
[0.0, 0.0, 1.0, 0.0]
], dtype=tf.float32)
# Rotation angle in degrees
rotation_angle = tf.constant(45.0, dtype=tf.float32)
# Size parameter
size_param = tf.constant(100.0, dtype=tf.float32)
ARGS = {
"transfromation_matrix": transformation_matrix,
"rotation": rotation_angle,
"size": size_param
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type EagerTensor, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
|
| tensor2im |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/util/util.py code served (permissive licence) · get_code("72de6d76704ce9f0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Create a small tensor with shape (batch=1, channels=3, height=4, width=5)
# The function expects input_image[0] to be indexable and have shape (C, H, W)
input_tensor = torch.randn(1, 3, 4, 5)
ARGS = {
"input_image": input_tensor,
"imtype": np.uint8
}
- 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 ndarray, ndim 3, dtype family int, shape (4, 5, 3) — shape (4, 5, 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
|
| type_check |
Ran ran, violated the contract we drafted |
BB-Repos/BBpose/bbpose/utils.py code served (permissive licence) · get_code("cf51336d7aeaf3d7") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# The function type_check takes two parameters:
# 1. param: a string parameter name
# 2. value: a value to type-check against DEFAULTS[MAIN]
# Based on the function logic, we need to test valid cases that will return True
# Let's construct arguments that will pass the type_check function
# Valid parameter from 'bulat' (which is MAIN) with matching types:
param_string = 'img_dir' # exists in DEFAULTS['bulat']['string']
value_string = '/some/path' # string type
param_boolean = 'use_records' # exists in DEFAULTS['bulat']['boolean']
value_boolean = False # boolean type
param_integer = 'num_stacks' # exists in DEFAULTS['bulat']['integer']
value_integer = 4 # int type
param_float = 'learning_rate' # exists in DEFAULTS['bulat']['float']
value_float = 0.0001 # float type
param_list = 'mean' # exists in DEFAULTS['bulat']['list']
value_list = [0.1, 0.2, 0.3] # list of floats matching the type of DEFAULTS['bulat']['list']['mean'][0]
# We need to provide arguments for type_check(param, value)
# Let's pick one valid case
ARGS = {
'param': 'img_dir',
'value': '/some/path'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| visualize_patchGAN |
Ran ran on a synthesized input |
siyliepfl/deformation-aware-unpaired-image-translation/util/visualizer.py code served (permissive licence) · get_code("1ae175fe4202fb3f") 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 torch
import numpy as np
from PIL import Image, ImageDraw
# Create a small PIL image
pil_img = Image.new('RGB', (64, 48), color=(100, 150, 200))
# Create a feature_map as numpy array with shape (H, W, 3)
# This matches the function's expectation of feature_map[i, j, :] being a tuple
feature_map = np.random.randint(0, 256, size=(8, 16, 3), dtype=np.uint8)
ARGS = {
'source_img': pil_img,
'feature_map': feature_map,
'color': 'hot',
'alpha': 0.4
}
- 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 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_deformation |
Not yet run unverified (harvested, no recorded run) |
siyliepfl/deformation-aware-unpaired-image-translation/util/visualizer.py code served (permissive licence) · get_code("1ff0d56adf6352ad") How it ran |