| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | // link main configuration |
|---|
| 4 | require_once(dirname($argv[0]) . '/../config.php'); |
|---|
| 5 | |
|---|
| 6 | // Judge username/password, used via HTTP AUTH basic to download tests and |
|---|
| 7 | // graders. Judge has to have admin access. |
|---|
| 8 | // Set a strong & secret password when putting this into production. |
|---|
| 9 | // Default works with svn. |
|---|
| 10 | define("IA_JUDGE_USERNAME", 'eval'); |
|---|
| 11 | define("IA_JUDGE_PASSWORD", 'eval'); |
|---|
| 12 | |
|---|
| 13 | // Poll interval, in miliseconds. |
|---|
| 14 | define("IA_JUDGE_POLL_INTERVAL", 100); |
|---|
| 15 | |
|---|
| 16 | // The user to run unsafe code as. This defaults to nobody. |
|---|
| 17 | define("IA_JUDGE_JRUN_UID", 65534); |
|---|
| 18 | |
|---|
| 19 | // The group to run unsafe code as. This defaults to nobody. |
|---|
| 20 | define("IA_JUDGE_JRUN_GID", 65534); |
|---|
| 21 | |
|---|
| 22 | // Niceness to run the unsafe code. 0 disables. |
|---|
| 23 | define("IA_JUDGE_JRUN_NICE", 0); |
|---|
| 24 | |
|---|
| 25 | // Time limit for graders. |
|---|
| 26 | define("IA_JUDGE_TASK_EVAL_TIMELIMIT", 5000); |
|---|
| 27 | |
|---|
| 28 | // Memory limit for graders. |
|---|
| 29 | define("IA_JUDGE_TASK_EVAL_MEMLIMIT", 64000); |
|---|
| 30 | |
|---|
| 31 | // Maximum score per task. |
|---|
| 32 | define("IA_JUDGE_MAX_SCORE", 100); |
|---|
| 33 | |
|---|
| 34 | // Maximum length allowed for a evaluator's feedback message |
|---|
| 35 | define("IA_JUDGE_MAX_EVAL_MESSAGE", 100); |
|---|
| 36 | |
|---|
| 37 | // If true then keep all jails forever. |
|---|
| 38 | // This is useful in finding judge bugs. |
|---|
| 39 | define("IA_JUDGE_KEEP_JAILS", true); |
|---|
| 40 | |
|---|
| 41 | // Retry downloading grader data. |
|---|
| 42 | define("IA_JUDGE_MAX_GRADER_DOWNLOAD_RETRIES", 5); |
|---|
| 43 | |
|---|
| 44 | // Add log timestamps. |
|---|
| 45 | // FIXME: horrible hack. |
|---|
| 46 | define("IA_LOG_TIMESTAMP_FORMAT", "Y-m-d H:i:s"); |
|---|
| 47 | |
|---|
| 48 | // Python support. |
|---|
| 49 | define("IA_JUDGE_PY_DISTRO", "~/external/Python-2.6.1"); |
|---|
| 50 | define("IA_JUDGE_PY_COMPILER", |
|---|
| 51 | IA_ROOT_DIR."scripts/pybin.sh ".IA_JUDGE_PY_DISTRO." ". |
|---|
| 52 | IA_ROOT_DIR."eval/temp"); |
|---|
| 53 | |
|---|
| 54 | ?> |
|---|