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": "9ed02102-6b28-4946-8339-c028166e9512-WOS",
  "snapshot": "libreoffice_calc",
  "instruction": "I want to calculate the revenue for each transaction in the sales table considering corresponding retail price and discount. Please help me do this in a new column with header \"Revenue\". Then create a pivot table in a new sheet to show the counts of the websites on which boomerangs were sold. Finally, plot a bar chart in this new sheet for the pivot table with chart title \"Sales frequency by website\" and without legends.",
  "source": "SheetCopilot@0",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/9ed02102-6b28-4946-8339-c028166e9512-WOS/config/BoomerangSales.xlsx",
            "path": "C:\\Users\\Docker\\Downloads\\BoomerangSales.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\BoomerangSales.xlsx"
      }
    }
  ],
  "trajectory": "trajectories\\9ed02102-6b28-4946-8339-c028166e9512-wos",
  "related_apps": ["libreoffice_calc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "BoomerangSales.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",
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/9ed02102-6b28-4946-8339-c028166e9512-WOS/eval/1_BoomerangSales_gt1.xlsx",
      "dest": "1_BoomerangSales_gt1.xlsx"
    },
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\BoomerangSales.xlsx",
      "dest": "BoomerangSales.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_data",
          "sheet_idx0": 1,
          "sheet_idx1": "EI1"
        },
        {
          "type": "chart",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0",
          "chart_props": ["type", "legend", "title"]
        },
        {
          "type": "pivot_table",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0",
          "pivot_props": ["col_fields", "filter", "row_fields", "data_fields"]
        }
      ]
    }
  }
}