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.6 KB
Raw Blame
{
  "id": "0bf05a7d-b28b-44d2-955a-50b41e24012a-WOS",
  "snapshot": "libreoffice_calc",
  "instruction": "I would like to pad all the numbers in the 'Old ID' column with zeros in front, to fill them up to seven digits in the 'New 7 Digit ID' column.",
  "source": "https://www.youtube.com/shorts/FPAQaDTS8VY",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/0bf05a7d-b28b-44d2-955a-50b41e24012a-WOS/config/Customers_New_7digit_Id.xlsx",
            "path": "C:\\Users\\Docker\\Downloads\\Customers_New_7digit_Id.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\Customers_New_7digit_Id.xlsx"
      }
    }
  ],
  "trajectory": "trajectories\\0bf05a7d-b28b-44d2-955a-50b41e24012a-wos",
  "related_apps": ["libreoffice-calc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Customers_New_7digit_Id.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
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "soffice",
            "--convert-to",
            "csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true,false,false,1",
            "--outdir",
            "C:\\Users\\Docker\\Downloads",
            "C:\\Users\\Docker\\Downloads\\Customers_New_7digit_Id.xlsx"
          ]
        }
      }
    ],
    "func": "compare_table",
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\Customers_New_7digit_Id.xlsx",

      "dest": "Customers_New_7digit_Id.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/0bf05a7d-b28b-44d2-955a-50b41e24012a-WOS/eval/Customers_New_7digit_Id_gold.xlsx",
      "dest": "Customers_New_7digit_Id_gold.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0"
        }
      ]
    }
  }
}