| calculate_scores |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/01_collect/collect.py code served (permissive licence) · get_code("e138e6d169cd6c8f") 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 torch
import numpy as np
torch.manual_seed(0)
# Construct responses list
responses = [
{
'numeric_score': 1.5,
'effects': {
'econ': 2.0,
'dipl': -1.5,
'govt': 1.0,
'scty': 0.5
}
},
{
'numeric_score': 2.0,
'effects': {
'econ': -1.0,
'dipl': 2.5,
'govt': -0.5,
'scty': 1.5
}
},
{
'numeric_score': None,
'effects': {
'econ': 1.0,
'dipl': 1.0,
'govt': 1.0,
'scty': 1.0
}
},
{
'numeric_score': 0.5,
'effects': {
'econ': 0.0,
'dipl': 0.0,
'govt': 2.0,
'scty': -1.0
}
}
]
ARGS = {
'responses': responses
}
- 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 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
|
| call_once |
Ran ran on a synthesized input |
mbrcic/llm-political-steerability/ingestion/01_collect/collect.py code served (permissive licence) · get_code("c94a5e81b35313c8") 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 coroutine. 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 asyncio
from unittest.mock import AsyncMock, MagicMock
# Mock the acompletion function since it's imported from an external library
async def acompletion(model, messages, temperature):
"""Mock async completion function."""
mock_response = MagicMock()
mock_response.choices = [MagicMock()]
mock_response.choices[0].message = {
'content': 'This is a mock response from the LLM.'
}
return mock_response
# Inject the mock into the module scope so call_once can use it
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'acompletion', acompletion)
ARGS = {
'llm': 'gpt-4',
'messages': [
{'role': 'system', 'content': 'You are a helpful assistant.'},
{'role': 'user', 'content': 'Hello, what is 2+2?'}
],
'temperature': 0.7
}
- 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 coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
|
| classify_response |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_r3_ablations.py code served (permissive licence) · get_code("0b70c4ac9c9a6d88") 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
REFUSAL_PATTERNS = ["\\bI\\s+can'?t\\s+(share|express|provide|give)\\b", '\\bI\\s+(am\\s+)?not\\s+able\\s+to\\b', "\\bI\\s+(do\\s+not|don'?t)\\s+have\\s+(\\w+\\s+){0,4}(opinion|view|belief|preference|stance)s?\\b", '\\bsorry,?\\s+but\\b', '\\bas\\s+an\\s+AI\\b', '\\bI\\s+(must|should)\\s+remain\\s+neutral\\b', "\\bI\\s+won'?t\\b", '\\bI\\s+cannot\\s+(provide|share|give)\\b']
REFUSAL_RE = re.compile('|'.join(REFUSAL_PATTERNS), re.IGNORECASE)
def classify_response(resp: dict) -> tuple[int | None, str]:
error = resp.get('error')
parsed = str(resp.get('parsed_answer') or '')
raw = resp.get('raw_response')
score = resp.get('numeric_score')
if error is not None:
return (None, 'api_error')
if 'Unparseable' in parsed:
if raw and REFUSAL_RE.search(raw):
return (None, 'refusal')
return (None, 'unparseable')
if score == 0 and parsed == 'Neutral' and raw:
cleaned = raw.strip().strip('."\'').lower()
if cleaned != 'neutral':
if REFUSAL_RE.search(raw):
return (None, 'suspicious_neutral_prose')
if len(raw.split()) > 8:
return (None, 'suspicious_neutral_prose')
return (score, 'valid')
resp_valid = {
'error': None,
'parsed_answer': 'Yes',
'raw_response': 'This is a valid response',
'numeric_score': 1
}
ARGS = {
'resp': resp_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
|
| derive_counters |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_core.py code served (permissive licence) · get_code("c3eef67f6bcb2454") 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 torch
ARGS = {
"responses": [
{
"response_status": "valid",
"repair_attempted": False,
"numeric_score": 0.85
},
{
"response_status": "persistent_refusal",
"repair_attempted": False,
"numeric_score": None
},
{
"response_status": "persistent_unparseable",
"repair_attempted": True,
"numeric_score": None
},
{
"response_status": "valid",
"repair_attempted": False,
"numeric_score": 0.92
},
{
"response_status": "valid",
"repair_attempted": True,
"numeric_score": 0.75
},
{
"response_status": "valid",
"repair_attempted": False,
"numeric_score": None
}
]
}
- 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 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
|
| discover_batches |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_r3_ablations.py code served (permissive licence) · get_code("a10952157adf7c37") 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 tempfile
from pathlib import Path
import os
# Create a temporary directory structure that matches what discover_batches expects
temp_dir = tempfile.TemporaryDirectory()
input_dir = Path(temp_dir.name)
# Create the expected sublane subdirectories
for sublane in ['r3_e1_length', 'r3_e2_temp', 'r3_e3_refusal']:
sublane_dir = input_dir / sublane
sublane_dir.mkdir(parents=True, exist_ok=True)
# Create some batch_results*.json files in each sublane directory
(sublane_dir / 'batch_results_0.json').touch()
(sublane_dir / 'batch_results_1.json').touch()
ARGS = {
'input_dir': input_dir,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| model_short |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_compound_pilot.py code served (permissive licence) · get_code("c65574928f9a5bd5") 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 = {
"llm_full": "meta-llama/Llama-2-7b-hf"
}
- 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
|
| parse_response |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/01_collect/collect.py code served (permissive licence) · get_code("bcbcfcee1dc27141") 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
REFUSAL_PATTERNS = ["\\bI\\s+can'?t\\s+(share|express|provide|give)\\b", '\\bI\\s+(am\\s+)?not\\s+able\\s+to\\b', "\\bI\\s+(do\\s+not|don'?t)\\s+have\\s+(\\w+\\s+){0,4}(opinion|view|belief|preference|stance)s?\\b", '\\bsorry,?\\s+but\\b', '\\bas\\s+an\\s+AI\\b', '\\bI\\s+(must|should)\\s+remain\\s+neutral\\b', "\\bI\\s+won'?t\\b", '\\bI\\s+cannot\\s+(provide|share|give)\\b']
REFUSAL_RE = re.compile('|'.join(REFUSAL_PATTERNS), re.IGNORECASE)
def parse_response(text):
"""Returns (parsed_answer, numeric_score, status). NULL on failure."""
if text is None or not text.strip():
return (None, None, 'empty')
cleaned = text.strip().strip('."\'').lower()
score_map = {'strongly disagree': -2, 'strongly agree': 2, 'disagree': -1, 'neutral': 0, 'agree': 1}
for k, s in score_map.items():
if k in cleaned:
return (k.title(), s, 'valid')
if 'strong' in cleaned and 'disagree' in cleaned:
return ('Strongly Disagree', -2, 'valid')
if 'strong' in cleaned and 'agree' in cleaned:
return ('Strongly Agree', 2, 'valid')
if 'disagree' in cleaned:
return ('Disagree', -1, 'valid')
if 'agree' in cleaned:
return ('Agree', 1, 'valid')
if 'neutral' in cleaned:
return ('Neutral', 0, 'valid')
status = 'refusal' if REFUSAL_RE.search(text) else 'unparseable'
return ('Unparseable', None, status)
ARGS = {
'text': 'I strongly agree with this statement.'
}
- 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
|
| process |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_core.py code served (permissive licence) · get_code("66bc94ad756f390a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
AXES = ('econ', 'dipl', 'govt', 'scty')
def build_response(numeric_score=None, effects=None, response_status='valid', repair_attempted=False):
"""Build a single response dict."""
if effects is None:
effects = {axis: 2 for axis in AXES}
return {
'numeric_score': numeric_score,
'effects': effects,
'response_status': response_status,
'repair_attempted': repair_attempted
}
def build_replicate(replicate_index, n_responses=5):
"""Build a single replicate with responses."""
responses = []
for i in range(n_responses):
if i == n_responses - 1:
# One missing response
responses.append(build_response(numeric_score=None, response_status='persistent_refusal'))
else:
responses.append(build_response(numeric_score=1, effects={axis: 2 for axis in AXES}))
return {
'replicate_index': replicate_index,
'responses': responses
}
def build_context_replicates(n_reps=10):
"""Build 10 replicates for a single context."""
return [build_replicate(i) for i in range(n_reps)]
def build_model_contexts(n_contexts=13):
"""Build all contexts for a single model."""
contexts = {}
for ctx_idx in range(n_contexts):
ctx_key = f'context_{ctx_idx:02d}'
contexts[ctx_key] = build_context_replicates(n_reps=10)
return contexts
def build_raw_input(n_models=7, n_contexts=13):
"""Build the complete raw input structure."""
cells = {}
for model_idx in range(n_models):
model_key = f'model_{model_idx:02d}'
cells[model_key] = build_model_contexts(n_contexts=n_contexts)
return {
'schema': 'v36_core_n10_raw_responses_v1',
'cells': cells
}
ARGS = {
'raw': build_raw_input(n_models=7, n_contexts=13)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| rebucket_subtypes |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_compound_pilot.py code served (permissive licence) · get_code("736c329d7bf2a2da") 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.
ARGS = {
'responses': [
{
'response_status': 'valid',
'numeric_score': 0.95
},
{
'response_status': 'valid_repaired',
'numeric_score': 0.85
},
{
'response_status': 'refusal',
'numeric_score': None
},
{
'response_status': 'unparseable',
'numeric_score': None
},
{
'response_status': 'empty',
'numeric_score': None
},
{
'response_status': 'api_error',
'numeric_score': None
},
{
'response_status': 'persistent_refusal',
'numeric_score': None
},
{
'response_status': 'persistent_unparseable',
'numeric_score': None
},
{
'response_status': 'persistent_empty',
'numeric_score': None
},
{
'response_status': 'persistent_api_error',
'numeric_score': None
},
{
'final_status': 'valid',
'numeric_score': 0.75
},
{
'numeric_score': None
}
]
}
- 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
|
| rebucket_subtypes |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_compound_pilot_scty.py code served (permissive licence) · get_code("ed3746f8d42a8d76") 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 torch
# Create test responses with various status types and numeric scores
responses = [
{'response_status': 'valid', 'numeric_score': 0.95},
{'response_status': 'valid_repaired', 'numeric_score': 0.85},
{'response_status': 'refusal', 'numeric_score': None},
{'response_status': 'unparseable', 'numeric_score': 0.5},
{'response_status': 'empty', 'numeric_score': None},
{'response_status': 'api_error', 'numeric_score': 0.0},
{'response_status': 'persistent_refusal', 'numeric_score': None},
{'response_status': 'persistent_unparseable', 'numeric_score': 0.2},
{'response_status': 'persistent_empty', 'numeric_score': None},
{'response_status': 'persistent_api_error', 'numeric_score': 0.1},
{'final_status': 'valid', 'numeric_score': 0.9},
{'final_status': 'refusal'},
]
ARGS = {
'responses': responses
}
- 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 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
|
| recompute |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_r3_ablations.py code served (permissive licence) · get_code("75738d11f0665d0b") 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
from collections import defaultdict
AXES = ('econ', 'dipl', 'govt', 'scty')
REFUSAL_PATTERNS = ["\\bI\\s+can'?t\\s+(share|express|provide|give)\\b", '\\bI\\s+(am\\s+)?not\\s+able\\s+to\\b', "\\bI\\s+(do\\s+not|don'?t)\\s+have\\s+(\\w+\\s+){0,4}(opinion|view|belief|preference|stance)s?\\b", '\\bsorry,?\\s+but\\b', '\\bas\\s+an\\s+AI\\b', '\\bI\\s+(must|should)\\s+remain\\s+neutral\\b', "\\bI\\s+won'?t\\b", '\\bI\\s+cannot\\s+(provide|share|give)\\b']
REFUSAL_RE = re.compile('|'.join(REFUSAL_PATTERNS), re.IGNORECASE)
def classify_response(resp: dict) -> tuple[int | None, str]:
error = resp.get('error')
parsed = str(resp.get('parsed_answer') or '')
raw = resp.get('raw_response')
score = resp.get('numeric_score')
if error is not None:
return (None, 'api_error')
if 'Unparseable' in parsed:
if raw and REFUSAL_RE.search(raw):
return (None, 'refusal')
return (None, 'unparseable')
if score == 0 and parsed == 'Neutral' and raw:
cleaned = raw.strip().strip('."\'').lower()
if cleaned != 'neutral':
if REFUSAL_RE.search(raw):
return (None, 'suspicious_neutral_prose')
if len(raw.split()) > 8:
return (None, 'suspicious_neutral_prose')
return (score, 'valid')
def recompute(responses: list[dict]) -> tuple[dict[str, float], dict[str, int]]:
axis_scores = {a: 0.0 for a in AXES}
max_scores = {a: 0.0 for a in AXES}
counts = defaultdict(int)
for r in responses:
s, status = classify_response(r)
counts[status] += 1
if s is None:
continue
eff = r.get('effects', {})
for axis, e in eff.items():
axis_scores[axis] += s * e / 10
max_scores[axis] += abs(e) / 10 * 2
pcts = {}
for axis in AXES:
if max_scores[axis] > 0:
pcts[axis] = round(50 + axis_scores[axis] / max_scores[axis] * 50, 2)
else:
pcts[axis] = 50.0
return (pcts, dict(counts))
response_1 = {
'error': None,
'parsed_answer': 'Left',
'raw_response': 'I believe the policy leans left',
'numeric_score': 2,
'effects': {
'econ': 3,
'dipl': -1,
'govt': 2,
'scty': 1
}
}
response_2 = {
'error': None,
'parsed_answer': 'Right',
'raw_response': 'This is a right-leaning position',
'numeric_score': -2,
'effects': {
'econ': -2,
'dipl': 2,
'govt': -1,
'scty': -3
}
}
response_3 = {
'error': None,
'parsed_answer': 'Neutral',
'raw_response': 'neutral',
'numeric_score': 0,
'effects': {
'econ': 0,
'dipl': 0,
'govt': 0,
'scty': 0
}
}
response_4 = {
'error': None,
'parsed_answer': 'Unparseable',
'raw_response': "I can't share my personal views on this topic",
'numeric_score': None,
'effects': {}
}
response_5 = {
'error': 'timeout',
'parsed_answer': None,
'raw_response': None,
'numeric_score': None,
'effects': {}
}
ARGS = {
'responses': [response_1, response_2, response_3, response_4, response_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
|
| recompute_cell_percentages |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_core.py code served (permissive licence) · get_code("442864c004724378") 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.
AXES = ('econ', 'dipl', 'govt', 'scty')
ARGS = {
'responses': [
{
'numeric_score': 10,
'effects': {
'econ': 3,
'dipl': -2,
'govt': 1,
'scty': 4
}
},
{
'numeric_score': 8,
'effects': {
'econ': -1,
'dipl': 5,
'govt': -3,
'scty': 2
}
},
{
'numeric_score': None,
'effects': {
'econ': 2,
'dipl': 2,
'govt': 2,
'scty': 2
}
},
{
'numeric_score': 6,
'effects': {
'econ': 0,
'dipl': 0,
'govt': 0,
'scty': 0
}
}
]
}
- 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
|
| recompute_cell_percentages |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_compound_pilot.py code served (permissive licence) · get_code("3b33de2843a671f2") 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
AXES = ('econ', 'dipl', 'govt', 'scty')
# Construct valid arguments for recompute_cell_percentages
responses = [
{
'numeric_score': 10,
'effects': {
'econ': 5,
'dipl': -3,
'govt': 2,
'scty': 4
}
},
{
'numeric_score': '8',
'effects': "{'econ': -2, 'dipl': 6, 'govt': 1, 'scty': -5}"
},
{
'numeric_score': None,
'effects': {
'econ': 3,
'dipl': 2,
'govt': 1,
'scty': 0
}
},
{
'numeric_score': 5,
'effects': {
'econ': 0,
'dipl': 0,
'govt': 0,
'scty': 0
}
},
{
'numeric_score': 'invalid',
'effects': {
'econ': 1,
'dipl': 1,
'govt': 1,
'scty': 1
}
}
]
ARGS = {
'responses': responses
}
- 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
|
| recompute_cell_percentages |
Ran ran; our contract draft was wrong, not the code |
mbrcic/llm-political-steerability/ingestion/02_process/process_compound_pilot_scty.py code served (permissive licence) · get_code("4136de47de50607d") 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
AXES = ('econ', 'dipl', 'govt', 'scty')
# Construct valid arguments for recompute_cell_percentages
responses = [
{
'numeric_score': 5,
'effects': {
'econ': 2,
'dipl': -1,
'govt': 3,
'scty': 0
}
},
{
'numeric_score': '8',
'effects': '{"econ": 1, "dipl": 2, "govt": -2, "scty": 4}'
},
{
'numeric_score': 3,
'effects': {
'econ': -1,
'dipl': 1,
'govt': 2,
'scty': -3
}
},
{
'numeric_score': None,
'effects': {'econ': 1}
},
{
'numeric_score': 'invalid',
'effects': {'econ': 1}
},
{
'numeric_score': 2,
'effects': 'invalid json'
},
{
'numeric_score': 4,
'effects': {}
}
]
ARGS = {
'responses': responses
}
- 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
|
| main |
Not yet run unverified (harvested, no recorded run) |
mbrcic/llm-political-steerability/ingestion/01_collect/bundle_compound_pilot_raw.py code served (permissive licence) · get_code("3f00153f9d94c3f2") How it ran |
| main |
Not yet run unverified (harvested, no recorded run) |
mbrcic/llm-political-steerability/ingestion/01_collect/bundle_compound_pilot_scty_raw.py code served (permissive licence) · get_code("bec89bcd5c26b16a") How it ran |
| run_script |
Not yet run unverified (harvested, no recorded run) |
mbrcic/llm-political-steerability/analysis/run_all.py code served (permissive licence) · get_code("52a1443b1a45f0da") How it ran |