110 lines
2.8 KiB
JSON
110 lines
2.8 KiB
JSON
{
|
|
"id": "a01fbce3-2793-461f-ab86-43680ccbae25",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "I need to set the decimal separator as a comma (,) for localized data representation and clarity in visualization. Can you assist with this?",
|
|
"source": "https://superuser.com/questions/1250677/how-to-set-decimal-separator-in-libre-office-calc",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"file": [
|
|
{
|
|
"url": "https://drive.usercontent.google.com/download?id=1uT0axjo9lwkKu6hYVnsAL2FCrdH0DLUv&export=download&authuser=0&confirm=t&uuid=e7da6304-9c7a-4862-8a30-9f2284b843da&at=APZUnTVNHThpAZJmF6IuPckFvslw:1704187618838",
|
|
"path": "/home/user/Set_Decimal_Separator_Dot.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Set_Decimal_Separator_Dot.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/a01fbce3-2793-461f-ab86-43680ccbae25",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Set_Decimal_Separator_Dot.xlsx - LibreOffice Calc",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; pyautogui.press([\"ctrl\", \"s\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"libreoffice",
|
|
"--convert-to",
|
|
"csv:Text - txt - csv (StarCalc):44,34,UTF-8,,,,false,true,true,false,false,1",
|
|
"--outdir",
|
|
"/home/user",
|
|
"/home/user/Set_Decimal_Separator_Dot.xlsx"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_table",
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": [
|
|
"/home/user/Set_Decimal_Separator_Dot.xlsx",
|
|
"/home/user/Set_Decimal_Separator_Dot-Sheet1.csv"
|
|
],
|
|
"dest": [
|
|
"Set_Decimal_Separator_Dot.xlsx",
|
|
"Set_Decimal_Separator_Dot-Sheet1.csv"
|
|
],
|
|
"multi": true
|
|
},
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": [
|
|
"https://drive.usercontent.google.com/download?id=15O0l5fxVi1JX_12KOLfbxWPHjXPZPon5&export=download&authuser=0&confirm=t&uuid=395e6c57-11a7-4b33-af4c-98ff2390742b&at=APZUnTVKcrUGrjRfBEwT_AD53Cmn:1705497822975",
|
|
"https://drive.usercontent.google.com/download?id=1rKDWcovxw4Qtd3RHs7M5p_QqryI0SQO3&export=download&authuser=0&confirm=t&uuid=eb6ffb6d-f7c2-44d8-ad77-db6c0aaf5cc7&at=APZUnTWr2VxrJPiiKVMdFd0IykrR:1705497846507"
|
|
],
|
|
"dest": [
|
|
"Set_Decimal_Separator_Dot_gold.xlsx",
|
|
"Set_Decimal_Separator_Dot_gold-Sheet1.csv"
|
|
],
|
|
"multi": true
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "sheet_print",
|
|
"sheet_idx0": "RNSheet1",
|
|
"sheet_idx1": "ENSheet1"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|