Spaces:
Running
Running
Upload grader.worker.js with huggingface_hub
Browse files- grader.worker.js +6 -3
grader.worker.js
CHANGED
|
@@ -121,10 +121,13 @@ def __bb_make():
|
|
| 121 |
if not valid_expected:
|
| 122 |
rows.append({"line": line, "status": "invalid", "argstr": argstr,
|
| 123 |
"expected": _s(expected), "actual": _s(actual)})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
else:
|
| 125 |
-
|
| 126 |
-
bug = "(unknown)"
|
| 127 |
-
num = order.index(bug) + 1 if bug in order else "?"
|
| 128 |
first = bug not in caught
|
| 129 |
if first:
|
| 130 |
caught[bug] = line
|
|
|
|
| 121 |
if not valid_expected:
|
| 122 |
rows.append({"line": line, "status": "invalid", "argstr": argstr,
|
| 123 |
"expected": _s(expected), "actual": _s(actual)})
|
| 124 |
+
elif bug is None:
|
| 125 |
+
# Real discrepancy, but it can't be attributed to ONE of the 5
|
| 126 |
+
# bugs (e.g. several boundaries broken at once). Don't count it.
|
| 127 |
+
rows.append({"line": line, "status": "combo", "argstr": argstr,
|
| 128 |
+
"actual": _s(actual), "expected": _s(expected)})
|
| 129 |
else:
|
| 130 |
+
num = order.index(bug) + 1
|
|
|
|
|
|
|
| 131 |
first = bug not in caught
|
| 132 |
if first:
|
| 133 |
caught[bug] = line
|