MCPcopy Index your code
hub / github.com/idank/explainshell / _read_corpus

Function _read_corpus

tests/evals/_common.py:57–67  ·  view source on GitHub ↗
(corpus_path: Path)

Source from the content-addressed store, hash-verified

55
56
57def _read_corpus(corpus_path: Path) -> list[Path]:
58 paths: list[Path] = []
59 for raw_line in corpus_path.read_text().splitlines():
60 line = raw_line.split("#", 1)[0].strip()
61 if not line:
62 continue
63 path = Path(line).expanduser()
64 if not path.is_absolute():
65 path = REPO_ROOT / path
66 paths.append(path)
67 return paths
68
69
70def _git_metadata() -> dict[str, Any]:

Callers 2

run_benchFunction · 0.90
render_runFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected