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

Function episode_sort_key

experiments/baselines/citation_enhanced/runner.py:606–613  ·  view source on GitHub ↗
(item: Tuple[str, List[Dict[str, Any]]])

Source from the content-addressed store, hash-verified

604
605
606def episode_sort_key(item: Tuple[str, List[Dict[str, Any]]]) -> Tuple[str, str, str]:
607 episode_id, rows = item
608 first = rows[0] if rows else {}
609 return (
610 str(first.get("user_id") or episode_id.split("::", 1)[0]),
611 str(first.get("date") or ""),
612 episode_id,
613 )
614
615
616def max_log_citations_for_day(rows: Sequence[Dict[str, Any]]) -> float:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected