Spaces:
Running on Zero
Running on Zero
File size: 958 Bytes
167c58e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | {
"task_id": "data_transform_002",
"family": "data_transformation",
"difficulty": "easy",
"instruction": "Sort input.json by 'score' in descending order and write to output.json.",
"files": [
{
"path": "input.json",
"content": "[\n {\n \"name\": \"A\",\n \"score\": 10\n },\n {\n \"name\": \"B\",\n \"score\": 30\n },\n {\n \"name\": \"C\",\n \"score\": 20\n }\n]"
}
],
"verifier": {
"type": "exact_json",
"command": "",
"timeout_sec": 8,
"expected_output": null,
"target_path": "output.json",
"expected_content": null,
"expected_json": [
{
"name": "B",
"score": 30
},
{
"name": "C",
"score": 20
},
{
"name": "A",
"score": 10
}
],
"required_fields": []
},
"forbidden_commands": [
"rm",
"curl",
"wget",
"pip",
"sudo",
"chmod",
"ssh",
"git"
]
} |