SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.02184 · EMNLP · 2024

CODEJUDGE : Evaluating Code Generation with Large Language Models

Tianyi Zhang, Weixi Tong

arXiv · PDF · Open in the Atlas

Code that ran

15 of 23 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; 7 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 8 no recorded run), measured 2026-11-23; 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/2410.02184.json · badge: /api/ran/2410.02184.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
VichyTong/CodeJudge canonical (classifier label)
classifier basis: census
13 ran · 7 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
terryyz/ice-score community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
answer_to_score Ran
ran, honoured the contract we drafted
VichyTong/CodeJudge/code_model_score/utils.py
code served (permissive licence) · get_code("8f3951a30e7ab452")
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 json
import re
from collections import Counter

# Test data for answer_to_score function
bool_answer = "Yes, this is correct."
score_answer = "The score is 85 out of 100."
error_level_answer = '[{"severity": "minor", "description": "test error"}]'
inconsistency_level_answer = '[{"type": "Edge case not handled", "description": "test"}]'

ARGS = {
    'answer': score_answer,
    'return_type': 'score'
}
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 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
calculate_correlation Ran
ran, honoured the contract we drafted
VichyTong/CodeJudge/evaluation/apps/calculate_single_correlation.py
code served (permissive licence) · get_code("2dbad7c7765ac00d")
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 json
import tempfile
import os

# Create a temporary JSON file with test data
temp_dir = tempfile.mkdtemp()
file_path = os.path.join(temp_dir, "test_data.json")

# Create test data matching the expected JSON structure
test_data = {
    "data": [
        {
            "pass": 1.0,
            "code_gpt_score": {"code_gpt_score": 0.85}
        },
        {
            "pass": 0.0,
            "code_gpt_score": {"code_gpt_score": 0.30}
        },
        {
            "pass": 1.0,
            "code_gpt_score": {"code_gpt_score": 0.92}
        },
        {
            "pass": 0.0,
            "code_gpt_score": {"code_gpt_score": -1.0}  # This will be skipped
        },
        {
            "pass": 1.0,
            "code_gpt_score": {"code_gpt_score": 0.88}
        },
    ]
}

