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

Function load_user_metadata

experiments/baselines/discourse_aware/runner.py:515–526  ·  view source on GitHub ↗
(input_dir: Path)

Source from the content-addressed store, hash-verified

513
514
515def load_user_metadata(input_dir: Path) -> Dict[str, Dict[str, Any]]:
516 payload = load_json(input_dir / "users.json")
517 users = payload.get("users") if isinstance(payload, dict) else []
518 metadata: Dict[str, Dict[str, Any]] = {}
519 if isinstance(users, list):
520 for item in users:
521 if not isinstance(item, dict):
522 continue
523 user_id = str(item.get("user_id") or "").strip()
524 if user_id:
525 metadata[user_id] = item
526 return metadata
527
528
529def build_user_states(

Callers 1

rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
load_jsonFunction · 0.70

Tested by

no test coverage detected