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.5 KB
Raw Blame
{
  "id": "41c621f7-3544-49e1-af8d-dafd0f834f75-wos",
  "snapshot": "libreoffice_writer",
  "instruction": "I added annotations starting with a \"#\" next to the sentences that my students wrote. I want my annotations to stand out more so can you highlight these sentences in yellow? I'm having a hard time coloring the annotations one by one. By the way, remember to remove the # sign after highlighting the text. Thanks!",
  "source": "https://superuser.com/questions/1668018/how-to-auto-format-lines-in-libre-office-writer",
  "_comments": "the ground truth gold document shows the sentences beginning with # highlighted in yellow; however, libreoffice writer can only do the whole block of text in the way the source instructed. Also revised the task instruction to better clarify the task",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/writer/41c621f7-3544-49e1-af8d-dafd0f834f75-WOS/config/How_to_read_a_scientific_article.docx",
            "path": "C:\\Users\\Docker\\Downloads\\How_to_read_a_scientific_article.docx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\How_to_read_a_scientific_article.docx"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["libreoffice_writer"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "How_to_read_a_scientific_article.docx — LibreOffice Writer",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); "
          ]
        }
      }
    ],
    "func": "compare_highlighted_text",
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/writer/41c621f7-3544-49e1-af8d-dafd0f834f75-WOS/eval/How_to_read_a_scientific_article_Gold.docx",
      "dest": "How_to_read_a_scientific_article_Gold.docx"
    },
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\How_to_read_a_scientific_article.docx",
      "dest": "How_to_read_a_scientific_article.docx"
    }
  }
}