SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1411.1784 · arXiv.org · 2014

Conditional Generative Adversarial Nets

arXiv · PDF · Open in the Atlas

Code that ran

33 of 40 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; 1 honoured the contract we drafted, 0 violated it and 27 have no contract verdict; 5 failures of our instrument; 7 no recorded run), 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/1411.1784.json · badge: /api/ran/1411.1784.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
doansangg/CGAN-PyTorch community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
daheyinyin/CGAN community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
Lornatang/CGAN-PyTorch community (classifier label)
classifier basis not recorded on the link
4 ran · 5 no recorded run
ajemerson/CSC_722_Project community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
xingxingyoulei/infer_cgan_onnx community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
akuramshin/cDCGAN-Quickdraw reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
JUiscoming/Pytorch_GAN_MNIST community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
otepencelik/GAN-Artwork-Generation reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
adldotori/CGAN reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
YigitGunduc/Conditional-GANs-CGANs community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
lyqcom/cgan community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
HyperZealot/mxnet-cgan community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
CUDA Ran
ran on a synthesized input
JUiscoming/Pytorch_GAN_MNIST/util.py
code served (permissive licence) · get_code("309f6925fa5946b3")
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. 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

torch.manual_seed(0)

# The function CUDA takes one parameter: gpu_idx
# It's an integer that specifies which GPU to use (defaults to 0)
# The function checks CUDA availability and prints device info
# We should provide a valid integer value

