SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.02268 · 2021

Bridging Pre-trained Models and Downstream Tasks for Source Code Understanding

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 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; 0 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 0 failures of our instrument; 1 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/2112.02268.json · badge: /api/ran/2112.02268.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
wangdeze18/DACL canonical (classifier label)
classifier basis not recorded on the link
12 ran · 1 no recorded run
FunctionStatusWhere it lives
builddataset Ran
ran on a synthesized input
wangdeze18/DACL/codesearch/convert_score.py
code served (permissive licence) · get_code("7d233b5a51ce6818")
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 json
import tempfile
import os

# Create a temporary file with JSONL content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_file_path = temp_file.name

# Write sample JSONL data with 'url' field
sample_data = [
    {'url': 'https://example.com/page1'},
    {'url': 'https://example.com/page2'},
    {'url': 'https://example.com/page3'}
]

for entry in sample_data:
    temp_file.write(json.dumps(entry) + '\n')

temp_file.close()

ARGS = {
    'file_path': temp_file_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 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
calScores Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/code/bagging.py
code served (permissive licence) · get_code("242cf4b7922b3210")
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 torch
import torch.nn as nn
import numpy as np
import json
import tempfile
import os

torch.manual_seed(0)

# Create a minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.cls_token = "[CLS]"
        self.sep_token = "[SEP]"
        self.pad_token_id = 0
    
    def tokenize(self, text):
        return text.split()
    
    def convert_tokens_to_ids(self, tokens):
        return [hash(token) % 1000 for token in tokens]

# Create a minimal model that matches the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(10, 5)
    
    def forward(self, inputs, p_inputs, n_inputs, label):
        # inputs, p_inputs, n_inputs are tensors of shape (batch_size, seq_len)
        # Model should return (loss, vec) where vec is embeddings
        batch_size = inputs.shape[0]
        vec = self.linear(inputs.float().mean(dim=1, keepdim=True).expand(batch_size, 10))
        loss = torch.tensor([0.1])
        return loss, vec

# Create minimal args object
class MinimalArgs:
    def __init__(self):
        self.block_size = 20
        self.per_gpu_eval_batch_size = 2
        self.n_gpu = 1
        self.local_rank = -1
        self.device = torch.device('cpu')
        self.eval_batch_size = 2

# Create a temporary test data file
def create_test_data_file():
    with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl') as f:
        for i in range(4):
            js = {
                'code': 'def hello world test code sample ' + str(i),
                'index': i,
                'label': i % 2
            }
            f.write(json.dumps(js) + '\n')
        return f.name

tokenizer = MinimalTokenizer()
args = MinimalArgs()
model = MinimalModel()
test_data_file = create_test_data_file()

ARGS = {
    'args': args,
    'model': model,
    'tokenizer': tokenizer,
    'test_data_file': test_data_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_scores Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/evaluator/evaluator.py
code served (permissive licence) · get_code("83477337636fe464")
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 logging
import sys
import json
import numpy as np

# Set up logging to prevent actual exit
logging.basicConfig(level=logging.ERROR)

# Create sample data for the function
answers = {
    '0': ['cat', 'dog', 'bird'],
    '1': ['apple', 'orange', 'banana'],
    '2': ['red', 'blue', 'green']
}

predictions = {
    '0': ['cat', 'dog', 'fish'],
    '1': ['apple', 'orange', 'banana'],
    '2': ['red', 'yellow', 'green']
}

ARGS = {
    'answers': answers,
    'predictions': predictions
}
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 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
calculate_scores Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/evaluator/evaluator_score.py
code served (permissive licence) · get_code("77b01d53fe1ab5d8")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file for output
temp_dir = tempfile.mkdtemp()
output_file = os.path.join(temp_dir, "scores.txt")

# Construct valid arguments for calculate_scores
answers = {
    '0': ['apple', 'fruit'],
    '1': ['cat', 'animal'],
    '2': ['red', 'color']
}

predictions = {
    '0': ['apple', 'fruit'],
    '1': ['animal', 'cat'],
    '2': ['color', 'red']
}

ARGS = {
    'answers': answers,
    'predictions': predictions,
    'output_data_file': output_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_examples_to_features Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/code/bagging.py
code served (permissive licence) · get_code("9d6328379f9b5a8c")
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 InputFeatures. 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 transformers import BertTokenizer

class MockTokenizer:
    def __init__(self):
        self.cls_token = "[CLS]"
        self.sep_token = "[SEP]"
        self.pad_token_id = 0
    
    def tokenize(self, text):
        return text.split()
    
    def convert_tokens_to_ids(self, tokens):
        token_to_id = {
            "[CLS]": 101,
            "[SEP]": 102,
            "def": 2054,
            "function": 2644,
            "code": 3642,
            "example": 2742,
        }
        return [token_to_id.get(token, hash(token) % 1000 + 103) for token in tokens]

class MockArgs:
    def __init__(self):
        self.block_size = 128

js = {
    'code': 'def function code example',
    'index': 0,
    'label': '1'
}

tokenizer = MockTokenizer()

args = MockArgs()

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

torch.manual_seed(0)

# Create a minimal tokenizer stand-in
class DummyTokenizer:
    def __init__(self):
        self.cls_token = "[CLS]"
        self.sep_token = "[SEP]"
        self.pad_token_id = 0
    
    def tokenize(self, text):
        return text.split()[:10]
    
    def convert_tokens_to_ids(self, tokens):
        return [i + 1 for i in range(len(tokens))]

# Create a minimal model that satisfies the function's usage
class DummyModel(nn.Module):
    def __init__(self, hidden_dim=4):
        super().__init__()
        self.hidden_dim = hidden_dim
        self.linear = nn.Linear(hidden_dim, hidden_dim)
    
    def forward(self, inputs, p_inputs, n_inputs, label):
        # inputs shape: (batch_size, seq_len)
        batch_size = inputs.shape[0]
        # Return loss and vector representation
        loss = torch.tensor([0.5] * batch_size).mean()
        vec = torch.randn(batch_size, self.hidden_dim)
        return loss, vec
    
    def eval(self):
        super().eval()
        return self

# Create temporary data file
def create_temp_data_file():
    fd, path = tempfile.mkstemp(suffix='.jsonl', text=True)
    with os.fdopen(fd, 'w') as f:
        # Write a few JSON lines with code and labels
        for i in range(6):
            data = {
                'code': f'def func{i}(): pass x = {i}',
                'index': i,
                'label': i % 3  # 3 different labels (0, 1, 2)
            }
            f.write(json.dumps(data) + '\n')
    return path

# Create args object
class DummyArgs:
    def __init__(self, data_file_path):
        self.output_dir = tempfile.mkdtemp()
        self.eval_data_file = data_file_path
        self.block_size = 20
        self.per_gpu_eval_batch_size = 2
        self.n_gpu = 1
        self.local_rank = -1
        self.device = torch.device('cpu')

# Setup
data_file = create_temp_data_file()
tokenizer = DummyTokenizer()
model = DummyModel(hidden_dim=4)
args = DummyArgs(data_file)

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

# Create a temporary file with JSONL content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_filename = temp_file.name

# Write sample data: lines with 'label' and 'index' fields
data_lines = [
    json.dumps({'label': 'cat_a', 'index': 1}),
    json.dumps({'label': 'cat_a', 'index': 2}),
    json.dumps({'label': 'cat_a', 'index': 3}),
    json.dumps({'label': 'cat_b', 'index': 4}),
    json.dumps({'label': 'cat_b', 'index': 5}),
]

for line in data_lines:
    temp_file.write(line + '\n')

temp_file.close()

ARGS = {
    'filename': temp_filename
}
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
linear Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/code/pacing_functions.py
code served (permissive licence) · get_code("4f23a89db8afd4e3")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def linear(x, t, c0):
#     return x * ((1 - c0) / t) + c0
#
# Parameters:
# - x: used in arithmetic operations (multiplication, addition)
# - t: used in arithmetic operations (division)
# - c0: used in arithmetic operations (subtraction, addition)
#
# All parameters are numeric values or tensors that support element-wise operations.

# Create small tensors for the computation
x = torch.randn(2, 4)  # batch size 2, dimension 4
t = torch.tensor(2.5)  # scalar tensor for time
c0 = torch.tensor(0.3)  # scalar tensor for coefficient

ARGS = {
    "x": x,
    "t": t,
    "c0": c0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_answers Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/evaluator/eva_MAP.py
code served (permissive licence) · get_code("f869934d6404c4bc")
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
import json
import os

# Create a temporary file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_filename = temp_file.name

# Write test data in JSONL format
test_data = [
    {'index': 0, 'answers': ['answer1', 'answer2']},
    {'index': 1, 'answers': ['answer3']},
    {'index': 2, 'answers': ['answer4', 'answer5', 'answer6']},
]

for item in test_data:
    temp_file.write(json.dumps(item) + '\n')
temp_file.close()

ARGS = {
    'filename': temp_filename
}
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
read_predictions Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/evaluator/eva_MAP.py
code served (permissive licence) · get_code("a82333e3033af699")
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
import json
import os

# Create a temporary file with sample predictions data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_filename = temp_file.name

# Write sample prediction data in JSONL format
sample_data = [
    {'index': 0, 'answers': ['answer1', 'answer2']},
    {'index': 1, 'answers': ['answer3']},
    {'index': 2, 'answers': ['answer4', 'answer5', 'answer6']},
]

for item in sample_data:
    temp_file.write(json.dumps(item) + '\n')

temp_file.close()

ARGS = {
    'filename': temp_filename
}
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
root_2 Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/code/pacing_functions.py
code served (permissive licence) · get_code("94cb9437e94901a0")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def root_2(x, t, c0):
#     return (x * ((1 - c0 ** 2.0) / t) + c0 ** 2.0) ** (1.0 / 2)
#
# Parameters:
# - x: used in arithmetic operations, should be a tensor or numeric
# - t: used in division, should be a tensor or numeric (non-zero)
# - c0: used in arithmetic operations, should be a tensor or numeric

# Create small tensors for x and t
x = torch.randn(2, 4)  # batch=2, dim=4
t = torch.ones(2, 4) * 2.0  # ensure non-zero for division
c0 = torch.tensor(0.5)  # scalar tensor for c0

ARGS = {
    "x": x,
    "t": t,
    "c0": c0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
root_5 Ran
ran on a synthesized input
wangdeze18/DACL/algorithm_classification/code/pacing_functions.py
code served (permissive licence) · get_code("3055a8267da0a254")
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
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# def root_5(x, t, c0):
#     return (x * ((1 - c0 ** 5.0) / t) + c0 ** 5.0) ** (1.0 / 5)
#
# Parameters:
# - x: appears to be a tensor/array that gets multiplied by a scalar expression
# - t: scalar or tensor used as divisor
# - c0: scalar or tensor (raised to power 5.0)
#
# All operations are element-wise compatible, so we can use scalars or tensors

x = torch.randn(2, 4)
t = torch.tensor(2.0)
c0 = torch.tensor(0.5)

ARGS = {
    "x": x,
    "t": t,
    "c0": c0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_scores Not yet run
unverified (harvested, no recorded run)
wangdeze18/DACL/algorithm_classification/evaluator/eva_MAP.py
code served (permissive licence) · get_code("790aecc4340767b7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

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

Abstract

With the great success of pre-trained models, the pretrain-then-finetune paradigm has been widely adopted on downstream tasks for source code understanding. However, compared to costly training a large-scale model from scratch, how to effectively adapt pre-trained models to a new task has not been fully explored. In this paper, we propose an approach to bridge pre-trained models and code-related tasks. We exploit semantic-preserving transformation to enrich downstream data diversity, and help pre-trained models learn semantic features invariant to these semantically equivalent transformations. Further, we introduce curriculum learning to organize the transformed data in an easy-to-hard manner to fine-tune existing pre-trained models. We apply our approach to a range of pre-trained models, and they significantly outperform the state-of-the-art models on tasks for source code understanding, such as algorithm classification, code clone detection, and code search. Our experiments even show that without heavy pre-training on code data, natural language pre-trained model RoBERTa fine-tuned with our lightweight approach could outperform or rival existing code pre-trained models fine-tuned on the above tasks, such as CodeBERT and GraphCodeBERT. This finding suggests that there is still much room for improvement in code pre-trained models.

For agents

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

get_harvested_code_for_paper("2112.02268")
get_code_for_paper("2112.02268")
have("2112.02268")

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

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

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

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

Connect an agent — have() is free.