File size: 2,433 Bytes
5154c4e
3de3b50
5154c4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
  "id": "single-software-execution--cli--eagle--task-22--ubuntu",
  "snapshot": "eagle-7.7.0",
  "instruction": "The file `/home/user/Desktop/board.sch` is the schematic to modify. On Linux, launch CadSoft EAGLE with `/opt/eagle-7.7.0/bin/eagle` (adjust to your install).\n\nAdd three net classes and save the schematic as `/home/user/Desktop/classed.sch`. Keep the existing connectivity unchanged.\n\nRequired classes:\n- `SIG` with width `0.15 mm`\n- `PWR` with width `0.40 mm`\n- `HSPEED` with width `0.20 mm`\n\nClass the nets as follows:\n- `SIG`: `N$1`, `N$2`, `N$3`, `N$4`\n- `PWR`: `GND`, `VCC`, `+12V`\n- `HSPEED`: `A0` through `A4`, and `B0` through `B7`\n\nRequirements:\n1. `/home/user/Desktop/classed.sch` must parse as EAGLE XML.\n2. `<classes>` must contain classes named `SIG`, `PWR`, and `HSPEED`.\n3. Their widths, normalized to millimetres, must be approximately `0.15`, `0.40`, and `0.20` respectively.\n4. The three added classes must have distinct `number` attributes.\n5. Every net listed above must carry the correct class number in the schematic.",
  "source": "https://www.autodesk.com/products/fusion-360/blog/what-you-didnt-know-about-eagle-net-classes/",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-22/init_file/board.sch",
            "path": "/home/user/Desktop/board.sch"
          }
        ]
      }
    },
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-22/init_file/README.txt",
            "path": "/home/user/Desktop/README.txt"
          }
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "eagle"
  ],
  "artifact_paths": [
    "/home/user/Desktop/classed.sch"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-22/eval.py",
              "path": "/home/user/Desktop/eval.py"
            }
          ]
        }
      }
    ],
    "func": "exact_match",
    "result": {
      "type": "vm_command_line",
      "command": "python3 /home/user/Desktop/eval.py",
      "shell": "true"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "expected": "True\n"
      }
    }
  },
  "proxy": false,
  "fixed_ip": false,
  "possibility_of_env_change": "low"
}