| convert_to_string_id |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/retrieval.py code served (permissive licence) · get_code("5f50bc569621e9e0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Analyzing the function:
# - It takes result_dict as input
# - It iterates over result_dict.items() to get k, v pairs
# - For each v, it iterates over v.items() to get inner_k, inner_v pairs
# - It converts keys to strings using str()
# - The structure is: result_dict[k][inner_k] = inner_v
# - Inner values are preserved as-is (not modified)
# Build a valid result_dict with nested structure
result_dict = {
0: {
1: torch.randn(2, 4),
2: np.array([1.0, 2.0, 3.0]),
3: "some_value"
},
1: {
10: torch.tensor([5.0, 6.0]),
20: 42,
30: {"nested": "dict"}
},
"existing_string_key": {
100: [1, 2, 3],
200: torch.ones(2, 3)
}
}
ARGS = {
"result_dict": result_dict
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_img_patch_token_size |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
openmatch/marvel/ANCE/utils.py code served (permissive licence) · get_code("78797c5fbc1d7a65") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from transformers import CLIPVisionModel
torch.manual_seed(0)
class MockCLIPConfig:
def __init__(self):
self.image_size = 224
self.patch_size = 16
class MockCLIPVisionModel:
def __init__(self):
self.config = MockCLIPConfig()
@classmethod
def from_pretrained(cls, model_name):
return cls()
# Monkey patch to avoid actual model downloads
original_from_pretrained = CLIPVisionModel.from_pretrained
CLIPVisionModel.from_pretrained = MockCLIPVisionModel.from_pretrained
ARGS = {
"clip_model_name": "openai/clip-vit-base-patch16"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, transformers — 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
|
| load_candidate_from_stream |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/msmarco_eval.py code served (permissive licence) · get_code("44dabd5275dfdd74") 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 io
# Create a stream with candidate passage data
# Format: query_id\tpassage_id\trank
stream_content = """1\t101\t1
1\t102\t2
1\t103\t3
2\t201\t1
2\t202\t2
3\t301\t1
"""
# Convert string to a file-like object
f = io.StringIO(stream_content)
ARGS = {
"f": f
}
- 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
|
| load_caps |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/data.py code served (permissive licence) · get_code("54e02b2b07d569cc") 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 pandas as pd
import tempfile
import os
# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
# Create a test parquet file for the 'clueweb' case
clueweb_data = {
'img_id': ['img_001', 'img_002'],
'caption': ['A cat sitting on a mat', 'A dog running in the park']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)
# Create a test jsonl file for the 'webqa' case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'image_id': 123, 'caption': 'A bird flying in the sky'}) + '\n')
f.write(json.dumps({'image_id': 456, 'caption': 'A fish swimming in water'}) + '\n')
# Define ARGS dict with both possible paths (we'll use the clueweb one as the main test)
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_caps |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/data.py code served (permissive licence) · get_code("f3fa7721d1d6c94a") 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 pandas as pd
import tempfile
import os
# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()
# Create a test parquet file for clueweb case
clueweb_data = {
'img_id': ['img_001', 'img_002'],
'caption': ['A cat sitting on a mat', 'A dog playing in the park']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)
# Create a test jsonl file for webqa case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'image_id': 123, 'caption': 'A bird in flight'}) + '\n')
f.write(json.dumps({'image_id': 456, 'caption': 'A tree in the forest'}) + '\n')
# Define ARGS dictionary with valid paths
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_docs |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/data.py code served (permissive licence) · get_code("1567be8b2bcb92d0") 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 pandas as pd
import tempfile
import os
# Create temporary files for testing
temp_dir = tempfile.mkdtemp()
# Create a parquet file for the 'clueweb' case
clueweb_data = pd.DataFrame({
'text_id': [1, 2],
'surround': ['context1', 'context2']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)
# Create a jsonl file for the 'webqa' case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'snippet_id': 101, 'fact': 'fact1'}) + '\n')
f.write(json.dumps({'snippet_id': 102, 'fact': 'fact2'}) + '\n')
# Define ARGS with clueweb path (can also test with webqa_path)
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_docs |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/gen_embeddings.py code served (permissive licence) · get_code("6b65342a5278b830") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import pandas as pd
import tempfile
import os
# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
# Create a test parquet file for the clueweb case
clueweb_data = {
'text_id': ['doc1', 'doc2'],
'surround': ['surrounding text 1', 'surrounding text 2']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)
# Create a test jsonl file for the webqa case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
json.dump({'snippet_id': 123, 'fact': 'test fact 1'}, f)
f.write('\n')
json.dump({'snippet_id': 456, 'fact': 'test fact 2'}, f)
f.write('\n')
# Define ARGS with the clueweb path
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_docs |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/data.py code served (permissive licence) · get_code("81c9bc5cbd1e63f4") 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 pandas as pd
import tempfile
import os
# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()
# Create a parquet file for clueweb test case
clueweb_data = pd.DataFrame({
'text_id': [1, 2],
'surround': ['surrounding text 1', 'surrounding text 2']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)
# Create a JSONL file for webqa test case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'snippet_id': 101, 'fact': 'fact text 1'}) + '\n')
f.write(json.dumps({'snippet_id': 102, 'fact': 'fact text 2'}) + '\n')
# Define arguments - using clueweb path as the primary test case
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_docs |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/gen_embeddings.py code served (permissive licence) · get_code("735781aa80ba078f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import pandas as pd
import tempfile
import os
# Create a temporary parquet file for clueweb test
temp_dir = tempfile.mkdtemp()
clueweb_path = os.path.join(temp_dir, "clueweb_test.parquet")
webqa_path = os.path.join(temp_dir, "webqa_test.jsonl")
# Create clueweb test data
clueweb_df = pd.DataFrame({
'text_id': ['doc1', 'doc2'],
'surround': ['surrounding text 1', 'surrounding text 2']
})
clueweb_df.to_parquet(clueweb_path)
# Create webqa test data
with open(webqa_path, 'w') as f:
f.write(json.dumps({'snippet_id': 123, 'fact': 'fact text 1'}) + '\n')
f.write(json.dumps({'snippet_id': 456, 'fact': 'fact text 2'}) + '\n')
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_file |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/data.py code served (permissive licence) · get_code("b334283bb59e66d0") 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 numpy as np
import pandas as pd
import tempfile
import os
# Create temporary directory for test files
tmpdir = tempfile.mkdtemp()
# Create a test parquet file for clueweb dataset
clueweb_data = {
'txt_negFacts': [
[{'id': 'neg1', 'text': 'fact1'}, {'id': 'neg2', 'text': 'fact2'}],
[{'id': 'neg3', 'text': 'fact3'}]
],
'img_negFacts': [
[{'id': 'img_neg1', 'url': 'url1'}, {'id': 'img_neg2', 'url': 'url2'}],
[{'id': 'img_neg3', 'url': 'url3'}]
],
'all_negFacts': [
[{'id': 'all_neg1'}, {'id': 'all_neg2'}],
[{'id': 'all_neg3'}]
],
'text_id': ['txt_001', None],
'img_id': ['img_001', 'img_002']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(tmpdir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)
# Create a test jsonl file for webqa dataset
webqa_path = os.path.join(tmpdir, 'webqa_test.jsonl')
webqa_examples = [
{
'txt_negFacts': [{'id': 'neg1', 'text': 'fact1'}, {'id': 'neg2', 'text': 'fact2'}],
'img_negFacts': [{'id': 'img_neg1', 'url': 'url1'}],
'all_negFacts': [{'id': 'all_neg1'}, {'id': 'all_neg2'}],
'txt_posFacts': [{'id': 'pos1', 'text': 'positive fact'}],
'img_posFacts': [{'id': 'img_pos1', 'url': 'url_pos'}]
},
{
'txt_negFacts': [{'id': 'neg3', 'text': 'fact3'}],
'img_negFacts': [{'id': 'img_neg3', 'url': 'url3'}],
'txt_posFacts': [{'id': 'pos2', 'text': 'another positive fact'}],
'img_posFacts': []
}
]
with open(webqa_path, 'w') as f:
for example in webqa_examples:
f.write(json.dumps(example) + '\n')
# Define ARGS for different test cases
ARGS = {
'path': clueweb_path,
'txt': True,
'img': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_file |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/retrieval.py code served (permissive licence) · get_code("d71b15e3f71f7d11") 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 pandas as pd
import tempfile
import os
# Create temporary parquet file for clueweb test
temp_dir = tempfile.mkdtemp()
parquet_path = os.path.join(temp_dir, "clueweb_test.parquet")
# Create sample parquet data
parquet_data = pd.DataFrame({
'qid': ['q1', 'q2', 'q3'],
'text_id': ['t1', 't2', None],
'img_id': ['i1', None, 'i3']
})
parquet_data.to_parquet(parquet_path)
# Create temporary jsonl file for webqa test
jsonl_path = os.path.join(temp_dir, "webqa_test.jsonl")
with open(jsonl_path, 'w') as f:
f.write(json.dumps({'qid': 'q1', 'txt_posFacts': [{'text': 'fact1'}], 'img_posFacts': []}) + '\n')
f.write(json.dumps({'qid': 'q2', 'txt_posFacts': [], 'img_posFacts': [{'img': 'img1'}]}) + '\n')
f.write(json.dumps({'qid': 'q3', 'txt_posFacts': [{'text': 'fact3'}], 'img_posFacts': [{'img': 'img3'}]}) + '\n')
ARGS = {
'path': parquet_path,
'txt': True,
'img': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_file |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/data.py code served (permissive licence) · get_code("bc7b881120312440") 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 numpy as np
import pandas as pd
import tempfile
import os
# Create a temporary parquet file for the clueweb case
temp_dir = tempfile.mkdtemp()
# Create sample data for clueweb parquet file
clueweb_data = pd.DataFrame({
'text_id': [1, None, 3],
'img_id': [None, 2, 4],
'content': ['text1', 'text2', 'text3']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_sample.parquet')
clueweb_data.to_parquet(clueweb_path)
# Create a temporary JSONL file for the webqa case
webqa_path = os.path.join(temp_dir, 'webqa_sample.jsonl')
with open(webqa_path, 'w') as f:
example1 = {
'txt_negFacts': ['neg1', 'neg2'],
'img_negFacts': ['img_neg1'],
'txt_posFacts': ['pos1', 'pos2'],
'img_posFacts': ['img_pos1']
}
example2 = {
'txt_negFacts': ['neg3'],
'img_negFacts': ['img_neg2', 'img_neg3'],
'txt_posFacts': ['pos3'],
'img_posFacts': []
}
f.write(json.dumps(example1) + '\n')
f.write(json.dumps(example2) + '\n')
ARGS = {
'path': clueweb_path,
'txt': True,
'img': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_file |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/get_hard_negs_all.py code served (permissive licence) · get_code("70926fb8a521dab4") 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 pandas as pd
import tempfile
import os
# Create a temporary directory for test files
tmpdir = tempfile.mkdtemp()
# Create a test parquet file for clueweb path
clueweb_data = pd.DataFrame({
'qid': ['q1', 'q2'],
'query': ['test query 1', 'test query 2'],
'answer': ['answer 1', 'answer 2']
})
clueweb_path = os.path.join(tmpdir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)
# Create a test jsonl file for webqa path
webqa_path = os.path.join(tmpdir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'qid': 'q1', 'query': 'test query 1', 'answer': 'answer 1'}) + '\n')
f.write(json.dumps({'qid': 'q2', 'query': 'test query 2', 'answer': 'answer 2'}) + '\n')
# Define ARGS with clueweb path
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| load_img_docs |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/gen_embeddings.py code served (permissive licence) · get_code("33777073f6fbe9ee") 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 DataFrame. 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 pandas as pd
import numpy as np
import tempfile
import os
# Create a temporary parquet file with sample data
with tempfile.TemporaryDirectory() as tmpdir:
parquet_path = os.path.join(tmpdir, "test_data.parquet")
# Create sample dataframe and save as parquet
sample_data = pd.DataFrame({
'image_id': [1, 2, 3],
'document_type': ['invoice', 'receipt', 'contract'],
'content': ['text1', 'text2', 'text3']
})
sample_data.to_parquet(parquet_path)
# Since we can't use the tempfile after context, we need to create it persistently
# Create a simple in-memory parquet file representation
parquet_path = "/tmp/test_img_docs.parquet"
sample_data.to_parquet(parquet_path)
ARGS = {
"path": "/tmp/test_img_docs.parquet"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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_queries |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/gen_embeddings.py code served (permissive licence) · get_code("8d62ec4c9d2a8b34") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import pandas as pd
import tempfile
import os
# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
# Test case 1: Create a parquet file with clueweb data
clueweb_path = os.path.join(temp_dir, "clueweb_test.parquet")
clueweb_df = pd.DataFrame({
'qid': [101, 102],
'query': ['what is python', 'machine learning basics']
})
clueweb_df.to_parquet(clueweb_path)
# Test case 2: Create a jsonl file with webqa data
webqa_path = os.path.join(temp_dir, "webqa_test.jsonl")
with open(webqa_path, 'w') as f:
json.dump({'qid': 201, 'Q': 'what is AI'}, f)
f.write('\n')
json.dump({'qid': 202, 'Q': 'deep learning explained'}, f)
f.write('\n')
# We'll use the clueweb path as the primary test
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_queries |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/DPR/gen_embeddings.py code served (permissive licence) · get_code("c82904a23f9f6650") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
import pandas as pd
import tempfile
import os
# Create temporary directories and files for testing
temp_dir = tempfile.mkdtemp()
# Create a test parquet file for clueweb path
clueweb_data = {
'qid': [1, 2],
'query': ['test query 1', 'test query 2']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)
# Create a test jsonl file for webqa path
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
f.write(json.dumps({'qid': 1, 'Q': 'what is test'}) + '\n')
f.write(json.dumps({'qid': 2, 'Q': 'another test'}) + '\n')
ARGS = {
'path': clueweb_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_reference |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/msmarco_eval.py code served (permissive licence) · get_code("73a28fd25464e18b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import tempfile
import os
# Create a temporary file with reference data in the expected format
# Format: query_id \t passage_id \t passage_id (tab-separated)
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("1\tignored\t101\n")
temp_file.write("1\tignored\t102\n")
temp_file.write("2\tignored\t201\n")
temp_file.write("3\tignored\t301\n")
temp_file.write("3\tignored\t302\n")
temp_file.write("3\tignored\t303\n")
temp_file.close()
path_to_reference = temp_file.name
ARGS = {
"path_to_reference": path_to_reference
}
- 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
|
| load_reference_from_stream |
Ran ran; our contract draft was wrong, not the code |
openmatch/marvel/ANCE/msmarco_eval.py code served (permissive licence) · get_code("3bb6407c68aabca4") 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 io
# Create a stream with valid tab-separated data
# Format: query_id \t passage_id \t passage_id (the function uses column 0 and column 2)
stream_content = """1\tunused\t101
1\tunused\t102
2\tunused\t201
3\tunused\t301
3\tunused\t302
3\tunused\t303
"""
f = io.StringIO(stream_content)
ARGS = {
"f": f
}
- 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
|