| 104 | |
| 105 | |
| 106 | class JudgeConfig: |
| 107 | image: str = None |
| 108 | init_script: List[Tuple[str, str]] = None |
| 109 | start: Tuple[str, str] = None |
| 110 | description: str |
| 111 | check: list = None |
| 112 | match: dict = None |
| 113 | example_script: str = None |
| 114 | |
| 115 | def get_evaluation_type(self): |
| 116 | if self.check: |
| 117 | return "check" |
| 118 | elif self.match: |
| 119 | return "match" |
| 120 | |
| 121 | def get_evaluation_content(self): |
| 122 | return self.check or self.match |
| 123 | |
| 124 | ONE_SHOT=[ |
| 125 | { |