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

Function load_user_metadata

experiments/baselines/scholar_inbox/runner.py:592–603  ·  view source on GitHub ↗
(input_dir: Path)

Source from the content-addressed store, hash-verified

590
591
592def load_user_metadata(input_dir: Path) -> Dict[str, Dict[str, Any]]:
593 payload = load_json(input_dir / "users.json")
594 users = payload.get("users") if isinstance(payload, dict) else []
595 metadata: Dict[str, Dict[str, Any]] = {}
596 if isinstance(users, list):
597 for item in users:
598 if not isinstance(item, dict):
599 continue
600 user_id = str(item.get("user_id") or "").strip()
601 if user_id:
602 metadata[user_id] = item
603 return metadata
604
605
606def make_profile_text(profile: Dict[str, Any]) -> str:

Callers 1

rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
load_jsonFunction · 0.70

Tested by

no test coverage detected