MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / index_by_sample

Function index_by_sample

experiments/human_eval/aggregate_main_human_eval.py:41–42  ·  view source on GitHub ↗
(rows: Iterable[Dict[str, str]])

Source from the content-addressed store, hash-verified

39
40
41def index_by_sample(rows: Iterable[Dict[str, str]]) -> Dict[str, Dict[str, str]]:
42 return {str(row.get("sample_id")): row for row in rows if row.get("sample_id")}
43
44
45def build_scored_papers(blind_rows: List[Dict[str, str]], key_rows: List[Dict[str, str]]) -> List[Dict[str, object]]:

Callers 1

build_scored_papersFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected