mirrored 14 minutes ago
0
TimothyxxxFix bugs in multiple apps example 0e53 8fd27f1
{
    "id": "0e5303d4-8820-42f6-b18d-daf7e633de21",
    "snapshot": "chrome",
    "instruction": "I want to learn python programming and my friend recommends me this course website. I have grabbed the lecture slide for week 0. Please download the PDFs for other weeks into the opened folder and leave the file name as-it-is.",
    "source": "authors",
    "config": [
        {
            "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://cs50.harvard.edu/python/2022/weeks/0/"
                ]
            }
        },
        {
            "type": "execute",
            "parameters": {
                "command": [
                    "mkdir",
                    "-p",
                    "/home/user/lecture_slides"
                ]
            }
        },
        {
            "type": "download",
            "parameters": {
                "files": [
                    {
                        "url": "https://drive.usercontent.google.com/download?id=1OdvHgcHXSn62xXe_VrPTN0HLWHmrcfdY&export=download&authuser=0&confirm=t",
                        "path": "/home/user/lecture_slides/lecture0.pdf"
                    }
                ]
            }
        },
        {
            "type": "launch",
            "parameters": {
                "command": [
                    "nautilus",
                    "/home/user/lecture_slides"
                ]
            }
        }
    ],
    "trajectory": "trajectories/",
    "related_apps": [
        "os",
        "chrome"
    ],
    "evaluator": {
        "postconfig": [
            {
                "type": "execute",
                "parameters": {
                    "command": [
                        "/bin/bash",
                        "-c",
                        "cd /home/user && zip -qr lecture_slides.zip lecture_slides/"
                    ]
                }
            }
        ],
        "func": "compare_archive",
        "result": {
            "type": "vm_file",
            "path": "/home/user/lecture_slides.zip",
            "dest": "lecture_slides.zip"
        },
        "expected": {
            "type": "cloud_file",
            "path": "https://drive.usercontent.google.com/download?id=1Ej2iHG8p-QJe7FZQpPIIS82BHOlFAUQM&export=download&authuser=0&confirm=t",
            "dest": "gold_lecture_slides.zip"
        },
        "options": {
            "file_path": "lecture_slides",
            "file_type": "pdf"
        }
    }
}