MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / remove_boxed

Function remove_boxed

eval/Math/math/evaluate_math.py:55–62  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

53
54
55def remove_boxed(s):
56 left = "\\boxed{"
57 try:
58 assert s[:len(left)] == left
59 assert s[-1] == "}"
60 return s[len(left):-1]
61 except:
62 return None
63
64def _last_boxed_only_string(string):
65 idx = string.rfind("\\boxed")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected