Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MARIO-Math-Reasoning/Super_MARIO
/ extract_content
Function
extract_content
mcts_math/tools/python_tool.py:36–41 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
34
return
text
35
36
def
extract_content(text):
37
pattern = r
'print\((.*?)\)'
38
matches = re.findall(pattern, text)
39
if
len(matches) < 1:
40
return
""
41
return
" "
.join(matches)+
":"
42
43
44
def
__is_print_node(node: ast.AST) -> bool:
Callers
1
_base_run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected