| KGChunk |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("2028f8749b9ea5a3") 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 an instance of its own class, KGChunk: the run constructed the object and did not call it, so no result was computed. 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 = {
"chunk_id": "chunk_001",
"text": "This is a sample knowledge graph chunk containing relevant information.",
"order": 42
}
- 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 KGChunk — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KGChunk 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
|
| KGCommunity |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("9442043513ec9c8c") 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 an instance of its own class, KGCommunity: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
ARGS = {
"community_id": "comm_001",
"node_ids": ["node_1", "node_2", "node_3"],
"report": "This is a sample community report with relevant findings.",
"chunk_ids": ["chunk_a", "chunk_b", "chunk_c", "chunk_d"],
"embedding": np.random.randn(8).astype(np.float32),
}
- 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 KGCommunity — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KGCommunity 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
|
| KGEntity |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("c73ef73fc2219acc") 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 an instance of its own class, KGEntity: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass, field
torch.manual_seed(0)
ARGS = {
"node_id": "entity_001",
"name": "Example Entity",
"entity_type": "Person",
"descriptions": ["This is a description", "Another description", " ", "This is a description"],
"chunk_ids": {"chunk_1", "chunk_2", "chunk_3"}
}
- 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 KGEntity — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KGEntity 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
|
| KGRelation |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("789ea9b770b81afa") 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 an instance of its own class, KGRelation: the run constructed the object and did not call it, so no result was computed. 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 dataclasses import dataclass, field
from typing import Iterable
def _dedupe_preserve_order(values: Iterable[str]) -> list[str]:
seen: set[str] = set()
result: list[str] = []
for value in values:
normalized = value.strip()
if not normalized or normalized in seen:
continue
seen.add(normalized)
result.append(normalized)
return result
@dataclass(slots=True)
class KGRelation:
source_id: str
target_id: str
relation: str
descriptions: list[str] = field(default_factory=list)
chunk_ids: set[str] = field(default_factory=set)
def merged_description(self) -> str:
return ' '.join(_dedupe_preserve_order(self.descriptions))
ARGS = {
'source_id': 'entity_A',
'target_id': 'entity_B',
'relation': 'causes',
'descriptions': ['description one', 'description two', ' ', 'description one'],
'chunk_ids': {'chunk_1', 'chunk_2', 'chunk_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 KGRelation — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KGRelation 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
|
| ModelSettings |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("73fa90a0662165cb") 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 an instance of its own class, ModelSettings: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
from dataclasses import dataclass
# Set up environment variables for the function to use
os.environ['OPENAI_API_KEY'] = 'sk-test-key-12345'
os.environ['PAPERSUM_STUDENT_MODEL'] = 'gpt-4o-mini'
os.environ['PAPERSUM_TEACHER_MODEL'] = 'gpt-4o'
os.environ['PAPERSUM_GRAPH_MODEL'] = 'gpt-4o-mini'
os.environ['PAPERSUM_EMBEDDING_MODEL'] = 'text-embedding-3-small'
os.environ['PAPERSUM_TEMPERATURE'] = '0.8'
os.environ['PAPERSUM_MAX_TOKENS'] = '2048'
os.environ['PAPERSUM_EMBEDDING_DIM'] = '1536'
os.environ['PAPERSUM_EMBEDDING_MAX_TOKENS'] = '8192'
os.environ['PAPERSUM_TIKTOKEN_MODEL'] = 'gpt-4o-mini'
os.environ['PAPERSUM_BASE_URL'] = 'https://api.openai.com/v1'
ARGS = {
'api_key': 'sk-test-key-12345',
'base_url': 'https://api.openai.com/v1',
'student_model': 'gpt-4o-mini',
'teacher_model': 'gpt-4o',
'graph_model': 'gpt-4o-mini',
'embedding_model': 'text-embedding-3-small',
'temperature': 0.8,
'max_tokens': 2048,
'embedding_dim': 1536,
'embedding_max_tokens': 8192,
'tiktoken_model_name': 'gpt-4o-mini',
}
- 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 ModelSettings — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ModelSettings 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
|
| OpenAICompatClient |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("fe13037e86b3229e") 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 an instance of its own class, OpenAICompatClient: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
from dataclasses import dataclass
# Set a dummy API key for testing
os.environ['OPENAI_API_KEY'] = 'sk-test-key-12345'
@dataclass(slots=True)
class ModelSettings:
api_key: str
base_url: str | None = None
student_model: str = 'gpt-4o-mini'
teacher_model: str = 'gpt-4o-mini'
graph_model: str = 'gpt-4o-mini'
embedding_model: str = 'text-embedding-3-small'
temperature: float = 0.8
max_tokens: int = 2048
embedding_dim: int = 1536
embedding_max_tokens: int = 8192
tiktoken_model_name: str = 'gpt-4o-mini'
# Create ModelSettings with valid configuration
settings = ModelSettings(
api_key='sk-test-key-12345',
base_url=None,
student_model='gpt-4o-mini',
teacher_model='gpt-4o-mini',
graph_model='gpt-4o-mini',
embedding_model='text-embedding-3-small',
temperature=0.8,
max_tokens=2048,
embedding_dim=1536,
embedding_max_tokens=8192,
tiktoken_model_name='gpt-4o-mini'
)
ARGS = {
'settings': settings
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, openai, tenacity — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type OpenAICompatClient — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a OpenAICompatClient 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
|
| PaperSumResult |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("051462288a4de6bf") 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 an instance of its own class, PaperSumResult: the run constructed the object and did not call it, so no result was computed. 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 = {
"summary": "This paper proposes a novel approach to machine learning that demonstrates superior performance on benchmark datasets.",
"accepted": True,
"iterations": 5,
"teacher_scores": [0.85, 0.87, 0.82, 0.90, 0.88],
"feedback_history": [
"Consider adding more experimental validation",
"The methodology is sound but needs clarification",
"Results are promising, minor revisions needed",
"Good improvements in the latest version",
"Ready for acceptance"
],
"retrieval_queries": [
"machine learning benchmarks",
"neural network optimization",
"performance evaluation metrics",
"comparative analysis methods"
],
"draft_history": [
"Initial draft with basic framework",
"Added experimental section",
"Incorporated reviewer feedback",
"Enhanced methodology description",
"Final version with all revisions"
],
"student_history": [
"First attempt at paper writing",
"Integrated baseline comparisons",
"Addressed technical concerns",
"Polished presentation and clarity",
"Finalized submission-ready version"
]
}
- 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 PaperSumResult — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PaperSumResult 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
|
| ReferenceAbstract |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("b0124ce1aaa01894") 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 an instance of its own class, ReferenceAbstract: the run constructed the object and did not call it, so no result was computed. 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 dataclasses import dataclass
@dataclass(slots=True)
class ReferenceAbstract:
paper_id: str
title: str
abstract: str
score: float
ARGS = {
"paper_id": "paper_2024_001",
"title": "Deep Learning Methods for Natural Language Processing",
"abstract": "This paper explores novel approaches to NLP using transformer-based architectures and large language models. We demonstrate state-of-the-art results on multiple benchmarks.",
"score": 0.92
}
- 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 ReferenceAbstract — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ReferenceAbstract 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
|
| ReferenceCorpusRecord |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("4763d6d70082d3a2") 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 an instance of its own class, ReferenceCorpusRecord: the run constructed the object and did not call it, so no result was computed. 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 dataclasses import dataclass, asdict
def normalize_reference_text(text: str) -> str:
return ' '.join(text.casefold().split())
@dataclass(slots=True)
class ReferenceCorpusRecord:
paper_id: str
title: str
abstract: str
@classmethod
def from_mapping(cls, record: dict, fallback_id: int) -> 'ReferenceCorpusRecord':
return cls(paper_id=str(record.get('id', fallback_id)), title=str(record.get('title', '')).strip(), abstract=str(record.get('abstract', '')).strip())
def to_dict(self) -> dict[str, str]:
return asdict(self)
@property
def normalized_title(self) -> str:
return normalize_reference_text(self.title)
def to_embedding_text(self) -> str:
return f'{self.title}\n{self.abstract}'.strip()
ARGS = {
'paper_id': 'paper_12345',
'title': 'Attention Is All You Need',
'abstract': 'The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration.'
}
- 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 ReferenceCorpusRecord — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ReferenceCorpusRecord 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
|
| ReferenceIndexPaths |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("8620b947dc33b942") 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 an instance of its own class, ReferenceIndexPaths: the run constructed the object and did not call it, so no result was computed. 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
ARGS = {
"root": Path("/tmp/reference_index"),
"manifest": Path("/tmp/reference_index/manifest.json"),
"records": Path("/tmp/reference_index/records.db"),
"vectors": Path("/tmp/reference_index/vectors.h5"),
}
- 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 ReferenceIndexPaths — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ReferenceIndexPaths 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
|
| StudentOutput |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("ed2130a29205de92") 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 an instance of its own class, StudentOutput: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass
torch.manual_seed(0)
@dataclass(slots=True)
class StudentOutput:
draft: str
summary: str
retrieval_query: str
ARGS = {
"draft": "This is a draft response about machine learning concepts and their applications.",
"summary": "ML concepts summary",
"retrieval_query": "machine learning fundamentals"
}
- 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 StudentOutput — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a StudentOutput 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
|
| TeacherDecision |
Ran ran on a synthesized input · constructed an object; no result was computed |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("62c79fa06bc19419") 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 an instance of its own class, TeacherDecision: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass, field
torch.manual_seed(0)
@dataclass(slots=True)
class ReferenceAbstract:
paper_id: str
title: str
abstract: str
score: float
@dataclass(slots=True)
class TeacherDecision:
raw_score: int
normalized_score: float
decision: str
feedback: str
critique: str
candidate_summary: str
final_summary: str | None = None
references: list[ReferenceAbstract] = field(default_factory=list)
# Create sample ReferenceAbstract instances
ref1 = ReferenceAbstract(
paper_id="paper_001",
title="Sample Paper 1",
abstract="This is a sample abstract for paper 1",
score=0.85
)
ref2 = ReferenceAbstract(
paper_id="paper_002",
title="Sample Paper 2",
abstract="This is a sample abstract for paper 2",
score=0.72
)
# Create ARGS dictionary with all parameters
ARGS = {
"raw_score": 42,
"normalized_score": 0.84,
"decision": "accept",
"feedback": "Good work on this submission",
"critique": "The methodology could be stronger",
"candidate_summary": "This paper presents a novel approach to machine learning",
"final_summary": "Accepted with minor revisions",
"references": [ref1, ref2]
}
- 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 TeacherDecision — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TeacherDecision 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
|
| _build_messages |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("c0533a29bc611155") 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
from typing import Any
torch.manual_seed(0)
# Construct arguments for _build_messages function
prompt = "What is the capital of France?"
system_prompt = "You are a helpful assistant."
history_messages = [
{'role': 'user', 'content': 'Hello'},
{'role': 'assistant', 'content': 'Hi there!'},
{'role': 'user', 'content': 'How are you?'},
{'role': 'assistant', 'content': 'I am doing well, thanks for asking.'}
]
ARGS = {
'prompt': prompt,
'system_prompt': system_prompt,
'history_messages': history_messages
}
- 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
|
| _cosine_similarity |
Ran ran, violated the contract we drafted |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("955732112dddaec2") 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 ndarray, ndim 1, dtype family float, shape (2,) 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
# Create small test arrays
vector = np.array([1.0, 2.0, 3.0, 4.0]) # 1D vector of dimension 4
matrix = np.array([
[1.0, 0.5, 0.2, 0.1],
[0.3, 0.8, 0.1, 0.9]
]) # 2D matrix with shape (2, 4)
ARGS = {
"vector": vector,
"matrix": matrix
}
- 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 ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
|
| _dedupe_preserve_order |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("8341fc450f8ed6c7") 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
from typing import Iterable
torch.manual_seed(0)
# The function takes an Iterable[str] as input
# It iterates through the values, strips whitespace, filters out empty strings,
# and deduplicates while preserving order
ARGS = {
"values": [
" hello ",
"world",
"hello",
"",
" ",
"python",
"world",
"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 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
|
| _normalize_name |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("64a52cf00420c447") 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_name(name: str) -> str:
return re.sub('\\s+', ' ', name).strip().lower()
ARGS = {
'name': ' Hello World '
}
- 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_rows |
Ran ran, violated the contract we drafted |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("9c9fdc4cf37fedc9") 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 ndarray, ndim 2, dtype family float, shape (4, 3) 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
# Create a small matrix to normalize
# Using distinct dimensions (4 rows, 3 columns) for clarity
matrix = np.array([
[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[0.0, 0.0, 0.0],
[7.0, 8.0, 9.0]
], dtype=np.float32)
ARGS = {
"matrix": matrix
}
- 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 ndarray, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
|
| _normalize_vector |
Ran ran, violated the contract we drafted |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("8ef8c2da45a71ea0") 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 ndarray, 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 numpy as np
# Create a small test vector
vector = np.array([3.0, 4.0, 0.0, 0.0])
ARGS = {
"vector": vector
}
- 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 ndarray, 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
|
| _parse_dotenv_value |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("e859e690868e6c9d") 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
# _parse_dotenv_value takes a single parameter: raw_value which is a string
# The function:
# 1. Strips whitespace from the string
# 2. Checks if the string is at least 2 chars long
# 3. Checks if first and last characters match and are quotes
# 4. Returns the unquoted string if conditions met, otherwise returns stripped value
# Test case 1: quoted string
raw_value_1 = ' "hello world" '
ARGS = {
"raw_value": raw_value_1
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| _ratio_tag |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("6f2d43ed53287c21") 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 = {
'sample_ratio': 0.5
}
- 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
|
| _safe_json_loads |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("87980d14c3662951") 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 re
JSON_BLOCK_PATTERN = re.compile('\\{.*\\}', re.DOTALL)
def _safe_json_loads(text: str) -> dict:
text = text.strip()
try:
return json.loads(text)
except json.JSONDecodeError:
match = JSON_BLOCK_PATTERN.search(text)
if match:
return json.loads(match.group(0))
return {'entities': [], 'relations': []}
# Setup code to construct valid arguments
ARGS = {
'text': '{"entities": [{"id": 1, "name": "test"}], "relations": []}'
}
- 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
|
| extract_final_answer |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("6d46a27345390734") 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
# Analyze the function:
# - extract_final_answer takes a single parameter: raw_response (str)
# - The function strips the string, checks for markers in it, splits by marker, and cleans it
# - No models, tensors, or complex objects are needed
ARGS = {
'raw_response': ' Some long response text here.\n---Final Answer---\nThis is the final answer with some code: `answer_value`\n '
}
- 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_improvement_suggestions |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("4f724b76ace37d5e") 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
# The function extract_improvement_suggestions takes a string response
# and extracts lines starting with '-', returning them joined by newlines
# or the original response if no such lines exist.
# Test case 1: response with improvement suggestions (lines starting with '-')
response_with_suggestions = """Here are some suggestions:
- Improve the code structure
- Add more error handling
- Write comprehensive tests
Some other text"""
# Test case 2: response without suggestions
response_without_suggestions = """This is just a regular response
with multiple lines
but no bullet points"""
ARGS = {
"response": response_with_suggestions
}
- 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
|
| iter_reference_mappings |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("3aba9c10b9d46438") 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 generator. 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
import json
from pathlib import Path
# Create a temporary directory and files for testing
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name)
# Test case 1: JSONL format
jsonl_file = temp_path / "test.jsonl"
with jsonl_file.open('w', encoding='utf-8') as f:
f.write('{"id": 1, "text": "example1"}\n')
f.write('{"id": 2, "text": "example2"}\n')
# Test case 2: JSON list format
json_list_file = temp_path / "test_list.json"
with json_list_file.open('w', encoding='utf-8') as f:
json.dump([
{"id": 1, "text": "item1"},
{"id": 2, "text": "item2"}
], f)
# Test case 3: JSON dict with 'data' key
json_dict_file = temp_path / "test_dict.json"
with json_dict_file.open('w', encoding='utf-8') as f:
json.dump({
"data": [
{"id": 1, "title": "paper1"},
{"id": 2, "title": "paper2"}
]
}, f)
# Use the JSONL file as the corpus_path
ARGS = {
"corpus_path": str(jsonl_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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_reference_records |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("56c191699c1f0f40") 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 reference corpus data
temp_dir = tempfile.mkdtemp()
corpus_path = Path(temp_dir) / "corpus.jsonl"
# Write sample reference corpus records in JSONL format
corpus_data = [
{"id": "paper_001", "title": "Deep Learning Advances", "abstract": "This paper discusses recent advances in deep learning architectures."},
{"id": "paper_002", "title": "Neural Networks", "abstract": "A comprehensive study of neural network optimization techniques."},
{"id": "paper_003", "title": "Machine Learning", "abstract": "Modern approaches to machine learning with practical applications."},
]
with corpus_path.open('w', encoding='utf-8') as f:
for record in corpus_data:
f.write(json.dumps(record) + '\n')
ARGS = {
"corpus_path": corpus_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
|
| normalize_reference_text |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("f5c7e2e56bbb9090") 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 = {
"text": " Hello WORLD This is A Test "
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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_precision_score |
Ran ran, honoured the contract we drafted |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("06d6d6889d1c5e3c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import re
SCORE_PATTERN = re.compile('Precision Score:\\s*(\\d{1,3})', re.IGNORECASE)
def parse_precision_score(response: str) -> int:
match = SCORE_PATTERN.search(response)
if not match:
return 0
score = int(match.group(1))
return max(0, min(score, 100))
ARGS = {
"response": "The model achieved a Precision Score: 85 on the test set."
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| sample_reference_records |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("76bea012dd0cffa4") 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 random
from dataclasses import dataclass, asdict
@dataclass(slots=True)
class ReferenceCorpusRecord:
paper_id: str
title: str
abstract: str
@classmethod
def from_mapping(cls, record: dict, fallback_id: int) -> 'ReferenceCorpusRecord':
return cls(paper_id=str(record.get('id', fallback_id)), title=str(record.get('title', '')).strip(), abstract=str(record.get('abstract', '')).strip())
def to_dict(self) -> dict[str, str]:
return asdict(self)
@property
def normalized_title(self) -> str:
return normalize_reference_text(self.title)
def to_embedding_text(self) -> str:
return f'{self.title}\n{self.abstract}'.strip()
def normalize_reference_text(text: str) -> str:
return ' '.join(text.casefold().split())
def split_indices(length: int, sample_ratio: float, seed: int) -> tuple[list[int], list[int]]:
if length < 0:
raise ValueError('length must be non-negative.')
if not 0.0 < sample_ratio < 1.0:
raise ValueError('sample_ratio must be between 0 and 1.')
if length == 0:
return ([], [])
if length == 1:
return ([], [0])
indices = list(range(length))
random.Random(seed).shuffle(indices)
reference_count = int(round(length * sample_ratio))
reference_count = max(1, min(length - 1, reference_count))
reference_indices = sorted(indices[:reference_count])
evaluation_indices = sorted(indices[reference_count:])
return (reference_indices, evaluation_indices)
def split_reference_records(records: list[ReferenceCorpusRecord], sample_ratio: float, seed: int) -> tuple[list[ReferenceCorpusRecord], list[ReferenceCorpusRecord]]:
reference_indices, evaluation_indices = split_indices(len(records), sample_ratio, seed)
references = [records[index] for index in reference_indices]
evaluation = [records[index] for index in evaluation_indices]
return (references, evaluation)
def sample_reference_records(records: list[ReferenceCorpusRecord], sample_ratio: float, seed: int) -> list[ReferenceCorpusRecord]:
references, _ = split_reference_records(records, sample_ratio, seed)
return references
record1 = ReferenceCorpusRecord(
paper_id="paper_001",
title="Machine Learning Advances",
abstract="This paper discusses recent advances in machine learning."
)
record2 = ReferenceCorpusRecord(
paper_id="paper_002",
title="Deep Learning Applications",
abstract="An exploration of deep learning in computer vision."
)
record3 = ReferenceCorpusRecord(
paper_id="paper_003",
title="Natural Language Processing",
abstract="NLP techniques for text understanding and generation."
)
record4 = ReferenceCorpusRecord(
paper_id="paper_004",
title="Reinforcement Learning",
abstract="Methods for training agents using reinforcement learning."
)
ARGS = {
"records": [record1, record2, record3, record4],
"sample_ratio": 0.5,
"seed": 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 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
|
| split_indices |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("95f3f0f1b54ce2be") 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 random
ARGS = {
'length': 10,
'sample_ratio': 0.6,
'seed': 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 — 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
|
| split_reference_records |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("9758b80ff2151b82") 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 dataclasses import dataclass, asdict
@dataclass(slots=True)
class ReferenceCorpusRecord:
paper_id: str
title: str
abstract: str
@classmethod
def from_mapping(cls, record: dict, fallback_id: int) -> 'ReferenceCorpusRecord':
return cls(paper_id=str(record.get('id', fallback_id)), title=str(record.get('title', '')).strip(), abstract=str(record.get('abstract', '')).strip())
def to_dict(self) -> dict[str, str]:
return asdict(self)
@property
def normalized_title(self) -> str:
return normalize_reference_text(self.title)
def to_embedding_text(self) -> str:
return f'{self.title}\n{self.abstract}'.strip()
def normalize_reference_text(text: str) -> str:
return ' '.join(text.casefold().split())
def split_indices(length: int, sample_ratio: float, seed: int) -> tuple[list[int], list[int]]:
if length < 0:
raise ValueError('length must be non-negative.')
if not 0.0 < sample_ratio < 1.0:
raise ValueError('sample_ratio must be between 0 and 1.')
if length == 0:
return ([], [])
if length == 1:
return ([], [0])
indices = list(range(length))
random.Random(seed).shuffle(indices)
reference_count = int(round(length * sample_ratio))
reference_count = max(1, min(length - 1, reference_count))
reference_indices = sorted(indices[:reference_count])
evaluation_indices = sorted(indices[reference_count:])
return (reference_indices, evaluation_indices)
def split_reference_records(records: list[ReferenceCorpusRecord], sample_ratio: float, seed: int) -> tuple[list[ReferenceCorpusRecord], list[ReferenceCorpusRecord]]:
reference_indices, evaluation_indices = split_indices(len(records), sample_ratio, seed)
references = [records[index] for index in reference_indices]
evaluation = [records[index] for index in evaluation_indices]
return (references, evaluation)
# Create test records
record1 = ReferenceCorpusRecord(paper_id="1", title="Machine Learning Basics", abstract="An introduction to ML concepts")
record2 = ReferenceCorpusRecord(paper_id="2", title="Deep Learning Advances", abstract="Recent advances in neural networks")
record3 = ReferenceCorpusRecord(paper_id="3", title="NLP State of the Art", abstract="Current trends in natural language processing")
record4 = ReferenceCorpusRecord(paper_id="4", title="Computer Vision Methods", abstract="Overview of modern computer vision techniques")
ARGS = {
"records": [record1, record2, record3, record4],
"sample_ratio": 0.5,
"seed": 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 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
|
| truncate_text |
Ran ran; our contract draft was wrong, not the code |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("262515fb6a504a33") 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
ARGS = {
"text": "This is a sample text that will be used to test the truncate_text function. " * 200,
"max_chars": 12000
}
- 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
|
| KGReasoningAdapter |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("4189e7f4dfed36de") How it ran |
| LightweightKGEngine |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("65c0db201b0bf655") How it ran |
| PaperSumPipeline |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("9542d0c33f815bcf") How it ran |
| PaperSumSettings |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("bc600419c220c6e7") How it ran |
| ReferenceRetriever |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("c26c621b2333e90c") How it ran |
| StudentModule |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("55476bf50648d4dc") How it ran |
| TeacherModule |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("ae3af80bd1fd04d1") How it ran |
| _first_env |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("3ac78e7d45289d0b") How it ran |
| _load_dotenv |
Not yet run unverified (harvested, no recorded run) |
Xiaoyu-Tao/ScholarSum/src/papersum/pipeline.py code served (permissive licence) · get_code("75c1ba75133875a9") How it ran |