ARGS = {
    'gpu_idx': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_hist Ran
ran on a synthesized input
xingxingyoulei/infer_cgan_onnx/research/cv/RefineNet/infer_onnx.py
code served (permissive licence) · get_code("5e57042613d98374")
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, 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 numpy as np

# Analyze the function:
# - cal_hist takes three parameters: a, b, n
# - a and b are used with indexing and arithmetic operations (numpy arrays)
# - n is used as a scalar integer for comparisons and reshaping
# - a >= 0 checks for non-negative values
# - a < n checks upper bound
# - a[k] selects elements where condition is true
# - b[k] selects corresponding elements
# - Operations: np.bincount, reshape
# - The function creates a histogram/confusion matrix of size (n, n)

# Create small test arrays
n = 4
# a should contain values in range [0, n) to populate the histogram
a = np.array([0, 1, 2, 3, 0, 1, 2, 3], dtype=np.int32)
# b should also contain values in range [0, n)
b = np.array([0, 1, 2, 3, 1, 2, 3, 0], dtype=np.int32)

ARGS = {
    "a": a,
    "b": b,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (4, 4) — shape (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
cgan Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/cgan_pytorch/models/generator.py
code served (permissive licence) · get_code("06231f08de1fdcf8")
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 Generator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
    'progress': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Generator — a Generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Generator 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
configure_logging Ran
ran on a synthesized input
Lornatang/CGAN-PyTorch/conditional_gan/utils/events.py
code served (permissive licence) · get_code("f462c12c2dbe0359")
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 Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import os

# Set RANK environment variable to test different logging levels
os.environ['RANK'] = '-1'

ARGS = {
    'name': 'test_logger'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert Ran
ran on a synthesized input
ajemerson/CSC_722_Project/unit_conversion.py
code served (permissive licence) · get_code("3e05202617e1222d")
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.

ARGS = {
    'num': 2.5,
    'unit': 'cup',
    'ingred': 'flour'
}
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 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
decode_image Ran
ran on a synthesized input
daheyinyin/CGAN/src/tools.py
code served (permissive licence) · get_code("e9619369a6ee7619")
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 (80, 40, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Create a small test image tensor [B, C, H, W]
# Using batch_size=60 to trigger the elif branch (50 < 60 < 200)
# This will set size=50, l=5
# So we need an image that can be concatenated and split properly

batch_size = 60
# Create dummy image: [60, 3, 8, 8]
img = np.random.randint(0, 2, size=(batch_size, 3, 8, 8)).astype(np.float32)

ARGS = {
    "img": img,
    "batch_size": batch_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (80, 40, 3) — shape (80, 40, 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
discriminator_for_mnist Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/cgan_pytorch/models/discriminator.py
code served (permissive licence) · get_code("12cafb09e19f42e2")
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 DiscriminatorForMNIST. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "image_size": 224,
    "channels": 3,
}
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 DiscriminatorForMNIST — a DiscriminatorForMNIST output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DiscriminatorForMNIST 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
gaussian Ran
ran; our contract draft was wrong, not the code
otepencelik/GAN-Artwork-Generation/model_cGAN.py
pointer only (licence: NONE) · get_code("f905d3e3176ada9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, otepencelik/GAN-Artwork-Generation 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_cluster_assignments Ran
ran on a synthesized input
ajemerson/CSC_722_Project/analysis_tools.py
code served (permissive licence) · get_code("a9e3ad93192d5dc4")
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 1, dtype family int, shape (8,) 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 pandas as pd
import numpy as np

# Create a small sample dataframe
np.random.seed(0)
data = np.random.randn(8, 4)
x = pd.DataFrame(data, columns=['feat_0', 'feat_1', 'feat_2', 'feat_3'])

# Define the number of clusters
num_clusters = 2

ARGS = {
    'x': x,
    'num_clusters': num_clusters
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (8,) — shape (8,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_loader Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/dataloader.py
code served (permissive licence) · get_code("20278399f273f79e")
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 DataLoader. 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.utils.data as data
import torchvision.transforms as transforms
import numpy as np
import random
from PIL import Image
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and a test data file
temp_dir = tempfile.mkdtemp()
test_data_file = os.path.join(temp_dir, "test_data.txt")

# Create temporary dummy image files
img1_path = os.path.join(temp_dir, "img1.jpg")
img2_path = os.path.join(temp_dir, "img2.jpg")

# Create small dummy images and save them
dummy_img1 = Image.new('RGB', (64, 64), color='red')
dummy_img1.save(img1_path)

dummy_img2 = Image.new('RGB', (64, 64), color='blue')
dummy_img2.save(img2_path)

# Create a data file with image paths and labels
with open(test_data_file, 'w') as f:
    f.write(f"{img1_path}\t0\n")
    f.write(f"{img2_path}\t1\n")

# Define ARGS dictionary with all parameters for get_loader
ARGS = {
    'path_root': test_data_file,
    'batchsize': 2,
    'trainsize': 32,
    'shuffle': True,
    'num_workers': 0,
    'pin_memory': False,
    'augmentation': False
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_model_info Ran
ran on a synthesized input
Lornatang/CGAN-PyTorch/conditional_gan/utils/torch_utils.py
code served (permissive licence) · get_code("9effa0ec6ac5e3cb")
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
from torch import nn

torch.manual_seed(0)

# Create a minimal model with some parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 5)
        self.conv = nn.Conv2d(3, 8, kernel_size=3)
    
    def forward(self, x):
        return x

# Instantiate the model
model = TinyModel()

# Define arguments
ARGS = {
    "model": model,
    "image_size": 64,
    "device": torch.device("cpu")
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_nll Ran
ran on a synthesized input
daheyinyin/CGAN/src/parzen_numpy.py
code served (permissive licence) · get_code("88ab184b6ee14a77")
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 1, dtype family float, shape (25,) 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 simple parzen estimator that returns NLL values
class ParzenEstimator:
    def __call__(self, x):
        # Returns a list of NLL values, one per sample in x
        return [0.5 + 0.1 * i for i in range(x.shape[0])]

# Create sample data
np.random.seed(0)
x = np.random.randn(25, 4).astype(np.float32)

# Create parzen estimator
parzen = ParzenEstimator()

# Define arguments
ARGS = {
    "x": x,
    "parzen": parzen,
    "batch_size": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (25,) — shape (25,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_pca_components Ran
ran on a synthesized input
ajemerson/CSC_722_Project/analysis_tools.py
code served (permissive licence) · get_code("2b1e4fda26935b4e")
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 DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import pandas as pd
from sklearn.decomposition import PCA, IncrementalPCA
from sklearn.preprocessing import StandardScaler

# Create a small sample dataset
np.random.seed(0)
x = np.random.randn(10, 4)  # 10 samples, 4 features

ARGS = {
    "x": x,
    "num_components": 2,
    "incremental": False,
    "batch_size": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
image_bgr_rgb Ran
ran on a synthesized input
xingxingyoulei/infer_cgan_onnx/research/cv/RefineNet/infer_onnx.py
code served (permissive licence) · get_code("edf1ef528791849a")
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 torch
import numpy as np

torch.manual_seed(0)

# The function image_bgr_rgb takes an image and reverses the color channels
# It uses numpy-style indexing with [:, :, ::-1] to reverse the last dimension
# This works with numpy arrays or tensors that support advanced indexing

# Create a small test image: shape (4, 3, 3) for height=4, width=3, channels=3
img = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 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
increment_name Ran
ran on a synthesized input
Lornatang/CGAN-PyTorch/conditional_gan/utils/ops.py
code served (permissive licence) · get_code("9f9fbda26410cd43")
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 PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile
import os

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Test case 1: path that doesn't exist
test_path_1 = os.path.join(temp_dir, "nonexistent_dir")

# Test case 2: path that does exist (we'll create it)
test_path_2 = os.path.join(temp_dir, "existing_dir")
os.makedirs(test_path_2, exist_ok=True)

# Test case 3: file path that doesn't exist
test_file_path_1 = os.path.join(temp_dir, "nonexistent_file.txt")

# Test case 4: file path that does exist (we'll create it)
test_file_path_2 = os.path.join(temp_dir, "existing_file.txt")
with open(test_file_path_2, 'w') as f:
    f.write("test")

# We'll use a path that doesn't exist for the primary test
ARGS = {
    "path": test_path_1
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_MNIST Ran
ran on a synthesized input
JUiscoming/Pytorch_GAN_MNIST/dataloader.py
code served (permissive licence) · get_code("558198fbcfb2bc74")
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 DataLoader. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.utils.data import DataLoader, TensorDataset
from torchvision import transforms

torch.manual_seed(0)

# Create a minimal mock dataset to avoid actual MNIST download
# We'll create fake MNIST-like data
fake_images = torch.randn(10, 1, 28, 28)  # 10 samples, 1 channel, 28x28
fake_labels = torch.randint(0, 10, (10,))  # 10 random labels (0-9)
fake_dataset = TensorDataset(fake_images, fake_labels)

# Patch datasets.MNIST to return our fake dataset
from torchvision import datasets
original_mnist = datasets.MNIST

class MockMNIST:
    def __init__(self, root, transform=None, download=False):
        self.data = fake_images
        self.targets = fake_labels
        self.transform = transform
    
    def __len__(self):
        return len(self.targets)
    
    def __getitem__(self, idx):
        img = self.data[idx]
        if self.transform:
            img = self.transform(img)
        return img, self.targets[idx]

datasets.MNIST = MockMNIST

ARGS = {
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_mnist Ran
ran on a synthesized input
daheyinyin/CGAN/src/dataset.py
code served (permissive licence) · get_code("650292d030baf2d8")
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 struct
import numpy as np
import tempfile
import os

# Create temporary files with valid MNIST binary format
temp_dir = tempfile.mkdtemp()

# Create a labels file
labels_path = os.path.join(temp_dir, "labels.bin")
with open(labels_path, 'wb') as f:
    # MNIST labels file header: magic number (2049) and number of labels (2)
    f.write(struct.pack('>II', 2049, 2))
    # Write 2 label bytes
    f.write(struct.pack('BB', 3, 7))

# Create an images file
images_path = os.path.join(temp_dir, "images.bin")
with open(images_path, 'wb') as f:
    # MNIST images file header: magic number (2051), num images (2), rows (28), cols (28)
    f.write(struct.pack('>IIII', 2051, 2, 28, 28))
    # Write 2 * 28 * 28 = 1568 image bytes
    image_data = np.random.randint(0, 256, size=1568, dtype=np.uint8)
    f.write(image_data.tobytes())

ARGS = {
    'images_path': images_path,
    'labels_path': labels_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_yaml Ran
ran on a synthesized input
Lornatang/CGAN-PyTorch/conditional_gan/utils/ops.py
code served (permissive licence) · get_code("865e39ac4e96e241")
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 tempfile
from pathlib import Path
import yaml

# Create a temporary YAML file for testing
temp_dir = tempfile.TemporaryDirectory()
temp_yaml_path = Path(temp_dir.name) / "test_config.yaml"

# Write a valid YAML file
yaml_content = {
    "model": "test_model",
    "batch_size": 32,
    "learning_rate": 0.001,
    "layers": [1, 2, 3]
}
with temp_yaml_path.open('w', encoding='utf-8') as f:
    yaml.dump(yaml_content, f)

ARGS = {
    "file_path": temp_yaml_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
make_one_hot Ran
ran; our contract draft was wrong, not the code
adldotori/CGAN/model.py
pointer only (licence: NONE) · get_code("66433ac88d15d35d")
How it ran

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

noisy_labels Ran
ran; our contract draft was wrong, not the code
akuramshin/cDCGAN-Quickdraw/Model/model.py
pointer only (licence: NONE) · get_code("62c1a7bb78fe2f21")
How it ran

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

normalize Ran
ran on a synthesized input
YigitGunduc/Conditional-GANs-CGANs/src/utils.py
code served (permissive licence) · get_code("b4f4d380486b85f2")
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 numpy as np

# Create small numpy arrays with values in [0, 255] range to simulate image data
train = np.random.randint(0, 256, size=(2, 4, 3), dtype='uint8')
test = np.random.randint(0, 256, size=(2, 4, 3), dtype='uint8')

ARGS = {
    'train': train,
    'test': test,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
one_hot Ran
ran on a synthesized input
lyqcom/cgan/src/dataset.py
code served (permissive licence) · get_code("f34f91a733b1a8da")
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 float, shape (10, 10) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct arguments for one_hot function
num_classes = 10
arr = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

ARGS = {
    "num_classes": num_classes,
    "arr": arr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (10, 10) — shape (10, 10) 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
opencv2pil Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/cgan_pytorch/utils/transform.py
code served (permissive licence) · get_code("3721365269fb3b15")
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 numpy as np
import cv2
from PIL import Image

# Create a small BGR image (OpenCV format)
# Using a 4x3 image (height x width) with 3 channels (BGR)
image_array = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    "image": image_array
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, cv2, 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
opencv2tensor Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/cgan_pytorch/utils/transform.py
code served (permissive licence) · get_code("36c11c0d315e3455")
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 4, dtype family float, shape (1, 3, 4, 3) 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 cv2
import numpy as np
import torch

torch.manual_seed(0)

# Create a small BGR image (height=4, width=3, channels=3)
# OpenCV uses BGR format by default
image = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

gpu = None

ARGS = {
    "image": image,
    "gpu": gpu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 4, dtype family float, shape (1, 3, 4, 3) — shape (1, 3, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parzen_estimation Ran
ran on a synthesized input
daheyinyin/CGAN/src/parzen_numpy.py
code served (permissive licence) · get_code("176d82a2905876ba")
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 function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small numpy arrays for the parzen estimation function
# mu should be a "dx1"-dimensional numpy array (d features, 1 sample)
mu = np.array([[0.5], [0.3], [-0.2], [0.1]])  # 4x1 array

# sigma is the window width (scalar)
sigma = 0.5

# mode can be 'gauss' or other
mode = 'gauss'

ARGS = {
    'mu': mu,
    'sigma': sigma,
    'mode': mode,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pdf_multivaraible_gauss Ran
ran on a synthesized input
daheyinyin/CGAN/src/parzen_numpy.py
code served (permissive licence) · get_code("9dce820ef124457f")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct arguments for pdf_multivaraible_gauss
# The function computes the PDF of a multivariate Gaussian distribution

# x: a point in the multivariate space (1D array)
x = np.array([1.0, 2.0, 3.0, 4.0])

# mu: mean vector (1D array, same dimension as x)
mu = np.array([0.5, 1.5, 2.5, 3.5])

# cov: covariance matrix (2D array, shape (dim, dim))
# Create a valid positive definite covariance matrix
cov = np.array([
    [2.0, 0.5, 0.1, 0.0],
    [0.5, 1.8, 0.2, 0.1],
    [0.1, 0.2, 1.5, 0.0],
    [0.0, 0.1, 0.0, 1.2]
])

ARGS = {
    "x": x,
    "mu": mu,
    "cov": cov
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pil2opencv Ran
ran on a synthesized input
doansangg/CGAN-PyTorch/cgan_pytorch/utils/transform.py
code served (permissive licence) · get_code("860a2ccd56442ab2")
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 PIL.BmpImagePlugin
import PIL.Image
import cv2
import numpy as np

# Create a small RGB image using PIL
image_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
pil_image = PIL.Image.fromarray(image_array, mode='RGB')

ARGS = {
    'image': pil_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
resize_long Ran
ran on a synthesized input
xingxingyoulei/infer_cgan_onnx/research/cv/RefineNet/infer_onnx.py
code served (permissive licence) · get_code("a033aba1d2225194")
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 (513, 410, 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 simple test image as a numpy array
# OpenCV uses BGR format, so we create a 3-channel image
# Using distinct dimensions: height=100, width=80 to distinguish them
img = np.random.randint(0, 256, size=(100, 80, 3), dtype=np.uint8)

ARGS = {
    "img": img,
    "long_size": 513
}
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 (513, 410, 3) — shape (513, 410, 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
sample_noise Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from MaximeVandegar/Papers-in-100-Lines-of-Code
pointer only · get_code("9444146b0abd7cd9")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

scale Ran
ran on a synthesized input
ajemerson/CSC_722_Project/analysis_tools.py
code served (permissive licence) · get_code("37b32268e3daeccf")
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 float, shape (5, 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 pandas as pd
import numpy as np
from sklearn import preprocessing

# Create a small DataFrame with numerical data
np.random.seed(0)
df = pd.DataFrame({
    'feature_1': np.random.randn(5),
    'feature_2': np.random.randn(5),
    'feature_3': np.random.randn(5),
    'feature_4': np.random.randn(5)
})

ARGS = {
    'df': df,
    'scale_type': 'standardize'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 4) — shape (5, 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
smooth_negative_labels Ran
ran; our contract draft was wrong, not the code
akuramshin/cDCGAN-Quickdraw/Model/model.py
pointer only (licence: NONE) · get_code("87ff82070eb7487d")
How it ran

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

smooth_positive_labels Ran
ran; our contract draft was wrong, not the code
akuramshin/cDCGAN-Quickdraw/Model/model.py
pointer only (licence: NONE) · get_code("afe6cd97149da1ab")
How it ran

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

sort_to_clockwise Ran
ran on a synthesized input
xingxingyoulei/infer_cgan_onnx/research/cv/psenet/infer_psenet_onnx.py
code served (permissive licence) · get_code("ef0c8d50eaccd1a6")
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 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import operator
from functools import reduce

def sort_to_clockwise(points):
    center = tuple(map(operator.truediv, reduce(lambda x, y: map(operator.add, x, y), points), [len(points)] * 2))
    clockwise_points = sorted(points, key=lambda coord: (-135 - math.degrees(math.atan2(*tuple(map(operator.sub, coord, center))[::-1]))) % 360, reverse=True)
    return clockwise_points

# The function takes a list/sequence of points (coordinate tuples)
# and sorts them in clockwise order around their center
# Each point should be a tuple or sequence of 2 numeric values (x, y)

ARGS = {
    "points": [
        (0, 0),
        (10, 0),
        (10, 10),
        (0, 10)
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fill_buf Not yet run
unverified (harvested, no recorded run)
HyperZealot/mxnet-cgan/cgan.py
code served (permissive licence) · get_code("d284ebbdaee0f6d1")
How it ran

no invocation recorded.

get_gpu_info Not yet run
unverified (harvested, no recorded run)
Lornatang/CGAN-PyTorch/conditional_gan/utils/torch_utils.py
code served (permissive licence) · get_code("f703e51ee2c65717")
How it ran

no invocation recorded.

get_last_page Not yet run
unverified (harvested, no recorded run)
ajemerson/CSC_722_Project/recipe_scraper.py
code served (permissive licence) · get_code("cf939d8fe2d672d3")
How it ran

no invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
Lornatang/CGAN-PyTorch/conditional_gan/utils/checkpoint.py
code served (permissive licence) · get_code("cd7dc86cb23cee34")
How it ran

no invocation recorded.

load_state_dict Not yet run
unverified (harvested, no recorded run)
Lornatang/CGAN-PyTorch/conditional_gan/utils/checkpoint.py
code served (permissive licence) · get_code("9f036873455dfa2c")
How it ran

no invocation recorded.

select_device Not yet run
unverified (harvested, no recorded run)
Lornatang/CGAN-PyTorch/conditional_gan/utils/envs.py
code served (permissive licence) · get_code("48510c5163f50011")
How it ran

no invocation recorded.

strip_optimizer Not yet run
unverified (harvested, no recorded run)
Lornatang/CGAN-PyTorch/conditional_gan/utils/checkpoint.py
code served (permissive licence) · get_code("3c3c1e38b64b0992")
How it ran

no invocation recorded.

Also present in other papers' code

Of 40 samples lifted from this paper's linked repositories, 40 carry a function identity and 0 do not. Of the 40 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 36 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
cal_hist 1 other paper
1 later
1611.06612 (2016-11)
RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentation
opencv2pil 1 other paper
1 later
1606.07536 (2016-06)
Coupled Generative Adversarial Networks
pil2opencv 1 other paper
1 later
1606.07536 (2016-06)
Coupled Generative Adversarial Networks
sample_noise 1 other paper
1 later
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks

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

Generative Adversarial Nets [8] were recently introduced as a novel way to train generative models. In this work we introduce the conditional version of generative adversarial nets, which can be constructed by simply feeding the data, y, we wish to condition on to both the generator and discriminator. We show that this model can generate MNIST digits conditioned on class labels. We also illustrate how this model could be used to learn a multi-modal model, and provide preliminary examples of an application to image tagging in which we demonstrate how this approach can generate descriptive tags which are not part of training labels.

For agents

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

get_harvested_code_for_paper("1411.1784")
get_code_for_paper("1411.1784")
have("1411.1784")

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

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

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

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

Connect an agent — have() is free.