| calculate_answer_start |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py code served (permissive licence) · get_code("81ab569cd8346156") 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.
from loguru import logger
# Create a valid SQuAD example dictionary
example = {
'context': 'The quick brown fox jumps over the lazy dog',
'answers': 'quick brown fox'
}
ARGS = {
'example': example
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- loguru — 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
|
| convert_spans_to_token_labels |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py code served (permissive licence) · get_code("a8da3033f9af176d") 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 Dataset. 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 datasets import Dataset
from loguru import logger
# Create a minimal valid dataset with the required columns
data = {
'tokens': [
'john is a person entity.\njohn works at acme entity.',
'alice is a person entity.'
],
'labels': [
'john is person entity.\nacme is organization entity.',
'alice is person entity.'
]
}
dataset = Dataset.from_dict(data)
# Define id2label mapping
id2label = {
0: 'O',
1: 'person',
2: 'organization'
}
ARGS = {
'dataset': dataset,
'token_column': 'tokens',
'label_column': 'labels',
'id2label': id2label,
'annotate_identical_words': False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets, loguru — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| create_timestamp_path |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/utils.py code served (permissive licence) · get_code("c1f2f10c10a88040") 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 datetime
import os
import tempfile
ARGS = {
"directory": tempfile.gettempdir()
}
- 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
|
| generate_qualified_class_name |
Ran ran on a synthesized input |
deepset-ai/Haystack/haystack/core/serialization.py code served (permissive licence) · get_code("164df86632d7c91b") 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
class CustomModule(nn.Module):
"""A simple custom module for testing."""
def __init__(self):
super().__init__()
self.linear = nn.Linear(4, 2)
def forward(self, x):
return self.linear(x)
class SimpleClass:
"""A simple stand-in class."""
pass
# Test with different class types
built_in_class = int
custom_class = CustomModule
simple_class = SimpleClass
ARGS = {
'cls': custom_class
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_labels_from_dataset |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py code served (permissive licence) · get_code("cddc89c4c8339cd7") 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.
from datasets import Dataset, DatasetDict, ClassLabel, Sequence
# Create a simple dataset with a ClassLabel column
dataset = Dataset.from_dict({
"text": ["hello", "world", "foo", "bar"],
"label": [0, 1, 0, 2]
})
# Add ClassLabel feature
from datasets.features import Features, Value
features = Features({
"text": Value("string"),
"label": ClassLabel(names=["negative", "neutral", "positive"])
})
dataset = dataset.cast(features)
label_column = "label"
ARGS = {
"dataset": dataset,
"label_column": label_column,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — 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
|
| has_any_trigger |
Ran ran, violated the contract we drafted |
deepset-ai/Haystack/haystack/core/pipeline/component_checks.py code served (permissive licence) · get_code("6fefe2cdced3efd0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
from typing import Any
class MockSocket:
"""Mock socket class with senders attribute"""
def __init__(self, num_senders=0):
self.senders = [None] * num_senders
class _NoOutputProduced:
"""
Marker a socket input holds when its sender ran without producing a value for that socket.
"""
def __eq__(self, other: object) -> bool:
return isinstance(other, _NoOutputProduced)
def __hash__(self) -> int:
return hash(_NoOutputProduced)
def to_dict(self) -> dict[str, Any]:
return {}
@classmethod
def from_dict(cls, data: dict[str, Any]) -> '_NoOutputProduced':
return cls()
# Create a component dict with the required structure
component = {
'input_sockets': {
'socket_1': MockSocket(num_senders=1),
'socket_2': MockSocket(num_senders=0),
},
'visits': 0,
}
# Create inputs dict with mixed scenarios
inputs = {
'socket_1': [
{
'value': torch.tensor([1.0, 2.0, 3.0, 4.0]),
'sender': 'component_A'
}
],
'socket_2': [
{
'value': _NoOutputProduced(),
'sender': None
}
]
}
ARGS = {
'component': component,
'inputs': inputs,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| mark_deserialization_internal |
Ran ran; our contract draft was wrong, not the code |
deepset-ai/Haystack/haystack/core/serialization_security.py code served (permissive licence) · get_code("f000dffd4a55b693") 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 function. 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
from typing import Callable
def sample_function():
"""A simple callable to use as test input."""
pass
def sample_function_2(x, y):
"""Another callable for testing."""
return x + y
class SampleCallable:
"""A callable class."""
def __call__(self, x):
return x * 2
# Test with different types of callables
ARGS = {
"func": sample_function
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| patch_log_method_to_kwargs_only |
Ran ran; our contract draft was wrong, not the code |
deepset-ai/Haystack/haystack/logging.py code served (permissive licence) · get_code("61479ed8bec405d6") 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 function. 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 functools
import typing
from typing import Any
def patch_log_method_to_kwargs_only(func: typing.Callable) -> typing.Callable:
"""A decorator to make sure that a function is only called with keyword arguments."""
@functools.wraps(func)
def _log_only_with_kwargs(msg: str, *, _: Any=None, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, **kwargs: Any) -> typing.Callable:
existing_extra = kwargs.pop('extra', {})
return func(msg, exc_info=exc_info, stack_info=stack_info, stacklevel=stacklevel + 1, extra={**existing_extra, **kwargs})
return _log_only_with_kwargs
# Create a mock logging function to pass as the decorator argument
def mock_logger(msg: str, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, extra: dict=None) -> str:
"""A simple mock logger function that accepts the expected parameters."""
if extra is None:
extra = {}
return f"logged: {msg}"
ARGS = {
"func": mock_logger
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| patch_log_with_level_method_to_kwargs_only |
Ran ran; our contract draft was wrong, not the code |
deepset-ai/Haystack/haystack/logging.py code served (permissive licence) · get_code("832a10875cdb79ca") 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 function. 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 functools
import typing
from typing import Any
def patch_log_with_level_method_to_kwargs_only(func: typing.Callable) -> typing.Callable:
"""A decorator to make sure that a function is only called with keyword arguments."""
@functools.wraps(func)
def _log_only_with_kwargs(level: int | str, msg: str, *, _: Any=None, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, **kwargs: Any) -> typing.Callable:
existing_extra = kwargs.pop('extra', {})
return func(level, msg, exc_info=exc_info, stack_info=stack_info, stacklevel=stacklevel + 1, extra={**existing_extra, **kwargs})
return _log_only_with_kwargs
# Create a mock logging function that accepts the parameters the decorator passes
def mock_logger(level: int | str, msg: str, *, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, extra: dict=None) -> None:
"""Mock logger function that the decorator will wrap."""
pass
ARGS = {
"func": mock_logger
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| patch_make_records_to_use_kwarg_string_interpolation |
Ran ran; our contract draft was wrong, not the code |
deepset-ai/Haystack/haystack/logging.py code served (permissive licence) · get_code("c8cb9b84c1356fdd") 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 function. 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 functools
import typing
from typing import Any
def patch_make_records_to_use_kwarg_string_interpolation(original_make_records: typing.Callable) -> typing.Callable:
"""A decorator to ensure string interpolation is used."""
@functools.wraps(original_make_records)
def _wrapper(name: str, level: int | str, fn: str, lno: int, msg: str, args: Any, exc_info: Any, func: Any=None, extra: Any=None, sinfo: Any=None) -> typing.Callable:
safe_extra = extra or {}
try:
interpolated_msg = msg.format(**safe_extra)
except (KeyError, ValueError, IndexError):
interpolated_msg = msg
return original_make_records(name, level, fn, lno, interpolated_msg, (), exc_info, func, extra, sinfo)
return _wrapper
def mock_make_records(name: str, level: int | str, fn: str, lno: int, msg: str, args: Any, exc_info: Any, func: Any=None, extra: Any=None, sinfo: Any=None) -> str:
"""Mock original_make_records function that just returns a formatted string."""
return f"LogRecord({name}, {level}, {msg})"
ARGS = {
"original_make_records": mock_make_records
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| postprocess_squad_format |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py code served (permissive licence) · get_code("85f9d2e4993481da") 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 Dataset. 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 datasets import Dataset
# Create a minimal SQuAD-format dataset
data = {
'context': [
'The quick brown fox jumps over the lazy dog',
'Paris is the capital of France'
],
'question': [
'What animal jumps?',
'What is the capital of France?'
],
'answers': [
'quick brown fox',
'Paris'
]
}
dataset = Dataset.from_dict(data)
ARGS = {
'dataset': dataset,
'add_answer_start': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets, loguru — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| preprocess_squad_format |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py code served (permissive licence) · get_code("e322caa231cc0084") 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 Dataset. 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 datasets import Dataset
# Create a minimal SQuAD-format dataset with nested answers
data = {
'id': ['1', '2'],
'title': ['Article1', 'Article2'],
'context': ['Context text 1', 'Context text 2'],
'question': ['What is this?', 'Who did that?'],
'answers': [
{'text': ['answer1'], 'answer_start': [0]},
{'text': ['answer2'], 'answer_start': [5]}
]
}
dataset = Dataset.from_dict(data)
ARGS = {
'dataset': dataset
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| random_sampler |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/samplers/samplers.py code served (permissive licence) · get_code("1266726c77cca097") 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 Dataset. 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
from datasets import ClassLabel, Dataset, Sequence, Value
# Create a small valid Dataset
# The function calls len(dataset) and dataset.select(indices)
# These are standard Dataset methods, so we need a real Dataset object
data = {
"text": ["hello world", "foo bar", "test example", "another sample", "fifth item"],
"label": [0, 1, 0, 1, 0]
}
dataset = Dataset.from_dict(data)
# Define arguments
ARGS = {
"dataset": dataset,
"num_examples": 3
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| replace_class_labels |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py code served (permissive licence) · get_code("7fba20d4a7dfc7a3") 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.
# Setup code for replace_class_labels function
# Test case 1: id2label with string keys, expanded_labels with string keys
id2label_str = {
0: "LOC",
1: "PER",
2: "ORG",
3: "O"
}
expanded_labels_str = {
"LOC": "LOCATION",
"PER": "PERSON",
"ORG": "ORGANIZATION"
}
ARGS = {
"id2label": id2label_str,
"expanded_labels": expanded_labels_str
}
- 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
|
| replace_token_labels |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py code served (permissive licence) · get_code("d5e8675475cdb42a") 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.
# Construct valid arguments for replace_token_labels function
ARGS = {
"id2label": {
0: "O",
1: "B-PER",
2: "I-PER",
3: "B-LOC",
4: "I-LOC",
5: "B-ORG",
6: "I-ORG",
},
"expanded_labels": {
"PER": "PERSON",
"LOC": "LOCATION",
"ORG": "ORGANIZATION",
},
}
- 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
|
| single_label_stratified_sample |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/samplers/samplers.py code served (permissive licence) · get_code("bcd2a038c58aa493") 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 Dataset. 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
from datasets import Dataset
from collections import defaultdict, deque
from itertools import cycle
# Set seed for reproducibility
random.seed(42)
# Create a small dataset with multiple classes
data = {
'text': [
'example 1', 'example 2', 'example 3', 'example 4',
'example 5', 'example 6', 'example 7', 'example 8',
'example 9', 'example 10', 'example 11', 'example 12'
],
'label': [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2]
}
dataset = Dataset.from_dict(data)
ARGS = {
'dataset': dataset,
'label_column': 'label',
'num_examples_per_class': 2,
'return_unused_split': False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| single_label_task_sampler |
Ran ran; our contract draft was wrong, not the code |
flairNLP/fabricator/src/fabricator/samplers/samplers.py code served (permissive licence) · get_code("e560cf2ebbd575b2") 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 Dataset. 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 datasets import Dataset, ClassLabel, Value
import random
random.seed(0)
# Create a minimal dataset with a label column
data = {
"text": ["hello world", "foo bar", "test example", "another sample", "final text"],
"label": [0, 1, 0, 1, 2]
}
# Create dataset with ClassLabel feature
dataset = Dataset.from_dict(data)
dataset = dataset.cast_column("label", ClassLabel(names=["class_a", "class_b", "class_c"]))
ARGS = {
"dataset": dataset,
"label_column": "label",
"num_examples": 3,
"return_unused_split": False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets, loguru, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
|
| convert_label_ids_to_texts |
Not yet run unverified (harvested, no recorded run) |
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py code served (permissive licence) · get_code("a5bb802ee94c5178") How it ran |
| convert_token_labels_to_spans |
Not yet run unverified (harvested, no recorded run) |
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py code served (permissive licence) · get_code("b08e9d3cfc7a721d") How it ran |