MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / parse_rely

Function parse_rely

problem.py:285–294  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

283
284
285def parse_rely(s: str) -> dict[str, str]:
286 result = {}
287 if not s:
288 return result
289 s = [x.strip() for x in s.split(',')]
290 for x in s:
291 a, b = x.split(':')
292 a, b = a.strip().split(), b.strip().split()
293 result.update({m: b for m in a})
294 return result
295
296
297class Definition:

Callers 1

from_txtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected