SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1611.07004 · CVPR · 2016

Image-to-Image Translation with Conditional Adversarial Networks

Phillip Isola, Alexei Efros, Jun-Yan Zhu, Tinghui Zhou

arXiv · PDF · Open in the Atlas

Code that ran

74 of 122 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 7 violated it and 50 have no contract verdict; 13 failures of our instrument; 48 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1611.07004.json · badge: /api/ran/1611.07004.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement community (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation community (classifier label)
classifier basis not recorded on the link
11 ran · 0 no recorded run
laclark/cuneiform_lineart community (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
telecombcn-dl/2018-dlcv-team2 community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
Vious/LBAM_Pytorch community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
yigitgunduc/tensor-to-image community (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
acecreamu/angularGAN community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
Rust401/pixel2piexl community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
abods/generative_painting community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
Nguyendat-bit/pix2pix-tensorflow community (classifier label)
classifier basis not recorded on the link
2 ran · 9 no recorded run
BrookInternSOMA/pix2pix-barcode community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
bxck75/piss-ant-pix2pix community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
brade31919/SRGAN-tensorflow community (classifier label)
classifier basis not recorded on the link
1 ran · 6 no recorded run
yenchenlin/pix2pix-tensorflow community (classifier label)
classifier basis not recorded on the link
1 ran · 5 no recorded run
awjuliani/Pix2Pix-Film community (classifier label)
classifier basis not recorded on the link
1 ran · 2 no recorded run
weipeng0703/Pix2Pix_MindSpore_For_PaperWithCode community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
deepware/pix2pix community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
nishantcoder97/cgandemo community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
darth-c0d3r/pix2pix reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
CreativeCodingLab/DeepIllumination community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
MaximeVandegar/Papers-in-100-Lines-of-Code reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
akanametov/Pix2Pix community (classifier label)
classifier basis not recorded on the link
0 ran · 4 no recorded run
cianfrocco-lab/GAN-for-Cryo-EM-image-denoising community (classifier label)
classifier basis not recorded on the link
0 ran · 3 no recorded run
INOS-soft/AI community (classifier label)
classifier basis not recorded on the link
0 ran · 2 no recorded run
random-quark/pix2pix-tensorflow community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
identity Ran
ran, honoured the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/classifier_free_guidance.py
code served (permissive licence) · get_code("7f1040f5e3991d5e")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:37:21Z). 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 torch.nn as nn

torch.manual_seed(0)

# The identity function simply returns its first argument
# and ignores all other args and kwargs
# So we need to provide a value for t and can optionally provide other args/kwargs

t = torch.randn(2, 4)
extra_arg_1 = torch.randn(3, 5)
extra_arg_2 = "some_string"
extra_kwarg_1 = 42
extra_kwarg_2 = [1, 2, 3]

ARGS = {
    "t": t,
    "args": (extra_arg_1, extra_arg_2),
    "kwargs": {"key1": extra_kwarg_1, "key2": extra_kwarg_2}
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log Ran
ran; our contract draft was wrong, not the code
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/elucidated_diffusion.py
code served (permissive licence) · get_code("b5472673332de78e")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T01:35:34Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a tensor `t` and an optional `eps` parameter
# It clamps the tensor to a minimum value of eps, then takes the log

# Create a small tensor with positive values (log requires positive input)
t = torch.tensor([[0.5, 1.0, 2.0, 0.1],
                   [0.3, 0.8, 1.5, 0.2]], dtype=torch.float32)

ARGS = {
    "t": t,
    "eps": 1e-20
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
RootMeanSquareDeviation Ran
ran, honoured the contract we drafted
darth-c0d3r/pix2pix/eval_metrics.py
pointer only (licence: NONE) · get_code("9706ee448db562d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, darth-c0d3r/pix2pix 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.

blank Ran
ran on a synthesized input
Rust401/pixel2piexl/process.py
code served (permissive licence) · get_code("356fa90e84a7fbda")
How it ran

Ran 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 (10, 10, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small square image (3D array with height, width, and 3 channels)
# Using a 10x10 image with 3 color channels
src = np.random.rand(10, 10, 3).astype(np.float32)

ARGS = {
    'src': src
}
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 (10, 10, 3) — shape (10, 10, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calc_gradient_penalty Ran
ran on a synthesized input
Vious/LBAM_Pytorch/loss/InpaintingLoss.py
code served (permissive licence) · get_code("c22eeb67c665a020")
How it ran

Ran 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 0, dtype family float, shape () as a later run recorded it. 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, 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 torch.nn as nn
from torch import autograd

torch.manual_seed(0)

# Create a minimal discriminator network
class MinimalDiscriminator(nn.Module):
    def __init__(self):
        super(MinimalDiscriminator, self).__init__()
        self.conv1 = nn.Conv2d(3, 8, kernel_size=3, padding=1)
        self.linear = nn.Linear(8 * 4 * 4, 1)
    
    def forward(self, x, masks):
        # x shape: (batch_size, 3, DIM, DIM)
        # masks shape: (batch_size, 1, DIM, DIM)
        x = self.conv1(x)
        x = x.view(x.size(0), -1)
        x = self.linear(x)
        return x

# Instantiate the discriminator
netD = MinimalDiscriminator()

# Create tensors with distinct dimensions
BATCH_SIZE = 2
DIM = 4
real_data = torch.randn(BATCH_SIZE, 3, DIM, DIM)
fake_data = torch.randn(BATCH_SIZE, 3, DIM, DIM)
masks = torch.randint(0, 2, (BATCH_SIZE, 1, DIM, DIM)).float()

# Set parameters
cuda = False
Lambda = 10.0

# Define ARGS dictionary
ARGS = {
    "netD": netD,
    "real_data": real_data,
    "fake_data": fake_data,
    "masks": masks,
    "cuda": cuda,
    "Lambda": Lambda
}
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 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
cdli_catalogue_paths Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/data_munging/cdli_data_download.py
code served (permissive licence) · get_code("abf9dbb6b2f9438b")
How it ran

Ran 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 a temporary directory with test CSV files
temp_dir = tempfile.mkdtemp()

# Create some test CDLI catalogue CSV files
test_files = [
    'cdli_catalogue_001.csv',
    'cdli_catalogue_002.csv',
    'CDLI_CATALOGUE_003.csv',
    'not_catalogue.csv',
    'readme.txt'
]

for filename in test_files:
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write('test,data\n')

ARGS = {
    'cdli_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
combine_filters Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/data_munging/cdli_data_download.py
code served (permissive licence) · get_code("b4d152e1c91fd71f")
How it ran

Ran 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.

# Setup code for combine_filters function

ARGS = {
    'collections': ['collection_a', 'collection_b'],
    'languages': ['English', 'French', 'Spanish'],
    'preservations': ['excellent', 'good']
}
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
compare_a_template Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/cut_twist_process/twist_part.py
code served (permissive licence) · get_code("24c433d1bd3d39ca")
How it ran

Ran 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 float, 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 cv2
import numpy as np

# Create small grayscale image (img_gray parameter)
# cv2.matchTemplate requires the image to be larger than the template
img_gray = np.random.randint(0, 256, size=(32, 32), dtype=np.uint8)

# Create small template image (template parameter)
# Template must be smaller than or equal to the image
template = np.random.randint(0, 256, size=(8, 8), dtype=np.uint8)

ARGS = {
    "img_gray": img_gray,
    "template": template,
}
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 float, 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
conv_cond_concat Ran
ran on a synthesized input
yenchenlin/pix2pix-tensorflow/ops.py
code served (permissive licence) · get_code("bcb75c6ee41f4e8c")
How it ran

Ran 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 SymbolicTensor. 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

# Create small test tensors
# x: feature map tensor with shape [batch, height, width, channels]
# y: conditioning vector with shape [batch, 1, 1, cond_channels]

batch_size = 2
height = 4
width = 3
x_channels = 5
y_channels = 6

# Create x as a feature map (batch, height, width, channels)
x = tf.constant(np.random.randn(batch_size, height, width, x_channels), dtype=tf.float32)

# Create y as a conditioning vector (batch, 1, 1, channels)
y = tf.constant(np.random.randn(batch_size, 1, 1, y_channels), dtype=tf.float32)

ARGS = {
    'x': x,
    'y': y,
}
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 SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_gMask Ran
ran on a synthesized input
Vious/LBAM_Pytorch/generateMask.py
code served (permissive licence) · get_code("deea228b574c624b")
How it ran

Ran 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 (1, 16, 16) 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 random

torch.manual_seed(0)

# Create a small binary pattern tensor (2D mask pattern)
# The function indexes into this with [y:y+fineSize, x:x+fineSize]
pattern = torch.randint(0, 2, (32, 32)).float()

# Create gMask_opts dictionary with all required keys
gMask_opts = {
    'pattern': pattern,
    'mask_global': torch.zeros(3, 16, 16),  # 3D tensor for mask_global
    'MAX_SIZE': 32,
    'fineSize': 16,
    'maxPartition': 80
}

ARGS = {
    'gMask_opts': gMask_opts,
    'limit_cnt': 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 Tensor, ndim 3, dtype family float, shape (1, 16, 16) — shape (1, 16, 16) 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
default Ran
ran, violated the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/classifier_free_guidance.py
code served (permissive licence) · get_code("d1ef6b8cb9a28a53")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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

torch.manual_seed(0)

def exists(x):
    return x is not None

def default(val, d):
    if exists(val):
        return val
    return d() if callable(d) else d

# Test case 1: val is not None, should return val
val_1 = "test_value"
d_1 = lambda: "default_value"

# Test case 2: val is None, d is callable, should return d()
val_2 = None
d_2 = lambda: "computed_default"

# Test case 3: val is None, d is not callable, should return d
val_3 = None
d_3 = "static_default"

# Test case 4: val is a number
val_4 = 42
d_4 = 100

# Test case 5: val is a tensor
val_5 = torch.tensor([1.0, 2.0, 3.0])
d_5 = lambda: torch.tensor([0.0])

ARGS = {
    "val": val_1,
    "d": d_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
default Ran
ran, violated the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/continuous_time_gaussian_diffusion.py
code served (permissive licence) · get_code("915fbeb88e13d4a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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.

def exists(val):
    return val is not None

def default(val, d):
    if exists(val):
        return val
    return d() if callable(d) else d

# Test case 1: val is None, d is a non-callable value
val_1 = None
d_1 = 42

# Test case 2: val exists, d is a callable
val_2 = "existing_value"
d_2 = lambda: "default_value"

# Test case 3: val is None, d is a callable
val_3 = None
d_3 = lambda: [1, 2, 3]

# We'll use test case 2 for the ARGS dict
ARGS = {
    'val': val_2,
    'd': d_2
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
define_D Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/network_transfer.py
code served (permissive licence) · get_code("c3c1c6a5bed28673")
How it ran

Ran 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. 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

torch.manual_seed(0)

# The function expects to load a checkpoint file, but we can't do file I/O.
# We'll mock the torch.load to return a simple discriminator model.
original_load = torch.load

def mock_load(path):
    # Return a simple discriminator-like model
    model = nn.Sequential(
        nn.Conv2d(3, 64, kernel_size=4, stride=2, padding=1),
        nn.BatchNorm2d(64),
        nn.ReLU(inplace=True),
        nn.Conv2d(64, 128, kernel_size=4, stride=2, padding=1),
        nn.BatchNorm2d(128),
        nn.ReLU(inplace=True),
        nn.Conv2d(128, 1, kernel_size=4, stride=1, padding=1)
    )
    return model

torch.load = mock_load

ARGS = {
    'input_nc': 3,
    'ndf': 64,
    'norm': 'batch',
    'use_sigmoid': False,
    'gpu_ids': []
}
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
define_D Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/networks.py
code served (permissive licence) · get_code("6152413276c330a5")
How it ran

Ran 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 NLayerDiscriminator. 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    'input_nc': 3,
    'ndf': 64,
    'norm': 'batch',
    'use_sigmoid': False,
    'gpu_ids': []
}
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 NLayerDiscriminator — a NLayerDiscriminator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NLayerDiscriminator 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
define_G Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/networks.py
code served (permissive licence) · get_code("86ad2315eafb1186")
How it ran

Ran 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 ResnetGenerator. 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

torch.manual_seed(0)

ARGS = {
    'input_nc': 3,
    'output_nc': 3,
    'ngf': 64,
    'norm': 'batch',
    'use_dropout': False,
    'gpu_ids': []
}
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 ResnetGenerator — a ResnetGenerator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResnetGenerator 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
deprocess Ran
ran, violated the contract we drafted
BrookInternSOMA/pix2pix-barcode/pix2pix.py
code served (permissive licence) · get_code("4288f8e325eb43a4")
How it ran

Ran 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 SymbolicTensor. 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

# Create a small test image tensor
# The function expects an image and applies (image + 1) / 2
# This is a typical deprocessing operation for images in range [-1, 1]
# Let's create a small image tensor with shape (2, 4, 4, 3) for batch of 2, 4x4 spatial, 3 channels
image_data = np.random.randn(2, 4, 4, 3).astype(np.float32) * 0.5
image = tf.constant(image_data)

ARGS = {
    'image': image
}
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 SymbolicTensor — a SymbolicTensor 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
deprocess Ran
ran; our contract draft was wrong, not the code
bxck75/piss-ant-pix2pix/pix2pix_custom.py
code served (permissive licence) · get_code("8e8130d292473a2f")
How it ran

Ran 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 SymbolicTensor. 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.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create a small test image tensor
# The function expects an image that will be processed as (image + 1) / 2
# So we create a small tensor with values in a reasonable range
image_data = np.array([
    [[-0.5, 0.2, 0.8, -0.1],
     [0.3, -0.7, 0.1, 0.9]],
    [[0.5, -0.3, 0.2, 0.6],
     [-0.8, 0.4, -0.2, 0.7]]
], dtype=np.float32)

image_tensor = tf.constant(image_data)

ARGS = {
    'image': image_tensor
}
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 SymbolicTensor — a SymbolicTensor 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
disc_loss Ran
ran on a synthesized input
Nguyendat-bit/pix2pix-tensorflow/loss_model.py
code served (permissive licence) · get_code("7ccae32e91e0f6c1")
How it ran

Ran 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

# Define a simple loss function (binary crossentropy)
def loss_func(y_true, y_pred):
    return tf.keras.losses.binary_crossentropy(y_true, y_pred, from_logits=False)

# Create discriminator outputs (batch_size=2, output_dim=4)
disc_real_output = tf.constant([[0.8, 0.9, 0.7, 0.85], [0.75, 0.88, 0.82, 0.79]], dtype=tf.float32)
disc_gen_output = tf.constant([[0.2, 0.15, 0.25, 0.18], [0.22, 0.19, 0.21, 0.17]], dtype=tf.float32)

ARGS = {
    "loss_func": loss_func,
    "disc_real_output": disc_real_output,
    "disc_gen_output": disc_gen_output,
}
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
display_image Ran
ran on a synthesized input
yigitgunduc/tensor-to-image/src/utils.py
code served (permissive licence) · get_code("b65c2a6d8f9c7eb5")
How it ran

Ran 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 (64, 288, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create three sample images
# img1: BGR color image (float32, values 0-1)
img1 = np.random.rand(64, 96, 3).astype(np.float32)

# img2: Grayscale image (float32, values 0-1)
img2 = np.random.rand(64, 96).astype(np.float32)

# img3: Grayscale image (float32, values 0-1)
img3 = np.random.rand(64, 96).astype(np.float32)

# Create list of images
images = [img1, img2, img3]

ARGS = {
    "images": images,
    "display": False,
    "save": False,
    "name": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, matplotlib, numpy, 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 float, shape (64, 288, 3) — shape (64, 288, 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
downsample Ran
ran; our contract draft was wrong, not the code
laclark/cuneiform_lineart/lineart_generator/pix2pix/generator.py
code served (permissive licence) · get_code("89b54f3273fad7e5")
How it ran

Ran 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 tensorflow as tf

ARGS = {
    'filters': 64,
    'size': 4,
    'apply_batchnorm': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
exists Ran
ran, violated the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/continuous_time_gaussian_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The 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 ThomasMrY/VCT, 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.

exists Ran
ran, violated the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/classifier_free_guidance.py
code served (permissive licence) · get_code("608e364a9d2376a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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

def exists(x):
    return x is not None

ARGS = {
    "x": torch.tensor([1, 2, 3, 4])
}
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 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
find Ran
ran on a synthesized input
Rust401/pixel2piexl/tfimage.py
code served (permissive licence) · get_code("f9509d733ac46652")
How it ran

Ran 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 a temporary directory with test image files
temp_dir = tempfile.mkdtemp()

# Create some test image files
test_files = ['image1.jpg', 'image2.PNG', 'photo.png', 'document.txt', 'data.csv']
for filename in test_files:
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write('dummy content')

ARGS = {
    'd': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
flip_one_img Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/cut_twist_process/twist_part.py
code served (permissive licence) · get_code("450ca0cc42c19c9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import cv2
import numpy as np

# Create a small test image (4x3 BGR image)
img = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

ARGS = {
    'img': img,
    'name': '1.jpg',
    'save_path': './save_temp'
}
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 (4, 3, 3) — shape (4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gaussian_blur Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/cut_twist_process/twist_part.py
code served (permissive licence) · get_code("535c1b5818e3411e")
How it ran

Ran 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, 160, 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 test image (3-channel BGR image as expected by cv2)
# Using shape (50, 60, 3) to have distinct dimensions
test_img = np.random.randint(0, 256, (50, 60, 3), dtype=np.uint8)

ARGS = {
    'img': test_img,
    'name': '1.jpg',
    'save_path': './save_temp'
}
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, 160, 3) — shape (100, 160, 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
gen_loss Ran
ran on a synthesized input
Nguyendat-bit/pix2pix-tensorflow/loss_model.py
code served (permissive licence) · get_code("bf482fc88b50ac2f")
How it ran

Ran 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

# Set seed for reproducibility
tf.random.set_seed(0)

# Create a simple loss function (binary crossentropy)
loss_func = tf.keras.losses.BinaryCrossentropy(from_logits=True)

# Create small tensors for the function
batch_size = 2
height = 4
width = 3
channels = 1

# disc_gen_output: discriminator output for generated images (should be logits)
disc_gen_output = tf.random.normal((batch_size, height, width, channels))

# gen_output: generator output (fake images)
gen_output = tf.random.normal((batch_size, height, width, channels))

# target: target/real images
target = tf.random.normal((batch_size, height, width, channels))

ARGS = {
    "loss_func": loss_func,
    "disc_gen_output": disc_gen_output,
    "gen_output": gen_output,
    "target": target,
    "l1": True,
    "LAMBDA": 100,
}
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 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
generator_loss Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/pix2pix/generator.py
code served (permissive licence) · get_code("cc10e3ebde32fcd6")
How it ran

Ran 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 tensorflow as tf
import numpy as np

# Create small test tensors
batch_size = 2
image_height = 4
image_width = 4
channels = 3

# disc_generated_output: discriminator output for generated images
# Shape should be (batch_size, height, width, 1) for pix2pix-style output
disc_generated_output = tf.constant(
    np.random.randn(batch_size, image_height, image_width, 1).astype(np.float32)
)

# gen_output: generated image output from generator
# Shape (batch_size, height, width, channels)
gen_output = tf.constant(
    np.random.randn(batch_size, image_height, image_width, channels).astype(np.float32)
)

# target: target/ground truth image
# Same shape as gen_output
target = tf.constant(
    np.random.randn(batch_size, image_height, image_width, channels).astype(np.float32)
)

ARGS = {
    "disc_generated_output": disc_generated_output,
    "gen_output": gen_output,
    "target": target,
}
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 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_file_paths Ran
ran; our contract draft was wrong, not the code
acecreamu/angularGAN/angulargan/datasets/make_dataset_aligned.py
pointer only (licence: MIT); the stored copy get_code serves, from junyanz/pytorch-CycleGAN-and-pix2pix, is pointer only (licence: NOASSERTION) · get_code("cefa735e77f924d4")
How it ran

The 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 junyanz/pytorch-CycleGAN-and-pix2pix, 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.

get_input_name Ran
ran; our contract draft was wrong, not the code
weipeng0703/Pix2Pix_MindSpore_For_PaperWithCode/Pix2Pix/infer_onnx.py
code served (permissive licence) · get_code("66ec4e6fc17b9c98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 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 numpy as np

class MockONNXNode:
    def __init__(self, name):
        self.name = name

class MockONNXSession:
    def __init__(self, input_names):
        self.input_names = input_names
    
    def get_inputs(self):
        return [MockONNXNode(name) for name in self.input_names]

onnx_session = MockONNXSession(["input_0", "input_1", "input_2"])

ARGS = {
    "onnx_session": onnx_session
}
Setup block drafted by
a language model, Claude Haiku 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 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_norm_layer Ran
ran; our contract draft was wrong, not the code
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/pytorch-CycleGAN-and-pix2pix/models/networks.py
code served (permissive licence) · get_code("e670e5f51b9f1e84")
How it ran

Ran 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)

class Identity(nn.Module):
    def forward(self, x):
        return x

def get_norm_layer(norm_type='instance'):
    """Return a normalization layer

    Parameters:
        norm_type (str) -- the name of the normalization layer: batch | instance | none

    For BatchNorm, we use learnable affine parameters and track running statistics (mean/stddev).
    For InstanceNorm, we do not use learnable affine parameters. We do not track running statistics.
    """
    if norm_type == 'batch':
        norm_layer = functools.partial(nn.BatchNorm2d, affine=True, track_running_stats=True)
    elif norm_type == 'instance':
        norm_layer = functools.partial(nn.InstanceNorm2d, affine=False, track_running_stats=False)
    elif norm_type == 'none':
        norm_layer = lambda x: Identity()
    else:
        raise NotImplementedError('normalization layer [%s] is not found' % norm_type)
    return norm_layer

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_norm_layer Ran
ran on a synthesized input
acecreamu/angularGAN/angulargan/models/networks.py
code served (permissive licence) · get_code("8da796d8d2d055b4")
How it ran

Ran 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)

# The function get_norm_layer takes one parameter: norm_type
# It accepts 'batch', 'instance', or 'none' as valid values
# Let's test with 'instance' as a representative case

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_norm_layer Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/network_transfer.py
code served (permissive licence) · get_code("061eee934f08bca4")
How it ran

Ran 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 type. 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 takes a norm_type string parameter and returns a normalization layer class
# It supports 'batch' for BatchNorm2d and 'instance' for InstanceNorm2d

ARGS = {
    'norm_type': 'batch'
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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; our contract draft was wrong, not the code
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/pytorch-CycleGAN-and-pix2pix/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from sak-h/pytorch-Denoising-Diffusion-Probabilistic-Models, is pointer only (licence: NONE) · get_code("62a8cdfdb51ec275")
How it ran

The 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 sak-h/pytorch-Denoising-Diffusion-Probabilistic-Models, 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.

get_scheduler Ran
ran on a synthesized input
acecreamu/angularGAN/angulargan/models/networks.py
code served (permissive licence) · get_code("f4ecb472fd266452")
How it ran

Ran 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 simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = Adam(model.parameters(), lr=0.001)

# Create a config object with all required attributes
class OptConfig:
    def __init__(self):
        self.lr_policy = 'lambda'
        self.epoch_count = 0
        self.niter = 100
        self.niter_decay = 100
        self.lr_decay_iters = 10

opt = OptConfig()

ARGS = {
    'optimizer': optimizer,
    'opt': opt
}
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
glob_all Ran
ran on a synthesized input
Rust401/pixel2piexl/delete_broken_img.py
code served (permissive licence) · get_code("740d6e3874a7c904")
How it ran

Ran 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 a temporary directory structure with some .jpg files
temp_dir = tempfile.mkdtemp()

# Create some jpg files in the root
open(os.path.join(temp_dir, 'image1.jpg'), 'w').close()
open(os.path.join(temp_dir, 'image2.jpg'), 'w').close()

# Create a subdirectory with jpg files
subdir1 = os.path.join(temp_dir, 'subdir1')
os.makedirs(subdir1)
open(os.path.join(subdir1, 'image3.jpg'), 'w').close()

# Create a nested subdirectory with jpg files
subdir2 = os.path.join(subdir1, 'subdir2')
os.makedirs(subdir2)
open(os.path.join(subdir2, 'image4.jpg'), 'w').close()

# Create a non-directory file to test the isdir filtering
open(os.path.join(temp_dir, 'file.txt'), 'w').close()

ARGS = {
    'dir_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
gram_matrix Ran
ran on a synthesized input
Vious/LBAM_Pytorch/loss/InpaintingLoss.py
code served (permissive licence) · get_code("1715f300a6a58899")
How it ran

Ran 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, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small feature tensor with shape (batch=2, channels=4, height=3, width=5)
# Using distinct sizes: batch=2, ch=4, h=3, w=5 to make dimensions unambiguous
feat = torch.randn(2, 4, 3, 5)

ARGS = {
    'feat': feat
}
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, 4, 4) — shape (2, 4, 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
gray_and_fliter Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/cut_twist_process/cut_part.py
code served (permissive licence) · get_code("56731811f9248c36")
How it ran

Ran 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 int, shape (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 cv2
import numpy as np

# Create a small test image (BGR format, as expected by the function)
# Using a 4x3 image with 3 channels (BGR)
test_img = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

ARGS = {
    'img': test_img,
    'image_name': '1.jpg',
    'save_path': './'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (4, 3) — shape (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
init_net Ran
ran; our contract draft was wrong, not the code
acecreamu/angularGAN/angulargan/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from LiangSiyuan21/Adversarial-Attacks-for-Image-and-Video-Object-Detection, is pointer only (licence: NONE) · get_code("10fdae626d954364")
How it ran

The 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 LiangSiyuan21/Adversarial-Attacks-for-Image-and-Video-Object-Detection, 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.

init_net Ran
ran; our contract draft was wrong, not the code
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/pytorch-CycleGAN-and-pix2pix/models/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from amandinebtto/batvision-dataset, is pointer only (licence: CC-BY-SA-4.0) · get_code("bf329cef80ee24c5")
How it ran

The 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 amandinebtto/batvision-dataset, and CC-BY-SA-4.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

is_image Ran
ran on a synthesized input
CreativeCodingLab/DeepIllumination/util.py
code served (permissive licence) · get_code("465fa5409ee7cf5a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'filename': 'image.png'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_image_file Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/util.py
code served (permissive licence) · get_code("bd95cdc5e41ec8e8")
How it ran

Ran 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

def is_image_file(filename):
    return any((filename.endswith(extension) for extension in ['.png', '.jpg', '.jpeg', '.JPG', '.JPEG']))

ARGS = {
    'filename': 'test_image.jpg'
}
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
is_lambda Ran
ran, violated the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/simple_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from Woof6/DiDA, is pointer only (licence: NONE) · get_code("c68d3478b77240b4")
How it ran

The 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 Woof6/DiDA, 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.

is_overlap Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/data_correction_and_generate_csv_file/generate_test_csv_file.py
code served (permissive licence) · get_code("f1f0c352fed9bcf3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# rc1 and rc2 represent rectangles as [x, y, width, height]
# The function checks if two rectangles overlap by testing:
# rc1[0] + rc1[2] > rc2[0] (right edge of rc1 > left edge of rc2)
# rc2[0] + rc2[2] > rc1[0] (right edge of rc2 > left edge of rc1)
# rc1[1] + rc1[3] > rc2[1] (bottom edge of rc1 > top edge of rc2)
# rc2[1] + rc2[3] > rc1[1] (bottom edge of rc2 > top edge of rc1)

# Rectangle 1: x=10, y=20, width=30, height=40
rc1 = [10, 20, 30, 40]

# Rectangle 2: x=25, y=30, width=35, height=25
# This overlaps with rc1
rc2 = [25, 30, 35, 25]

ARGS = {
    "rc1": rc1,
    "rc2": rc2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
judge_nationality Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/data_correction_and_generate_csv_file/generate_test_csv_file.py
code served (permissive licence) · get_code("22fedba999c22317")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function judge_nationality takes a single parameter: data_n (a string representing nationality information)
# Based on the function body, it needs:
# - data_n: a string that could be a single character or multi-character nationality name

# Test cases with different inputs
ARGS = {
    'data_n': '侗'  # A single character that matches in similar_data_nation
}
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
linear_warmup_cosine_annealingLR Ran
ran on a synthesized input
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/utils.py
code served (permissive licence) · get_code("b638f46ec12b9f16")
How it ran

Ran 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 SequentialLR. 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.lr_scheduler import SequentialLR, LambdaLR, CosineAnnealingLR

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = torch.optim.Adam(model.parameters(), lr=0.001)

# Define arguments
ARGS = {
    'optimizer': optimizer,
    'max_steps': 100,
    'linear_warmup_rate': 0.1,
    'min_lr': 1e-06
}
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 SequentialLR — a SequentialLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SequentialLR 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
lineart_components Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/data_munging/cdli_data_preparation.py
code served (permissive licence) · get_code("0b9cf5e1148fd849")
How it ran

Ran 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 numpy as np

# Create a small line art image (m x n x 3) with some shapes
# Using dtype uint8 as required
height, width = 100, 120
img = np.ones((height, width, 3), dtype=np.uint8) * 255  # white background

# Draw some simple black lines/shapes to create distinct components
# Add a rectangle
cv2.rectangle(img, (10, 10), (40, 40), (0, 0, 0), 2)
# Add another rectangle
cv2.rectangle(img, (60, 20), (90, 50), (0, 0, 0), 2)
# Add a circle
cv2.circle(img, (50, 80), 15, (0, 0, 0), 2)

ARGS = {
    "img": img
}
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 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
load Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/pix2pix/data_processing.py
code served (permissive licence) · get_code("4b1de712eb157c23")
How it ran

Ran 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 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 tensorflow as tf
import tempfile
import os

# Create temporary JPEG files for testing
temp_dir = tempfile.mkdtemp()

# Create a simple test image (4x3 pixels, RGB)
test_image_1 = tf.constant([[[255, 0, 0], [0, 255, 0], [0, 0, 255], [255, 255, 0]],
                            [[128, 64, 32], [64, 128, 32], [32, 64, 128], [200, 100, 50]],
                            [[10, 20, 30], [40, 50, 60], [70, 80, 90], [100, 110, 120]]], dtype=tf.uint8)

# Create another test image (4x3 pixels, RGB) for target
test_image_2 = tf.constant([[[200, 100, 50], [150, 75, 25], [100, 50, 25], [50, 100, 150]],
                            [[30, 60, 90], [60, 90, 120], [90, 120, 150], [120, 150, 180]],
                            [[255, 200, 150], [200, 150, 100], [150, 100, 50], [100, 50, 25]]], dtype=tf.uint8)

# Encode to JPEG and write to temp files
jpeg_1 = tf.image.encode_jpeg(test_image_1)
jpeg_2 = tf.image.encode_jpeg(test_image_2)

image_path = os.path.join(temp_dir, "test_image.jpg")
target_path = os.path.join(temp_dir, "test_target.jpg")

with open(image_path, 'wb') as f:
    f.write(jpeg_1.numpy())

with open(target_path, 'wb') as f:
    f.write(jpeg_2.numpy())

ARGS = {
    "image_path": image_path,
    "target_path": target_path,
}
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, ndim 4, 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
load Ran
ran on a synthesized input
yigitgunduc/tensor-to-image/src/evaluate.py
code served (permissive licence) · get_code("55483d4a34536c63")
How it ran

Ran 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 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 tensorflow as tf
import tempfile
import os

# Create a temporary JPEG image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.jpg")

# Create a simple test image (height=4, width=8, channels=3)
# The function expects to split the image in half along the width dimension
# So we create an 4x8x3 image that will be split into two 4x4x3 images
test_image = tf.ones((4, 8, 3), dtype=tf.uint8) * 128
encoded_image = tf.io.encode_jpeg(test_image)
tf.io.write_file(temp_image_path, encoded_image)

ARGS = {
    "image_file": temp_image_path
}
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, ndim 4, 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
loadImages Ran
ran on a synthesized input
awjuliani/Pix2Pix-Film/helper.py
code served (permissive licence) · get_code("ef397f6d549edc6a")
How it ran

Ran 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 5, 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
from PIL import Image
import tempfile
import os

# Create temporary directory for test images
temp_dir = tempfile.mkdtemp()

# Create small test images (RGB, 256x144 to match function expectations)
test_image_1 = Image.new('RGB', (256, 144), color=(100, 150, 200))
test_image_2 = Image.new('RGB', (256, 144), color=(50, 75, 100))

# Save test images
img_path_1 = os.path.join(temp_dir, 'test1.png')
img_path_2 = os.path.join(temp_dir, 'test2.png')
test_image_1.save(img_path_1)
test_image_2.save(img_path_2)

# Create argument dictionary
ARGS = {
    'data': [img_path_1, img_path_2],
    'bw_bool': False,
    'flip': False
}
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 tuple, ndim 5, 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
load_image Ran
ran on a synthesized input
deepware/pix2pix/pix2pix.py
code served (permissive licence) · get_code("36ad246b38854e59")
How it ran

Ran 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 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 torch
import numpy as np
from PIL import Image
import io

# Create a small test image (512x256 RGB image) in memory
# The function crops it into two 256x256 pieces
width, height = 512, 256
image_array = np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
image = Image.fromarray(image_array, mode='RGB')

# Save to bytes buffer to create a file-like object
image_buffer = io.BytesIO()
image.save(image_buffer, format='PNG')
image_buffer.seek(0)

ARGS = {
    'file': image_buffer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, 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
load_image Ran
ran on a synthesized input
nishantcoder97/cgandemo/static/images_generator.py
code served (permissive licence) · get_code("ff63e0c2dbca4863")
How it ran

Ran 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 (3, 4, 6) 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 expects an image tensor with shape (channels, height, width)
# It accesses image.shape[1] (width dimension) and slices [:, :w, :]
# So we need a 3D tensor with shape (channels, height, width)
image = torch.randn(3, 8, 6)  # 3 channels, 8 height, 6 width

ARGS = {
    "image": image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 4, 6) — shape (3, 4, 6) 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
load_img Ran
ran on a synthesized input
telecombcn-dl/2018-dlcv-team2/util.py
code served (permissive licence) · get_code("be550fa336a61b80")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory and a valid test image
temp_dir = tempfile.mkdtemp()
temp_filepath = os.path.join(temp_dir, "test_image.png")

# Create a small test image and save it
test_image_array = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
test_image = Image.fromarray(test_image_array, mode='RGB')
test_image.save(temp_filepath)

ARGS = {
    "filepath": temp_filepath
}
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
load_yaml_param_settings Ran
ran on a synthesized input
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/utils.py
code served (permissive licence) · get_code("30cddae31f4e95ca")
How it ran

Ran 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 yaml
import tempfile
import os

# Create a temporary YAML file with valid hyperparameter settings
temp_dir = tempfile.gettempdir()
yaml_fname = os.path.join(temp_dir, "test_params.yaml")

yaml_content = """
learning_rate: 0.001
batch_size: 32
num_epochs: 10
model:
  hidden_dim: 128
  num_layers: 2
optimizer: adam
loss_function: mse
"""

with open(yaml_fname, 'w') as f:
    f.write(yaml_content)

ARGS = {
    "yaml_fname": yaml_fname
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, yaml — 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
log Ran
ran on a synthesized input
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/learned_gaussian_diffusion.py
code served (permissive licence) · get_code("a7de563d25bc61e9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a tensor `t` and optional `eps` parameter
# It calls t.clamp(min=eps) and torch.log on it
# So we need a tensor with positive values (since log requires positive input)

t = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                   [0.5, 1.5, 2.5, 3.5]], dtype=torch.float32)

ARGS = {
    't': t,
    'eps': 1e-15
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_target_path Ran
ran on a synthesized input
laclark/cuneiform_lineart/lineart_generator/pix2pix/data_processing.py
code served (permissive licence) · get_code("501db452b6a69048")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

# Analyze the function: make_target_path takes an image_path string
# and constructs a target path by:
# 1. Splitting the path into head and filename
# 2. Splitting head into data_dir and im_dir
# 3. Creating a new directory name by taking 'lineart_' + the second part of im_dir (split by '_')
# 4. Joining the new target directory with the filename

# The function only uses os.path operations on the image_path parameter
# So we need to provide a valid file path string with the expected structure

# Create a realistic image path that will work with the function:
# Expected format: data_dir/im_dir_XXX/image.jpg
# where im_dir starts with something, underscore, then another part
# This will create: data_dir/lineart_XXX/image.jpg

image_path = "/home/user/photos_dataset/image_001.jpg"

ARGS = {
    "image_path": image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
match_img Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/data_correction_and_generate_csv_file/generate_test_csv_file.py
code served (permissive licence) · get_code("c72c68dff40eab7a")
How it ran

Ran 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 cv2
import numpy as np

# Create a small grayscale image (larger dimension)
image = np.random.randint(0, 256, (100, 100), dtype=np.uint8)

# Create a small template (smaller than image)
template = np.random.randint(0, 256, (20, 20), dtype=np.uint8)

# Set a threshold value for matching
value = 0.8

ARGS = {
    "image": image,
    "template": template,
    "value": value
}
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 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
normalize_to_neg_one_to_one Ran
ran, honoured the contract we drafted
ml4its/latent-diffusion-model-for-conditional-reservoir-facies-generation/methods/ldm/denoising_diffusion_pytorch/continuous_time_gaussian_diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from futurexiang/soda, is pointer only (licence: NONE) · get_code("a1229a9f4df127e2")
How it ran

The 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 futurexiang/soda, 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.

point_judge Ran
ran on a synthesized input
Mingtzge/2019-CCF-BDCI-OCR-MCZJ-OCR-IdentificationIDElement/cut_twist_process/cut_part.py
code served (permissive licence) · get_code("81b2c6ac439b80ff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes:
# - center: a coordinate [x, y] representing the center of a rectangle
# - bbox: 4 vertices of a rectangle [[x1, y1], [x2, y2], [x3, y3], [x4, y4]]
# 
# The function sorts these vertices based on their position relative to center
# and returns them ordered as (left_down, right_down, left_up, right_up)

# Create valid test arguments
center = [5.0, 5.0]  # Center point at (5, 5)

# Create 4 bbox points: bottom-left, bottom-right, top-left, top-right
# relative to center (5, 5)
bbox = [
    [2.0, 2.0],   # left_down
    [8.0, 2.0],   # right_down
    [2.0, 8.0],   # left_up
    [8.0, 8.0],   # right_up
]

ARGS = {
    "center": center,
    "bbox": bbox,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess Ran
ran, violated the contract we drafted
BrookInternSOMA/pix2pix-barcode/pix2pix.py
code served (permissive licence) · get_code("7b296d580bba710b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 4, dtype family float, shape (2, 4, 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
import numpy as np

# Create a small test image tensor
# The function takes an image and applies: image * 2 - 1
# This is a simple preprocessing operation
image = tf.constant(np.random.rand(2, 4, 4, 3).astype(np.float32))

ARGS = {
    'image': image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 3) — shape (2, 4, 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
preprocess Ran
ran; our contract draft was wrong, not the code
bxck75/piss-ant-pix2pix/pix2pix_custom.py
code served (permissive licence) · get_code("dd1cf58786a11bd8")
How it ran

Ran 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 SymbolicTensor. 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.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# The function takes an image parameter and applies a simple transformation
# The image should be a tensor-like object that supports multiplication and subtraction
image_data = np.random.randn(2, 4, 4, 3).astype(np.float32)
image_tensor = tf.constant(image_data)

ARGS = {
    'image': image_tensor
}
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 SymbolicTensor — a SymbolicTensor 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

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1611.07004").

Also present in other papers' code

Of 122 samples lifted from this paper's linked repositories, 122 carry a function identity and 0 do not. Of the 118 distinct functions with an identity, 33 are also present in other papers whose code we hold (16 with at least one paper dated earlier, 2 the same month, 27 later) and 85 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
exists 486 other papers
1 dated earlier, 483 later, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
and 483 more not named here
exists 144 other papers
144 later · 40 only as an assembly brick
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2006.15020 (2020-06)
Pre-training via Paraphrasing
and 141 more not named here
default 79 other papers
79 later · 15 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
and 76 more not named here
identity 54 other papers
54 later · 11 only as an assembly brick
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
and 51 more not named here
log 22 other papers
22 later · 9 only as an assembly brick
1907.05242 (2019-07)
Large Memory Layers with Product Keys
2203.07852 (2022-03)
Block-Recurrent Transformers
2203.16487 (2022-03)
Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generation
and 19 more not named here
normalize_to_neg_one_to_one 18 other papers
18 later · 8 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15571 (2022-09)
Building Normalizing Flows with Stochastic Interpolants
2303.09769 (2023-03)
Denoising Diffusion Autoencoders are Unified Self-supervised Learners
and 15 more not named here
init_net 14 other papers
2 dated earlier, 12 later
1406.2661 (2014-06)
Generative Adversarial Networks
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1907.04312 (2019-07)
Positional Normalization
and 11 more not named here
get_scheduler 11 other papers
1 dated earlier, 10 later
1406.2661 (2014-06)
Generative Adversarial Networks
1907.04312 (2019-07)
Positional Normalization
1910.13049 (2019-10)
Category Anchor-Guided Unsupervised Domain Adaptation for Semantic Segmentation
and 8 more not named here
get_norm_layer 8 other papers
1 dated earlier, 7 later
1406.2661 (2014-06)
Generative Adversarial Networks
1907.04312 (2019-07)
Positional Normalization
1911.13239 (2019-11)
DoveNet: Deep Image Harmonization via Domain Verification
and 5 more not named here
weights_init 8 other papers
8 later
1712.02478 (2017-12)
Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal
1804.07723 (2018-04)
Image Inpainting for Irregular Holes Using Partial Convolutions
1905.02884 (2019-05)
Deep Flow-Guided Video Inpainting
and 5 more not named here
gram_matrix 6 other papers
6 later
1804.07723 (2018-04)
Image Inpainting for Irregular Holes Using Partial Convolutions
2004.02788 (2020-04)
Self-Supervised Scene De-occlusion
2010.09750 (2020-10)
Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability
and 3 more not named here
deprocess 5 other papers
1 dated earlier, 4 later
1602.01783 (2016-02)
Asynchronous Methods for Deep Reinforcement Learning
1810.09718 (2018-10)
Single-Image SVBRDF Capture with a Rendering-Aware Deep Network
1811.09393 (2018-11)
Learning Temporal Coherence via Self-Supervision for GAN-based Video Generation
and 2 more not named here
init_net 5 other papers
5 later
1804.07723 (2018-04)
Image Inpainting for Irregular Holes Using Partial Convolutions
1807.09251 (2018-07)
GANimation: Anatomically-aware Facial Animation from a Single Image
1811.12641 (2018-11)
Transferable Adversarial Attacks for Image and Video Object Detection
and 2 more not named here
preprocess 5 other papers
1 dated earlier, 4 later
1602.01783 (2016-02)
Asynchronous Methods for Deep Reinforcement Learning
1810.09718 (2018-10)
Single-Image SVBRDF Capture with a Rendering-Aware Deep Network
1811.09393 (2018-11)
Learning Temporal Coherence via Self-Supervision for GAN-based Video Generation
and 2 more not named here
reparameterization 5 other papers
2 dated earlier, 3 later
1406.2661 (2014-06)
Generative Adversarial Networks
1511.05644 (2015-11)
Adversarial Autoencoders
1612.05424 (2016-12)
Unsupervised Pixel-Level Domain Adaptation with Generative Adversarial Networks
and 2 more not named here
total_variation_loss 5 other papers
5 later
1804.07723 (2018-04)
Image Inpainting for Irregular Holes Using Partial Convolutions
2004.02788 (2020-04)
Self-Supervised Scene De-occlusion
2010.09750 (2020-10)
Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability
and 2 more not named here
conv2d 4 other papers
1 dated earlier, 1 the same month, 2 later
1609.07009 (2016-09)
Is the deconvolution layer the same as a convolutional layer?
1611.04488 (2016-11)
Generative Models and Model Criticism via Optimized Maximum Mean Discrepancy
1703.05921 (2017-03)
Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery
and 1 more not named here
get_norm_layer 4 other papers
1 dated earlier, 3 later
1406.2283 (2014-06)
Depth Map Prediction from a Single Image using a Multi-Scale Deep Network
1901.08954 (2019-01)
Skip-GANomaly: Skip Connected and Adversarially Trained Encoder-Decoder Anomaly Detection
1904.10620 (2019-04)
Bidirectional Learning for Domain Adaptation of Semantic Segmentation
and 1 more not named here
get_scheduler 4 other papers
4 later
1807.09251 (2018-07)
GANimation: Anatomically-aware Facial Animation from a Single Image
1904.03349 (2019-04)
Progressive Pose Attention Transfer for Person Image Generation
1904.10620 (2019-04)
Bidirectional Learning for Domain Adaptation of Semantic Segmentation
and 1 more not named here
binary_cross_entropy 3 other papers
1 dated earlier, 1 the same month, 1 later
1609.07009 (2016-09)
Is the deconvolution layer the same as a convolutional layer?
1611.04488 (2016-11)
Generative Models and Model Criticism via Optimized Maximum Mean Discrepancy
1808.09560 (2018-08)
On Learning 3D Face Morphable Model from In-the-wild Images

Shown: the 20 functions present in the most other papers. 13 more shared functions are not listed here.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Figure 1: Many problems in image processing, graphics, and vision involve translating an input image into a corresponding output image. These problems are often treated with application-specific algorithms, even though the setting is always the same: map pixels to pixels. Conditional adversarial nets are a general-purpose solution that appears to work well on a wide variety of these problems. Here we show results of the method on several. In each case we use the same architecture and objective, and simply train on different data.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1611.07004")
get_code_for_paper("1611.07004")
have("1611.07004")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1611.07004.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1611.07004.svg)](https://syntology.ai/paper/1611.07004)

Connect an agent — have() is free.