| check_parallel |
Ran ran, violated the contract we drafted |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_bfcl_scoring.py code served (permissive licence) · get_code("6b6976449b748bbb") 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
torch.manual_seed(0)
# Construct model_calls: list of dicts representing function calls with their parameters
model_calls = [
{
"function_1": {
"param_a": 10,
"param_b": "test",
"param_c": [1, 2, 3]
}
},
{
"function_2": {
"param_x": 3.14,
"param_y": "hello"
}
},
{
"function_1": {
"param_a": 10,
"param_b": "TEST",
"param_c": [1, 2, 3]
}
}
]
# Construct ground_truth: list of dicts with expected calls and acceptable parameter values
ground_truth = [
{
"function_1": {
"param_a": 10,
"param_b": ["test", "TEST"],
"param_c": [[1, 2, 3]]
}
},
{
"function_2": {
"param_x": [3.14],
"param_y": "hello"
}
}
]
ARGS = {
"model_calls": model_calls,
"ground_truth": ground_truth
}
- 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 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
|
| check_simple |
Ran ran, violated the contract we drafted |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_bfcl_scoring.py code served (permissive licence) · get_code("3ea4a2a1e73508a4") 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
from typing import Any, Dict, List, Optional
torch.manual_seed(0)
# Construct valid arguments for check_simple function
# The function takes:
# - model_calls: List[Dict] - a list of call dictionaries
# - ground_truth: List[Dict] - a list of expected call dictionaries
# Each dict in model_calls and ground_truth has format:
# {function_name: {param_name: param_value, ...}}
# Create model_calls - simulating actual model calls
model_calls = [
{
"forward": {
"input_size": 10,
"hidden_size": 20,
"activation": "relu",
"dropout": 0.5
}
},
{
"backward": {
"loss": 0.123,
"learning_rate": 0.001
}
},
{
"compute": {
"batch_size": 32,
"num_layers": 3,
"output_dim": 5
}
}
]
# Create ground_truth - expected call signature
# This should match one of the calls in model_calls
ground_truth = [
{
"forward": {
"input_size": 10,
"hidden_size": [20, 25], # acceptable values
"activation": ["relu", "RELU"], # case-insensitive match
"dropout": "" # optional parameter
}
}
]
ARGS = {
"model_calls": model_calls,
"ground_truth": ground_truth
}
- 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
|
| cos_accept_prob |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/collaborative_verification.py code served (permissive licence) · get_code("c670a899ae34286a") 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)
# Create small probability distributions as tensors
# p and q should be probability distributions (sum to 1), indexed by token
# We'll create distributions over a vocabulary of size 4
vocab_size = 4
# Target distribution p
p = torch.tensor([0.1, 0.2, 0.3, 0.4])
# Draft distribution q
q = torch.tensor([0.15, 0.25, 0.35, 0.25])
# Token index x to evaluate
x = 2
# Interpolation coefficient lambda
lam = 0.7
ARGS = {
"p": p,
"q": q,
"x": x,
"lam": lam,
}
- 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
|
| eta_allowed_set |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/truncation_verification.py code served (permissive licence) · get_code("2f8c7cddf232700c") 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 Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
import torch
torch.manual_seed(0)
# Create a probability distribution tensor
# Values should sum to 1 and be in [0, 1]
p = torch.tensor([0.5, 0.3, 0.15, 0.05])
epsilon = 0.1
delta = 1.0
ARGS = {
"p": p,
"epsilon": epsilon,
"delta": delta,
}
- 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 Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_answer |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_math_scoring.py code served (permissive licence) · get_code("69e80a64efad173b") 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 re
def extract_boxed_answer(solution: str) -> str:
"""Extract the inside of the last ``\\boxed{...}`` block in ``solution``.
Handles nested braces. Falls back to a ``\\boxed <something>`` shape
(no braces) before giving up.
"""
boxed_pattern = '\\\\boxed\\{'
matches = list(re.finditer(boxed_pattern, solution))
if not matches:
alt_match = re.search('\\\\boxed\\s*(\\S+)', solution)
if alt_match:
return alt_match.group(1)
return ''
last_match = matches[-1]
start = last_match.end()
brace_count = 1
pos = start
while pos < len(solution) and brace_count > 0:
if solution[pos] == '{':
brace_count += 1
elif solution[pos] == '}':
brace_count -= 1
pos += 1
if brace_count == 0:
return solution[start:pos - 1].strip()
return ''
_RE_HASH_MARK = re.compile('####\\s*([\\d,\\.\\-]+)')
def extract_answer(response: str) -> str:
"""Extract the model's answer from a response string.
Tries in order: ``\\boxed{}``, ``#### X`` (GSM8K marker),
"the answer is X", ``= X`` at end of line, ``$...$`` at the end,
``**X**``. Returns ``""`` if no pattern matches.
"""
boxed = extract_boxed_answer(response)
if boxed:
return boxed
m = _RE_HASH_MARK.search(response)
if m:
return m.group(1).replace(',', '').strip()
m = re.search('[Tt]he\\s+(?:final\\s+)?answer\\s+is[:\\s]+([^\\.\\n]+)', response)
if m:
return m.group(1).strip()
matches = re.findall('=\\s*([^\\n=]+?)\\s*$', response, re.MULTILINE)
if matches:
return matches[-1].strip()
m = re.search('\\$([^$]+)\\$\\s*\\.?\\s*$', response)
if m:
return m.group(1).strip()
m = re.search('\\*\\*([^*]+)\\*\\*\\s*\\.?\\s*$', response)
if m:
return m.group(1).strip()
return ''
ARGS = {
'response': 'The answer is 42'
}
- 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
|
| extract_boxed_answer |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_math_scoring.py code served (permissive licence) · get_code("cd23a3bbdde761c5") 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 re
def extract_boxed_answer(solution: str) -> str:
"""Extract the inside of the last ``\\boxed{...}`` block in ``solution``.
Handles nested braces. Falls back to a ``\\boxed <something>`` shape
(no braces) before giving up.
"""
boxed_pattern = '\\\\boxed\\{'
matches = list(re.finditer(boxed_pattern, solution))
if not matches:
alt_match = re.search('\\\\boxed\\s*(\\S+)', solution)
if alt_match:
return alt_match.group(1)
return ''
last_match = matches[-1]
start = last_match.end()
brace_count = 1
pos = start
while pos < len(solution) and brace_count > 0:
if solution[pos] == '{':
brace_count += 1
elif solution[pos] == '}':
brace_count -= 1
pos += 1
if brace_count == 0:
return solution[start:pos - 1].strip()
return ''
# Test case 1: Standard boxed answer with braces
solution_1 = r"The answer is \boxed{42}"
# Test case 2: Nested braces
solution_2 = r"The answer is \boxed{x^{2} + y}"
# Test case 3: Multiple boxed answers (should extract last one)
solution_3 = r"First \boxed{wrong} then \boxed{correct}"
# Test case 4: Boxed without braces (fallback pattern)
solution_4 = r"The answer is \boxed 123"
# Test case 5: No boxed answer
solution_5 = "No boxed answer here"
# Use the first test case
ARGS = {
"solution": solution_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 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
|
| extract_code |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_mbppplus_scoring.py code served (permissive licence) · get_code("6802b1b27591fad2") 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 re
from typing import List, Optional, Sequence, Tuple
# The function takes a single parameter: response (a string)
# Let's analyze what the function does:
# - It searches for Python code blocks using regex patterns
# - It looks for markdown code blocks with ```python``` or generic `````` blocks
# - It extracts function definitions using regex
# - It processes the response string line by line
# We need to create a valid response string that could contain Python code
response_text = """
Here is a Python function that does something useful:
def hello_world(name: str) -> str:
import sys
from typing import Optional
return f"Hello, {name}!"
def another_function(x: int) -> int:
def nested(y):
return y * 2
return nested(x)
This is some explanation text.
"""
ARGS = {
"response": response_text
}
- 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
|
| extract_letter |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_include_scoring.py code served (permissive licence) · get_code("b84cbed5d59e4b03") 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 re
_RE_ANSWER_IS = re.compile('answer is \\(?([A-D])\\)?', re.IGNORECASE)
_RE_ANSWER_COLON = re.compile('[aA]nswer:\\s*\\(?([A-D])\\)?')
_RE_LAST_LETTER = re.compile('\\b([A-D])\\b(?!.*\\b[A-D]\\b)', re.IGNORECASE | re.DOTALL)
def extract_letter(response: str):
"""Return the predicted answer letter ``A``-``D`` or ``None``.
Tries in order: ``answer is X`` (with optional parens), ``Answer: X``,
last standalone ``A-D`` letter in the response.
"""
m = _RE_ANSWER_IS.search(response)
if m:
return m.group(1).upper()
m = _RE_ANSWER_COLON.search(response)
if m:
return m.group(1).upper()
m = _RE_LAST_LETTER.search(response)
if m:
return m.group(1).upper()
return None
ARGS = {
"response": "The answer is (B)"
}
- 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
|
| extract_ref_answer |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_math_scoring.py code served (permissive licence) · get_code("90d3d9ce134f7036") 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 re
from typing import Optional
# Test case 1: text with \boxed{...}
text_with_boxed = r"The solution is \boxed{42}"
# Test case 2: text with #### marker
text_with_hash = "#### 3.14159"
# Test case 3: text with numeric values but no boxed or hash
text_with_nums = "The answer involves 100 and 200 items, final result is 999"
# Test case 4: text with nothing
text_empty = "No answer here"
# Test case 5: text with nested braces in boxed
text_nested = r"Result: \boxed{x^{2} + y^{2} = 25}"
# Test case 6: text with comma-separated numbers
text_with_comma = "#### 1,000.50"
# Choose one representative test case
ARGS = {
"text": r"The solution is \boxed{42}"
}
- 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
|
| lenience_accept_prob |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/collaborative_verification.py code served (permissive licence) · get_code("849ccf086024efa8") 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)
# Create small probability distributions over a vocabulary
# p and q are target and draft distributions respectively
vocab_size = 4
p = torch.softmax(torch.randn(vocab_size), dim=0)
q = torch.softmax(torch.randn(vocab_size), dim=0)
# Ensure p and q have non-zero values at index x to avoid division issues
p[0] = 0.5
q[0] = 0.3
# The drafted token index
x = 0
# Lenience factor in (0, 1]
lenience = 0.8
ARGS = {
"p": p,
"q": q,
"x": x,
"lenience": lenience,
}
- 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
|
| lenience_yield_distribution |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/collaborative_verification.py code served (permissive licence) · get_code("89141c7bf97aef69") 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 Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create small probability tensors
# p and q should be probability distributions (sum to 1, values in [0,1])
p = torch.tensor([0.4, 0.3, 0.2, 0.1])
q = torch.tensor([0.35, 0.35, 0.2, 0.1])
lenience = 1.5
ARGS = {
"p": p,
"q": q,
"lenience": lenience,
}
- 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 Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| min_p_allowed_set |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/truncation_verification.py code served (permissive licence) · get_code("5fb627688b54a339") 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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Create a probability distribution tensor
# Shape: (batch_size=2, vocab_size=4) representing probabilities for tokens
p = torch.tensor([
[0.5, 0.3, 0.15, 0.05],
[0.2, 0.4, 0.25, 0.15]
], dtype=torch.float32)
# Normalize to ensure valid probability distribution
p = p / p.sum(dim=1, keepdim=True)
# p_base parameter - threshold for min-p filtering
p_base = 0.1
ARGS = {
"p": p,
"p_base": p_base
}
- 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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_function_calls |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_bfcl_scoring.py code served (permissive licence) · get_code("458f565f4a335155") 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 ast
# Analyze the function signature and body
# parse_function_calls(model_output: str) -> List[Dict[str, Dict]]
# The function takes a single parameter: model_output (a string)
# It processes the string by:
# 1. Stripping it
# 2. Removing markdown code fences (```)
# 3. Wrapping bare calls in []
# 4. Parsing it as Python AST
# 5. Extracting function calls and their parameters
# We need to provide a model_output string that contains valid function calls
# Let's create several test cases:
ARGS = {
"model_output": """[
func_name(p=1, q=2),
module.method(x=10, y='hello'),
another_call(a=3.14, b=[1, 2, 3])
]"""
}
- 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
|
| run_pass_at_1 |
Ran ran, honoured the contract we drafted |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_mbppplus_scoring.py code served (permissive licence) · get_code("1d38b7baaed5c39c") 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 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 re
# Minimal valid arguments for run_pass_at_1
code_with_function = '''
def add(a, b):
return a + b
'''
test_list = [
'assert add(2, 3) == 5',
'assert add(-1, 1) == 0',
]
test_imports = [
'import math',
]
timeout = 10
ARGS = {
'code': code_with_function,
'test_list': test_list,
'test_imports': test_imports,
'timeout': timeout,
}
- 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 int — 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
|
| score_include |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_include_scoring.py code served (permissive licence) · get_code("391a4d80e3c9c4ff") 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 random
from typing import Optional, Sequence
def extract_letter(response: str) -> Optional[str]:
import re
_RE_ANSWER_IS = re.compile('answer is \\(?([A-D])\\)?', re.IGNORECASE)
_RE_ANSWER_COLON = re.compile('[aA]nswer:\\s*\\(?([A-D])\\)?')
_RE_LAST_LETTER = re.compile('\\b([A-D])\\b(?!.*\\b[A-D]\\b)', re.IGNORECASE | re.DOTALL)
m = _RE_ANSWER_IS.search(response)
if m:
return m.group(1).upper()
m = _RE_ANSWER_COLON.search(response)
if m:
return m.group(1).upper()
m = _RE_LAST_LETTER.search(response)
if m:
return m.group(1).upper()
return None
def score_include(response: str, gold_letter: str, options: Optional[Sequence[str]]=None, rng: Optional[random.Random]=None) -> tuple:
gold = (gold_letter or '').strip().upper()
pred = extract_letter(response)
if pred is None:
rng = rng or random
n = len(options) if options else 4
pred = chr(ord('A') + rng.randrange(max(1, n)))
return (pred == gold, pred)
ARGS = {
'response': 'The answer is B',
'gold_letter': 'B',
'options': ['Option A', 'Option B', 'Option C', 'Option D'],
'rng': random.Random(42)
}
- 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
|
| score_mbppplus |
Ran ran; our contract draft was wrong, not the code |
ZhouYuxuanYX/Fast-HSD/fast_hsd/benchmarks/_mbppplus_scoring.py code served (permissive licence) · get_code("67fb8c433b33b902") 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 torch
import numpy as np
from typing import Sequence, Optional
# Construct arguments for score_mbppplus function
response = """
def add_numbers(a, b):
return a + b
"""
test_list = [
"assert add_numbers(2, 3) == 5",
"assert add_numbers(0, 0) == 0",
"assert add_numbers(-1, 1) == 0",
]
test_imports = [
"import math",
]
timeout = 10
ARGS = {
"response": response,
"test_list": test_list,
"test_imports": test_imports,
"timeout": timeout,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| speccascade_accepts |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ZhouYuxuanYX/Fast-HSD/fast_hsd/core/truncation_verification.py code served (permissive licence) · get_code("54c8678c38c21902") 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
torch.manual_seed(0)
# Create a small probability tensor
# The function uses p.max() and indexing p[x]
p = torch.tensor([0.1, 0.5, 0.3, 0.2], dtype=torch.float32)
# Create an index x that is valid for indexing into p
x = 1
# Create a valid p_base value
p_base = 0.5
ARGS = {
"p": p,
"x": x,
"p_base": p_base,
}
- 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 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
|