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

Function episode_sort_key

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

Source from the content-addressed store, hash-verified

505
506
507def episode_sort_key(item: Tuple[str, List[Dict[str, Any]]]) -> Tuple[str, str, str]:
508 episode_id, rows = item
509 first = rows[0] if rows else {}
510 return (
511 str(first.get("user_id") or episode_id.split("::", 1)[0]),
512 str(first.get("date") or ""),
513 episode_id,
514 )
515
516
517def rerank_episodes(

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected