Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PRIME-RL/PRIME
/ handle_base
Function
handle_base
data_preprocessing/math_util/grader.py:128–134 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
126
return
answer
127
128
def
handle_base(x) -> str:
129
if
isinstance(x, str) and
"_"
in x:
130
# Due to base
131
x = x.split(
"_"
)[0]
132
x = float(x)
133
return
int(x)
134
return
x
135
136
137
def
handle_pi(string, pi):
Callers
1
normalize
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected