mirrored 6 minutes ago
0
rhythmcaoadd multi-apps 5 examples by ruisheng 2024-03-06 da0dafc
{
    "id": "67890eb6-6ce5-4c00-9e3d-fb4972699b06",
    "snapshot": "libreoffice_calc",
    "instruction": "I am an NLP researcher. Check out the best long paper awards of ACL from 2019 to 2022 and record the 'title', 'year', 'author list' and 'PDF link' into table best_awards_acl.xslx on the desktop. Separate authors only by commas, use offical aclanthology urls not arxiv, and sort rows by years in descending orders.",
    "source": "authors",
    "config": [
        {
            "type": "download",
            "parameters": {
                "files": [
                    {
                        "url": "https://drive.google.com/uc?export=download&id=1v5DgViUgAL771kBWy-qBddVGyjGmgFhK",
                        "path": "/home/user/Desktop/best_awards_acl.xlsx"
                    }
                ]
            }
        },
        {
            "type": "open",
            "parameters": {
                "path": "/home/user/Desktop/best_awards_acl.xlsx"
            }
        },
        {
            "type": "launch",
            "parameters": {
                "command": [
                    "google-chrome",
                    "--remote-debugging-port=1337"
                ]
            }
        },
        {
            "type": "launch",
            "parameters": {
                "command": [
                    "socat",
                    "tcp-listen:9222,fork",
                    "tcp:localhost:1337"
                ]
            }
        },
        {
            "type": "chrome_open_tabs",
            "parameters": {
                "urls_to_open": [
                    "https://aclanthology.org/"
                ]
            }
        }
    ],
    "trajectory": "trajectories/",
    "related_apps": [
        "libreoffice_calc",
        "chrome"
    ],
    "evaluator": {
        "postconfig": [
            {
                "type": "activate_window",
                "parameters": {
                    "window_name": "best_awards_acl.xlsx - LibreOffice Calc",
                    "strict": true
                }
            },
            {
                "type": "sleep",
                "parameters": {
                    "seconds": 0.5
                }
            },
            {
                "type": "execute",
                "parameters": {
                    "command": [
                        "python",
                        "-c",
                        "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5);"
                    ]
                }
            },
            {
                "type": "sleep",
                "parameters": {
                    "seconds": 0.5
                }
            }
        ],
        "func": "compare_table",
        "result": {
            "type": "vm_file",
            "path": "/home/user/Desktop/best_awards_acl.xlsx",
            "dest": "best_awards_acl.xlsx"
        },
        "expected": {
            "type": "cloud_file",
            "path": "https://drive.usercontent.google.com/download?id=17ORdOPl3sZGk3s4Wm0vESgImKZjdZBqX&export=download&authuser=0&confirm=t",
            "dest": "gold_best_awards_acl.xlsx"
        },
        "options": {
            "rules": [
              {
                "type": "sheet_data",
                "sheet_idx0": 0,
                "sheet_idx1": "EI0"
              }
            ]
          }
    }
}