60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"id": "4127319a-8b79-4410-b58a-7a151e15f3d7",
|
|
"snapshot": "os",
|
|
"instruction": "Use terminal command to count all the lines of all php files in current directory recursively, show the result on the terminal",
|
|
"source": "NL2Bash",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/os/4127319a-8b79-4410-b58a-7a151e15f3d7/setup.sh",
|
|
"path": "setup.sh"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": "chmod +x setup.sh",
|
|
"shell": true
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": "bash ./setup.sh",
|
|
"shell": true
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'\nxdg-open /home/user/project",
|
|
"shell": true
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"os"
|
|
],
|
|
"evaluator": {
|
|
"func": "check_include_exclude",
|
|
"result": {
|
|
"type": "vm_terminal_output"
|
|
},
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": {
|
|
"include": [
|
|
"54\n"
|
|
],
|
|
"exclude": []
|
|
}
|
|
}
|
|
},
|
|
"proxy": false
|
|
} |