with open(file_path, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "file_name": file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy — 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
calculate_correlation Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/evaluation/apps/calculate_table.py
code served (permissive licence) · get_code("5216eb6022b6ac5b")
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 json
import tempfile
import os

# Create a temporary JSON file with the expected data structure
temp_data = {
    'data': [
        {
            'pass': 1.0,
            'code_gpt_score': {'code_gpt_score': 1.0}
        },
        {
            'pass': 0.0,
            'code_gpt_score': {'code_gpt_score': 0.0}
        },
        {
            'pass': 1.0,
            'code_gpt_score': {'code_gpt_score': 4.0}
        },
        {
            'pass': 0.0,
            'code_gpt_score': {'code_gpt_score': 2.0}
        },
        {
            'pass': 1.0,
            'code_gpt_score': {'code_gpt_score': -1.0}
        }
    ]
}

# Create a temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False)
json.dump(temp_data, temp_file)
temp_file.close()

file_name = temp_file.name

ARGS = {
    'file_name': file_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy — 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_other_correlation Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/evaluation/apps/calculate_table.py
code served (permissive licence) · get_code("4bb7535462be56ac")
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 json
import tempfile
import os

# Create a temporary JSON file with the required structure
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False)
data = [
    {
        'pass': '0.8',
        'bleu': '0.75',
        'rougel': '0.72',
        'meteor': '0.68',
        'chrf': '0.70',
        'codebleu': '0.76',
        'ruby': '0.74',
        'code_bert_score_f1': 0.79,
        'code_bert_score_f3': 0.77
    },
    {
        'pass': '0.6',
        'bleu': '0.55',
        'rougel': '0.58',
        'meteor': '0.52',
        'chrf': '0.54',
        'codebleu': '0.60',
        'ruby': '0.57',
        'code_bert_score_f1': 0.61,
        'code_bert_score_f3': 0.59
    },
    {
        'pass': '0.9',
        'bleu': '0.88',
        'rougel': '0.85',
        'meteor': '0.82',
        'chrf': '0.84',
        'codebleu': '0.89',
        'ruby': '0.87',
        'code_bert_score_f1': 0.91,
        'code_bert_score_f3': 0.90
    }
]
json.dump(data, temp_file)
temp_file.close()

ARGS = {
    'file_name': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
scipy — 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
code_llama_prompt Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/code_model_score/gpt_score.py
code served (permissive licence) · get_code("ded9c4a6757d8d95")
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

# Construct a valid message for the function
# The function expects a list of dicts, each with 'role' and 'content' keys
# Let's test with a 2-message case (user + assistant)

message = [
    {'role': 'user', 'content': 'Hello, how are you?'},
    {'role': 'assistant', 'content': 'I am doing well, thank you!'}
]

ARGS = {
    'message': message
}
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
compute_intermediate_size Ran
ran, honoured the contract we drafted
VichyTong/CodeJudge/evaluation/model/convert_llama_weights_to_hf.py
code served (permissive licence) · get_code("507f475feb734647")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - n: an integer (model dimension or similar)
# - ffn_dim_multiplier: a numeric value (default 1), used in multiplication
# - multiple_of: an integer (default 256), used for alignment

# The function computes an intermediate size for feed-forward networks
# All parameters are simple numeric types

ARGS = {
    "n": 256,
    "ffn_dim_multiplier": 1,
    "multiple_of": 256
}
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 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
extend Ran
ran, honoured the contract we drafted
VichyTong/CodeJudge/evaluation/apps/calculate_single_correlation.py
code served (permissive licence) · get_code("52f8f65294260a82")
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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    "array": [[1, 2], [3, 4], [5, 6]]
}
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 list, ndim 1, 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
find_files_with_substring Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/evaluation/apps/calculate_accuracy.py
code served (permissive licence) · get_code("9cb071c5ea904943")
How it ran

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

import os
import tempfile
import shutil

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

# Create some test files with and without the substring
os.makedirs(os.path.join(temp_dir, "subdir1"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "subdir2"), exist_ok=True)

# Create files - some with "target" substring, some without
open(os.path.join(temp_dir, "target_file.txt"), "w").close()
open(os.path.join(temp_dir, "other_file.txt"), "w").close()
open(os.path.join(temp_dir, "subdir1", "target_doc.pdf"), "w").close()
open(os.path.join(temp_dir, "subdir1", "readme.md"), "w").close()
open(os.path.join(temp_dir, "subdir2", "my_target.log"), "w").close()

ARGS = {
    "directory": temp_dir,
    "substring": "target"
}
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
form_filling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
VichyTong/CodeJudge/code_model_score/gpt_score.py
code served (permissive licence) · get_code("68c90a7c8006a85d")
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 copy

# Mock pipeline that simulates a text generation pipeline
class MockPipeline:
    def __init__(self):
        self.tokenizer = MockTokenizer()
    
    def __call__(self, prompt, do_sample=True, temperature=1.0, top_p=0.9, 
                 num_return_sequences=1, eos_token_id=None, max_new_tokens=2000, 
                 pad_token_id=None):
        # Return a mock generated text
        return [{'generated_text': prompt + ' This is a generated response.'}]

class MockTokenizer:
    def __init__(self):
        self.eos_token_id = 2

class MockModel:
    def __init__(self, name):
        self.name = name
    
    def startswith(self, prefix):
        return self.name.startswith(prefix)

# Test prompt - single user message
prompt_single = [
    {'role': 'user', 'content': 'What is Python?'}
]

# Test prompt - system + user
prompt_system_user = [
    {'role': 'system', 'content': 'You are a helpful assistant.'},
    {'role': 'user', 'content': 'What is Python?'}
]

# Test prompt - user + assistant
prompt_user_assistant = [
    {'role': 'user', 'content': 'What is Python?'},
    {'role': 'assistant', 'content': 'Python is a programming language.'}
]

# Test prompt - system + user + assistant
prompt_system_user_assistant = [
    {'role': 'system', 'content': 'You are a helpful assistant.'},
    {'role': 'user', 'content': 'What is Python?'},
    {'role': 'assistant', 'content': 'Python is a programming language.'}
]

# Test info for placeholder replacement
info_dict = {
    'name': 'Alice',
    'topic': 'Python'
}

# Create ARGS for form_filling function
ARGS = {
    'model': MockModel('CodeLlama-34b-Instruct-hf'),
    'prompt': prompt_single,
    'terminators': [2],
    'pipeline': MockPipeline(),
    'temperature': 0.7,
    'info': None,
    'max_tokens': 500
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gpt_answer Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from terryyz/ice-score
pointer only · get_code("b9229b89784c7b66")
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.

get_pair Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/evaluation/humaneval/code_score.py
code served (permissive licence) · get_code("da7ee7dddf48bf67")
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 torch
import numpy as np

# Construct a minimal dataset dict
dataset = {
    'q1': {
        'declaration': 'def solve():\n',
        'canonical_solution': '    return 42\n'
    },
    'q2': {
        'declaration': 'def helper():\n',
        'canonical_solution': '    pass\n'
    }
}

# Construct a minimal item dict
item = {
    'question_id': 'q1',
    'program': '    return 42\n'
}

# Define ARGS mapping all parameters
ARGS = {
    'item': item,
    'dataset': dataset,
    'with_prefix': True
}
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, 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
llama3_prompt Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/code_model_score/gpt_score.py
code served (permissive licence) · get_code("1756c2f56ede92e2")
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

torch.manual_seed(0)

# Analyze the function: llama3_prompt takes a 'message' parameter
# The function iterates over 'message' with: for sentence in message
# Each sentence must be a dict with 'role' and 'content' keys
# The function builds a string prompt by formatting these values

message = [
    {'role': 'user', 'content': 'Hello, how are you?'},
    {'role': 'assistant', 'content': 'I am doing well, thank you!'},
]

ARGS = {
    'message': message,
}
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
process_raw_content Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from terryyz/ice-score
pointer only · get_code("d3eca7c3807cab0d")
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.

process_raw_content Ran
ran, honoured the contract we drafted
VichyTong/CodeJudge/code_model_score/utils.py
code served (permissive licence) · get_code("6da24498ded11eb5")
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.

from collections import Counter

def process_raw_content(content, aspect):
    """
    Processes the raw content to extract the answer.

    Args:
        content (str): The raw content from GPT response.
        aspect (str): The evaluation aspect.

    Returns:
        int: The extracted answer as an integer.
    """
    splits = content.lower().replace('(', '').replace(')', '').split('\n')
    ls = [ll.strip('.').replace('out of ', '/').replace('/4', '') for l in splits for ll in l.lstrip('0123456789. ').split('. ') if any((item in ll for item in ['score'] + aspect.split()))]
    ans = [ll for l in ls for ll in l.split() if ll.isnumeric()]
    if len(set(ans)) != 1 and len(ans) > 1:
        return int(Counter(ans).most_common(1)[0][0])
    if len(set(ans)) != 1:
        if 'N/A' in content:
            return 0
    if len(ans) == 0:
        try:
            return float(content)
        except:
            return -1
    return int(ans[0])


# Test case 1: Valid content with score extraction
content_1 = "Score: 3 out of 4\nOverall assessment is good."
aspect_1 = "score"

# Test case 2: Content with aspect keywords
content_2 = "Relevance score 2\nThis is relevant content"
aspect_2 = "relevance"

# Test case 3: Content with N/A
content_3 = "N/A"
aspect_3 = "quality"

# Test case 4: Numeric content
content_4 = "42"
aspect_4 = "rating"

ARGS = {
    "content": content_1,
    "aspect": aspect_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 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
read_json Ran
ran; our contract draft was wrong, not the code
VichyTong/CodeJudge/evaluation/model/convert_llama_weights_to_hf.py
code served (permissive licence) · get_code("c5bcf01d18bba63d")
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 json
import tempfile
import os

# Create a temporary JSON file with test data
temp_dir = tempfile.mkdtemp()
test_json_path = os.path.join(temp_dir, "test.json")

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(test_json_path, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "path": test_json_path
}
Setup block drafted by
a language model, Claude Haiku 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 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_correlation Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/apps/calculate_accuracy.py
code served (permissive licence) · get_code("8afc902197b67802")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
terryyz/ice-score/llm_code_eval/evaluator.py
code served (permissive licence) · get_code("bcf3a566009fd040")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/code_model_score/utils.py
code served (permissive licence) · get_code("441183fe72976e33")
How it ran

no invocation recorded.

read_data Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/apps/code_score.py
code served (permissive licence) · get_code("406265a924488a97")
How it ran

no invocation recorded.

read_data Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/bigcodebench/code_score.py
code served (permissive licence) · get_code("97104da8984d7e70")
How it ran

no invocation recorded.

read_data Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/conala/code_score.py
code served (permissive licence) · get_code("dbd4470654b4a66e")
How it ran

no invocation recorded.

read_data Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/humaneval/code_score.py
code served (permissive licence) · get_code("21fbaf2a4f026641")
How it ran

no invocation recorded.

write_model Not yet run
unverified (harvested, no recorded run)
VichyTong/CodeJudge/evaluation/model/convert_llama_weights_to_hf.py
code served (permissive licence) · get_code("5f56e1f4e5b6ba8c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 2 later) and 18 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
read_json 21 other papers
19 dated earlier, 2 later
2210.07316 (2022-10)
MTEB: Massive Text Embedding Benchmark
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2304.14454 (2023-04)
PMC-LLaMA: Towards Building Open-source Language Models for Medicine
and 18 more not named here
compute_intermediate_size 13 other papers
11 dated earlier, 2 later
2305.13718 (2023-05)
Exploring Self-supervised Logic-enhanced Training for Large Language Models
2307.08072 (2023-07)
Do Emergent Abilities Exist in Quantized Large Language Models: An Empirical Study
2308.16137 (2023-08)
LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models
and 10 more not named here
evaluate
brick of this paper's assembly: entry
1 other paper
1 dated earlier
2304.14317 (2023-04)
ICE-Score: Instructing Large Language Models to Evaluate Code
get_gpt_answer
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2304.14317 (2023-04)
ICE-Score: Instructing Large Language Models to Evaluate Code
process_raw_content
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2304.14317 (2023-04)
ICE-Score: Instructing Large Language Models to Evaluate Code

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

Large Language Models (LLMs) have shown promising performance in code generation. However, how to reliably evaluate code generated by LLMs remains an unresolved problem. This paper presents CODEJUDGE , a code evaluation framework that leverages LLMs to evaluate the semantic correctness of generated code without the need for test cases. We investigate different ways to guide the LLM in performing "slow thinking" to arrive at an in-depth and reliable evaluation. We experimented with four LLMs as evaluators on four code generation datasets and five programming languages. The results show that CODEJUDGE significantly outperformed existing methods in most settings. Furthermore, compared with a SOTA GPT-3.5-based code evaluation method, CODE-JUDGE achieved better results even when using a much smaller model, Llama-3-8B-Instruct. Our code and datasets are available on GitHub https://github.com/VichyTong/CodeJudge.

For agents

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

get_harvested_code_for_paper("2410.02184")
get_code_for_paper("2410.02184")
have("2410.02184")

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

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

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

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

Connect an agent — have() is free.