MCPcopy Index your code
hub / github.com/CommonstackAI/UncommonRoute / _load_training_data

Function _load_training_data

tests/test_keyword_free.py:19–29  ·  view source on GitHub ↗

Load train.jsonl only (not all data files).

()

Source from the content-addressed store, hash-verified

17
18
19def _load_training_data() -> list[dict]:
20 """Load train.jsonl only (not all data files)."""
21 data_dir = Path(__file__).parent.parent / "bench" / "data"
22 train_path = data_dir / "train.jsonl"
23 cases = []
24 with open(train_path, "r", encoding="utf-8") as f:
25 for line in f:
26 line = line.strip()
27 if line:
28 cases.append(json.loads(line))
29 return cases
30
31
32def _extract_keyword_free_features(prompt: str, model: ScriptAgnosticClassifier) -> dict[str, float]:

Calls 2

openFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected