| bootstrap_auroc |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/generate_figures.py code served (permissive licence) · get_code("488401261ee63998") 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 numpy as np
# Set random seed for reproducibility
np.random.seed(42)
# Create small synthetic data for bootstrap_auroc
# conf: confidence scores (should be numeric array)
# correct: binary labels (0 or 1)
n_samples = 50
# Generate confidence scores (floats between 0 and 1)
conf = np.random.rand(n_samples)
# Generate binary correct labels with some correlation to confidence
correct = (conf + np.random.randn(n_samples) * 0.3 > 0.5).astype(int)
# Ensure we have both classes
correct[0] = 0
correct[1] = 1
ARGS = {
"conf": conf,
"correct": correct,
"n_boot": 100,
"seed": 42,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, sklearn — 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
|
| cell_key |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/analyze_saturation.py code served (permissive licence) · get_code("e74a0d9747da0dff") 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 torch.nn as nn
torch.manual_seed(0)
# The function cell_key takes model_id and condition strings and concatenates them
# No complex objects needed - just string parameters
ARGS = {
'model_id': 'bert-base-uncased',
'condition': 'control'
}
- 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_answer_mean_log_prob |
Ran ran, honoured the contract we drafted |
synthiumjp/koriat/collect_data.py code served (permissive licence) · get_code("5addac37744dd1ea") 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 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 torch
torch.manual_seed(0)
# Construct a valid response object with logprobs data
response = {
'choices': [
{
'logprobs': {
'token_logprobs': [-0.5, -1.2, -0.8, -0.3, None, -0.9]
}
}
]
}
ARGS = {
'response': response
}
- 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 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
|
| count_sentences |
Ran ran, honoured the contract we drafted |
synthiumjp/koriat/build_cues.py code served (permissive licence) · get_code("e2d97d94e829a875") 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 re
def count_sentences(text: str) -> int:
"""NLTK sent_tokenize count per pre-reg."""
if not isinstance(text, str) or not text.strip():
return 0
try:
return len(sent_tokenize(text))
except Exception:
return max(1, len([s for s in re.split('[.!?]+', text) if s.strip()]))
# Mock sent_tokenize since NLTK may not be available
def sent_tokenize(text: str):
"""Simple mock tokenizer that splits on sentence delimiters."""
sentences = re.split(r'[.!?]+', text)
return [s.strip() for s in sentences if s.strip()]
# Test cases with various text inputs
ARGS = {
"text": "Hello world. This is a test! How are you? I am fine."
}
- 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_words |
Ran ran, honoured the contract we drafted |
synthiumjp/koriat/build_cues.py code served (permissive licence) · get_code("3ede3ad4d2b8d09f") 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Read the function body:
# - It checks if text is a str
# - It calls text.split() which splits on whitespace
# - It returns len() of the result
# The function takes only one parameter: text (str)
# Create valid arguments for count_words
ARGS = {
"text": "hello world this is a test"
}
- 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 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
|
| format_prompt_koriat |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/inference_engine_koriat.py code served (permissive licence) · get_code("05f58a15d3f4747a") 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 torch.nn as nn
torch.manual_seed(0)
# The function format_prompt_koriat takes:
# - model_type: str
# - system_text: str
# - user_text: str
#
# It simply checks model_type and formats strings, returning a formatted prompt.
# No actual models, tensors, or complex objects are used.
ARGS = {
'model_type': 'llama31_instruct',
'system_text': 'You are a helpful assistant.',
'user_text': 'What is the capital of France?'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_first_token_top1_prob |
Ran ran, honoured the contract we drafted |
synthiumjp/koriat/collect_data.py code served (permissive licence) · get_code("f9e101d37b10cfc4") 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 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 math
# Construct a valid response dict that matches what the function expects
# The function accesses response['choices'][0]['logprobs']['top_logprobs']
# where top_logprobs is a list of dicts mapping tokens to logprob values
response = {
'choices': [
{
'logprobs': {
'top_logprobs': [
{
'token_a': -0.5,
'token_b': -1.2,
'token_c': -2.0,
}
]
}
}
]
}
ARGS = {
'response': response
}
- 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
|
| get_item_order_for_cell |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/collect_saturation.py code served (permissive licence) · get_code("666aff36acf8d0cc") 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. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
ARGS = {
"model_idx": 0,
"cond_idx": 1,
"n_items": 5,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_system_prompt |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/inference_engine_koriat.py code served (permissive licence) · get_code("3e2f19601a37f1ae") 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
# Set seed for reproducibility
torch.manual_seed(0)
# The function takes a single parameter: condition (int)
# Looking at the function body:
# - It checks if condition == 1, returns SYSTEM_C1
# - It checks if condition == 2, returns SYSTEM_C2
# - Otherwise raises ValueError
# So we need to pass a valid condition value (1 or 2)
ARGS = {
'condition': 1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_user_prompt |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/inference_engine_koriat.py code served (permissive licence) · get_code("d0ab8a8a4013a4dc") 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 get_user_prompt(question: str) -> str:
USER_TEMPLATE = '{question}\n\nRespond in exactly this format:\nANSWER: [your answer]\nCONFIDENCE: [integer 0-100]'
return USER_TEMPLATE.format(question=question)
ARGS = {
"question": "What is the capital of France?"
}
- 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
|
| is_degenerate_loop |
Ran ran, violated the contract we drafted |
synthiumjp/koriat/collect_saturation.py code served (permissive licence) · get_code("2f3a94d6eebbc66d") 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.
# Setup code for is_degenerate_loop function
# Construct test arguments
# The function takes:
# 1. text: str - a string to check for degenerate loops
# 2. min_repeat_len: int - minimum repeat length (default 10)
# Create a test case with a degenerate loop - a pattern repeated 3+ times
# that occupies more than 50% of the text
degenerate_text = "hello" * 15 # "hello" repeated 15 times, each chunk is 5 chars
# Create a non-degenerate case
non_degenerate_text = "abcdefghijklmnopqrstuvwxyz"
ARGS = {
"text": degenerate_text,
"min_repeat_len": 10
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_data |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/analyze_saturation.py code served (permissive licence) · get_code("fe66c3ace737d793") 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 pandas as pd
from pathlib import Path
import tempfile
import os
# Create a temporary parquet file with the expected number of rows
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir) / 'raw_responses.parquet'
# Create a DataFrame with 8384 rows
df = pd.DataFrame({
'col1': range(8384),
'col2': ['value'] * 8384,
'col3': [1.0] * 8384
})
# Save it to parquet
df.to_parquet(temp_path)
# Define ARGS
ARGS = {
'path': temp_path
}
- 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
|
| load_existing_keys |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/collect_data_v2.py code served (permissive licence) · get_code("891d4784222a521c") 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 set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
from pathlib import Path
import pandas as pd
import tempfile
import os
# Create a temporary directory and parquet file for testing
temp_dir = tempfile.mkdtemp()
output_file = Path(temp_dir) / "test_output.parquet"
# Create a sample DataFrame with the expected columns
df = pd.DataFrame({
'model': ['model_a', 'model_b', 'model_a'],
'item_id': [1, 2, 3],
'condition': ['new', 'used', 'refurbished']
})
# Save it as parquet
df.to_parquet(output_file)
# Define ARGS
ARGS = {
'output_file': output_file
}
- 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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_items |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/collect_data_v2.py code served (permissive licence) · get_code("7a504a494e2c9480") 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 json
import tempfile
from pathlib import Path
# Create a temporary directory and file for the test
temp_dir = tempfile.mkdtemp()
items_file = Path(temp_dir) / "items_v5.json"
# Create valid test data with the required 'question' field
test_data = {
"items": [
{
"question": "What is the capital of France?",
"answer": "Paris"
},
{
"question": "What is 2 + 2?",
"answer": "4"
}
]
}
# Write the test data to the temporary file
with open(items_file, 'w') as f:
json.dump(test_data, f)
ARGS = {
"items_file": items_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| parse_response |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/collect_data.py code served (permissive licence) · get_code("9cf19b493bfa49a0") 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 re
ANSWER_RE = re.compile('ANSWER:\\s*(.+?)(?:\\n|$)', re.IGNORECASE)
CONFIDENCE_RE = re.compile('CONFIDENCE:\\s*(\\d+(?:\\.\\d+)?)', re.IGNORECASE)
def parse_response(raw_text):
"""
Returns (answer, confidence, failure_reason).
failure_reason is None on success, else a categorical string.
Categories (pre-registered):
'no_answer_field' - ANSWER: line not found
'no_confidence_field' - CONFIDENCE: line not found
'confidence_out_range'- confidence not in [0, 100]
'empty_answer' - ANSWER field present but blank
"""
answer, confidence, reason = (None, None, None)
m_ans = ANSWER_RE.search(raw_text)
if not m_ans:
return (None, None, 'no_answer_field')
answer = m_ans.group(1).strip()
if not answer:
return (None, None, 'empty_answer')
m_conf = CONFIDENCE_RE.search(raw_text)
if not m_conf:
return (answer, None, 'no_confidence_field')
confidence = float(m_conf.group(1))
if not 0 <= confidence <= 100:
return (answer, confidence, 'confidence_out_range')
return (answer, confidence, None)
# Setup valid test cases for parse_response
raw_text_valid = """
The model performed well.
ANSWER: The answer is 42
CONFIDENCE: 85.5
Additional notes here.
"""
ARGS = {
'raw_text': raw_text_valid
}
- 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
|
| parse_response |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/collect_data_v2.py code served (permissive licence) · get_code("51e6f27b5ffb8628") 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 re
ANSWER_RE = re.compile('ANSWER:\\s*(.+?)(?:\\n|$)', re.IGNORECASE)
CONFIDENCE_RE = re.compile('CONFIDENCE:\\s*(\\d+(?:\\.\\d+)?)', re.IGNORECASE)
def parse_response(raw_text: str):
"""
Returns (answer, confidence, failure_reason).
Categories match pre-reg §"Data inclusion and exclusion":
'no_answer_field', 'empty_answer', 'no_confidence_field',
'confidence_non_numeric', 'confidence_out_of_range'
"""
m_ans = ANSWER_RE.search(raw_text)
if not m_ans:
return (None, None, 'no_answer_field')
answer = m_ans.group(1).strip()
if not answer:
return (None, None, 'empty_answer')
m_conf = CONFIDENCE_RE.search(raw_text)
if not m_conf:
return (answer, None, 'no_confidence_field')
try:
confidence = float(m_conf.group(1))
except ValueError:
return (answer, None, 'confidence_non_numeric')
if not 0 <= confidence <= 100:
return (answer, confidence, 'confidence_out_of_range')
return (answer, confidence, None)
ARGS = {
'raw_text': 'ANSWER: The capital of France is Paris\nCONFIDENCE: 95.5'
}
- 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
|
| success_subset |
Ran ran; our contract draft was wrong, not the code |
synthiumjp/koriat/analyze_saturation.py code served (permissive licence) · get_code("6616d82086f8b3eb") 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 pandas as pd
# Create a sample DataFrame with parse_status column
df = pd.DataFrame({
'parse_status': ['success', 'failure', 'success', 'error', 'success'],
'data': [1, 2, 3, 4, 5],
'value': ['a', 'b', 'c', 'd', 'e']
})
ARGS = {
'df': df
}
- 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
|
| count_core40_literal |
Not yet run unverified (harvested, no recorded run) |
synthiumjp/koriat/build_cues.py code served (permissive licence) · get_code("c06bf62e06c2e0d9") How it ran |
| fig2_e5_scatter |
Not yet run unverified (harvested, no recorded run) |
synthiumjp/koriat/generate_figures.py code served (permissive licence) · get_code("1c88906a445f81d0") How it ran |