Download src/evaluations/exec_outcome.py from smallan13/DebateCoder: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/smallan13/DebateCoder/resolve/c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/evaluations/exec_outcome.py
- Command line
-
hf download hf://smallan13/DebateCoder@c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/evaluations/exec_outcome.py
-
curl -L -o exec_outcome.py https://huggingface.co/smallan13/DebateCoder/resolve/c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/evaluations/exec_outcome.py
612 Bytes
| from enum import Enum | |
| class ExecOutcome(Enum): | |
| PASSED = "PASSED" # code executes and output matches expected output | |
| WRONG_ANSWER = ( | |
| "WRONG_ANSWER" # code executes and output does NOT matches expected output | |
| ) | |
| TIME_LIMIT_EXCEEDED = "TIME_LIMIT_EXCEEDED" # code executes and didn't exit in time, output is ignored in this case | |
| RUNTIME_ERROR = "RUNTIME_ERROR" # code failed to execute (crashed) | |
| COMPILATION_ERROR = "COMPILATION_ERROR" # code failed to compile | |
| MEMORY_LIMIT_EXCEEDED = ( | |
| "MEMORY_LIMIT_EXCEEDED" # code exceeded memory limit during execution | |
| ) | |