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

Function load_user_metadata

experiments/baselines/knowledge_entity/runner.py:589–600  ·  view source on GitHub ↗
(input_dir: Path)

Source from the content-addressed store, hash-verified

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

Callers 1

rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
load_jsonFunction · 0.70

Tested by

no test coverage detected