tedrics-data / tedrics_data_testcases.json
KlaudiaTH
Debugged dataset loading script.
301b108
raw
history blame
19.4 kB
[
{
"task_id": 1,
"mbpp_task_id": 776,
"task": "Count non-vowels neighboring at least one vowel in a string.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Vowels are 'a', 'e', 'i', 'o', 'u'. The input string 'amazonprime' consists of the following characters: 1: a, 2: m, 3: a, 4: z, 5: o, 6: n, 7: p, 8: r, 9: i, 10: m, 11: e. The input string 'amazonprime' has 5 characters that have surrounding vowels, namely: 1: p, 4: z, 6: n, 8: r, 10: m. The output is 5.",
"input": "['amazonprime']",
"output": "5"
},
{
"test_case_id": 2,
"cot": "Vowels are 'a', 'e', 'i', 'o', 'u'. The input is a string, e.g. 'partofthejourney' consists of the following characters: 1: p, 2: a, 3: r, 4: t, 5: o, 6: f, 7: t, 8: h, 9: e, 10: j, 11: o, 12: u, 13: r, 14: n, 15: e, 16: y. The input string 'partofthejourney' has 9 characters that have surrounding vowels, namely: 1: p, 3: r, 4: t, 6: f, 8: h, 10: j, 13: r, 14: n, 16: y. The output is 9.",
"input": "['partofthejourney']",
"output": "9"
},
{
"test_case_id": 3,
"cot": "Vowels are 'a', 'e', 'i', 'o', 'u'. The input is a string, e.g. '140tls' consists of the following characters: 1: 1, 2: 4, 3: 0, 4: t, 5: l, 6: s. The input string '140tls' has 0 characters that have surrounding vowels. The output is 0.",
"input": "['140tls']",
"output": "0"
}
]
},
{
"task_id": 2,
"mbpp_task_id": 639,
"task": "Sum the length of the strings of a given list after removing the strings that start with a lowercase letter.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input list of strings ['abcd', 'Python', 'abba', 'aba']. Remove the strings that start with a lowercase letter, namely 'abcd', 'abba' and 'aba' from the input list. Count the characters of the strings that start with an uppercase letter, i.e., 'Python' to deternine the sum of the lengths of the strings. The output length of the string 'Python' is 6.",
"input": "[['abcd', 'Python', 'abba', 'aba']]",
"output": "6"
},
{
"test_case_id": 2,
"cot": "Given the input list of strings ['sally', 'Dylan', 'rebecca', 'Diana']. Remove the strings that start with a lowercase letter, namely 'sally' and 'rebecca' from the input list. Count the characters of the strings that start with an uppercase letter, i.e., 'Dylan' and 'Diana' to deternine the sum of the lengths of the strings. The length of the string 'Dylan' is 5 and the length of the string 'Diana' is also 5. The output sum of both lengths is 10.",
"input": "[['sally', 'Dylan', 'rebecca', 'Diana']]",
"output": "10"
},
{
"test_case_id": 3,
"cot": "Given the input list of strings ['catch', 'me', 'if', 'you', 'can']. Remove the strings that start with a lowercase letter, namely 'catch', 'me', 'if', 'you' and 'can' from the input list. There are no strings that start with an uppercase letter to deternine the sum of their lengths. The output is 0.",
"input": "[['catch', 'me', 'if', 'you', 'can']]",
"output": "0"
}
]
},
{
"task_id": 3,
"mbpp_task_id": 793,
"task": "Find the position of last occurrences of an element in a sorted array.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given a sorted array of the elements [1,2,3] and the target element 1. The target element 1 occurs first and last at position 0. The output is the last occurrence of the target element 1, i.e. position 0.",
"input": "[[1,2,3],1]",
"output": "0"
},
{
"test_case_id": 2,
"cot": "Given a sorted array of the elements [1,1,1,2,3,4] and the target element 1. The target element 1 occurs first at position 0 and last at position 2. The output is the last occurrence of the target element 1, i.e. position 2.",
"input": "[[1,1,1,2,3,4],1]",
"output": "2"
},
{
"test_case_id": 3,
"cot": "Given a sorted array of the elements [2,3,2,3,6,8,9] and the target element 5. The target element 5 does not occur in the input array. The output is -1.",
"input": "[[2,3,2,3,6,8,9],5]",
"output": "-1"
}
]
},
{
"task_id": 4,
"mbpp_task_id": -1,
"task": "Lowercase the given input text.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input 'Hey! How are you?'. The first and second words, i.e. 'Hey' and 'How', each start with a capital letter. Transforming the input text in lower case results in the output'hey! how are you?'.",
"input": "['Hey! How are you?']",
"output": "'hey! how are you?'"
},
{
"test_case_id": 2,
"cot": "Given an input text 'you got it'. All words are written in lower case. The output is 'you got it'.",
"input": "['you got it']",
"output": "'you got it'"
},
{
"test_case_id": 3,
"cot": "Given an input text 'WOW'. All letters of the input text are written in upper case. Transforming the input text in lower case results in the output 'wow'.",
"input": "['WOW']",
"output": "'wow'"
}
]
},
{
"task_id": 5,
"mbpp_task_id": 725,
"task": "Extract string from between quotations.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given an input string s = 'Cast your \"favorite\" entertainment \"apps\"'. The task is to extract substrings from the input string s between double quotation marks. The first, second and fourth substrings, i.e., 'Cast', 'your' and 'entertainment' are not between quotation marks. The third and fifth substrings, i.e. '\"favorite\"' and '\"apps\"' are surrounded by double quotation marks and can be extracted. The output is ['favorite', 'apps'].",
"input": "['Cast your \"favorite\" entertainment \"apps\"']",
"output": "['favorite', 'apps']"
},
{
"test_case_id": 2,
"cot": "Given an input string s = \"Watch content \\'4k Ultra HD\\' resolution with \\'HDR 10\\' Support\". The task is to extract substrings from the input string s between double quotation marks. The first, second, fourth, fifth and seventh substrings, i.e., 'Watch', 'content', 'resolution', 'with' and 'Support ' are not between quotation marks. The third and sixth substrings, i.e. '\\'4k Ultra HD\\'' and '\\'HDR 10\\'' are surrounded by single quotation marks and can't be extracted. The output is [].",
"input": "['Watch content \\'4k Ultra HD\\' resolution with \\'HDR 10\\' Support']",
"output": "[]"
},
{
"test_case_id": 3,
"cot": "Given an input string s = 'You and me are \"great\"'. The task is to extract substrings from the input string s between double quotation marks. The first, second, third and fourth substrings, i.e., 'You', 'and', 'me' and 'are ' are not between quotation marks. The fifth substring, i.e. '\"great\"' and is surrounded by double quotation marks and can be extracted. The output is ['great'].",
"input": "['You and me are \"great\"']",
"output": "['great']"
}
]
},
{
"task_id": 6,
"mbpp_task_id": 619,
"task": "Move numbers to the end of the string.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given an input string s = 'I1love143you55three3000thousand'. The input string s contains the digits 1, 143, 55 and 3000 and the substrings 'I', 'love', 'you', 'three' and 'thousand'. The digits are attached in the order found after the substrings. The output is 'Iloveyouthreethousand1143553000'.",
"input": "['I1love143you55three3000thousand']",
"output": "'Iloveyouthreethousand1143553000'"
},
{
"test_case_id": 2,
"cot": "Given an input string s = 'AvengersOneTwoAssemble'. There are no digits in the input string. The output is 'AvengersOneTwoAssemble'.",
"input": "['AvengersOneTwoAssemble']",
"output": "'AvengersOneTwoAssemble'"
},
{
"test_case_id": 3,
"cot": "Given an input string s = 'thisis100percentnotagoodidea'. The input string s contains the digits 1, 0 and 0 and the substrings 'thisis', and 'percentnotagoodidea'. The digits are attached in the order found after the two substrings. The output is 'thisispercentnotagoodidea100'.",
"input": "['thisis100percentnotagoodidea']",
"output": "'thisispercentnotagoodidea100'"
}
]
},
{
"task_id": 7,
"mbpp_task_id": 602,
"task": "Find the first repeated character in a string.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given an input string s = 'abcabc'. The character 'a' first occurs at position 0 and recurs at position 3. The character 'b' first occurs at position 1 and recurs at position 4. The character 'c' first occurs at position 2 and recurs at position 5. The character 'a' is the first repeated character in the input string. The output is 'a'.",
"input": "['abcabc']",
"output": "'a'"
},
{
"test_case_id": 2,
"cot": "Given an input string s = 'abc'. The character 'a' only occurs at position 0. The character 'b' only occurs at position 1. The character 'c' only occurs at position 2. The output is None.",
"input": "['abc']",
"output": "None"
},
{
"test_case_id": 3,
"cot": "Given an input string s = '12323'. The character '1' only occurs at position 0. The character '2' first occurs at position 1 and recurs at position 3. The character '3' first occurs at position 2 and recurs at position 4. The character '2' is the first repeated character in the input string. The output is '2'.",
"input": "['12323']",
"output": "'2'"
}
]
},
{
"task_id": 8,
"mbpp_task_id": 616,
"task":"Perform element wise modulo of tuples of the same length.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input tuples tup1 = (10, 4, 5, 6) and tup2 = (5, 6, 7, 5) with equal length. The first element of the tuple tup1, 10, modulo the first element of the second tuple, 5, is 10 % 5 = 0. The second element of the tuple tup1, 4, modulo the second element of the second tuple, 6, is 4 % 6 = 4. The third element of the tuple tup1, 5, modulo the third element of the second tuple, 7, is 5 % 7 = 5. The fourth element of the tuple tup1, 6, modulo the fourth element of the second tuple, 5, is 6 % 5 = 1. The output is (0, 4, 5, 1).",
"input": "[(10, 4, 5, 6), (5, 6, 7, 5)]",
"output": "(0, 4, 5, 1)"
},
{
"test_case_id": 2,
"cot": "Given the input tuples tup1 = (11, 5, 6, 7) and tup2 = (6, 7, 8, 6) with equal length. The first element of the tuple tup1, 11, modulo the first element of the second tuple, 6, is 11 % 6 = 5. The second element of the tuple tup1, 5, modulo the second element of the second tuple, 7, is 5 % 7 = 5. The third element of the tuple tup1, 6, modulo the third element of the second tuple, 8, is 6 % 8 = 6. The fourth element of the tuple tup1, 7, modulo the fourth element of the second tuple, 6, is 7 % 6 = 1. The output is (5, 5, 6, 1).",
"input": "[(11, 5, 6, 7), (6, 7, 8, 6)]",
"output": "(5, 5, 6, 1)"
},
{
"test_case_id": 3,
"cot": "Given the input tuples tup1 = (12, 6, 7, 8) and tup2 = (7, 8, 9, 7) with equal length. The first element of the tuple tup1, 12, modulo the first element of the second tuple, 7, is 12 % 7 = 5. The second element of the tuple tup1, 6, modulo the second element of the second tuple, 8, is 6 % 8 = 6. The third element of the tuple tup1, 7, modulo the third element of the second tuple, 9, is 7 % 9 = 7. The fourth element of the tuple tup1, 8, modulo the fourth element of the second tuple, 7, is 8 % 7 = 1. The output is (5, 6, 7, 1).",
"input": "[(12, 6, 7, 8), (7, 8, 9, 7)]",
"output": "(5, 6, 7, 1)"
}
]
},
{
"task_id": 9,
"mbpp_task_id": 641,
"task":"Find the nth nonagonal number.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input number n = 10. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 325. The output is 325.",
"input": "[10]",
"output": "325"
},
{
"test_case_id": 2,
"cot": "Given the input number n = 15. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 750. The output is 750.",
"input": "[15]",
"output": "750"
},
{
"test_case_id": 3,
"cot": "Given the input number n = 18. The nth nonagonal number is given by the formula: n*(7*n - 5)/2 = 18. The output is 1089.",
"input": "[18]",
"output": "1089"
}
]
},
{
"task_id": 10,
"mbpp_task_id": 784,
"task":"Find the first even and odd number of a given list.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input list [1,3,4,7,6]. The third and fifth elements are even numbers, since 4 divided by 2 and 6 divided by 2 equals zero. The first, second, and fourth elements are odd numbers, because 1 divided by 2, 3 divided by 2, and 7 divided by 2 is not equal to zero. The first even number from the list is 4 and the first odd number is 1. The output is the tuple (4, 1).",
"input": "[[1,3,4,7,6]]",
"output": "(4, 1)"
},
{
"test_case_id": 2,
"cot": "Given the input list [2,4,3,1]. The first and second elements are even numbers, since 2 divided by 2 and 4 divided by 2 equals zero. The third and fourth elements are odd numbers, because 3 divided by 2 and 1 divided by 2 is not equal to zero. The first even number is 2 and the first odd number from the list is 3. The output is the tuple (2, 3).",
"input": "[[2,4,3,1]]",
"output": "(2, 3)"
},
{
"test_case_id": 3,
"cot": "Given the input list [2,4,6]. The first, second and third elements are even numbers, since 2 divided by 2, 4 divided by 2 and 6 divided by 2 equals zero. There are no odd numbers, so the output is the tuple (2, -1).",
"input": "[[2,4,6]]",
"output": "(2, -1)"
}
]
},
{
"task_id": 11,
"mbpp_task_id": 785,
"task":"Convert tuple string to integer tuple.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the input string \"(7, 8, 9)\". The output is the tuple (7, 8, 9) containing integer values.",
"input": "[\"(7, 8, 9)\"]",
"output": "(7, 8, 9)"
},
{
"test_case_id": 2,
"cot": "Given the input string \"(1, 2, 3)\". The output is the tuple (1, 2, 3) containing integer values.",
"input": "[\"(1, 2, 3)\"]",
"output": "(1, 2, 3)"
},
{
"test_case_id": 3,
"cot": "Given the input string \"(4, 5)\". The output is the tuple (4, 5) containing integer values.",
"input": "[\"(4, 5)\"]",
"output": "(4, 5)"
}
]
},
{
"task_id": 12,
"mbpp_task_id": 574,
"task":"Compute the surface area of a cylinder.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given the radius 10 and the height 5. The surface area of a cylinder is computed by the formula ((2*3.1415*10)*5) + ((3.1415*10**2)*2). The output is 942.45.",
"input": "[10,5]",
"output": "942.45"
},
{
"test_case_id": 2,
"cot": "Given the radius 4 and the height 5. The surface area of a cylinder is computed by the formula ((2*3.1415*4)*5) + ((3.1415*4**2)*2). The output is 226.18800000000002.",
"input": "[4,5]",
"output": "226.18800000000002"
},
{
"test_case_id": 3,
"cot": "Given the radius 4 and the height 10. The surface area of a cylinder is computed by the formula ((2*3.1415*4)*10) + ((3.1415*4**2)*2). The output is 351.848.",
"input": "[4,10]",
"output": "351.848"
}
]
},
{
"task_id": 13,
"mbpp_task_id": 786,
"task":"Locate the right insertion point for a specified value in sorted order.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given a sorted input list [1,2,4,5] and the element to be inserted, i.e. 6. The list has four elements, namely 1, 2, 4 and 5, all of which are smaller than input element 6. The position in the list where the input element 6 can be inserted to keep the resulting list sorted is at the end of the list. The output is position 4.",
"input": "[[1,2,4,5], 6]",
"output": "4"
},
{
"test_case_id": 2,
"cot": "Given a sorted input list [1,2,4,5] and the element to be inserted, i.e. 3. The list has four elements, namely 1, 2, 4 and 5. The first and the second elements are smaller than the input element 3. The third and fourth elements are greater than 3. The position in the list where the input element 3 can be inserted to keep the resulting list sorted is between the second and the third element. The output is position 2.",
"input": "[[1,2,4,5], 3]",
"output": "2"
},
{
"test_case_id": 3,
"cot": "Given a sorted input list [1,2,4,5] and the element to be inserted, i.e. 0. The list has four elements, namely 1, 2, 4 and 5, all of which are greater than input element 0. The position in the list where the input element 0 can be inserted to keep the resulting list sorted is at the beginning of the list. The output is position 0.",
"input": "[[1,2,4,5],0]",
"output": "0"
}
]
},
{
"task_id": 14,
"mbpp_task_id": 566,
"task": "Get the sum of the digits of a non-negative integer.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given a non-negative integer number n = 345. The sum of the digits of n is 3 + 4 + 5 = 12. The output is position 12.",
"input": "[345]",
"output": "12"
},
{
"test_case_id": 2,
"cot": "Given a non-negative integer number n = 12. The sum of the digits of n is 1 + 2 = 3. The output is position 3.",
"input": "[12]",
"output": "3"
},
{
"test_case_id": 3,
"cot": "Given a non-negative integer number n = 97. The sum of the digits of n is 9 + 7 = 16. The output is position 16.",
"input": "[97]",
"output": "16"
}
]
},
{
"task_id": 15,
"mbpp_task_id": 603,
"task": "Get lucid numbers smaller than or equal to a given integer.",
"test_cases": [
{
"test_case_id": 1,
"cot": "Given a non-negative integer number n = 10. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 10, i.e., 2, 3, 4, 5, 6, 7, 8, 9, 10. Delete every 2nd number because first number is 2, i.e., 3, 5, 7, 9. Ludic = [1, 2]. Delete every 3rd number because first number is 3, i.e., 5, 7. Ludic = [1, 2, 3]. The process terminates here since there are less than 5 elements left. The last two numbers are added to the final result. The output is [1, 2, 3, 5, 7].",
"input": "[10]",
"output": "[1, 2, 3, 5, 7]"
},
{
"test_case_id": 2,
"cot": "Given a non-negative integer number n = 15. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 15, i.e., 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. Delete every 2nd number because first number is 2, i.e., 3, 5, 7, 9, 11, 13, 15. Ludic = [1, 2]. Delete every 3rd number because first number is 3, i.e., 5, 7, 11, 13 . Ludic = [1, 2, 3]. The process terminates here since there are less than 5 elements left. The last four numbers are added to the final result. The output is [1, 2, 3, 5, 7, 11, 13].",
"input": "[15]",
"output": "[1, 2, 3, 5, 7, 11, 13]"
},
{
"test_case_id": 3,
"cot": "Given a non-negative integer number n = 5. Process of generating Ludic numbers: Ludic = [1] Consider natural numbers from 2 to n = 5, i.e., 2, 3, 4, 5. Delete every 2nd number because first number is 2, i.e., 3, 5. Ludic = [1, 2]. The process terminates here since there are less than 3 elements left. The last two numbers are added to the final result. The output is [1, 2, 3, 5].",
"input": "[5]",
"output": "[1, 2, 3, 5]"
}
]
}
]