MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / execute_code_for_runtime

Method execute_code_for_runtime

src/evaluate.py:661–665  ·  view source on GitHub ↗
(self, code, io, testcases)

Source from the content-addressed store, hash-verified

659
660
661 def execute_code_for_runtime(self, code, io, testcases):
662 if len(testcases) == 0:
663 raise ValueError("No testcase to be executed.")
664 results = untrusted_runtime_measure(io, code, testcases, [300 for t in testcases])
665 return results
666
667

Calls

no outgoing calls

Tested by

no test coverage detected