| aligned_predicted_rows |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
18277390221/EmoStance/src/latent_stance_control/generate_and_score_controls.py code served (permissive licence) · get_code("fc20078984ec33f7") 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 torch
import numpy as np
# Construct valid arguments for aligned_predicted_rows
# Create gold_rows - list of dicts with dialogue_id and turn_id
gold_rows = [
{'dialogue_id': 'dial_001', 'turn_id': '0', 'text': 'hello'},
{'dialogue_id': 'dial_001', 'turn_id': '1', 'text': 'response'},
{'dialogue_id': 'dial_002', 'turn_id': '0', 'text': 'hi there'},
]
# Create predicted_rows - list of dicts with dialogue_id and turn_id
predicted_rows = [
{'dialogue_id': 'dial_001', 'turn_id': '0', 'text': 'hello_pred'},
{'dialogue_id': 'dial_001', 'turn_id': '1', 'text': 'response_pred'},
{'dialogue_id': 'dial_002', 'turn_id': '0', 'text': 'hi there_pred'},
{'dialogue_id': 'dial_003', 'turn_id': '2', 'text': 'other_pred'},
]
# Create indices that select aligned rows from predicted_rows
# indices should select rows from predicted_rows that match the gold_rows in order
indices = [0, 1, 2]
ARGS = {
'gold_rows': gold_rows,
'predicted_rows': predicted_rows,
'indices': indices,
}
- 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 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
|
| as_float_list |
Ran ran, violated the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/generate_and_rerank.py code served (permissive licence) · get_code("ada7b9c6281d9c8e") 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 numpy as np
from typing import Any, List
def as_float_list(value: Any) -> List[float]:
return np.asarray(value, dtype=np.float32).astype(float).tolist()
# Test with various input types that the function should handle
ARGS = {
"value": [1.5, 2.3, 3.7, 4.2]
}
- 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 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
|
| canonical_model_name |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/build_human_audit.py code served (permissive licence) · get_code("53277ad72025e469") 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 takes a single string parameter and returns a canonical model name
# Based on the function body, it:
# 1. Converts the input string to lowercase
# 2. Checks for various substrings ('claude', 'sonnet', 'deepseek', 'gemini', 'gpt', 'openai')
# 3. Returns a canonical name or the original name if no matches
ARGS = {
'name': 'claude-3-sonnet-20240229'
}
- 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
|
| choose_dir |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/validate_audit_outputs.py code served (permissive licence) · get_code("2bdfc3cbe03469b0") 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 PosixPath. 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 tempfile
import shutil
# Create a temporary directory structure with the required HTML files
tmpdir = tempfile.mkdtemp()
out_dir = Path(tmpdir)
# Create the main html directory with annotator_01.html
html_dir = out_dir / 'html'
html_dir.mkdir(parents=True, exist_ok=True)
(html_dir / 'annotator_01.html').touch()
ARGS = {
'out_dir': out_dir,
'allow_smoke_test': False,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
|
| clean_ed_text |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/build_human_audit.py code served (permissive licence) · get_code("1a39fe5d98dfbdbb") 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 = {
'text': 'hello_comma_world_comma_test'
}
- 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
|
| confidence_bin |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/aggregate_human_audit.py code served (permissive licence) · get_code("132a6bdf7b2a4be4") 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)
# The function confidence_bin takes a single parameter 'value'
# It handles None, empty strings, 'NA', numeric values, and specific string patterns
# Let's test with a numeric value that will be converted to int and binned
ARGS = {
'value': 3
}
- 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
|
| extract_packages |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/validate_audit_outputs.py code served (permissive licence) · get_code("515052b80ca3cfbe") 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
from pathlib import Path
# Create a temporary HTML file with embedded audit-data JSON
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "audit.html"
# Write HTML content with embedded JSON in the expected format
html_content = '''<!DOCTYPE html>
<html>
<head>
<title>Audit Report</title>
</head>
<body>
<script type="application/json" id="audit-data">
[
{
"package": "example-package",
"version": "1.0.0",
"severity": "high",
"description": "Test package data"
},
{
"package": "another-package",
"version": "2.1.0",
"severity": "medium",
"description": "Another test entry"
}
]
</script>
</body>
</html>
'''
temp_path.write_text(html_content, encoding='utf-8')
ARGS = {
'path': temp_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
|
| majority_label |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/aggregate_human_audit.py code served (permissive licence) · get_code("ca7274aa6d3462df") 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.
from collections import Counter
# Construct valid arguments for majority_label function
# The function takes a list of strings (labels) and returns a string
# Test case 1: labels that trigger 'invalid' (2+ 'clearly_unreasonable')
labels_invalid = ['clearly_unreasonable', 'clearly_unreasonable', 'reasonable']
# Test case 2: labels that trigger 'ambiguous' (2+ 'questionable_but_acceptable')
labels_ambiguous = ['questionable_but_acceptable', 'questionable_but_acceptable', 'reasonable']
# Test case 3: labels that trigger 'ambiguous' (one of each type)
labels_ambiguous_mixed = ['reasonable', 'questionable_but_acceptable', 'clearly_unreasonable']
# Test case 4: labels that trigger 'valid' (default case)
labels_valid = ['reasonable', 'reasonable', 'reasonable']
# Use the first test case
ARGS = {
'labels': labels_invalid
}
- 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
|
| ngrams |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/evaluate_text_quality.py code served (permissive licence) · get_code("18f955e7c6c0319f") 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 torch
import numpy as np
from typing import Any, Dict, Iterable, List, Sequence, Tuple
torch.manual_seed(0)
# Analyze the function:
# - tokens: Sequence[str] - needs to be a sequence of strings
# - n: int - needs to be a positive integer
# The function creates n-grams from the token sequence
ARGS = {
"tokens": ["hello", "world", "how", "are", "you"],
"n": 2
}
- 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 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
|
| normalize_key |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/build_human_audit.py code served (permissive licence) · get_code("8e6e5a4c2296776f") 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 normalize_key(value: str) -> str:
return re.sub('[^a-z0-9]+', '', value.lower())
ARGS = {
'value': 'Hello-World_123!@#'
}
- 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
|
| normalize_role |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/data.py code served (permissive licence) · get_code("e69019ecdf41bb34") 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 = {
'role': 'USER',
'turn_id': 0
}
- 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
|
| onehot |
Ran ran, honoured the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/counterfactual_cluster_controls.py code served (permissive licence) · get_code("bab0cb1529f07ad7") 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 torch
import numpy as np
# Analyze the function:
# - cluster: int, used as index into arr
# - num_clusters: int, used to create list of size num_clusters
ARGS = {
"cluster": 2,
"num_clusters": 5,
}
- 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 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_int_list |
Ran ran, honoured the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/counterfactual_cluster_controls.py code served (permissive licence) · get_code("b221cf53f439a643") 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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
ARGS = {
'value': '1, 2, 3, 4',
'allow_all': False,
}
- 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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_splits |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/apply_c7_gate_prepared.py code served (permissive licence) · get_code("2a82d2b7c8c85f48") 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 torch
import numpy as np
torch.manual_seed(0)
# The function parse_splits takes a string value and splits it by commas,
# stripping whitespace from each item and filtering out empty strings.
# It returns a list of strings.
# Test case 1: Simple comma-separated values
test_value = "apple, banana, cherry"
ARGS = {
"value": test_value
}
- 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 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_splits |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/counterfactual_cluster_controls.py code served (permissive licence) · get_code("edff946a345050ec") 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 torch
import numpy as np
def parse_splits(value: str) -> list:
return [item.strip() for item in value.split(',') if item.strip()]
ARGS = {
"value": "apple, banana, cherry"
}
- 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 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
|
| read_export |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/aggregate_human_audit.py code served (permissive licence) · get_code("bd764a8b6e53bf96") 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 json
from pathlib import Path
# Create temporary files for testing
temp_dir = tempfile.mkdtemp()
# Create a test JSONL file
jsonl_path = Path(temp_dir) / "test.jsonl"
with open(jsonl_path, 'w', encoding='utf-8') as f:
f.write(json.dumps({"id": 1, "name": "Alice"}) + '\n')
f.write(json.dumps({"id": 2, "name": "Bob"}) + '\n')
# Create a test CSV file
csv_path = Path(temp_dir) / "test.csv"
with open(csv_path, 'w', encoding='utf-8', newline='') as f:
f.write("id,name\n")
f.write("1,Alice\n")
f.write("2,Bob\n")
# Define ARGS with a valid Path argument
ARGS = {
"path": jsonl_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
|
| read_json |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/data.py code served (permissive licence) · get_code("f7e52bef516b48b7") 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 json
import tempfile
from pathlib import Path
# Create a temporary JSON file for testing
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test.json"
# Write some test data to the JSON file
test_data = {
"key1": "value1",
"key2": [1, 2, 3],
"key3": {"nested": "object"}
}
with temp_file.open('w', encoding='utf-8') as f:
json.dump(test_data, f)
# Define ARGS with the path parameter
ARGS = {
"path": temp_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 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
|
| read_jsonl |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/evaluate_text_quality.py code served (permissive licence) · get_code("33d006261b75ac74") 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 JSONL file with test data
with tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False, encoding='utf-8') as f:
temp_path = f.name
f.write(json.dumps({"key1": "value1", "key2": 42}) + '\n')
f.write(json.dumps({"key1": "value2", "key2": 43}) + '\n')
f.write(json.dumps({"key1": "value3", "key2": 44}) + '\n')
ARGS = {
'path': temp_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
|
| read_records |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/data.py code served (permissive licence) · get_code("d0085de5b59c608f") 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 json
import csv
from pathlib import Path
# Create temporary test files for different formats
# Create a temporary directory
tmpdir = tempfile.mkdtemp()
# Create a JSONL file
jsonl_path = Path(tmpdir) / "test.jsonl"
with open(jsonl_path, 'w') as f:
f.write('{"id": 1, "name": "Alice"}\n')
f.write('{"id": 2, "name": "Bob"}\n')
# Create a JSON file with a list
json_list_path = Path(tmpdir) / "test_list.json"
with open(json_list_path, 'w') as f:
json.dump([{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}], f)
# Create a JSON file with a dict containing 'records' key
json_dict_path = Path(tmpdir) / "test_dict.json"
with open(json_dict_path, 'w') as f:
json.dump({"records": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]}, f)
# Create a CSV file
csv_path = Path(tmpdir) / "test.csv"
with open(csv_path, 'w', newline='') as f:
writer = csv.DictWriter(f, fieldnames=['id', 'name'])
writer.writeheader()
writer.writerow({'id': '1', 'name': 'Alice'})
writer.writerow({'id': '2', 'name': 'Bob'})
# Use JSONL path as the primary test case
ARGS = {
"path": str(jsonl_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 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
|
| safe_ppl |
Ran ran, honoured the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/evaluate_generator_control.py code served (permissive licence) · get_code("822eaf0381d83a9d") 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
def safe_ppl(loss: float) -> float:
return float(math.exp(loss)) if loss < 50 else float('inf')
# Test with a small loss value
ARGS = {
"loss": 2.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 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
|
| select_rows |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/generate_and_score_controls.py code served (permissive licence) · get_code("4c3a9c57b2b6fc80") 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 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 random
from typing import List, Tuple
# Create sample row data
rows = [
{"id": 1, "text": "example one"},
{"id": 2, "text": "example two"},
{"id": 3, "text": "example three"},
{"id": 4, "text": "example four"},
{"id": 5, "text": "example five"},
]
ARGS = {
"rows": rows,
"max_examples": 3,
"seed": 42,
"strategy": "random",
}
- 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 2, 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
|
| split_seed |
Ran ran, honoured the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/generate_and_rerank.py code served (permissive licence) · get_code("e9dbc94f12bd1612") 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 numpy as np
def split_seed(seed: int, split: str, split_index: int) -> int:
return seed + split_index * 1009 + sum((ord(ch) for ch in split))
ARGS = {
"seed": 42,
"split": "train",
"split_index": 0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| tokenize |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/src/latent_stance_control/evaluate_text_quality.py code served (permissive licence) · get_code("c6e3fb7b29530122") 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 re
from typing import Any, Dict, Iterable, List, Sequence, Tuple
TOKEN_RE = re.compile("[A-Za-z0-9']+")
def tokenize(text: Any) -> List[str]:
return [m.group(0).lower() for m in TOKEN_RE.finditer(str(text or ''))]
# Setup code
ARGS = {
"text": "Hello world! This is a test123 string with some words."
}
- 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
|
| top1 |
Ran ran, violated the contract we drafted |
18277390221/EmoStance/src/latent_stance_control/generate_and_rerank.py code served (permissive licence) · get_code("6ced7b06093865a4") 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 numpy as np
import torch
# The function top1 takes a probability array/list and returns the index
# of the maximum value. It converts input to np.asarray with float64 dtype,
# then calls np.argmax on it.
# Simple test cases for the prob parameter:
# - List of floats
# - NumPy array
# - PyTorch tensor
# - Any array-like structure that can be converted to float64
# Let's use a simple list of probabilities as the most straightforward case
prob_values = [0.1, 0.7, 0.15, 0.05]
ARGS = {
"prob": prob_values
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| visible_ui_text |
Ran ran; our contract draft was wrong, not the code |
18277390221/EmoStance/data_eval/validate_audit_outputs.py code served (permissive licence) · get_code("3056de7b620e0ec4") 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 pathlib import Path
import tempfile
# Create a temporary HTML file with some content and an audit-data script tag
with tempfile.NamedTemporaryFile(mode='w', suffix='.html', delete=False, encoding='utf-8') as f:
temp_path = f.name
f.write("""
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Visible Content</h1>
<p>This is visible text.</p>
<script type="application/json" id="audit-data">{"hidden": "data", "more": "json"}</script>
<p>More visible content here.</p>
</body>
</html>
""")
path_obj = Path(temp_path)
ARGS = {
'path': path_obj
}
- 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
|
| adjust_c7_distribution |
Not yet run unverified (harvested, no recorded run) |
18277390221/EmoStance/src/latent_stance_control/apply_c7_gate_prepared.py code served (permissive licence) · get_code("fb7d3e0538660a38") How it ran |
| c7_block |
Not yet run unverified (harvested, no recorded run) |
18277390221/EmoStance/src/latent_stance_control/evaluate_c7_gate.py code served (permissive licence) · get_code("cd6d18ffdbbab682") How it ran |
| evaluate_split |
Not yet run unverified (harvested, no recorded run) |
18277390221/EmoStance/src/latent_stance_control/evaluate_generator_control.py code served (permissive licence) · get_code("7237fa9480febc69") How it ran |
| mix_active_prototype_vectors |
Not yet run unverified (harvested, no recorded run) |
18277390221/EmoStance/src/latent_stance_control/apply_c7_gate_prepared.py code served (permissive licence) · get_code("3467a918a3f3c7fb") How it ran |
| top_distribution |
Not yet run unverified (harvested, no recorded run) |
18277390221/EmoStance/src/latent_stance_control/evaluate_c7_gate.py code served (permissive licence) · get_code("7acf31f14da16743") How it ran |