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.9 KB
Raw Blame
{
  "id": "30e3e107-1cfb-46ee-a755-2cd080d7ba6a-WOS",
  "snapshot": "libreoffice_calc",
  "instruction": "Please create a new sheet. Merge cells A1:C1 in the new sheet and write \"Demographic Profile\" with blue (#0000ff) fill and bold white text. Then I want to create three pivot tables to show the percentage of Sex, Civil Status , and Highest Educational Attainment. They should be stacked one by one in the new sheet, each separated with a blank line.",
  "source": "SheetCopilot@9",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/30e3e107-1cfb-46ee-a755-2cd080d7ba6a-WOS/config/DemographicProfile.xlsx",
            "path": "C:\\Users\\Docker\\Downloads\\DemographicProfile.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\DemographicProfile.xlsx"
      }
    }
  ],
  "trajectory": "trajectories\\30e3e107-1cfb-46ee-a755-2cd080d7ba6a-wos",
  "related_apps": ["libreoffice_calc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "DemographicProfile.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/30e3e107-1cfb-46ee-a755-2cd080d7ba6a-WOS/eval/1_DemographicProfile_gt1.xlsx",
      "dest": "1_DemographicProfile_gt1.xlsx"
    },
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\DemographicProfile.xlsx",
      "dest": "DemographicProfile.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "pivot_table",
          "sheet_idx0": "RNSheet2",
          "sheet_idx1": "ENSheet2",
          "pivot_props": ["col_fields", "filter", "row_fields", "data_fields"]
        },
        {
          "type": "check_cell",
          "sheet_idx": "RNSheet2",
          "coordinate": "A1",
          "props": {
            "bgcolor": {
              "method": "eq",
              "ref": "FF0000FF"
            },
            "font_color": {
              "method": "eq",
              "ref": "FFFFFFFF"
            },
            "font_bold": {
              "method": "eq",
              "ref": true
            },
            "value": {
              "method": "eq",
              "ref": "Demographic Profile"
            }
          }
        }
      ]
    }
  }
}