(label_rows: Sequence[Dict[str, Any]])
| 679 | |
| 680 | |
| 681 | def build_label_map(label_rows: Sequence[Dict[str, Any]]) -> Dict[Tuple[str, str], Dict[str, Any]]: |
| 682 | labels: Dict[Tuple[str, str], Dict[str, Any]] = {} |
| 683 | for row in label_rows: |
| 684 | labels[label_key(row)] = { |
| 685 | "selected": bool(row.get("selected")), |
| 686 | "oracle_score": row.get("oracle_score", 0.0), |
| 687 | "oracle_label": row.get("oracle_label", "irrelevant"), |
| 688 | } |
| 689 | return labels |
| 690 | |
| 691 | |
| 692 | def load_clean_benchmark_inputs(input_dir: Path) -> Tuple[List[Dict[str, Any]], List[Dict[str, Any]]]: |
no test coverage detected