diff --git a/tasks/1-10/subtasks/0.json b/tasks/1-10/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..66eed9229c2ae3858aeef269d9c3663b954d5feb --- /dev/null +++ b/tasks/1-10/subtasks/0.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "find the lowest score and highest score of midterm 1, what is their difference?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "40" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-10/subtasks/1.json b/tasks/1-10/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..7d46adf8d1b018529dd5a812e30ffd298c3070e3 --- /dev/null +++ b/tasks/1-10/subtasks/1.json @@ -0,0 +1,26 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Which students have lower score in midterm2 than midterm1 in score excel file?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "Liam", + "Alice", + "Sam", + "David", + "Bob", + "Tina", + "Rachel", + "Frank" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-10/subtasks/2.json b/tasks/1-10/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..17578641d2e33f6f51a24e913e41b3fa76701c12 --- /dev/null +++ b/tasks/1-10/subtasks/2.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "find the highest incoming in salary excel file, duplicate it at bottom", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "data/salary.xlsx", + "matches": [ + { + "row": 5, + "col": 2, + "value": "200000" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-10/subtasks/3.json b/tasks/1-10/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..b01e476dec5d5783381029c43b6246228bc7f0fd --- /dev/null +++ b/tasks/1-10/subtasks/3.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "find the lowest cost in budget item, add to highest cost in budget excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "data/company_budget.xlsx", + "matches": [ + { + "row": 2, + "col": 2, + "value": "201000" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-10/subtasks/4.json b/tasks/1-10/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..8eb74a0bc63c80b96eac5b82b6e815554b7f678d --- /dev/null +++ b/tasks/1-10/subtasks/4.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "What is the fewest amount of bought item in shopping list excel file?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "apple" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-10/testbed/data/class_member.xlsx b/tasks/1-10/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/1-10/testbed/data/class_member.xlsx differ diff --git a/tasks/1-10/testbed/data/company_budget.xlsx b/tasks/1-10/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-10/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-10/testbed/data/salary.xlsx b/tasks/1-10/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-10/testbed/data/salary.xlsx differ diff --git a/tasks/1-10/testbed/data/score.xlsx b/tasks/1-10/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/1-10/testbed/data/score.xlsx differ diff --git a/tasks/1-10/testbed/data/shopping_list.xlsx b/tasks/1-10/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..f112e8ae4743709b07b5cf2705986d80f8d76829 Binary files /dev/null and b/tasks/1-10/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-11/reference/company_budget.xlsx b/tasks/1-11/reference/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-11/reference/company_budget.xlsx differ diff --git a/tasks/1-11/reference/midterm1.xlsx b/tasks/1-11/reference/midterm1.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0582c2fb1554836f7abc3cbb9bd2b6799a03875e Binary files /dev/null and b/tasks/1-11/reference/midterm1.xlsx differ diff --git a/tasks/1-11/reference/midterm2.xlsx b/tasks/1-11/reference/midterm2.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..8f490a81ffd3b17fe092e491a12f4cf4440a0cd8 Binary files /dev/null and b/tasks/1-11/reference/midterm2.xlsx differ diff --git a/tasks/1-11/reference/sorted_score.xlsx b/tasks/1-11/reference/sorted_score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..12d06a080d28781025d508a8874cede4959bb5b8 Binary files /dev/null and b/tasks/1-11/reference/sorted_score.xlsx differ diff --git a/tasks/1-11/subtasks/0.json b/tasks/1-11/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..b641e26b1316cfde516e4bdf595003c98a9a55c2 --- /dev/null +++ b/tasks/1-11/subtasks/0.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "sort students score descently by midterm1, save as a new excel file as sorted_score.xlsx", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/sorted_score.xlsx", + "expected_file": "../../../../reference/sorted_score.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-11/subtasks/1.json b/tasks/1-11/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..e9d585344436279af622d35848864802543c533c --- /dev/null +++ b/tasks/1-11/subtasks/1.json @@ -0,0 +1,25 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "split midterm1 and midterm2 scores in score excel file into two excel files, name them as midterm1.xlsx and midterm2.xlsx", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/midterm1.xlsx", + "expected_file": "../../../../reference/midterm1.xlsx" + } + }, + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/midterm2.xlsx", + "expected_file": "../../../../reference/midterm2.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-11/subtasks/2.json b/tasks/1-11/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..5457c4ed1fbb791722ac28cd7603cc895dae3a39 --- /dev/null +++ b/tasks/1-11/subtasks/2.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add all incoming in the salery excel file. This is the annual income. So what is the monthly income?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "35000" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-11/subtasks/3.json b/tasks/1-11/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..fafad044ff779320617677bf556c15e716c6d2ee --- /dev/null +++ b/tasks/1-11/subtasks/3.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "sort items in budget descently in budget excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/company_budget.xlsx", + "expected_file": "../../../../reference/company_budget.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-11/testbed/data/class_member.xlsx b/tasks/1-11/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/1-11/testbed/data/class_member.xlsx differ diff --git a/tasks/1-11/testbed/data/company_budget.xlsx b/tasks/1-11/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-11/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-11/testbed/data/salary.xlsx b/tasks/1-11/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4799ffa6a1367498313f581bf40818b04da99450 Binary files /dev/null and b/tasks/1-11/testbed/data/salary.xlsx differ diff --git a/tasks/1-11/testbed/data/score.xlsx b/tasks/1-11/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..743d59c265a68ce43d4b5737cb292ca78aeeca1f Binary files /dev/null and b/tasks/1-11/testbed/data/score.xlsx differ diff --git a/tasks/1-11/testbed/data/shopping_list.xlsx b/tasks/1-11/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-11/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-12/subtasks/0.json b/tasks/1-12/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..569624c20eb9fd769dd8778778163b1bd87a376f --- /dev/null +++ b/tasks/1-12/subtasks/0.json @@ -0,0 +1,20 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "what is total number of students in class CS161, and how many of them are senior?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "9", + "2" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-12/subtasks/1.json b/tasks/1-12/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..2c8da6ec92fedb78f60a0fc24bd446b6b89e1273 --- /dev/null +++ b/tasks/1-12/subtasks/1.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "how many students in CS161 class got 60 or more in final", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "5" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-12/subtasks/2.json b/tasks/1-12/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..577388dada74758d805a2f5e926eb4383d3f3ca7 --- /dev/null +++ b/tasks/1-12/subtasks/2.json @@ -0,0 +1,20 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "What is Xihozun's HW2 score?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "54" + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-12/testbed/data/CS161_Class_Roster.xlsx b/tasks/1-12/testbed/data/CS161_Class_Roster.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0b30aeaafe659f8466048f906ac81e21e7ddb346 Binary files /dev/null and b/tasks/1-12/testbed/data/CS161_Class_Roster.xlsx differ diff --git a/tasks/1-13/subtasks/0.json b/tasks/1-13/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..1ab3bd6c16a2ea629d044501fc3a9f4c29ddd56a --- /dev/null +++ b/tasks/1-13/subtasks/0.json @@ -0,0 +1,20 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Given an Excel containing student's previous courses, does he/she satisfy the prerequiste of CS161 if prerequiste classes are CS101, CS 102, Math 151, and Math 152? Answer should be Yes or No.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "Yes" + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-13/subtasks/1.json b/tasks/1-13/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..fb3c9cdf2f7b0392a2f7e9e66f0dab110789917b --- /dev/null +++ b/tasks/1-13/subtasks/1.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Given an Excel containing student's previous courses, is he/she qualified for transfering major to CS if student need to take at least 5 CS courses for transfering to CS major? Answer should be 'Yes' or 'No'.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "Yes" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-13/subtasks/2.json b/tasks/1-13/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..5784d1a5b81503cff54ec0e0e1fda3eb115be13d --- /dev/null +++ b/tasks/1-13/subtasks/2.json @@ -0,0 +1,20 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Given an Excel containing student's previous courses and GPA, does he satisfy the graduate requirement if student needs to take at least 8 CS courses and 5 math courses? Answer should be Yes or No.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "No" + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-13/testbed/data/Thomas_Robinson_Course_List.xlsx b/tasks/1-13/testbed/data/Thomas_Robinson_Course_List.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..2574979c3635d4a62decaf0613e2541539dcf5c3 Binary files /dev/null and b/tasks/1-13/testbed/data/Thomas_Robinson_Course_List.xlsx differ diff --git a/tasks/1-14/reference/company_budget.xlsx b/tasks/1-14/reference/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1445ccca758b36e9e7e360e851a5a01e150bcb92 Binary files /dev/null and b/tasks/1-14/reference/company_budget.xlsx differ diff --git a/tasks/1-14/reference/salary.xlsx b/tasks/1-14/reference/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1bc3fd8de5ccd0cc2b3baca9f921800eecd43f6d Binary files /dev/null and b/tasks/1-14/reference/salary.xlsx differ diff --git a/tasks/1-14/reference/score_swap_column.xlsx b/tasks/1-14/reference/score_swap_column.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..54c3df6432cd4c17d87b1941549a03768d0410e9 Binary files /dev/null and b/tasks/1-14/reference/score_swap_column.xlsx differ diff --git a/tasks/1-14/reference/score_swap_row.xlsx b/tasks/1-14/reference/score_swap_row.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a9df62bf2aee0373a2060ecd39f4ef747145b7f2 Binary files /dev/null and b/tasks/1-14/reference/score_swap_row.xlsx differ diff --git a/tasks/1-14/reference/shopping_list.xlsx b/tasks/1-14/reference/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3832003048c60d6aa77cc6ac9ceb486c7ad1cf4e Binary files /dev/null and b/tasks/1-14/reference/shopping_list.xlsx differ diff --git a/tasks/1-14/subtasks/0.json b/tasks/1-14/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..60775589c9c4b7f4b5fea2cce86938239e95d04b --- /dev/null +++ b/tasks/1-14/subtasks/0.json @@ -0,0 +1,18 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Swap row of Alice and row of Bob in score excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/score.xlsx", + "expected_file": "../../../../reference/score_swap_row.xlsx" + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-14/subtasks/1.json b/tasks/1-14/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..12001242ab616c681b0eab4f7cbfeb644b32e6ee --- /dev/null +++ b/tasks/1-14/subtasks/1.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "swap column of midterm1 and midterm2 in score excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/score.xlsx", + "expected_file": "../../../../reference/score_swap_column.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-14/subtasks/2.json b/tasks/1-14/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..61beda9bea6ecfc8ba8d5ffb6fbe1812eefdb8e6 --- /dev/null +++ b/tasks/1-14/subtasks/2.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "swap the lowest and highest incoming item in salary excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/salery.xlsx", + "expected_file": "../../../../reference/salery.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-14/subtasks/3.json b/tasks/1-14/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..b10f2b7b2db293054fbb6bbe292e67220be85c44 --- /dev/null +++ b/tasks/1-14/subtasks/3.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "swap the fewest and second fewest shopping item in shopping list excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/shopping_list.xlsx", + "expected_file": "../../../../reference/shopping_list.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-14/subtasks/4.json b/tasks/1-14/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..ead352e0fbf284d96d8c147daf19045f523dc14e --- /dev/null +++ b/tasks/1-14/subtasks/4.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "swap the highest and second highest item in budget excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/company_budget.xlsx", + "expected_file": "../../../../reference/company_budget.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-14/testbed/data/class_member.xlsx b/tasks/1-14/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/1-14/testbed/data/class_member.xlsx differ diff --git a/tasks/1-14/testbed/data/company_budget.xlsx b/tasks/1-14/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-14/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-14/testbed/data/salary.xlsx b/tasks/1-14/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3ab57d1953c130d543bb30a9bd1f56b7f6a1c642 Binary files /dev/null and b/tasks/1-14/testbed/data/salary.xlsx differ diff --git a/tasks/1-14/testbed/data/score.xlsx b/tasks/1-14/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ee95003ea7885d4b2c5ebfd5eb546ab8a09284 Binary files /dev/null and b/tasks/1-14/testbed/data/score.xlsx differ diff --git a/tasks/1-14/testbed/data/shopping_list.xlsx b/tasks/1-14/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..83f9be601c27a3e30a14f3c252975ebdf79fb7e8 Binary files /dev/null and b/tasks/1-14/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-23/subtasks/0.json b/tasks/1-23/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..45756f01ee17fc57e26f8fbbabef0bf86b07676e --- /dev/null +++ b/tasks/1-23/subtasks/0.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "what is total hw score of Cixarim? Add his hw1, hw2, and hw3 together.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "153" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-23/subtasks/1.json b/tasks/1-23/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..2cfab899849b099f1c4bbe53449717a24b3ba853 --- /dev/null +++ b/tasks/1-23/subtasks/1.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "how many students in CS161 is freshman?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "./data/answer.txt", + "keywords": [ + "4" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-23/testbed/data/CS161_Class_Roster.xlsx b/tasks/1-23/testbed/data/CS161_Class_Roster.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0b30aeaafe659f8466048f906ac81e21e7ddb346 Binary files /dev/null and b/tasks/1-23/testbed/data/CS161_Class_Roster.xlsx differ diff --git a/tasks/1-4/subtasks/0.json b/tasks/1-4/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..b24f4b909a450e44d37141b08eb15139937f8b94 --- /dev/null +++ b/tasks/1-4/subtasks/0.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "change Bob's midterm1 score 100 to score.xlsx excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/score.xlsx", + "matches": [ + { + "row": "12", + "col": "2", + "value": "100" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-4/subtasks/1.json b/tasks/1-4/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..15dd90e2c372746d6d13e6c4e49a141c6de0a438 --- /dev/null +++ b/tasks/1-4/subtasks/1.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "buy two yogurt and add to shopping list excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "yogurt" + }, + { + "row": "5", + "col": "2", + "value": "2" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-4/subtasks/2.json b/tasks/1-4/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..10efc065f04c183958a3274cc1e0497bd058021a --- /dev/null +++ b/tasks/1-4/subtasks/2.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add annual bonus $50000 to salary excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/salary.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "annual bonus" + }, + { + "row": "5", + "col": "2", + "value": "50000" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-4/subtasks/3.json b/tasks/1-4/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..5ce145495c985fd8cd3d07259a60f3abb3ccae8d --- /dev/null +++ b/tasks/1-4/subtasks/3.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add utilities fee $300 to budget excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "utilities fee" + }, + { + "row": "5", + "col": "2", + "value": "300" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-4/testbed/data/company_budget.xlsx b/tasks/1-4/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-4/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-4/testbed/data/salary.xlsx b/tasks/1-4/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-4/testbed/data/salary.xlsx differ diff --git a/tasks/1-4/testbed/data/score.xlsx b/tasks/1-4/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/1-4/testbed/data/score.xlsx differ diff --git a/tasks/1-4/testbed/data/shopping_list.xlsx b/tasks/1-4/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-4/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-5/subtasks/0.json b/tasks/1-5/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..91e9bc00144f3b7ffd0df434ae2200ad57e8e0f9 --- /dev/null +++ b/tasks/1-5/subtasks/0.json @@ -0,0 +1,23 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "change Carol's midterm1 score to 98 in score excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/score.xlsx", + "matches": [ + { + "row": "21", + "col": "2", + "value": "98" + } + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-5/subtasks/1.json b/tasks/1-5/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..1d4f258618779471ef2d767d94c053048a80b567 --- /dev/null +++ b/tasks/1-5/subtasks/1.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "reduce half amount of apple in shopping list excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "2", + "col": "2", + "value": "1" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-5/subtasks/2.json b/tasks/1-5/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..ba85496c9bd75e20b3495bd04fd9665d9cb0b957 --- /dev/null +++ b/tasks/1-5/subtasks/2.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add 'average salary' for each day to the last row in salary excel file, round down with no decimal", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/salary.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "average salary" + }, + { + "row": "5", + "col": "2", + "value": "1095" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-5/subtasks/3.json b/tasks/1-5/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..139d1650516860959abe38854b4e24312e33f97f --- /dev/null +++ b/tasks/1-5/subtasks/3.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "if budget grow 10% per year, add 'predicted budget' for 3 years later to the last row in budget excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "predicted budget" + }, + { + "row": "5", + "col": "2", + "value": "2729881" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-5/testbed/data/company_budget.xlsx b/tasks/1-5/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-5/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-5/testbed/data/salary.xlsx b/tasks/1-5/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-5/testbed/data/salary.xlsx differ diff --git a/tasks/1-5/testbed/data/score.xlsx b/tasks/1-5/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/1-5/testbed/data/score.xlsx differ diff --git a/tasks/1-5/testbed/data/shopping_list.xlsx b/tasks/1-5/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-5/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-6/subtasks/0.json b/tasks/1-6/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..3cb9a1e779d66452a880d9eec473264e3be1cc42 --- /dev/null +++ b/tasks/1-6/subtasks/0.json @@ -0,0 +1,55 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add a new header Class, randomly assign each student to class 1 to class 5 in class member excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "1", + "col": "2", + "value": "Class" + } + ] + } + }, + { + "function": "evaluate_excel_cell_comparator", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "2", + "col": "2", + "comparator": "lambda x: x in ['1', '2', '3', '4', '5']" + }, + { + "row": "3", + "col": "2", + "comparator": "lambda x: x in ['1', '2', '3', '4', '5']" + }, + { + "row": "4", + "col": "2", + "comparator": "lambda x: x in ['1', '2', '3', '4', '5']" + }, + { + "row": "5", + "col": "2", + "comparator": "lambda x: x in ['1', '2', '3', '4', '5']" + }, + { + "row": "6", + "col": "2", + "comparator": "lambda x: x in ['1', '2', '3', '4', '5']" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-6/subtasks/1.json b/tasks/1-6/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..33389e5d16dae876defc70582c27ac943547547c --- /dev/null +++ b/tasks/1-6/subtasks/1.json @@ -0,0 +1,56 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "all students attend class today, record it under new header 'Attendance' in class member excel file with value 'Y'", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "1", + "col": "2", + "value": "Attendance" + } + ] + } + }, + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "2", + "col": "2", + "value": "Y" + }, + { + "row": "3", + "col": "2", + "value": "Y" + }, + { + "row": "4", + "col": "2", + "value": "Y" + }, + { + "row": "5", + "col": "2", + "value": "Y" + }, + { + "row": "6", + "col": "2", + "value": "Y" + } + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/1-6/subtasks/2.json b/tasks/1-6/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..4502e70d5b1d50ca31a3974b8f8aef767d8836fc --- /dev/null +++ b/tasks/1-6/subtasks/2.json @@ -0,0 +1,55 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "assign each students in Class 1 10 min to have a meeting with doctor in a row, start from 8:00, record the start time under new header 'Meeting' in class_member.xlsx excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "1", + "col": "2", + "value": "Meeting" + } + ] + } + }, + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/class_member.xlsx", + "matches": [ + { + "row": "2", + "col": "2", + "value": "8:00" + }, + { + "row": "3", + "col": "2", + "value": "8:10" + }, + { + "row": "4", + "col": "2", + "value": "8:20" + }, + { + "row": "5", + "col": "2", + "value": "8:30" + }, + { + "row": "6", + "col": "2", + "value": "8:40" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-6/subtasks/3.json b/tasks/1-6/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..577750673f41d62819f482d52930d9dfbb86816b --- /dev/null +++ b/tasks/1-6/subtasks/3.json @@ -0,0 +1,45 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "company increases base by 5%/yr, stock by 10%/yr, bonus by 10%/yr, show this in salary excel file with new header 'amount after 1 year'", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "1", + "col": "3", + "value": "amount after 1 year" + } + ] + } + }, + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "2", + "col": "3", + "value": "2,100,000" + }, + { + "row": "3", + "col": "3", + "value": "55,000" + }, + { + "row": "4", + "col": "3", + "value": "1,100" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-6/subtasks/4.json b/tasks/1-6/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..b10939b35e0d6873a93998580bdaa4df9e753b69 --- /dev/null +++ b/tasks/1-6/subtasks/4.json @@ -0,0 +1,45 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Update the company budget Excel file to include a new header 'Increase Percentage Per Year', increase base salaries by 5%/yr, reduce computer expenses 10%/yr, and increase entertainment expenses 10%/yr.", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "1", + "col": "3", + "value": "Increase Percentage Per Year" + } + ] + } + }, + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "2", + "col": "3", + "value": "5" + }, + { + "row": "3", + "col": "3", + "value": "10" + }, + { + "row": "4", + "col": "3", + "value": "10" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-6/subtasks/5.json b/tasks/1-6/subtasks/5.json new file mode 100644 index 0000000000000000000000000000000000000000..79225f579a108fcaf540d626562ca444a690b6ad --- /dev/null +++ b/tasks/1-6/subtasks/5.json @@ -0,0 +1,45 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "add a new header 'Cost' in shopping list excel file, supposing apple is 2$/pound, others are 1.5$/pound ", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "1", + "col": "3", + "value": "Cost" + } + ] + } + }, + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "2", + "col": "3", + "value": "4" + }, + { + "row": "3", + "col": "3", + "value": "3" + }, + { + "row": "4", + "col": "3", + "value": "3" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-6/testbed/data/class_member.xlsx b/tasks/1-6/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a664e6a9bce396660ed8569ca22cf2bfd1d7964d Binary files /dev/null and b/tasks/1-6/testbed/data/class_member.xlsx differ diff --git a/tasks/1-6/testbed/data/company_budget.xlsx b/tasks/1-6/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-6/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-6/testbed/data/salary.xlsx b/tasks/1-6/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-6/testbed/data/salary.xlsx differ diff --git a/tasks/1-6/testbed/data/score.xlsx b/tasks/1-6/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/1-6/testbed/data/score.xlsx differ diff --git a/tasks/1-6/testbed/data/shopping_list.xlsx b/tasks/1-6/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-6/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-7/subtasks/0.json b/tasks/1-7/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..3c9ee3453ff9c42f0c7a461b0958a6dddcad1d05 --- /dev/null +++ b/tasks/1-7/subtasks/0.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete student Alice and her score in score excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "args": { + "input_file": "../../../../cache/0/testbed/data/score.xlsx", + "output_file": "./data/score.xlsx", + "doc_type": "xlsx", + "keywords": [ + "Alice", + "78", + "75" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/subtasks/1.json b/tasks/1-7/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..1b01fb2a9c3c34ba86427891f6d201cb47f857ca --- /dev/null +++ b/tasks/1-7/subtasks/1.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "remove the third student and his/her score in score excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "args": { + "input_file": "../../../../cache/1/testbed/data/score.xlsx", + "output_file": "./data/score.xlsx", + "doc_type": "xlsx", + "keywords": [ + "Alice", + "78", + "75" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/subtasks/2.json b/tasks/1-7/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..71a3e51537da840ea7f5af9014cbd7f2d9709e9b --- /dev/null +++ b/tasks/1-7/subtasks/2.json @@ -0,0 +1,29 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete the first three students and their scores in score excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "file": "./data/score.xlsx", + "args": { + "input_file": "../../../../cache/2/testbed/data/score.xlsx", + "output_file": "./data/score.xlsx", + "doc_type": "xlsx", + "keywords": [ + "Liam", + "74", + "72", + "Ivy", + "64", + "90", + "Alice", + "78", + "75" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/subtasks/3.json b/tasks/1-7/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..de826147f86101caca83e5464254404b6d524d63 --- /dev/null +++ b/tasks/1-7/subtasks/3.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete the stock and its line in salary excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "file": "./data/salary.xlsx", + "args": { + "input_file": "../../../../cache/3/testbed/data/salary.xlsx", + "output_file": "./data/salary.xlsx", + "doc_type": "xlsx", + "keywords": [ + "stock", + "100000" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/subtasks/4.json b/tasks/1-7/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..194362d85c87056f3b6482e36556ec8692a33863 --- /dev/null +++ b/tasks/1-7/subtasks/4.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "company don't need to replace computers, so delete corresponding line in company budget excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "file": "./data/company_budget.xlsx", + "args": { + "input_file": "../../../../cache/4/testbed/data/company_budget.xlsx", + "output_file": "./data/company_budget.xlsx", + "doc_type": "xlsx", + "keywords": [ + "computer", + "50000" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/subtasks/5.json b/tasks/1-7/subtasks/5.json new file mode 100644 index 0000000000000000000000000000000000000000..ee87f45ca3be8b61d054d42713064ba425e481fe --- /dev/null +++ b/tasks/1-7/subtasks/5.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "we already have onion at home, remove this entry from the shopping list excel file", + "evaluation": [ + { + "function": "evaluate_diff_contain_text", + "file": "./data/shopping_list.xlsx", + "args": { + "input_file": "../../../../cache/5/testbed/data/shopping_list.xlsx", + "output_file": "./data/shopping_list.xlsx", + "doc_type": "xlsx", + "keywords": [ + "onion", + "2" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-7/testbed/data/class_member.xlsx b/tasks/1-7/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/1-7/testbed/data/class_member.xlsx differ diff --git a/tasks/1-7/testbed/data/company_budget.xlsx b/tasks/1-7/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-7/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-7/testbed/data/salary.xlsx b/tasks/1-7/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-7/testbed/data/salary.xlsx differ diff --git a/tasks/1-7/testbed/data/score.xlsx b/tasks/1-7/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..8f27d62fbd298205ff5dc974c693c6445087ef1b Binary files /dev/null and b/tasks/1-7/testbed/data/score.xlsx differ diff --git a/tasks/1-7/testbed/data/shopping_list.xlsx b/tasks/1-7/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-7/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-8/reference/class_member.xlsx b/tasks/1-8/reference/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..ccf8d1fc0ff60ac8208ffd29370f1b11e9d124e5 Binary files /dev/null and b/tasks/1-8/reference/class_member.xlsx differ diff --git a/tasks/1-8/reference/company_budget.xlsx b/tasks/1-8/reference/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..00833bfbe050a870450456d2ff3ed35726c6f9ea Binary files /dev/null and b/tasks/1-8/reference/company_budget.xlsx differ diff --git a/tasks/1-8/reference/salary.xlsx b/tasks/1-8/reference/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1ddb486f51ede61c943466746842472c2bf869df Binary files /dev/null and b/tasks/1-8/reference/salary.xlsx differ diff --git a/tasks/1-8/reference/score.xlsx b/tasks/1-8/reference/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d4292d07187f1fc829c1e5419c7571370662054b Binary files /dev/null and b/tasks/1-8/reference/score.xlsx differ diff --git a/tasks/1-8/reference/shopping_list.xlsx b/tasks/1-8/reference/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..22ac4934604568f693913bbe4dadd9597fa1ca03 Binary files /dev/null and b/tasks/1-8/reference/shopping_list.xlsx differ diff --git a/tasks/1-8/subtasks/0.json b/tasks/1-8/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..af9f9563e444c8f0d59af9c7a0308321355c4c3d --- /dev/null +++ b/tasks/1-8/subtasks/0.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete all students' score and the header in score excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/score.xlsx", + "expected_file": "../../../../reference/score.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-8/subtasks/1.json b/tasks/1-8/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..c4deaddf8b05bac68d50be3f5019b44240d5708a --- /dev/null +++ b/tasks/1-8/subtasks/1.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "remove all students' class and the header in class member excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/class_member.xlsx", + "expected_file": "../../../../reference/class_member.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-8/subtasks/2.json b/tasks/1-8/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..dac102e462cf5a895ae028d04c1f42b3b6aef02e --- /dev/null +++ b/tasks/1-8/subtasks/2.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete all amounts in salary excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/salary.xlsx", + "expected_file": "../../../../reference/salary.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-8/subtasks/3.json b/tasks/1-8/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..ebc563364d85ca812b7e5b0f8b4c6bef77503395 --- /dev/null +++ b/tasks/1-8/subtasks/3.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete everything in company budget excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/company_budget.xlsx", + "expected_file": "../../../../reference/company_budget.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-8/subtasks/4.json b/tasks/1-8/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..ce31b47dffc9429054625d0513308e96225ef2e8 --- /dev/null +++ b/tasks/1-8/subtasks/4.json @@ -0,0 +1,17 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "delete all amounts in shopping list excel file", + "evaluation": [ + { + "function": "evaluate_exact_match", + "args": { + "doc_type": "xlsx", + "result_file": "./data/shopping_list.xlsx", + "expected_file": "../../../../reference/shopping_list.xlsx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-8/testbed/data/class_member.xlsx b/tasks/1-8/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..dd6a0421730495eae2171cdc099ccb5f3d9d0542 Binary files /dev/null and b/tasks/1-8/testbed/data/class_member.xlsx differ diff --git a/tasks/1-8/testbed/data/company_budget.xlsx b/tasks/1-8/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-8/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-8/testbed/data/salary.xlsx b/tasks/1-8/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-8/testbed/data/salary.xlsx differ diff --git a/tasks/1-8/testbed/data/score.xlsx b/tasks/1-8/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..812cba24c3f966028cf38c1e22d2084cdf0bd768 Binary files /dev/null and b/tasks/1-8/testbed/data/score.xlsx differ diff --git a/tasks/1-8/testbed/data/shopping_list.xlsx b/tasks/1-8/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-8/testbed/data/shopping_list.xlsx differ diff --git a/tasks/1-9/subtasks/0.json b/tasks/1-9/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..1b62e69341b776607a2a4603f213a9c91cf08aab --- /dev/null +++ b/tasks/1-9/subtasks/0.json @@ -0,0 +1,32 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "calculate the average of two midterm scores, write in the bottom row of the score excel file with header 'Average'", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/score.xlsx", + "matches": [ + { + "row": "22", + "col": "1", + "value": "Average" + }, + { + "row": "22", + "col": "2", + "value": "80.5" + }, + { + "row": "22", + "col": "3", + "value": "78.3" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/subtasks/1.json b/tasks/1-9/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..cb1222122a0d2496453d6fac51b74c7909aba20c --- /dev/null +++ b/tasks/1-9/subtasks/1.json @@ -0,0 +1,32 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "find the student whose midterm1 score is closest to the average in score excel file, duplicate the line at bottom", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/score.xlsx", + "matches": [ + { + "row": "22", + "col": "1", + "value": "Alice" + }, + { + "row": "22", + "col": "2", + "value": "78" + }, + { + "row": "22", + "col": "3", + "value": "75" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/subtasks/2.json b/tasks/1-9/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..f8f1918f888bfc9b68f255297cd37e8247fa5745 --- /dev/null +++ b/tasks/1-9/subtasks/2.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "calculate total salary for one year and add it after the bottom row with header 'Total' in salary excel file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/salary.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "Total" + }, + { + "row": "5", + "col": "2", + "value": "400000" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/subtasks/3.json b/tasks/1-9/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..20a57ee003050e374f032eaeac8db3b0af80dbee --- /dev/null +++ b/tasks/1-9/subtasks/3.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "calculate total cost listed in budget excel file, append a row with header 'Total' after the bottom of the file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/company_budget.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "Total" + }, + { + "row": "5", + "col": "2", + "value": "2051000" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/subtasks/4.json b/tasks/1-9/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..6b63f0fcdd5b67e94e62670c3f29e0d185e39e1f --- /dev/null +++ b/tasks/1-9/subtasks/4.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "calculate the total weights for total's shopping, append a row with header 'Total' after the bottom of the file", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "Total" + }, + { + "row": "5", + "col": "2", + "value": "6" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/subtasks/5.json b/tasks/1-9/subtasks/5.json new file mode 100644 index 0000000000000000000000000000000000000000..837742ae65d12798b03836bf373a95d4140d33f4 --- /dev/null +++ b/tasks/1-9/subtasks/5.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "calculate item average weight, write in the bottom row in shopping list excel file with header 'Average'", + "evaluation": [ + { + "function": "evaluate_excel_cell_value", + "args": { + "file": "./data/shopping_list.xlsx", + "matches": [ + { + "row": "5", + "col": "1", + "value": "Average" + }, + { + "row": "5", + "col": "2", + "value": "2" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/1-9/testbed/data/class_member.xlsx b/tasks/1-9/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/1-9/testbed/data/class_member.xlsx differ diff --git a/tasks/1-9/testbed/data/company_budget.xlsx b/tasks/1-9/testbed/data/company_budget.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..84ec233e29ad0d61061b691176c8a4369a90c3f9 Binary files /dev/null and b/tasks/1-9/testbed/data/company_budget.xlsx differ diff --git a/tasks/1-9/testbed/data/salary.xlsx b/tasks/1-9/testbed/data/salary.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a0bffd515d01455dd3024656f889307fefa46a5d Binary files /dev/null and b/tasks/1-9/testbed/data/salary.xlsx differ diff --git a/tasks/1-9/testbed/data/score.xlsx b/tasks/1-9/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..20c8a75eca4d20aea33feb31f8f1db24c7aaacb6 Binary files /dev/null and b/tasks/1-9/testbed/data/score.xlsx differ diff --git a/tasks/1-9/testbed/data/shopping_list.xlsx b/tasks/1-9/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/1-9/testbed/data/shopping_list.xlsx differ diff --git a/tasks/2-13/subtasks/0.json b/tasks/2-13/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..3e96d66d8ad6642b7a0c3885b99cdc02af9a3cd1 --- /dev/null +++ b/tasks/2-13/subtasks/0.json @@ -0,0 +1,45 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training session for all participants from excel file, create calendar events for each member in their name", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Bob.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Carol.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/David.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Eva.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Frank.ics" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-13/subtasks/1.json b/tasks/2-13/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..78907ce842139d48008b96b6cc5dc3c324273132 --- /dev/null +++ b/tasks/2-13/subtasks/1.json @@ -0,0 +1,39 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training session for members in section A from excel file, create calendar events file for each member in their name", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/David.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Grace.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Jack.ics" + } + }, + { + "function": "evaluate_file_not_exist", + "args": { + "file": "calendar/Bob.ics" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-13/testbed/data/team_training_schedule.xlsx b/tasks/2-13/testbed/data/team_training_schedule.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3f9355e4a874ebbd93b9c7f98c23b68a560f2084 Binary files /dev/null and b/tasks/2-13/testbed/data/team_training_schedule.xlsx differ diff --git a/tasks/2-14/subtasks/0.json b/tasks/2-14/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..39eb2a2b719307223934deb361e1a993cc5a691f --- /dev/null +++ b/tasks/2-14/subtasks/0.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "schedule a reward meeting for the top-three students in score excel file and create calendar events for each of them.", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Tina.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Rachel.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Sam.ics" + } + } +] +} \ No newline at end of file diff --git a/tasks/2-14/testbed/data/score.xlsx b/tasks/2-14/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/2-14/testbed/data/score.xlsx differ diff --git a/tasks/2-17/subtasks/0.json b/tasks/2-17/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..5f9ac52e7a8b0ef1c231dfbe08606c43d4045dde --- /dev/null +++ b/tasks/2-17/subtasks/0.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule meetings for students in each class seperately, create calendar events for them", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Noah.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Carol.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Jack.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Mia.ics" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-17/testbed/data/class_member.xlsx b/tasks/2-17/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a18f97b49f65139913cffb87e79ac75384e42d2c Binary files /dev/null and b/tasks/2-17/testbed/data/class_member.xlsx differ diff --git a/tasks/2-18/subtasks/0.json b/tasks/2-18/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..1299f235fe5e6fe2b73029968ebe20cc055a7c74 --- /dev/null +++ b/tasks/2-18/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Write a statement in docx file to the student with the highest score in the class, use the student's name as filename", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/Rachel.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-18/subtasks/1.json b/tasks/2-18/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..875795747e0d86ffc0648fc3e44b94883e6656aa --- /dev/null +++ b/tasks/2-18/subtasks/1.json @@ -0,0 +1,29 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "assign homework \"\"read book and write essay\"\" in docx file for students, called homework.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/homework.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "file": "data/homework.docx", + "doc_type": "docx", + "keywords": [ + "read", + "book", + "write", + "essay" + ] + + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-18/subtasks/2.json b/tasks/2-18/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..84d433abfdf11e4221b8f2659cc6e7ff208ebfd5 --- /dev/null +++ b/tasks/2-18/subtasks/2.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "write all shopping item in docx file (shopping_list.docx) from shopping list (shopping_list.xlsx)", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/shopping_list.docx", + "doc_type": "docx", + "keywords": [ + "apple", + "cabbage", + "onion" + ] + + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-18/testbed/data/class_member.xlsx b/tasks/2-18/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/2-18/testbed/data/class_member.xlsx differ diff --git a/tasks/2-18/testbed/data/score.xlsx b/tasks/2-18/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..b1acc9213c8f5d874e7a360467fe7b7c4276a958 Binary files /dev/null and b/tasks/2-18/testbed/data/score.xlsx differ diff --git a/tasks/2-18/testbed/data/shopping_list.xlsx b/tasks/2-18/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/2-18/testbed/data/shopping_list.xlsx differ diff --git a/tasks/2-19/subtasks/0.json b/tasks/2-19/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..3d5829ecd1ba880f9d1740222b4fe38ea42b015f --- /dev/null +++ b/tasks/2-19/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Analyze Excel data of students' grade and generate a teaching report in teaching.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/teaching.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-19/testbed/data/score.xlsx b/tasks/2-19/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1e48bee294cdc4152bb65966a73c5ee2387b7e12 Binary files /dev/null and b/tasks/2-19/testbed/data/score.xlsx differ diff --git a/tasks/2-20/subtasks/0.json b/tasks/2-20/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..d7d6eb5b4e1cc796430296b2a26a2eb4a38a4fec --- /dev/null +++ b/tasks/2-20/subtasks/0.json @@ -0,0 +1,22 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Find all students who are taking CS161 and put the name and Student ID of students into students.docx. Each student should be on seperate lines, with the format `Student ID, name`.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/students.docx", + "doc_type": "doc", + "keywords": [ + "Vufuh", + "Pom", + "S1006" + ] + } + } + ] + +} \ No newline at end of file diff --git a/tasks/2-20/subtasks/1.json b/tasks/2-20/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..f545aedd14c86fbe79767a9384f137ffd11caa11 --- /dev/null +++ b/tasks/2-20/subtasks/1.json @@ -0,0 +1,27 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Find all students from CS161_roster.csv who are CS major, and put their name and Student ID in cs_class_2024.docx. Each student should be on seperate lines, with the format `Student ID, name`.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/cs_class_2024.docx", + "doc_type": "doc", + "keywords": [ + "S1000", + "Pivozu", + "Zoye", + "S1001", + "Cixarim", + "Sipaq", + "S1005", + "Yehamucu", + "Tukemoy" + ] + } + } +] +} \ No newline at end of file diff --git a/tasks/2-20/subtasks/2.json b/tasks/2-20/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..7903d3739a950f7f8817a8d4f0a7b82c03fada27 --- /dev/null +++ b/tasks/2-20/subtasks/2.json @@ -0,0 +1,25 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Find all students from CS161_roster.csv whose final_exam is 100, and put their name and student id in makeup_exam_list.docx. Each student should be on seperate lines, with the format `student id, name`.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/makeup_exam_list.docx", + "doc_type": "doc", + "keywords": [ + "S1004", + "Dipuj", + "Fufowot", + "S1007", + "Cani", + "Jehecat" + ] + + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-20/testbed/data/CS161_Class_Roster.xlsx b/tasks/2-20/testbed/data/CS161_Class_Roster.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..334eb859621e4b37509c95c6d37d2c06c101a39f Binary files /dev/null and b/tasks/2-20/testbed/data/CS161_Class_Roster.xlsx differ diff --git a/tasks/2-21/subtasks/0.json b/tasks/2-21/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..29f41826395f93c333b7428e2639882a2e4d7b44 --- /dev/null +++ b/tasks/2-21/subtasks/0.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Extract Bill's previous courses from Bill_course_list.xlsx, and put the course in classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/subtasks/1.json b/tasks/2-21/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..6be8cb62a17cec3822091c9a64b1614e88d51b00 --- /dev/null +++ b/tasks/2-21/subtasks/1.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Retrieve Bill's past courses from the Excel file Bill_course_lists.xlsx and save them into classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/subtasks/2.json b/tasks/2-21/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..6ff037c49dd961755ccf50c5bd3718b129136ea1 --- /dev/null +++ b/tasks/2-21/subtasks/2.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Extract the courses Bill has previously taken from the Excel sheet Bill_course_lists.xlsx and transfer them to classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/subtasks/3.json b/tasks/2-21/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..7fbe789dce54a6c8b695e18e4413849e85ead354 --- /dev/null +++ b/tasks/2-21/subtasks/3.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Obtain Bill's earlier course data from the Excel document Bill_course_lists.xlsx and input it into classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/subtasks/4.json b/tasks/2-21/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..699d949214bd15433e53e44d40b24fac81446dbe --- /dev/null +++ b/tasks/2-21/subtasks/4.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Pull Bill's course history from the Excel file Bill_course_lists.xlsx and document it in classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/subtasks/5.json b/tasks/2-21/subtasks/5.json new file mode 100644 index 0000000000000000000000000000000000000000..4d522f345b1925d77c8be9fa3846f2318898fec3 --- /dev/null +++ b/tasks/2-21/subtasks/5.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Take the list of courses Bill has completed from the Excel file Bill_course_lists.xlsx and place it into classes_taken.docx. Each course should be on a seperate line.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/classes_taken.docx", + "doc_type": "docx", + "keywords": [ + "CS 101", + "MATH 150", + "PHYS 101", + "CS 102", + "MATH 151", + "PHYS 102", + "CS 103", + "MATH 152", + "PHYS 103", + "CS 104", + "MATH 250", + "PHYS 104", + "CS 105", + "MATH 251", + "PHYS 105" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-21/testbed/data/Bill_course_lists.xlsx b/tasks/2-21/testbed/data/Bill_course_lists.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..f4e30a71fa35783559365aa5db252ef8ac6c5fdc Binary files /dev/null and b/tasks/2-21/testbed/data/Bill_course_lists.xlsx differ diff --git a/tasks/2-22/subtasks/0.json b/tasks/2-22/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..acf413894a9d7e3a22aa788ff0818bfef55802e8 --- /dev/null +++ b/tasks/2-22/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Generate a word report based on midterm1 and midterm2 scores, the filename is 'midterm_report.docx'.", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/midterm_report.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-22/subtasks/1.json b/tasks/2-22/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..846644db9811cdd46d600c627805674376d09d68 --- /dev/null +++ b/tasks/2-22/subtasks/1.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "give some instruction and prediction in word file based on house_price_index.xlsx, and save the word file in the same filename", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/house_price_index.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-22/testbed/data/car_trading.xlsx b/tasks/2-22/testbed/data/car_trading.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1bbe9ee2a3b990f2c8b528baf41cf93084d0e0f1 Binary files /dev/null and b/tasks/2-22/testbed/data/car_trading.xlsx differ diff --git a/tasks/2-22/testbed/data/house_price_index.xlsx b/tasks/2-22/testbed/data/house_price_index.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..41e93da54210c90de811afc6fe1a79ca5db12b74 Binary files /dev/null and b/tasks/2-22/testbed/data/house_price_index.xlsx differ diff --git a/tasks/2-22/testbed/data/score.xlsx b/tasks/2-22/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/2-22/testbed/data/score.xlsx differ diff --git a/tasks/2-24/subtasks/0.json b/tasks/2-24/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..f26b23b3266905f550f00436f348f7518e632cbf --- /dev/null +++ b/tasks/2-24/subtasks/0.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Extract the score and name then calculate the average score in excel score.xlsx", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/score.xlsx", + "doc_type": "xlsx", + "keywords": [ + "79" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-24/testbed/data/score.xlsx b/tasks/2-24/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1fb750331397328d851fa09bdfe45a8f197e2292 Binary files /dev/null and b/tasks/2-24/testbed/data/score.xlsx differ diff --git a/tasks/2-33/subtasks/0.json b/tasks/2-33/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..64450309e70f01531b17815189f867c0a72ec2d8 --- /dev/null +++ b/tasks/2-33/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Print the top 3 students in midterm1 into a file named top3.txt. ", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/top3.txt", + "doc_type": "txt", + "keywords": [ + "Tina", + "Rachel", + "Sam" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-33/subtasks/1.json b/tasks/2-33/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..0259cec2f88838f077c497be6ba2168dbed103a0 --- /dev/null +++ b/tasks/2-33/subtasks/1.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Which class has the least student?", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/answer.txt", + "doc_type": "txt", + "keywords": [ + "4" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-33/testbed/data/class_member.xlsx b/tasks/2-33/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/2-33/testbed/data/class_member.xlsx differ diff --git a/tasks/2-33/testbed/data/score.xlsx b/tasks/2-33/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/2-33/testbed/data/score.xlsx differ diff --git a/tasks/2-34/subtasks/0.json b/tasks/2-34/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..6464019a433a10da1e78e2cbf5946caeb7f50cc0 --- /dev/null +++ b/tasks/2-34/subtasks/0.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Analyze housing price and print the lowest price in lowest.txt", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/lowest.txt", + "doc_type": "txt", + "keywords": [ + "16.91" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-34/subtasks/1.json b/tasks/2-34/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..269b9c22d99804a47f95f51b5be8aa293bad2258 --- /dev/null +++ b/tasks/2-34/subtasks/1.json @@ -0,0 +1,19 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Check satisfying score in the survey. What age has highest score.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "file": "data/answer.txt", + "doc_type": "txt", + "keywords": [ + "26" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-34/testbed/data/house_price_index.xlsx b/tasks/2-34/testbed/data/house_price_index.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..41e93da54210c90de811afc6fe1a79ca5db12b74 Binary files /dev/null and b/tasks/2-34/testbed/data/house_price_index.xlsx differ diff --git a/tasks/2-34/testbed/data/survey_responses.xlsx b/tasks/2-34/testbed/data/survey_responses.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..815870eb0639475ca3584c9cfa4591d4fa063a42 Binary files /dev/null and b/tasks/2-34/testbed/data/survey_responses.xlsx differ diff --git a/tasks/2-43/subtasks/0.json b/tasks/2-43/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..fd651d64c4968dce856556d4ca5d66f504e26784 --- /dev/null +++ b/tasks/2-43/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues and send a email revenues.eml containing all years' revenues to Bob for reporting", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Bob", + "keywords": [ + "revenues", + "4439044", + "2212203" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-43/subtasks/1.json b/tasks/2-43/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..c5ef3f8bf760385ecd9bd2abf656706f116bf461 --- /dev/null +++ b/tasks/2-43/subtasks/1.json @@ -0,0 +1,33 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, send a email revenues.eml to Bob containing first 10 years of revenues, and send a email to Tom containing rest of data", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Bob", + "keywords": [ + "revenues", + "4439044", + "2212203" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Tom", + "keywords": [ + "revenues", + "2170828", + "2832545" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/2-43/testbed/data/company_revenues.xlsx b/tasks/2-43/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/2-43/testbed/data/company_revenues.xlsx differ diff --git a/tasks/3-1/subtasks/0.json b/tasks/3-1/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..769a73ae868a3e4132944f483af0685365877fdd --- /dev/null +++ b/tasks/3-1/subtasks/0.json @@ -0,0 +1,41 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Convert Excel spreadsheet containing project tasks to task.pdf and email Alice.eml containing pdf file for review", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/task.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Alice", + "keywords": [ + "Activaty1", + "Activaty2", + "Activaty3", + "Activaty4" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/task.pdf", + "keywords": [ + "Activaty1", + "Activaty2", + "Activaty3", + "Activaty4" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-1/testbed/data/task.xlsx b/tasks/3-1/testbed/data/task.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..276508704760600574fab0ad14096cb5d184534b Binary files /dev/null and b/tasks/3-1/testbed/data/task.xlsx differ diff --git a/tasks/3-100/subtasks/0.json b/tasks/3-100/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..1a64f5b936f1a66d8f94f0b2f47e3a25e74e98ea --- /dev/null +++ b/tasks/3-100/subtasks/0.json @@ -0,0 +1,28 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "extract revenue numbers and save as a table in excel file revenues.xlsx, email the info to manager Tom (Tom@gmail.com)", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/revenues.xlsx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Tom", + "keywords": [ + "4439044", + "2212203", + "4983791", + "2832545" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-100/testbed/data/company_revenues.xlsx b/tasks/3-100/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/3-100/testbed/data/company_revenues.xlsx differ diff --git a/tasks/3-4/subtasks/0.json b/tasks/3-4/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..1bc661dc68c68175ef313ca19b257ac0f2a77edf --- /dev/null +++ b/tasks/3-4/subtasks/0.json @@ -0,0 +1,38 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Convert Excel spreadsheet containing financial data to report.pdf for archival purposes, and save pdf file under folder financial", + "evaluation":[ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.pdf" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/financial/report.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/report.pdf", + "keywords": [ + "Quadrex", + "investment", + "benefits", + "costs", + "totals", + "190000.00", + "140000.00", + "130833.33" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-4/testbed/data/financial_report_2.xlsx b/tasks/3-4/testbed/data/financial_report_2.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..5475f1a714410ec223ad9fe974778b5e71835e5d Binary files /dev/null and b/tasks/3-4/testbed/data/financial_report_2.xlsx differ diff --git a/tasks/3-45/subtasks/0.json b/tasks/3-45/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..4e30da7a48349e9fa99548148a07b70d9d2a4b55 --- /dev/null +++ b/tasks/3-45/subtasks/0.json @@ -0,0 +1,45 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training session for all participants from excel file, create calendar events for each member in their name", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Bob.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Carol.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/David.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Eva.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Frank.ics" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-45/testbed/data/team_training_schedule.xlsx b/tasks/3-45/testbed/data/team_training_schedule.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..81a1c24e5a1bf370c133eef8f56020b23e6cd93d Binary files /dev/null and b/tasks/3-45/testbed/data/team_training_schedule.xlsx differ diff --git a/tasks/3-46/subtasks/0.json b/tasks/3-46/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..a6c35567f0288dc65218b4431c5c37fb8a413cb4 --- /dev/null +++ b/tasks/3-46/subtasks/0.json @@ -0,0 +1,75 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "schedule a reward meeting to the top-three students in midterm 2, create calendar event reward for them with their score in midterm 2. email to top-three students separately with the same details in the calendar event.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Carol.ics", + "keywords": [ + "reward", + "100" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Kate.ics", + "keywords": [ + "reward", + "95" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Emma.ics", + "keywords": [ + "reward", + "93" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Carol", + "keywords": [ + "reward", + "100" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Kate", + "keywords": [ + "reward", + "95" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Emma", + "keywords": [ + "reward", + "93" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-46/testbed/data/score.xlsx b/tasks/3-46/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/3-46/testbed/data/score.xlsx differ diff --git a/tasks/3-47/subtasks/0.json b/tasks/3-47/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..c620b2eb387b608c3d966d146849edbee02ce677 --- /dev/null +++ b/tasks/3-47/subtasks/0.json @@ -0,0 +1,25 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "schedule a reward meeting to the top-three students, write reward statement in statement.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/statement.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/statement.pdf", + "keywords": [ + "Carol" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-47/testbed/data/score.xlsx b/tasks/3-47/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/3-47/testbed/data/score.xlsx differ diff --git a/tasks/3-48/subtasks/0.json b/tasks/3-48/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..e05835b6cbf38d3cfd36e132c3d7c3c962d48ba7 --- /dev/null +++ b/tasks/3-48/subtasks/0.json @@ -0,0 +1,33 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training session for members in section A from excel file, create calendar events file for each member in their name", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/David.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Grace.ics" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Jack.ics" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-48/testbed/data/team_training_schedule.xlsx b/tasks/3-48/testbed/data/team_training_schedule.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3f9355e4a874ebbd93b9c7f98c23b68a560f2084 Binary files /dev/null and b/tasks/3-48/testbed/data/team_training_schedule.xlsx differ diff --git a/tasks/3-49/subtasks/0.json b/tasks/3-49/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..7e2f4a18fc6e9d06582912222bd350e32946f852 --- /dev/null +++ b/tasks/3-49/subtasks/0.json @@ -0,0 +1,97 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "schedule a helping section, pair one student whose score is in section A/B and one student in section C, create calendar events for each of them using their names, email those students for notification", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Carol.ics", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Frank.ics", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Ivy.ics", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Leo.ics", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Carol", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Frank", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Ivy", + "keywords": [ + "helping", + "section" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Leo", + "keywords": [ + "helping", + "section" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-49/testbed/data/team_training_schedule.xlsx b/tasks/3-49/testbed/data/team_training_schedule.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d364fac78a3c15f40ce8f767d829407b4a88d2d8 Binary files /dev/null and b/tasks/3-49/testbed/data/team_training_schedule.xlsx differ diff --git a/tasks/3-52/subtasks/0.json b/tasks/3-52/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..2f8fb22e68fffc2bd74140a42502a5bfd2a80f2a --- /dev/null +++ b/tasks/3-52/subtasks/0.json @@ -0,0 +1,51 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Create meeting agenda from Excel data and add it to my calendar and email to the participants emails as reminders, separately.", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Bob.ics", + "keywords": [ + "Introductions", "Linda", + "Agenda", "Davide", + "Strategy", "Charlie" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Linda", + "keywords": [ + "Introductions", "Linda" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Davide", + "keywords": [ + "Agenda", "Davide" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Charlie", + "keywords": [ + "Strategy", "Charlie" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-52/testbed/data/meeting_agenda_2.xlsx b/tasks/3-52/testbed/data/meeting_agenda_2.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..30b03f370f9cd2192cc367be5b6b59ff8f5855a0 Binary files /dev/null and b/tasks/3-52/testbed/data/meeting_agenda_2.xlsx differ diff --git a/tasks/3-53/subtasks/0.json b/tasks/3-53/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..e39c1218e978cb5926da42491c29aa883dca80cf --- /dev/null +++ b/tasks/3-53/subtasks/0.json @@ -0,0 +1,27 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "For students in each class seperately, create calendar events for them, create different folders by class numbers (folder name should have the format class_x) and save the student name as a file [NAME].txt in the corresponding folder", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/class_1/Noah.txt" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/class_2/Mia.txt" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/class_3/Tina.txt" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-53/testbed/data/class_member.xlsx b/tasks/3-53/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/3-53/testbed/data/class_member.xlsx differ diff --git a/tasks/3-54/subtasks/0.json b/tasks/3-54/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..310f7961b4ef955f8de37e7431a759dad52446be --- /dev/null +++ b/tasks/3-54/subtasks/0.json @@ -0,0 +1,27 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Write a statement in reward.docx to the student who got the highest score on midterm1, email this to student's parents (the name of the email file is student_name.eml). Student's parents' email have the form student_name@mail.com.", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/reward.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Tina", + "keywords": [ + "midterm1", + "highest", + "score" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-54/testbed/data/score.xlsx b/tasks/3-54/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..cb3705362c780bb7b6e38f5571747f5c3e2814a9 Binary files /dev/null and b/tasks/3-54/testbed/data/score.xlsx differ diff --git a/tasks/3-55/subtasks/0.json b/tasks/3-55/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..fcd4f25565dfb1f9cbc8daac811add678bcf9ea9 --- /dev/null +++ b/tasks/3-55/subtasks/0.json @@ -0,0 +1,31 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Write a statement in reward.docx to the student who got the best midterm1 score in the class, make a post reward.jpg", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/reward.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/reward.docx", + "keywords": [ + "Tina" + ] + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/reward.jpg" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-55/testbed/data/score.xlsx b/tasks/3-55/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..cb3705362c780bb7b6e38f5571747f5c3e2814a9 Binary files /dev/null and b/tasks/3-55/testbed/data/score.xlsx differ diff --git a/tasks/3-56/subtasks/0.json b/tasks/3-56/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..92aaf9d40fc32ba1334e424a44371e662f32ca41 --- /dev/null +++ b/tasks/3-56/subtasks/0.json @@ -0,0 +1,25 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "assign homework \"read book and write essay\" in hw1.docx for students in class 1.", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/hw1.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/hw1.docx", + "keywords": [ + "read book and write essay" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-56/testbed/data/class_member.xlsx b/tasks/3-56/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/3-56/testbed/data/class_member.xlsx differ diff --git a/tasks/3-57/subtasks/0.json b/tasks/3-57/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..c899892cb38f4433e66daac9b1eeabf63ff48a4e --- /dev/null +++ b/tasks/3-57/subtasks/0.json @@ -0,0 +1,47 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "assign homework \"read book and write essay\" in hw1.docx for students in class 1, email hw1.docx to Carol and Anna in class1", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/hw1.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/hw1.docx", + "keywords": [ + "read book and write essay" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Carol", + "keywords": [ + "homework", + "read book and write essay" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Anna", + "keywords": [ + "homework", + "read book and write essay" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-57/testbed/data/class_member.xlsx b/tasks/3-57/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6369d16a4a5893edf0769e77892049663293aaaa Binary files /dev/null and b/tasks/3-57/testbed/data/class_member.xlsx differ diff --git a/tasks/3-58/subtasks/0.json b/tasks/3-58/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..970f3175793aac12675916cd9297a290fd1a7632 --- /dev/null +++ b/tasks/3-58/subtasks/0.json @@ -0,0 +1,25 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "write all shopping item in shopping.docx from shopping list", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/shopping.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/shopping.docx", + "keywords": [ + "apple", "banana", "onion" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-58/testbed/data/shopping_list.xlsx b/tasks/3-58/testbed/data/shopping_list.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7d3e8ed2ecefcdae5b6b0f1b251b490546f6a6a3 Binary files /dev/null and b/tasks/3-58/testbed/data/shopping_list.xlsx differ diff --git a/tasks/3-59/subtasks/0.json b/tasks/3-59/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..30d2a3979052ebf12ebcdaf205b14b5d991f12fa --- /dev/null +++ b/tasks/3-59/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Analyze Excel data of students' grade and generate a teaching report in teaching.docx, convert to teaching.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/teaching.docx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/teaching.pdf" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-59/testbed/data/score.xlsx b/tasks/3-59/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/3-59/testbed/data/score.xlsx differ diff --git a/tasks/3-6/subtasks/0.json b/tasks/3-6/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..e6317ed9867ff896810fcabb2b8efe9be69e0674 --- /dev/null +++ b/tasks/3-6/subtasks/0.json @@ -0,0 +1,211 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training as calendar event training.ics for next week and send out emails training.eml to all team members from an excel file", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Alice.ics", + "keywords": [ + "team", + "training", + "DTSTART:20200508" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Alice", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Bob", + "keywords": [ + "team", + "training", + "section B", + "11:00", + "1:00", + "am", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Carol", + "keywords": [ + "team", + "training", + "section C", + "2:00", + "4:00", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "David", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Eva", + "keywords": [ + "team", + "training", + "section B", + "11:00", + "1:00", + "am", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Frank", + "keywords": [ + "team", + "training", + "section C", + "2:00", + "4:00", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Grace", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Hank", + "keywords": [ + "team", + "training", + "section B", + "11:00", + "1:00", + "am", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Ivy", + "keywords": [ + "team", + "training", + "section C", + "2:00", + "4:00", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Jack", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Kelly", + "keywords": [ + "team", + "training", + "section B", + "11:00", + "1:00", + "am", + "pm" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Leo", + "keywords": [ + "team", + "training", + "section C", + "2:00", + "4:00", + "pm" + ] + } + } + ] + } \ No newline at end of file diff --git a/tasks/3-6/subtasks/1.json b/tasks/3-6/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..0be6792ac1e2a90af4eac18b4ba11efba84be31d --- /dev/null +++ b/tasks/3-6/subtasks/1.json @@ -0,0 +1,87 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Schedule a team training as calendar event training.ics for next week and send out emails training.eml to only members in Section A from an excel file", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "calendar/Alice.ics" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "ics", + "file": "calendar/Alice.ics", + "keywords": [ + "team", + "training", + "DTSTART:20200508" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Alice", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "David", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Grace", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Jack", + "keywords": [ + "team", + "training", + "section A", + "9:00", + "11:00", + "am" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-6/testbed/data/team_training_schedule.xlsx b/tasks/3-6/testbed/data/team_training_schedule.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3f9355e4a874ebbd93b9c7f98c23b68a560f2084 Binary files /dev/null and b/tasks/3-6/testbed/data/team_training_schedule.xlsx differ diff --git a/tasks/3-60/subtasks/0.json b/tasks/3-60/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..04ba34a52e3ab079174159a83a30587bd84ac31a --- /dev/null +++ b/tasks/3-60/subtasks/0.json @@ -0,0 +1,25 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Find all students who are taking CS161 and put the name and student ID of students into students.docx, save in folder CS161", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/CS161/students.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/CS161/students.docx", + "keywords": [ + "Pivozu", "Cixarim", "Pegoqeju", "Xihozun", "Zejo" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-60/testbed/data/CS161_Class_Roster.xlsx b/tasks/3-60/testbed/data/CS161_Class_Roster.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1081ca82a4f73d4ddc75f446b7349f3d9e791df8 Binary files /dev/null and b/tasks/3-60/testbed/data/CS161_Class_Roster.xlsx differ diff --git a/tasks/3-61/subtasks/0.json b/tasks/3-61/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..68bf9884706fec919770814bfb2f913a36cd2e3d --- /dev/null +++ b/tasks/3-61/subtasks/0.json @@ -0,0 +1,26 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Extract a student's previous courses from Excel, suggest four courses he should take this quarter and put it in classes.docx, email classes.docx to student. The email file should have the name thomas.eml.", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/classes.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Thomas", + "keywords": [ + "class", + "this quarter" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-61/testbed/data/Thomas_Robinson_Course_List.xlsx b/tasks/3-61/testbed/data/Thomas_Robinson_Course_List.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..2574979c3635d4a62decaf0613e2541539dcf5c3 Binary files /dev/null and b/tasks/3-61/testbed/data/Thomas_Robinson_Course_List.xlsx differ diff --git a/tasks/3-63/subtasks/0.json b/tasks/3-63/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..cd5ea3c31dafda8bb081c844e81d9f711db1e701 --- /dev/null +++ b/tasks/3-63/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Generate a file report.docx based on midterm1 and midterm2 scores, save in folder named report", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report/report.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-63/testbed/data/score.xlsx b/tasks/3-63/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/3-63/testbed/data/score.xlsx differ diff --git a/tasks/3-64/subtasks/0.json b/tasks/3-64/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..ae46b71dd040b11941c6c066336426b73160189f --- /dev/null +++ b/tasks/3-64/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "give some instruction and prediction in file house_price.docx based on house price index, convert to a post housing.jpg", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/housing.jpg" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/house_price.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-64/testbed/data/house_price_index.xlsx b/tasks/3-64/testbed/data/house_price_index.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..41e93da54210c90de811afc6fe1a79ca5db12b74 Binary files /dev/null and b/tasks/3-64/testbed/data/house_price_index.xlsx differ diff --git a/tasks/3-65/subtasks/0.json b/tasks/3-65/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba25cb1a72460273cb7644bace4ff8cd04dea3e --- /dev/null +++ b/tasks/3-65/subtasks/0.json @@ -0,0 +1,25 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "give some instruction and prediction in file house_price.docx based on house price index, email to Bob for reference. The subject of email should be Housing_Instruction", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/house_price.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Bob", + "keywords": [ + "Housing", "Instruction" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-65/testbed/data/house_price_index.xlsx b/tasks/3-65/testbed/data/house_price_index.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..41e93da54210c90de811afc6fe1a79ca5db12b74 Binary files /dev/null and b/tasks/3-65/testbed/data/house_price_index.xlsx differ diff --git a/tasks/3-66/subtasks/0.json b/tasks/3-66/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..b8316c2c713980fff9dc5f7dcdcd39114768cd02 --- /dev/null +++ b/tasks/3-66/subtasks/0.json @@ -0,0 +1,27 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "suggest cars and save in cars.docx for people whose budget is 50000$ based on car trading excel file, email to Tom for reference with subject 'Cars for you'", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/cars.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Tom", + "keywords": [ + "Cars", + "for", + "you" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-66/testbed/data/car_trading.xlsx b/tasks/3-66/testbed/data/car_trading.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1bbe9ee2a3b990f2c8b528baf41cf93084d0e0f1 Binary files /dev/null and b/tasks/3-66/testbed/data/car_trading.xlsx differ diff --git a/tasks/3-67/subtasks/0.json b/tasks/3-67/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..e1276e521884c3107ab6bae94bf88f088edd0a95 --- /dev/null +++ b/tasks/3-67/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "suggest cars and save in cars.docx for people whose budget is 50000$ based on car trading excel file, convert to suggesting.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/cars.docx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/suggesting.pdf" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-67/testbed/data/car_trading.xlsx b/tasks/3-67/testbed/data/car_trading.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1bbe9ee2a3b990f2c8b528baf41cf93084d0e0f1 Binary files /dev/null and b/tasks/3-67/testbed/data/car_trading.xlsx differ diff --git a/tasks/3-7/subtasks/0.json b/tasks/3-7/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..b7c5cf23e1343f07f221651e142cb82a2ca841ef --- /dev/null +++ b/tasks/3-7/subtasks/0.json @@ -0,0 +1,102 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Extract admitted applicant's name and email, write Graduate Program Admission Letter with applicant's name in admission.pdf, and send it to applicant's email admission.eml under folder using their last name", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/admission.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/admission.pdf", + "keywords": [ + "Anderson", + "Ashley", + "Baker", + "Robert", + "Davis", + "Christine", + "Flores", + "Robert", + "Robinson", + "Edward", + "Nguyen", + "Brian" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "jennifer.gonzalez", + "keywords": [ + "Anderson", + "admission" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "sarah.sanchez", + "keywords": [ + "Baker", + "admission" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "linda.white", + "keywords": [ + "Davis", + "admission" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "karen.scott", + "keywords": [ + "Flores", + "admission" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "dorothy.green", + "keywords": [ + "Nguyen", + "admission" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "sharon.torres", + "keywords": [ + "Lopez", + "admission" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-7/testbed/data/UIC_Admitted_Students.xlsx b/tasks/3-7/testbed/data/UIC_Admitted_Students.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d787dc2e64e0aea3ad92d33304ce53434a8ba451 Binary files /dev/null and b/tasks/3-7/testbed/data/UIC_Admitted_Students.xlsx differ diff --git a/tasks/3-8/subtasks/0.json b/tasks/3-8/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..7119aa0aeedba0a15809b908a9bfc938c5950e57 --- /dev/null +++ b/tasks/3-8/subtasks/0.json @@ -0,0 +1,44 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, delete years that revenues are lower than $2000000 and save in new.xlsx, generate reports report.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/new.xlsx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.docx" + } + }, + { + "function": "evaluate_excel_cell_value", + "file": "./data/new.xlsx", + "args": { + "matches": [ + { + "row": "4", + "col": "2", + "value": "2793265" + } + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/report.docx", + "keywords": [ + "revenues" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/1.json b/tasks/3-8/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..eec3bdd5ebf75ee931ac7b95d4a2a804165f1cab --- /dev/null +++ b/tasks/3-8/subtasks/1.json @@ -0,0 +1,46 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, extract years that revenues are higher than 4000000$, save in good.xlsx, generate reports report.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/good.xlsx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "xlsx", + "file": "data/good.xlsx", + "keywords": [ + "2004", + "2014", + "2015" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/report.pdf", + "keywords": [ + "revenues", + "2004", + "2014", + "2015" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/2.json b/tasks/3-8/subtasks/2.json new file mode 100644 index 0000000000000000000000000000000000000000..d50f880003cd88a1f5cd75075c32bbac073f6957 --- /dev/null +++ b/tasks/3-8/subtasks/2.json @@ -0,0 +1,36 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, save the top 2 in top2.xlsx, generate reports.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/reports.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "xlsx", + "file": "data/top2.xlsx", + "keywords": [ + "2014", + "2015" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/reports.docx", + "keywords": [ + "revenues" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/3.json b/tasks/3-8/subtasks/3.json new file mode 100644 index 0000000000000000000000000000000000000000..3c68498d81757b9955997dde62fcd99748d59740 --- /dev/null +++ b/tasks/3-8/subtasks/3.json @@ -0,0 +1,25 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, calculate the revenue difference of the first year and last year in the table, save the result in improvement.txt, and generate a short report in reports.docx", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "data/improvement.txt", + "keywords": [ + "1606499" + ] + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "./data/reports.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/4.json b/tasks/3-8/subtasks/4.json new file mode 100644 index 0000000000000000000000000000000000000000..b11c1098430762cb1f96701c13539e089f3f8acb --- /dev/null +++ b/tasks/3-8/subtasks/4.json @@ -0,0 +1,25 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, calculate the revenue difference of this year and last year, save the result in improvement.txt, and generate a short report in reports.docx", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "txt", + "file": "data/improvement.txt", + "keywords": [ + "256009" + ] + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "./data/reports.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/5.json b/tasks/3-8/subtasks/5.json new file mode 100644 index 0000000000000000000000000000000000000000..502da08a4ca1d3ef5918123674c1b4eb666ed0fc --- /dev/null +++ b/tasks/3-8/subtasks/5.json @@ -0,0 +1,43 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read score for midterm1 and midterm2, how many students score 90 or higher for midterm1 and midterm2 seperately, write numbers saved in file exams.docx, and exams.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/exams.pdf" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/exams.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/exams.pdf", + "keywords": [ + "7", + "4" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/exams.docx", + "keywords": [ + "7", + "4" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/6.json b/tasks/3-8/subtasks/6.json new file mode 100644 index 0000000000000000000000000000000000000000..87c6b849b984661d0f896df51b0e487d0840bec9 --- /dev/null +++ b/tasks/3-8/subtasks/6.json @@ -0,0 +1,89 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read score for midterm1 and midterm2, which students made progress? find out these students and email them with the score and the email title is congratulations", + "evaluation": [ + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Ivy", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Jack", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Peter", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Kate", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Noah", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_not_contain", + "args": { + "doc_type": "email", + "username": "Liam", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_not_contain", + "args": { + "doc_type": "email", + "username": "Alice", + "keywords": [ + "congratulation" + ] + } + }, + { + "function": "evaluate_not_contain", + "args": { + "doc_type": "email", + "username": "Tom", + "keywords": [ + "congratulation" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/subtasks/7.json b/tasks/3-8/subtasks/7.json new file mode 100644 index 0000000000000000000000000000000000000000..db4d4d7f26ff0aa05de75b4b7267cfe939b47c2d --- /dev/null +++ b/tasks/3-8/subtasks/7.json @@ -0,0 +1,25 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read score for midterm1 and midterm2, find number of students who make progress, write the answer in a word file, progress.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/progress.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "docx", + "file": "data/progress.docx", + "keywords": [ + "5" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-8/testbed/data/company_revenues.xlsx b/tasks/3-8/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/3-8/testbed/data/company_revenues.xlsx differ diff --git a/tasks/3-8/testbed/data/score.xlsx b/tasks/3-8/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0e6017269272eb6022018ca1b571351e9e463e44 Binary files /dev/null and b/tasks/3-8/testbed/data/score.xlsx differ diff --git a/tasks/3-82/subtasks/0.json b/tasks/3-82/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..4860ed8fe9af89f6bc4ee6d108e5e01aee9b1d14 --- /dev/null +++ b/tasks/3-82/subtasks/0.json @@ -0,0 +1,37 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Check student grade in midterm1, write top-5 students' names in list.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/list.docx" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "xlsx", + "file": "data/list.docx", + "keywords": [ + "Rachel", "Tina", "Sam", "Bob", "Carol" + ] + } + }, + { + "function": "evaluate_not_contain", + "args": { + "doc_type": "xlsx", + "file": "data/list.docx", + "keywords": [ + "David", + "Alice", + "LIam" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-82/testbed/data/score.xlsx b/tasks/3-82/testbed/data/score.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dcf42b2dc7ffda39be7d22658ada889cb029d68 Binary files /dev/null and b/tasks/3-82/testbed/data/score.xlsx differ diff --git a/tasks/3-83/subtasks/0.json b/tasks/3-83/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..026ac6451236c5026b339936a05e5a0d37bebc61 --- /dev/null +++ b/tasks/3-83/subtasks/0.json @@ -0,0 +1,37 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "which class has the least students, save all students' names in this class in Class_member.pdf", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/Class_member.pdf" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "pdf", + "file": "data/Class_member.pdf", + "keywords": [ + "Mia" + ] + } + }, + { + "function": "evaluate_not_contain", + "args": { + "doc_type": "pdf", + "file": "data/Class_member.pdf", + "keywords": [ + "Noah", + "Carol", + "Jack" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-83/testbed/data/class_member.xlsx b/tasks/3-83/testbed/data/class_member.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..f12b38327368a9517b8bf23c7d7611e9cc9af422 Binary files /dev/null and b/tasks/3-83/testbed/data/class_member.xlsx differ diff --git a/tasks/3-84/subtasks/0.json b/tasks/3-84/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..6be75ec15b0ddc5ae03a452da5f1d7dd28ec8cb5 --- /dev/null +++ b/tasks/3-84/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Analyze relationship between sleeping hours and age, weight, gender from survey result, convert report to report.docx file", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-84/testbed/data/survey_responses.xlsx b/tasks/3-84/testbed/data/survey_responses.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d40e69f6d6c13f919f1f6f6ca5e4258cd8d075b5 Binary files /dev/null and b/tasks/3-84/testbed/data/survey_responses.xlsx differ diff --git a/tasks/3-85/subtasks/0.json b/tasks/3-85/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..d4400bb449a5bb8bb4ed39a73a7a00bd9a2b929f --- /dev/null +++ b/tasks/3-85/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "Analyze relationship between sleeping hours and age, weight, gender from survey result, save report as report.jpg", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.jpg" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-85/testbed/data/survey_responses.xlsx b/tasks/3-85/testbed/data/survey_responses.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d40e69f6d6c13f919f1f6f6ca5e4258cd8d075b5 Binary files /dev/null and b/tasks/3-85/testbed/data/survey_responses.xlsx differ diff --git a/tasks/3-9/subtasks/0.json b/tasks/3-9/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..d735fb44526c4042bcb172690493c6717c125acb --- /dev/null +++ b/tasks/3-9/subtasks/0.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, describe revenues in a report. I want the report converted into an image named report.jpg", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/report.jpg" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-9/subtasks/1.json b/tasks/3-9/subtasks/1.json new file mode 100644 index 0000000000000000000000000000000000000000..f0c4d6faec66a4e62ec2f121abc95505121d823a --- /dev/null +++ b/tasks/3-9/subtasks/1.json @@ -0,0 +1,15 @@ +{ + "username": "Alice", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues, how many years of revenues are higher than 4000000$, save results in an image revenues.jpg", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/revenues.jpg" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-9/testbed/data/company_revenues.xlsx b/tasks/3-9/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/3-9/testbed/data/company_revenues.xlsx differ diff --git a/tasks/3-96/subtasks/0.json b/tasks/3-96/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..486877ab849978f6a34bf5620b17e605b52a2736 --- /dev/null +++ b/tasks/3-96/subtasks/0.json @@ -0,0 +1,34 @@ +{ + "username": "Jack", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "read company revenues and send a email revenues.eml containing data to Bob for reporting, also write a revenue.docx to summarize it", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/revenue.docx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "emails/Bob/revenues.eml" + } + }, + { + "function": "evaluate_contain", + "args": { + "doc_type": "email", + "username": "Bob", + "keywords": [ + "4439044", + "2212203", + "4983791", + "2832545" + ] + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-96/testbed/data/company_revenues.xlsx b/tasks/3-96/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/3-96/testbed/data/company_revenues.xlsx differ diff --git a/tasks/3-99/subtasks/0.json b/tasks/3-99/subtasks/0.json new file mode 100644 index 0000000000000000000000000000000000000000..16e0bc8a3932d928bc9927244b3589571b8abe4f --- /dev/null +++ b/tasks/3-99/subtasks/0.json @@ -0,0 +1,21 @@ +{ + "username": "Bob", + "date": "2020-05-01", + "weekday": "Friday", + "time": "10:00 AM", + "task": "extract revenue data and save as a table in excel file revenues.xlsx, write statements in revenues.docx", + "evaluation": [ + { + "function": "evaluate_file_exist", + "args": { + "file": "data/revenues.xlsx" + } + }, + { + "function": "evaluate_file_exist", + "args": { + "file": "data/revenuse.docx" + } + } + ] +} \ No newline at end of file diff --git a/tasks/3-99/testbed/data/company_revenues.xlsx b/tasks/3-99/testbed/data/company_revenues.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..895ff39e6009d2da1b353f5ee9217acfd8d0a9c5 Binary files /dev/null and b/tasks/3-99/testbed/data/company_revenues.xlsx differ diff --git a/tasks/test.py b/tasks/test.py new file mode 100644 index 0000000000000000000000000000000000000000..aac19b837ad51edffdb95533004e5fa20aff088f --- /dev/null +++ b/tasks/test.py @@ -0,0 +1,38 @@ +import os +import sys + +def check_testbed_files(root_dir: str): + Allow_Extensions = ['.xlsx', '.xls'] + error_files = [] + + for dir_name in os.listdir(root_dir): + dir_path = os.path.join(root_dir, dir_name) + testbed_path = os.path.join(dir_path, 'testbed', 'data') + if not os.path.exists(testbed_path): + print(f"Error: 'testbed' directory not found in {dir_path}") + continue + + print(f"Checking {testbed_path}...") + for file_name in os.listdir(testbed_path): + file_path = os.path.join(testbed_path, file_name) + if os.path.isdir(file_path): + print(f"skip directory: {file_path}") + continue + _, ext = os.path.splitext(file_name) + if ext not in Allow_Extensions: + error_files.append(file_path) + print(f"Error: Invalid file extension '{ext}' in {file_path}") + else: + print(f"Valid file: {file_path}") + + print("\n" + "=" * 50) + if error_files: + print("The following files have invalid extensions:") + for error_file in error_files: + print(f"- {error_file}") + else: + print("All files have valid extensions.") + +if __name__ == "__main__": + ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) + check_testbed_files(ROOT_DIR) \ No newline at end of file