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.8 KB
Raw Blame
{
  "id": "4f07fbe9-70de-4927-a4d5-bb28bc12c52c-WOS",
  "snapshot": "libreoffice_calc",
  "instruction": "Here I want to use the numerical value from a cell in the text. I can set its number of decimal digits to 2 in the original value cell but don't know how to fix it in the text as well. Please help me to do this.",
  "source": "https://superuser.com/questions/1081048/libreoffice-calc-how-to-pad-number-to-fixed-decimals-when-used-within-formula",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/4f07fbe9-70de-4927-a4d5-bb28bc12c52c-WOS/config/Padding_Decimals_In_Formular.xlsx",
            "path": "C:\\Users\\Docker\\Downloads\\Padding_Decimals_In_Formular.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\Padding_Decimals_In_Formular.xlsx"
      }
    }
  ],
  "trajectory": "trajectories\\4f07fbe9-70de-4927-a4d5-bb28bc12c52c-wos",
  "related_apps": ["libreoffice_calc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Padding_Decimals_In_Formular.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\\Padding_Decimals_In_Formular.xlsx"
          ]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      }
    ],
    "func": "compare_table",
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Downloads\\Padding_Decimals_In_Formular.xlsx",
      "dest": "Padding_Decimals_In_Formular.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/calc/4f07fbe9-70de-4927-a4d5-bb28bc12c52c-WOS/eval/Padding_Decimals_In_Formular_gold.xlsx",

      "dest": "Padding_Decimals_In_Formular_gold.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": "EI0"
        }
      ]
    }
  }
}