File size: 2,927 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
  "id": "single-software-execution--gui--eagle--task-21--ubuntu",
  "snapshot": "eagle-7.7.0",
  "instruction": "Begin by reviewing `mixed.sch`, add a zero-ohm resistor named `R_TIE` that bridges `AGND` and `DGND`, and save the result as `/home/user/Desktop/answer.sch`. Start EAGLE from `/opt/eagle-7.7.0/bin/eagle` and open `mixed.sch` there. Requirements: 1. `/home/user/Desktop/answer.sch` must parse as well-formed XML. 2. A `<part name=\"R_TIE\">` must exist. 3. The `AGND` net must contain `<pinref part=\"R_TIE\" pin=\"1\"/>`. 4. The `DGND` net must contain `<pinref part=\"R_TIE\" pin=\"2\"/>`. 5. `C1` and `C2` must remain connected to `AGND`. 6. `R1` and `R2` must remain connected to `DGND`. 7. `AGND` and `DGND` must remain separate nets.",
  "source": "https://forums.autodesk.com/t5/eagle-forum/pcb-with-mixed-dgnd-and-agnd/td-p/7300563",
  "config": [
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-21/init_file/mixed.sch",
            "path": "/home/user/Desktop/mixed.sch"
          }
        ]
      }
    },
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-21/init_file/rcl.lbr",
            "path": "/home/user/Desktop/rcl.lbr"
          }
        ]
      }
    },
    {
      "type": "upload_file",
      "parameters": {
        "files": [
          {
            "local_path": "task-21/init_file/README.txt",
            "path": "/home/user/Desktop/README.txt"
          }
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "/opt/eagle-7.7.0/bin/eagle",
          "/home/user/Desktop/mixed.sch",
          "/home/user/Desktop/rcl.lbr"
        ]
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": [
          "python3",
          "-c",
          "import pyautogui; import time; time.sleep(8); w, h = pyautogui.size(); pyautogui.click(w/2 + 100, h/2 + 25); time.sleep(2); pyautogui.click(w/2 + 213, h/2 + 146); time.sleep(2); pyautogui.click(w/2 - 80, h/2 + 68); time.sleep(5)"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "eagle"
  ],
  "artifact_paths": [
    "/home/user/Desktop/answer.sch"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "upload_file",
        "parameters": {
          "files": [
            {
              "local_path": "task-21/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"
}