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

Function load_user_metadata

experiments/baselines/scinup_strict/runner.py:180–191  ·  view source on GitHub ↗
(input_dir: Path)

Source from the content-addressed store, hash-verified

178
179
180def load_user_metadata(input_dir: Path) -> Dict[str, Dict[str, Any]]:
181 payload = load_json(input_dir / "users.json")
182 users = payload.get("users") if isinstance(payload, dict) else []
183 metadata: Dict[str, Dict[str, Any]] = {}
184 if isinstance(users, list):
185 for item in users:
186 if not isinstance(item, dict):
187 continue
188 user_id = str(item.get("user_id") or "").strip()
189 if user_id:
190 metadata[user_id] = item
191 return metadata
192
193
194def build_query_profile(user_meta: Dict[str, Any], role: Dict[str, Any]) -> Dict[str, Any]:

Callers 1

rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
load_jsonFunction · 0.70

Tested by

no test coverage detected