Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PRIME-RL/PRIME
/ create_tempdir
Function
create_tempdir
eval/utils/execution_leetcode.py:613–616 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
611
612
@contextlib.contextmanager
613
def
create_tempdir():
614
with
tempfile.TemporaryDirectory()
as
dirname:
615
with
chdir(dirname):
616
yield
dirname
617
618
619
class
TimeoutException(Exception):
Callers
1
unsafe_execute
Function · 0.70
Calls
1
chdir
Function · 0.70
Tested by
no test coverage detected