SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2109.08365 · 2021

CodeQA: A Question Answering Dataset for Source Code Comprehension

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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 4 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2109.08365.json · badge: /api/ran/2109.08365.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
jadecxliu/codeqa canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_bleu Ran
ran on a synthesized input
jadecxliu/codeqa/codeBERT/code/eval/bleu/google_bleu.py
code served (permissive licence) · get_code("225b0921f040310c")
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 collections
import math

def _get_ngrams(segment, max_order):
    """Extracts all n-grams upto a given maximum order from an input segment.
    Args:
      segment: text segment from which n-grams will be extracted.
      max_order: maximum length in tokens of the n-grams returned by this
          methods.
    Returns:
      The Counter containing all n-grams upto max_order in segment
      with a count of how many times each n-gram occurred.
    """
    ngram_counts = collections.Counter()
    for order in range(1, max_order + 1):
        for i in range(0, len(segment) - order + 1):
            ngram = tuple(segment[i:i + order])
            ngram_counts[ngram] += 1
    return ngram_counts

def compute_bleu(reference_corpus, translation_corpus, max_order=4, smooth=False):
    """Computes BLEU score of translated segments against one or more references.
    Args:
      reference_corpus: list of lists of references for each translation. Each
          reference should be tokenized into a list of tokens.
      translation_corpus: list of translations to score. Each translation
          should be tokenized into a list of tokens.
      max_order: Maximum n-gram order to use when computing BLEU score.
      smooth: Whether or not to apply Lin et al. 2004 smoothing.
    Returns:
      3-Tuple with the BLEU score, n-gram precisions, geometric mean of n-gram
      precisions and brevity penalty.
    """
    matches_by_order = [0] * max_order
    possible_matches_by_order = [0] * max_order
    reference_length = 0
    translation_length = 0
    for references, translation in zip(reference_corpus, translation_corpus):
        reference_length += min((len(r) for r in references))
        translation_length += len(translation)
        merged_ref_ngram_counts = collections.Counter()
        for reference in references:
            merged_ref_ngram_counts |= _get_ngrams(reference, max_order)
        translation_ngram_counts = _get_ngrams(translation, max_order)
        overlap = translation_ngram_counts & merged_ref_ngram_counts
        for ngram in overlap:
            matches_by_order[len(ngram) - 1] += overlap[ngram]
        for order in range(1, max_order + 1):
            possible_matches = len(translation) - order + 1
            if possible_matches > 0:
                possible_matches_by_order[order - 1] += possible_matches
    precisions = [0] * max_order
    for i in range(0, max_order):
        if smooth:
            precisions[i] = (matches_by_order[i] + 1.0) / (possible_matches_by_order[i] + 1.0)
        elif possible_matches_by_order[i] > 0:
            precisions[i] = float(matches_by_order[i]) / possible_matches_by_order[i]
        else:
            precisions[i] = 0.0
    if min(precisions) > 0:
        p_log_sum = sum((1.0 / max_order * math.log(p) for p in precisions))
        geo_mean = math.exp(p_log_sum)
    else:
        geo_mean = 0
    ratio = float(translation_length) / reference_length
    if ratio > 1.0:
        bp = 1.0
    elif ratio < 1e-06:
        bp = 0
    else:
        bp = math.exp(1 - 1.0 / ratio)
    bleu = geo_mean * bp
    return (bleu, precisions, bp, ratio, translation_length, reference_length)

# Create sample tokenized text (lists of tokens)
reference_1_sent1 = ["the", "cat", "is", "on", "the", "mat"]
reference_2_sent1 = ["there", "is", "a", "cat", "on", "the", "mat"]
translation_sent1 = ["the", "cat", "is", "on", "the", "mat"]

reference_1_sent2 = ["hello", "world"]
reference_2_sent2 = ["hello", "there", "world"]
translation_sent2 = ["hello", "world"]

# Build corpus: list of lists of references for each translation
reference_corpus = [
    [reference_1_sent1, reference_2_sent1],
    [reference_1_sent2, reference_2_sent2]
]

# Build translation corpus: list of translations
translation_corpus = [
    translation_sent1,
    translation_sent2
]

ARGS = {
    "reference_corpus": reference_corpus,
    "translation_corpus": translation_corpus,
    "max_order": 4,
    "smooth": False
}
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
cook_refs Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/eval/bleu/bleu_scorer.py
code served (permissive licence) · get_code("7586e1d32f7325f7")
How it ran

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

from collections import defaultdict

ARGS = {
    'refs': [
        'the quick brown fox jumps over the lazy dog',
        'a quick brown fox leaps over a lazy dog'
    ],
    'eff': 'shortest',
    'n': 4
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cook_test Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/eval/bleu/bleu_scorer.py
code served (permissive licence) · get_code("019ae8bc6f98133f")
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.

from collections import defaultdict

def precook(s, n=4, out=False):
    """Takes a string as input and returns an object that can be given to
    either cook_refs or cook_test. This is optional: cook_refs and cook_test
    can take string arguments as well."""
    words = s.split()
    counts = defaultdict(int)
    for k in range(1, n + 1):
        for i in range(len(words) - k + 1):
            ngram = tuple(words[i:i + k])
            counts[ngram] += 1
    return (len(words), counts)

def cook_test(test, xxx_todo_changeme, eff=None, n=4):
    """Takes a test sentence and returns an object that
    encapsulates everything that BLEU needs to know about it."""
    reflen, refmaxcounts = xxx_todo_changeme
    testlen, counts = precook(test, n, True)
    result = {}
    if eff == 'closest':
        result['reflen'] = min(((abs(l - testlen), l) for l in reflen))[1]
    else:
        result['reflen'] = reflen
    result['testlen'] = testlen
    result['guess'] = [max(0, testlen - k + 1) for k in range(1, n + 1)]
    result['correct'] = [0] * n
    for ngram, count in counts.items():
        result['correct'][len(ngram) - 1] += min(refmaxcounts.get(ngram, 0), count)
    return result

# Construct test string
test_string = "the quick brown fox jumps over the lazy dog"

# Construct reference data (precook output)
ref_text = "the quick brown fox jumps over a lazy dog"
ref_length, ref_counts = precook(ref_text, n=4)

# Build xxx_todo_changeme parameter
# It expects (reflen, refmaxcounts)
# reflen should be iterable of lengths, refmaxcounts should be a defaultdict
xxx_todo_changeme_value = ([ref_length], ref_counts)

ARGS = {
    'test': test_string,
    'xxx_todo_changeme': xxx_todo_changeme_value,
    'eff': None,
    'n': 4
}
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
corpus_bleu Ran
ran on a synthesized input
jadecxliu/codeqa/codeBERT/code/eval/bleu/google_bleu.py
code served (permissive licence) · get_code("ecccdfbec38d40e7")
How it ran

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

import collections
import math

torch_seed = 0

ARGS = {
    "hypotheses": {
        "id_1": ["the quick brown fox jumps over the lazy dog"],
        "id_2": ["a cat sat on the mat"],
        "id_3": ["hello world test case"],
    },
    "references": {
        "id_1": ["the quick brown fox jumps over the lazy dog"],
        "id_2": ["a cat sat on the mat"],
        "id_3": ["hello world test"],
    },
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_ngrams Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/bleu.py
code served (permissive licence) · get_code("835fca2953749b59")
How it ran

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

torch.manual_seed(0)

# The function count_ngrams takes:
# - words: a sequence of items (strings, tokens, etc.)
# - n: an integer specifying the maximum n-gram size

# Create a simple list of words
words = ["the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"]

# Create the ARGS dictionary with all parameters
ARGS = {
    "words": words,
    "n": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
dec Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/eval/meteor/meteor.py
pointer only (licence: MIT); the stored copy get_code serves, from Maluuba/nlg-eval, is pointer only (licence: NOASSERTION) · get_code("ba9348aac71a3f72")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Maluuba/nlg-eval, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

enc Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/eval/meteor/meteor.py
pointer only (licence: MIT); the stored copy get_code serves, from Maluuba/nlg-eval, is pointer only (licence: NOASSERTION) · get_code("eaab50b5d9fea58a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Maluuba/nlg-eval, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

my_lcs Ran
ran, honoured the contract we drafted
jadecxliu/codeqa/codeBERT/code/eval/rouge/rouge.py
code served (permissive licence) · get_code("8e177567218199c4")
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.

# Setup code for my_lcs function

ARGS = {
    "string": ["the", "quick", "brown", "fox"],
    "sub": ["quick", "fox"]
}
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
nltk_corpus_bleu Ran
ran on a synthesized input
jadecxliu/codeqa/codeBERT/code/eval/bleu/nltk_bleu.py
code served (permissive licence) · get_code("c3b65b5384d8541c")
How it ran

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

import nltk
from nltk.translate.bleu_score import SmoothingFunction

# Construct valid arguments for nltk_corpus_bleu
hypotheses = {
    "id_1": ["the cat sat on the mat"],
    "id_2": ["a dog ran in the park"],
    "id_3": ["birds fly high in the sky"]
}

references = {
    "id_1": ["the cat is sitting on the mat", "the cat sat on a mat"],
    "id_2": ["the dog ran in the park", "a dog was running in the park"],
    "id_3": ["birds are flying high in the sky", "birds fly very high"]
}

order = 4

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

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

import nltk
from nltk.translate.bleu_score import SmoothingFunction

# Download required NLTK data
try:
    nltk.data.find('tokenizers/punkt')
except LookupError:
    nltk.download('punkt', quiet=True)

# Define arguments for nltk_sentence_bleu
# The function expects:
# - hypothesis: a list of tokens (words) for the predicted sentence
# - reference: a list of tokens (words) for the reference sentence
# - order: the n-gram order (default 4)

hypothesis = ['the', 'cat', 'sat', 'on', 'the', 'mat']
reference = ['the', 'cat', 'is', 'on', 'the', 'mat']
order = 4

ARGS = {
    'hypothesis': hypothesis,
    'reference': reference,
    'order': order
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
precook Ran
ran; our contract draft was wrong, not the code
jadecxliu/codeqa/codeBERT/code/eval/bleu/bleu_scorer.py
code served (permissive licence) · get_code("ec4448373d72d636")
How it ran

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

ARGS = {
    "s": "the quick brown fox jumps over the lazy dog",
    "n": 4,
    "out": False
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 7 later) and 4 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
precook 22 other papers
12 dated earlier, 10 later
1411.4555 (2014-11)
Show and Tell: A Neural Image Caption Generator
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
and 19 more not named here
cook_refs 21 other papers
10 dated earlier, 11 later
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
1611.09571 (2016-11)
Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model
and 18 more not named here
my_lcs 7 other papers
4 dated earlier, 3 later
1503.01817 (2015-03)
YFCC100M: The New Data in Multimedia Research
1608.00272 (2016-08)
Modeling Context in Referring Expressions
1802.06842 (2018-02)
Zero-Shot Question Generation from Knowledge Graphs for Unseen Predicates and Entity Types
and 4 more not named here
cook_test 6 other papers
2 dated earlier, 4 later
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
1901.11504 (2019-01)
Multi-Task Deep Neural Networks for Natural Language Understanding
2305.18500 (2023-05)
VAST: A Vision-Audio-Subtitle-Text Omni-Modality Foundation Model and Dataset
and 3 more not named here
dec 4 other papers
1 dated earlier, 3 later
1706.09799 (2017-06)
Relevance of Unsupervised Metrics in Task-Oriented Dialogue for Evaluating Natural Language Generation
2022.findings-naacl.160 (2022 (year only))
Learning Structural Information for Syntax-Controlled Paraphrase Generation
2309.09812 (2023-09)
R2GenGPT: Radiology Report Generation with Frozen LLMs
and 1 more not named here
enc 4 other papers
1 dated earlier, 3 later
1706.09799 (2017-06)
Relevance of Unsupervised Metrics in Task-Oriented Dialogue for Evaluating Natural Language Generation
2022.findings-naacl.160 (2022 (year only))
Learning Structural Information for Syntax-Controlled Paraphrase Generation
2309.09812 (2023-09)
R2GenGPT: Radiology Report Generation with Frozen LLMs
and 1 more not named here
count_ngrams 3 other papers
2 dated earlier, 1 later
1909.09436 (2019-09)
CodeSearchNet Challenge: Evaluating the State of Semantic Code Search
1910.07517 (2019-10)
Adversarial Examples for Models of Code
2207.11680 (2022-07)
No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence

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

Repositories linked to this paper

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

Abstract

We propose CodeQA, a free-form question answering dataset for the purpose of source code comprehension: given a code snippet and a question, a textual answer is required to be generated. CodeQA contains a Java dataset with 119,778 question-answer pairs and a Python dataset with 70,085 question-answer pairs. To obtain natural and faithful questions and answers, we implement syntactic rules and semantic analysis to transform code comments into question-answer pairs. We present the construction process and conduct systematic analysis of our dataset. Experiment results achieved by several neural baselines on our dataset are shown and discussed. While research on question-answering and machine reading comprehension develops rapidly, few prior work has drawn attention to code question answering. This new dataset can serve as a useful research benchmark for source code comprehension.

For agents

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

get_harvested_code_for_paper("2109.08365")
get_code_for_paper("2109.08365")
have("2109.08365")

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

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

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

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

Connect an agent — have() is free.