| clean_string |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/GlobDep_FnDep.py code served (permissive licence) · get_code("4eb083afe9e6bd3a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
ARGS = {
"s": "hello:world\ttest\\path\"quoted'string"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| count_lines_in_directory |
Ran ran on a synthesized input |
cxm211/rustmap/c-code/bzip2-1.0.8-i/singapore.py code served (permissive licence) · get_code("2f4cd585cf35d068") How it ranRan 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 os
import tempfile
import shutil
# Create a temporary directory structure with .c and .h files
temp_dir = tempfile.mkdtemp()
# Create some test C files
subdir1 = os.path.join(temp_dir, "src")
os.makedirs(subdir1, exist_ok=True)
# Write test C file
c_file_1 = os.path.join(subdir1, "main.c")
with open(c_file_1, 'w') as f:
f.write("int main() {\n")
f.write(" return 0;\n")
f.write("}\n")
# Write test header file
h_file_1 = os.path.join(subdir1, "header.h")
with open(h_file_1, 'w') as f:
f.write("#ifndef HEADER_H\n")
f.write("#define HEADER_H\n")
f.write("void foo();\n")
f.write("#endif\n")
# Create nested subdirectory with more files
subdir2 = os.path.join(temp_dir, "lib")
os.makedirs(subdir2, exist_ok=True)
c_file_2 = os.path.join(subdir2, "utils.c")
with open(c_file_2, 'w') as f:
f.write("void foo() {\n")
f.write(" // implementation\n")
f.write("}\n")
# Create a file that should be ignored
other_file = os.path.join(temp_dir, "readme.txt")
with open(other_file, 'w') as f:
f.write("This should not be counted\n")
ARGS = {
"directory": temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| count_lines_in_file |
Ran ran on a synthesized input |
cxm211/rustmap/c-code/bzip2-1.0.8-i/singapore.py code served (permissive licence) · get_code("ac30109274e9a668") How it ranRan 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 with some content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8')
temp_file.write("line 1\n")
temp_file.write("line 2\n")
temp_file.write("line 3\n")
temp_file.write("line 4\n")
temp_file.write("line 5\n")
temp_file.close()
ARGS = {
'file_path': temp_file.name
}
- 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
|
| extract_cognitive_complexity |
Ran ran on a synthesized input |
cxm211/rustmap/cognitive_study/extract_cc.py code served (permissive licence) · get_code("9787457200d42ba3") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import json
import tempfile
import shutil
from pathlib import Path
# Create a temporary directory structure with sample JSON files
temp_dir = tempfile.mkdtemp()
# Create directory structure
src_dir = os.path.join(temp_dir, 'src')
os.makedirs(src_dir, exist_ok=True)
module_dir = os.path.join(src_dir, 'module1')
os.makedirs(module_dir, exist_ok=True)
# Create sample JSON files with cognitive complexity data
sample_data_1 = {
'spaces': [
{
'name': 'function1',
'metrics': {
'cognitive': {
'sum': 5
}
}
},
{
'name': 'function2',
'metrics': {
'cognitive': {
'sum': 3
}
}
}
]
}
sample_data_2 = {
'spaces': [
{
'name': 'function3',
'metrics': {
'cognitive': {
'sum': 7
}
}
}
]
}
# Write JSON files
with open(os.path.join(module_dir, 'file1.json'), 'w') as f:
json.dump(sample_data_1, f)
with open(os.path.join(src_dir, 'file2.json'), 'w') as f:
json.dump(sample_data_2, f)
# Create a unit_test folder that should be excluded
test_dir = os.path.join(temp_dir, 'unit_test')
os.makedirs(test_dir, exist_ok=True)
test_data = {
'spaces': [
{
'name': 'test_func',
'metrics': {
'cognitive': {
'sum': 2
}
}
}
]
}
with open(os.path.join(test_dir, 'test.json'), 'w') as f:
json.dump(test_data, f)
ARGS = {
'base_dir': temp_dir,
'project_name': 'rosetta_code_gpt',
'exclude_folders': {'unit_test'}
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_functions |
Ran ran on a synthesized input |
cxm211/rustmap/extract.py code served (permissive licence) · get_code("0c26a4ac0d02b2af") How it ranRan 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 tempfile
import os
# Create a temporary C file with some function definitions
temp_dir = tempfile.mkdtemp()
c_file_path = os.path.join(temp_dir, "test.c")
c_content = """
int add(int a, int b) {
return a + b;
}
void print_message(char *msg) {
printf("%s\\n", msg);
}
double calculate(double x, double y, double z) {
return x + y + z;
}
"""
with open(c_file_path, 'w') as f:
f.write(c_content)
ARGS = {
'file_path': c_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
|
| extract_global_variables_from_ctags |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/treesitter_struct_analysis.py code served (permissive licence) · get_code("aab7ecf1c11c2607") How it ranRan 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 tempfile
import os
# Create a temporary ctags file for testing
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.tags', delete=False)
# Write sample ctags content
# Format: name<TAB>file<TAB>...<TAB>kind<TAB>...<TAB>scope_info
ctags_content = """!_TAG_FILE_FORMAT 2 /extended format/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted/
global_var test.c /^int global_var;/ v
static_var test.c /^static int static_var;/ v file:
extern_var test.c /^extern int extern_var;/ x
another_global other.c /^float another_global;/ v
another_static other.c /^static float another_static;/ v file:
another_extern other.c /^extern float another_extern;/ x
"""
temp_file.write(ctags_content)
temp_file.close()
ARGS = {
'file': temp_file.name
}
- 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
|
| extract_globals |
Ran ran on a synthesized input |
cxm211/rustmap/extract.py code served (permissive licence) · get_code("f1a4f0cb7aabb7e0") How it ranRan 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 tempfile
import os
# Create a temporary .c file with some global variable definitions
temp_dir = tempfile.mkdtemp()
temp_file_path = os.path.join(temp_dir, "test.c")
c_code = """
int globalCounter;
float temperature;
char buffer[256];
double pi;
unsigned int seed;
"""
with open(temp_file_path, 'w') as f:
f.write(c_code)
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
|
| extract_signature |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/integrated_dependency_builder.py code served (permissive licence) · get_code("7447f0d99ac965c6") How it ranRan 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)
def setup():
# The function extract_signature takes a label parameter
# and splits it on ')' and adds ')' back
# So label should be a string containing at least one ')'
label = "def my_function(x, y, z)"
return label
ARGS = {
"label": setup()
}
- 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
|
| find_references |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/GlobDep_FnDep.py code served (permissive licence) · get_code("3d645c51e39f023f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family 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 subprocess
import tempfile
import os
# Create temporary source files for testing
temp_dir = tempfile.mkdtemp()
src_file1 = os.path.join(temp_dir, "test1.py")
src_file2 = os.path.join(temp_dir, "test2.py")
with open(src_file1, 'w') as f:
f.write("""
def my_function():
my_variable = 42
another_var = my_variable * 2
return another_var
""")
with open(src_file2, 'w') as f:
f.write("""
class MyClass:
def __init__(self):
self.my_variable = 100
*my_variable = [1, 2, 3]
""")
ARGS = {
"item": "my_variable",
"source_files": [src_file1, src_file2]
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family 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
|
| generate_cflow_dot |
Ran ran on a synthesized input |
cxm211/rustmap/cflow_generation.py code served (permissive licence) · get_code("6a4f858935e13d32") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
import shutil
# Create a temporary directory with some .i files for testing
temp_dir = tempfile.mkdtemp()
# Create a few dummy .i (C preprocessed) files
c_file_1 = os.path.join(temp_dir, "test1.i")
c_file_2 = os.path.join(temp_dir, "test2.i")
with open(c_file_1, 'w') as f:
f.write("int main() { return 0; }\n")
with open(c_file_2, 'w') as f:
f.write("void foo() { }\nvoid bar() { foo(); }\n")
ARGS = {
"folder_path": temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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_logical_folder |
Ran ran on a synthesized input |
cxm211/rustmap/cognitive_study/extract_cc.py code served (permissive licence) · get_code("68cc2c0e3130615e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
# Create temporary directories to simulate a project structure
with tempfile.TemporaryDirectory() as tmpdir:
# Create a directory structure with 'src' folder
src_path = os.path.join(tmpdir, 'project', 'src', 'models')
os.makedirs(src_path, exist_ok=True)
# Create a test file in the src/models directory
test_file = os.path.join(src_path, 'test.py')
with open(test_file, 'w') as f:
f.write('# test')
base_dir = os.path.join(tmpdir, 'project')
# Test the function with the constructed paths
path = test_file
base = base_dir
ARGS = {
'path': path,
'base': base
}
- 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
|
| has_descendant_of_type |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/treesitter_struct_analysis.py code served (permissive licence) · get_code("db542def6c3115e2") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
class Node:
def __init__(self, node_type, children=None):
self.type = node_type
self.children = children if children is not None else []
# Create a tree structure to test the recursive function
leaf_node_a = Node("leaf_a")
leaf_node_b = Node("leaf_b")
leaf_node_c = Node("target_type")
internal_node_1 = Node("internal_1", [leaf_node_a, leaf_node_b])
internal_node_2 = Node("internal_2", [internal_node_1, leaf_node_c])
root_node = Node("root", [internal_node_2])
# Test case: looking for a target_type that exists as a descendant
ARGS = {
"node": root_node,
"target_type": "target_type"
}
- 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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| is_valid_scc |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/tarjan.py code served (permissive licence) · get_code("83e372abaf366ef9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Analyze the function: is_valid_scc checks if a given scc (strongly connected component)
# matches any known_scc in all_sccs by comparing them as sets.
# Parameters:
# - scc: an iterable (likely list/tuple) of nodes
# - all_sccs: a collection of sccs (likely list of lists/tuples)
# Create test data
scc = [1, 2, 3]
all_sccs = [
[0, 5],
[1, 2, 3],
[4, 6, 7]
]
ARGS = {
"scc": scc,
"all_sccs": all_sccs
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| process_folder |
Ran ran on a synthesized input |
cxm211/rustmap/extract.py code served (permissive licence) · get_code("389c015ffde0ac64") How it ranRan 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 os
import tempfile
import shutil
# Create a temporary directory with test .c and .h files
temp_dir = tempfile.mkdtemp()
# Create a test .c file with function and global definitions
c_file_content = """
#include <stdio.h>
int global_counter;
char* global_string;
int add(int a, int b) {
return a + b;
}
void print_message(char* msg) {
printf("%s\\n", msg);
}
"""
# Create a test .h file with function and global definitions
h_file_content = """
#ifndef HEADER_H
#define HEADER_H
double global_pi;
int MAX_SIZE;
double calculate_area(double radius) {
return 3.14 * radius * radius;
}
void initialize() {
}
#endif
"""
# Write test files to temporary directory
c_file_path = os.path.join(temp_dir, "test.c")
h_file_path = os.path.join(temp_dir, "test.h")
with open(c_file_path, 'w') as f:
f.write(c_file_content)
with open(h_file_path, 'w') as f:
f.write(h_file_content)
# Define ARGS with the temporary folder path
ARGS = {
'folder_path': temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| process_label |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/integrated_dependency_builder.py code served (permissive licence) · get_code("106087b38eea780e") How it ranRan 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)
ARGS = {
'label': 'static example label with spaces'
}
- 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_relationships |
Ran ran on a synthesized input |
cxm211/rustmap/scaffolding_py_tools/integrated_dependency_builder.py code served (permissive licence) · get_code("3d1eb79d0ed0aacf") How it ranRan 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
torch.manual_seed(0)
# Construct valid arguments for process_relationships
variable_relationship = {
'var_a': ['func_1', 'func_2'],
'var_b': ['func_2', 'func_3'],
'var_c': ['func_1'],
}
new_function_labels = {
'func_1': 'function_alpha',
'func_2': 'function_beta',
'func_3': 'function_gamma',
}
ARGS = {
'variable_relationship': variable_relationship,
'new_function_labels': new_function_labels,
}
- 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
|
| extract_tags_from_ctags |
Not yet run unverified (harvested, no recorded run) |
cxm211/rustmap/scaffolding_py_tools/GlobDep_FnDep.py code served (permissive licence) · get_code("5e2ea84a7e8202e2") How it ran |
| generate_graph |
Not yet run unverified (harvested, no recorded run) |
cxm211/rustmap/scaffolding_py_tools/tarjan.py code served (permissive licence) · get_code("561fa8cf9c49574f") How it ran |
| get_node_source |
Not yet run unverified (harvested, no recorded run) |
cxm211/rustmap/scaffolding_py_tools/treesitter_struct_analysis.py code served (permissive licence) · get_code("4115c0d285b49000") How it ran |
| tarjan_scc |
Not yet run unverified (harvested, no recorded run) |
cxm211/rustmap/scaffolding_py_tools/tarjan.py code served (permissive licence) · get_code("7ca9f85e0ee49143") How it ran |