MCPcopy Create free account
hub / github.com/BeingBeyond/BeTTER / _normalize_token

Function _normalize_token

src/task/specs/task_draft.py:263–265  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

261
262
263def _normalize_token(value: str) -> str:
264 token = re.sub(r"[^a-z0-9]+", "_", value.strip().lower())
265 return token.strip("_")
266
267
268def _range_midpoint(values: tuple[float, float]) -> float:

Callers 2

compile_task_draftFunction · 0.85
_build_instance_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected