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

Function load_users

experiments/human_eval/build_main_human_eval_packet.py:106–111  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

104
105
106def load_users(path: Path) -> Dict[str, Dict[str, Any]]:
107 if not path.exists():
108 return {}
109 payload = json.loads(path.read_text(encoding="utf-8"))
110 users = payload.get("users", []) if isinstance(payload, dict) else []
111 return {str(item.get("user_id")): item for item in users if isinstance(item, dict)}
112
113
114def profile_text(user: Optional[Dict[str, Any]]) -> str:

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected