MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / safe_class_name

Function safe_class_name

codeclash/arenas/scml/runtime/run_scml.py:25–29  ·  view source on GitHub ↗
(player_name: str)

Source from the content-addressed store, hash-verified

23
24
25def safe_class_name(player_name: str) -> str:
26 safe = re.sub(r"\W+", "_", player_name)
27 if not safe or safe[0].isdigit():
28 safe = f"player_{safe}"
29 return f"CodeClash_{safe}"
30
31
32def safe_module_name(player_name: str) -> str:

Callers 3

safe_module_nameFunction · 0.85
load_policy_moduleFunction · 0.85
build_agent_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected