Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

2.7 KB
Raw Blame
{
  "id": "0cecd4f3-74de-457b-ba94-29ad6b5dafb6-wos",
  "snapshot": "libreoffice_calc",
  "instruction": "Rename \"Sheet1\" to \"LARS Resources\". Then make a copy of it. Place the copy before \"Sheet2\" and rename it by appending a suffix \"(Backup)\", concatenated by a white space. And Also rename \"Sheet2\" by appending the suffix \"(Offline)\".",
  "source": "https://www.libreofficehelp.com/add-insert-delete-copy-move-rename-a-worksheet-in-libreoffice-calc/",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/0cecd4f3-74de-457b-ba94-29ad6b5dafb6-WOS/config/LARS_Science_Assessment_Resource_List_7-30-21.xlsx",
            "path": "C:\\Users\\Docker\\Downloads\\copy_sheet_insert.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\copy_sheet_insert.xlsx"
      }
    }
  ],
  "trajectory": "trajectories\\0cecd4f3-74de-457b-ba94-29ad6b5dafb6-wos",
  "related_apps": ["libreoffice-calc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "sleep",
        "parameters": {
          "seconds": 1
        }
      },
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "copy_sheet_insert.xlsx — LibreOffice Calc",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": ["python", "-c", "import pyautogui; pyautogui.hotkey('ctrl', 's');"]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      }
    ],
    "func": "compare_table",
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\copy_sheet_insert.xlsx",
      "dest": "copy_sheet_insert.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/0cecd4f3-74de-457b-ba94-29ad6b5dafb6-WOS/eval/LARS_Science_Assessment_Resource_List_7-30-21_gold.xlsx",
      "dest": "copy_sheet_insert_gold.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_name"
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": 1
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 1,
          "sheet_idx1": "EI1"
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 2,
          "sheet_idx1": "EI2"
        }
      ]
    }
  }
}