| calc_per |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/phoneme_utils.py code served (permissive licence) · get_code("4e7a1f9f6e67a9f5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# The function calc_per takes two parameters: ref_phonemes and hyp_phonemes
# Both should be sequences (strings or lists) of phonemes
# The function calls levenshtein_distance on them, which iterates through characters/elements
# and compares them with !=, so they need to be sequences of comparable items
# Test case 1: strings (phoneme sequences as strings)
ref_phonemes_1 = "təˈkɑː"
hyp_phonemes_1 = "təˈkoʊ"
# Test case 2: lists of phoneme symbols
ref_phonemes_2 = ['t', 'ə', 'k', 'ɑ']
hyp_phonemes_2 = ['t', 'ə', 'k', 'o', 'ʊ']
# Using the string version for clarity
ARGS = {
"ref_phonemes": "təˈkɑː",
"hyp_phonemes": "təˈkoʊ"
}
- 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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/calc_per.py code served (permissive licence) · get_code("4b6d0d8c582af2b7") 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 argparse
import json
import os
import re
def extract_idx(filename):
"""Extract index from filename"""
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# Test with various filenames
ARGS = {
'filename': 'test_file_42.txt'
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/convert_lyrics.py code served (permissive licence) · get_code("c573367df51a7359") 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 argparse, json, os, re, glob
def extract_idx(filename):
"""Extract index from filename (last number sequence)"""
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# Setup code
ARGS = {
"filename": "test_file_123.txt"
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/eval_audiobox.py code served (permissive licence) · get_code("ffcab46a7747b075") 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 os
import re
def extract_idx(filename):
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# The function takes a single parameter: filename (a string)
# It extracts numbers from the filename (without extension) and returns the last one as an int
# Test with a filename containing numbers
ARGS = {
'filename': 'model_checkpoint_42.pth'
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/eval_mulan_t.py code served (permissive licence) · get_code("165f8ff73fd76bd7") 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
import os
def extract_idx(filename):
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# The function takes a single parameter: filename (a string)
# It extracts the numeric suffix from the filename (without extension)
# and returns it as an integer
ARGS = {
'filename': 'test_file_42.txt'
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/eval_songeval.py code served (permissive licence) · get_code("982ad7203346a6c9") 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 os
def extract_idx(filename):
import re
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# The function takes a filename string and extracts the last number from it
# It uses: os.path.splitext(), re.findall(), and conditional logic
ARGS = {
"filename": "test_file_42.txt"
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/fill_missing.py code served (permissive licence) · get_code("d56bb8b371310e03") 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 os
import re
def extract_idx(filename):
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# Construct valid arguments for extract_idx
# The function takes a single parameter: filename (a string representing a filename)
ARGS = {
'filename': 'test_file_123.txt'
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/split_audio.py code served (permissive licence) · get_code("f9c7c2c03c5c167c") 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 os
import re
def extract_idx(filename):
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# The function takes a single parameter: filename (a string)
# It extracts the numeric indices from the filename (without extension)
# and returns the last one as an integer
ARGS = {
"filename": "model_checkpoint_42.pt"
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/split_lyrics.py code served (permissive licence) · get_code("ca8e9ea236715db5") 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 os
import re
# The function takes a filename parameter
# Let's trace through the function:
# - extract_idx(filename) takes a filename string
# - It uses os.path.splitext(filename) to split the filename and extension
# - It searches for all digit sequences with re.findall('\\d+', ...)
# - It returns the last match as an int, or None if no matches
# Create test filenames with various digit patterns
ARGS = {
'filename': 'model_checkpoint_42.pth'
}
- 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
|
| extract_idx |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/transcribe.py code served (permissive licence) · get_code("290b79e0720903c1") 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 os
import re
def extract_idx(filename):
"""Extract index from filename (last number sequence)"""
matches = re.findall('\\d+', os.path.splitext(filename)[0])
return int(matches[-1]) if matches else None
# Setup code
ARGS = {
"filename": "test_file_123.txt"
}
- 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
|
| find_best |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/summarize.py code served (permissive licence) · get_code("76e543c95192e1b8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# Construct valid arguments for find_best(data, metric)
# The function expects:
# - data: a dict where values are dicts that may contain metric keys
# - metric: a string key to look up in the data dicts
data = {
"experiment_1": {"PER": 0.05, "accuracy": 0.95},
"experiment_2": {"PER": 0.03, "accuracy": 0.92},
"experiment_3": {"accuracy": 0.98},
}
metric = "PER"
ARGS = {
"data": data,
"metric": metric,
}
- 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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| levenshtein_distance |
Ran ran, honoured the contract we drafted |
yuhui1038/Muse/eval_pipeline/phoneme_utils.py code served (permissive licence) · get_code("cb01272840d69137") 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
torch.manual_seed(0)
# The levenshtein_distance function takes two string arguments (s1, s2)
# and computes the edit distance between them using dynamic programming.
# It uses len(), enumerate(), and indexing operations on strings.
s1 = "kitten"
s2 = "sitting"
ARGS = {
"s1": s1,
"s2": s2,
}
- 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 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_results |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/summarize.py code served (permissive licence) · get_code("0c3e6c5a2d211c92") 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 defaultdict. 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 argparse
import json
import os
import tempfile
from collections import defaultdict
# Create a temporary directory structure with test JSON files
temp_dir = tempfile.mkdtemp()
# Create metric subdirectories
for metric_type in ['songeval', 'audiobox', 'mulan_t', 'per']:
metric_dir = os.path.join(temp_dir, metric_type)
os.makedirs(metric_dir, exist_ok=True)
# Create sample JSON result files
sample_results = {
'songeval': {
'model1.json': {
'model': 'model1',
'metrics': {
'Coherence': 0.85,
'Musicality': 0.92,
'Memorability': 0.78,
'Clarity': 0.88,
'Naturalness': 0.90
}
},
'model2.json': {
'model': 'model2',
'metrics': {
'Coherence': 0.82,
'Musicality': 0.89
}
}
},
'audiobox': {
'audiobox_results.json': {
'model': 'audiobox_model',
'metrics': {
'CE': 0.15,
'CU': 0.92,
'PC': 0.88,
'PQ': 0.85,
'Score': 0.87
}
}
},
'mulan_t': {
'mulan_results.json': {
'metrics': {
'Mulan-T': 0.79
}
}
},
'per': {
'per_results.json': {
'metrics': {
'PER': 0.12
}
}
}
}
# Write the sample JSON files
for metric_type, files in sample_results.items():
metric_dir = os.path.join(temp_dir, metric_type)
for filename, content in files.items():
filepath = os.path.join(metric_dir, filename)
with open(filepath, 'w') as f:
json.dump(content, f)
ARGS = {
'results_dir': temp_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
|
| merge_cn_en |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/summarize.py code served (permissive licence) · get_code("2c43457f358bf9ba") 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)
# The function merge_cn_en takes a dict 'data' as input
# It expects keys that end with '_cn' or '_en'
# Each model entry should be a dict with numeric values that can be summed and averaged
data = {
'model1_cn': {
'metric_a': 0.85,
'metric_b': 0.92,
'metric_c': 0.78
},
'model1_en': {
'metric_a': 0.88,
'metric_b': 0.90,
'metric_d': 0.81
},
'model2_cn': {
'score_x': 0.75,
'score_y': 0.82
},
'model2_en': {
'score_x': 0.79,
'score_z': 0.86
},
'model3_cn': {},
'model3_en': {}
}
ARGS = {
'data': data
}
- 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
|
| read_lyrics |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/convert_lyrics.py code served (permissive licence) · get_code("9fe53ea026eb5dc8") 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 tempfile
import os
# Create a temporary text file with lyrics
temp_dir = tempfile.mkdtemp()
txt_path = os.path.join(temp_dir, "lyrics.txt")
# Write sample lyrics to the file
with open(txt_path, 'w', encoding='utf-8') as f:
f.write("english\n")
f.write("Verse 1\n")
f.write("This is a sample lyric\n")
f.write("Another line of lyrics\n")
f.write("\n")
f.write("Chorus\n")
f.write("Repeating chorus line\n")
ARGS = {
"txt_path": txt_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 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
|
| read_lyrics |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/split_lyrics.py code served (permissive licence) · get_code("bf3666ac3635f34f") 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 tempfile
import os
# Create a temporary text file with sample lyrics
temp_dir = tempfile.mkdtemp()
txt_path = os.path.join(temp_dir, "lyrics.txt")
with open(txt_path, 'w', encoding='utf-8') as f:
f.write("english\n")
f.write("Line one of the lyrics\n")
f.write("Line two of the lyrics\n")
f.write("Line three of the lyrics\n")
ARGS = {
'txt_path': txt_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 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
|
| signal_filter |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/calc_per.py code served (permissive licence) · get_code("b7c31ee0aa2458c7") 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 re
def signal_filter(text: str):
"""Symbol processing, convert all to spaces"""
pattern = '[ ,。",:;&—\'.\\]\\[()?\n-]'
text = re.sub(pattern, ' ', text)
while text.find(' ') != -1:
text = text.replace(' ', ' ')
return text
ARGS = {
'text': 'Hello, world! This is a test string with symbols [like] these (and) those—plus, some, Chinese。punctuation,etc.'
}
- 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
|
| transcribe |
Ran ran; our contract draft was wrong, not the code |
yuhui1038/Muse/eval_pipeline/fill_missing.py code served (permissive licence) · get_code("58e1684834942c02") 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
import tempfile
import os
# Create a temporary audio file for testing
temp_audio = tempfile.NamedTemporaryFile(suffix='.wav', delete=False)
audio_path = temp_audio.name
temp_audio.close()
# Write minimal wav file header (44 bytes) so qwen3-asr recognizes it as audio
# This is just a stub - the actual subprocess call will likely fail, but we're setting up valid args
with open(audio_path, 'wb') as f:
# RIFF header
f.write(b'RIFF')
f.write((36).to_bytes(4, 'little')) # chunk size
f.write(b'WAVE')
# fmt subchunk
f.write(b'fmt ')
f.write((16).to_bytes(4, 'little')) # subchunk1 size
f.write((1).to_bytes(2, 'little')) # audio format (PCM)
f.write((1).to_bytes(2, 'little')) # num channels
f.write((16000).to_bytes(4, 'little')) # sample rate
f.write((32000).to_bytes(4, 'little')) # byte rate
f.write((2).to_bytes(2, 'little')) # block align
f.write((16).to_bytes(2, 'little')) # bits per sample
# data subchunk
f.write(b'data')
f.write((0).to_bytes(4, 'little')) # subchunk2 size (empty)
api_key = "test-api-key-12345"
ARGS = {
"audio_path": audio_path,
"api_key": api_key
}
- 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
|