[ { "name": "HumanEval_24_largest_divisor", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_47_median", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_35_max_element", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_135_can_arrange", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_134_check_if_last_char_is_a_letter", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_31_is_prime", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_104_unique_digits", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_11_string_xor", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_60_sum_to_n", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_151_double_the_difference", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_23_strlen", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_91_is_bored", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_64_vowels_count", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_55_fib", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_144_simplify", "language": "php", "prompt": "/ where both numerator and denominator are positive whole numbers.\n// You can assume that x, and n are valid fractions, and do not have zero as denominator.\nfunction simplify($x, $n) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_144_simplify.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return simplify(...$args);\n}\n\nfunction test(): void {\n if (candidate(\"1/5\", \"5/1\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"1/6\", \"2/1\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"5/1\", \"3/1\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"7/10\", \"10/2\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"2/10\", \"50/10\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"7/2\", \"4/2\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"11/6\", \"6/1\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"2/3\", \"5/2\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"5/2\", \"3/5\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"2/4\", \"8/4\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"2/4\", \"4/2\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"1/5\", \"5/1\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"1/5\", \"1/5\") !== false) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_98_count_upper", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_115_max_fill", "language": "php", "prompt": " 0 | 1\n// * 1 <= capacity <= 10\nfunction max_fill($grid, $capacity) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_115_max_fill.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return max_fill(...$args);\n}\n\nfunction test(): void {\n if (candidate(array(array(0, 0, 1, 0), array(0, 1, 0, 0), array(1, 1, 1, 1)), 1) !== 6) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(0, 0, 1, 1), array(0, 0, 0, 0), array(1, 1, 1, 1), array(0, 1, 1, 1)), 2) !== 5) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(0, 0, 0), array(0, 0, 0)), 5) !== 0) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(1, 1, 1, 1), array(1, 1, 1, 1)), 2) !== 4) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(1, 1, 1, 1), array(1, 1, 1, 1)), 9) !== 2) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_120_maximum", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_93_encode", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_51_remove_vowels", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_30_get_positive", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_15_string_sequence", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_100_make_a_pile", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_112_reverse_delete", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_27_flip_case", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_161_solve", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_29_filter_by_prefix", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_102_choose_num", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_143_words_in_sentence", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_5_intersperse", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_76_is_simple_power", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_75_is_multiply_prime", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_157_right_angle_triangle", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_92_any_int", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_33_sort_third", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_53_add", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_69_search", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_82_prime_length", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_58_common", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_139_special_factorial", "language": "php", "prompt": " 0\n// For example:\n// The function will receive an integer as input and should return the special\n// factorial of this integer.\nfunction special_factorial($n) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_139_special_factorial.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return special_factorial(...$args);\n}\n\nfunction test(): void {\n if (candidate(4) !== 288) { throw new Exception(\"Test failed!\"); }\n if (candidate(5) !== 34560) { throw new Exception(\"Test failed!\"); }\n if (candidate(7) !== 125411328000) { throw new Exception(\"Test failed!\"); }\n if (candidate(1) !== 1) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_110_exchange", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_122_add_elements", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_150_x_or_y", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_45_triangle_area", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_130_tri", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_119_match_parens", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_26_remove_duplicates", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_13_greatest_common_divisor", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_48_is_palindrome", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_62_derivative", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_67_fruit_distribution", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_77_iscube", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_116_sort_array", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_113_odd_count", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_61_correct_bracketing", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_66_digitSum", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_149_sorted_list_sum", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_128_prod_signs", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_42_incr_list", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_9_rolling_max", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_1_separate_paren_groups", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_101_words_string", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_137_compare_one", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_22_filter_integers", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_37_sort_even", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_152_compare", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_107_even_odd_palindrome", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_46_fib4", "language": "php", "prompt": " 0\n// fib4(1) -> 0\n// fib4(2) -> 2\n// fib4(3) -> 0\n// fib4(n) -> fib4(n-1) + fib4(n-2) + fib4(n-3) + fib4(n-4).\n// Please write a function to efficiently compute the n-th element of the fib4 number sequence. Do not use recursion.\nfunction fib4($n) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_46_fib4.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return fib4(...$args);\n}\n\nfunction test(): void {\n if (candidate(5) !== 4) { throw new Exception(\"Test failed!\"); }\n if (candidate(8) !== 28) { throw new Exception(\"Test failed!\"); }\n if (candidate(10) !== 104) { throw new Exception(\"Test failed!\"); }\n if (candidate(12) !== 386) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_163_generate_integers", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_4_mean_absolute_deviation", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_89_encrypt", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_123_get_odd_collatz", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_18_how_many_times", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_109_move_one_ball", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_145_order_by_points", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_25_factorize", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_52_below_threshold", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_103_rounded_avg", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_6_parse_nested_parens", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_121_solution", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_147_get_max_triples", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_148_bf", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_90_next_smallest", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_19_sort_numbers", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_154_cycpattern_check", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_79_decimal_to_binary", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_7_filter_by_substring", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_155_even_odd_count", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_158_find_max", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_136_largest_smallest_integers", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_68_pluck", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_108_count_nums", "language": "php", "prompt": " 0.\n// If a number is negative, then its first signed digit will be negative:\n// e.g. -123 has signed digits -1, 2, and 3.\nfunction count_nums($arr) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_108_count_nums.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return count_nums(...$args);\n}\n\nfunction test(): void {\n if (candidate(array()) !== 0) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(-1, -2, 0)) !== 0) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1, 1, 2, -2, 3, 4, 5)) !== 6) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1, 6, 9, -6, 0, 1, 5)) !== 5) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1, 100, 98, -7, 1, -1)) !== 4) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(12, 23, 34, -45, -56, 0)) !== 5) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(0, 1)) !== 1) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1)) !== 1) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_129_minPath", "language": "php", "prompt": "= 2) and a positive integer k, \n// each cell of the grid contains a value. Every integer in the range [1, N * N]\n// inclusive appears exactly once on the cells of the grid.\n// You have to find the minimum path of length k in the grid. You can start\n// from any cell, and in each step you can move to any of the neighbor cells,\n// in other words, you can go to cells which share an edge with you current\n// cell.\n// Please note that a path of length k means visiting exactly k cells (not\n// necessarily distinct).\n// You CANNOT go off the grid.\n// A path A (of length k) is considered less than a path B (of length k) if\n// after making the ordered lists of the values on the cells that A and B go\n// through (let's call them lst_A and lst_B), lst_A is lexicographically less\n// than lst_B, in other words, there exist an integer index i (1 <= i <= k)\n// such that lst_A[i] < lst_B[i] and for any j (1 <= j < i) we have\n// lst_A[j] = lst_B[j].\n// It is guaranteed that the answer is unique.\n// Return an ordered list of the values on the cells that the minimum path go through.\n// Examples:\nfunction minPath($grid, $k) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_129_minPath.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return minPath(...$args);\n}\n\nfunction test(): void {\n if (candidate(array(array(1, 2, 3), array(4, 5, 6), array(7, 8, 9)), 3) !== array(1, 2, 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(5, 9, 3), array(4, 1, 6), array(7, 8, 2)), 1) !== array(1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(1, 2, 3, 4), array(5, 6, 7, 8), array(9, 10, 11, 12), array(13, 14, 15, 16)), 4) !== array(1, 2, 1, 2)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(6, 4, 13, 10), array(5, 7, 12, 1), array(3, 16, 11, 15), array(8, 14, 9, 2)), 7) !== array(1, 10, 1, 10, 1, 10, 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(8, 14, 9, 2), array(6, 4, 13, 15), array(5, 7, 1, 12), array(3, 10, 11, 16)), 5) !== array(1, 7, 1, 7, 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(11, 8, 7, 2), array(5, 16, 14, 4), array(9, 3, 15, 6), array(12, 13, 10, 1)), 9) !== array(1, 6, 1, 6, 1, 6, 1, 6, 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(12, 13, 10, 1), array(9, 3, 15, 6), array(5, 16, 14, 4), array(11, 8, 7, 2)), 12) !== array(1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(2, 7, 4), array(3, 1, 5), array(6, 8, 9)), 8) !== array(1, 3, 1, 3, 1, 3, 1, 3)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(6, 1, 5), array(3, 8, 9), array(2, 7, 4)), 8) !== array(1, 5, 1, 5, 1, 5, 1, 5)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(1, 2), array(3, 4)), 10) !== array(1, 2, 1, 2, 1, 2, 1, 2, 1, 2)) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(array(1, 3), array(3, 2)), 10) !== array(1, 3, 1, 3, 1, 3, 1, 3, 1, 3)) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_70_strange_sort_list", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_162_string_to_md5", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_118_get_closest_vowel", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_44_change_base", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_0_has_close_elements", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_132_is_nested", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_28_concatenate", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_39_prime_fib", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_20_find_closest_elements", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_78_hex_key", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_97_multiply", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_21_rescale_to_unit", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_131_digits", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_153_Strongest_Extension", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_111_histogram", "language": "php", "prompt": " 2, \"b\" => 2)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"a b c a b\") !== array(\"a\" => 2, \"b\" => 2)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"a b c d g\") !== array(\"a\" => 1, \"b\" => 1, \"c\" => 1, \"d\" => 1, \"g\" => 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"r t g\") !== array(\"r\" => 1, \"t\" => 1, \"g\" => 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"b b b b a\") !== array(\"b\" => 4)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"r t g\") !== array(\"r\" => 1, \"t\" => 1, \"g\" => 1)) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"\") !== array()) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"a\") !== array(\"a\" => 1)) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_43_pairs_sum_to_zero", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_74_total_match", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_65_circular_shift", "language": "php", "prompt": " number of digits, return digits reversed.\nfunction circular_shift($x, $shift) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_65_circular_shift.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return circular_shift(...$args);\n}\n\nfunction test(): void {\n if (candidate(100, 2) !== \"001\") { throw new Exception(\"Test failed!\"); }\n if (candidate(12, 2) !== \"12\") { throw new Exception(\"Test failed!\"); }\n if (candidate(97, 8) !== \"79\") { throw new Exception(\"Test failed!\"); }\n if (candidate(12, 1) !== \"21\") { throw new Exception(\"Test failed!\"); }\n if (candidate(11, 101) !== \"11\") { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_57_monotonic", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_138_is_equal_to_sum_even", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_17_parse_music", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_142_sum_squares", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_40_triples_sum_to_zero", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_56_correct_bracketing", "language": "php", "prompt": "\".\n// return True if every opening bracket has a corresponding closing bracket.\nfunction correct_bracketing($brackets) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_56_correct_bracketing.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return correct_bracketing(...$args);\n}\n\nfunction test(): void {\n if (candidate(\"<>\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<<><>>\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<><><<><>><>\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<><><<<><><>><>><<><><<>>>\") !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<<<><>>>>\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"><<>\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<<<<\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\">\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<<>\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<><><<><>><>><<>\") !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(\"<><><<><>><>>><>\") !== false) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_146_specialFilter", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_95_check_dict_case", "language": "php", "prompt": " \"pineapple\", \"b\" => \"banana\")) !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(\"p\" => \"pineapple\", \"A\" => \"banana\", \"B\" => \"banana\")) !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(\"p\" => \"pineapple\", \"5\" => \"banana\", \"a\" => \"apple\")) !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(\"Name\" => \"John\", \"Age\" => \"36\", \"City\" => \"Houston\")) !== false) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(\"STATE\" => \"NC\", \"ZIP\" => \"12345\")) !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(\"fruit\" => \"Orange\", \"taste\" => \"Sweet\")) !== true) { throw new Exception(\"Test failed!\"); }\n if (candidate(array()) !== false) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_125_split_words", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_63_fibfib", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_133_sum_squares", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_85_add", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_34_unique", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_140_fix_spaces", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_49_modp", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_124_valid_date", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_86_anti_shuffle", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_126_is_sorted", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_80_is_happy", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_72_will_it_fly", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_88_sort_array", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_96_count_up_to", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_12_longest", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_105_by_length", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_106_f", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_36_fizz_buzz", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_2_truncate_number", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_8_sum_product", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_87_get_row", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_159_eat", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_84_solve", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_94_skjkasdkd", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_73_smallest_change", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_81_numerical_letter_grade", "language": "php", "prompt": " 3.7 A \n// > 3.3 A- \n// > 3.0 B+\n// > 2.7 B \n// > 2.3 B-\n// > 2.0 C+\n// > 1.7 C\n// > 1.3 C-\n// > 1.0 D+ \n// > 0.7 D \n// > 0.0 D-\n// 0.0 E\n// Example:\nfunction numerical_letter_grade($grades) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_81_numerical_letter_grade.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return numerical_letter_grade(...$args);\n}\n\nfunction test(): void {\n if (candidate(array(4.0, 3, 1.7, 2, 3.5)) !== array(\"A+\", \"B\", \"C-\", \"C\", \"A-\")) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1.2)) !== array(\"D+\")) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(0.5)) !== array(\"D-\")) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(0.0)) !== array(\"E\")) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(1.0, 0.3, 1.5, 2.8, 3.3)) !== array(\"D\", \"D-\", \"C-\", \"B\", \"B+\")) { throw new Exception(\"Test failed!\"); }\n if (candidate(array(0.0, 0.7)) !== array(\"E\", \"D-\")) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_71_triangle_area", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_54_same_chars", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_114_minSubArraySum", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_117_select_words", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_14_all_prefixes", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_99_closest_integer", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_141_file_name_check", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_127_intersection", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_59_largest_prime_factor", "language": "php", "prompt": " 1 and is not a prime.\nfunction largest_prime_factor($n) {\n", "doctests": "remove", "original": "/home/arjun/repos/MultiPL-E/datasets/../datasets/originals-with-cleaned-doctests/HumanEval_59_largest_prime_factor.py", "prompt_terminology": "verbatim", "tests": "function candidate(...$args) {\n return largest_prime_factor(...$args);\n}\n\nfunction test(): void {\n if (candidate(15) !== 5) { throw new Exception(\"Test failed!\"); }\n if (candidate(27) !== 3) { throw new Exception(\"Test failed!\"); }\n if (candidate(63) !== 7) { throw new Exception(\"Test failed!\"); }\n if (candidate(330) !== 11) { throw new Exception(\"Test failed!\"); }\n if (candidate(13195) !== 29) { throw new Exception(\"Test failed!\"); }\n}\n\ntest();", "stop_tokens": [ "\nfunction", "\n?>", "\n//", "\n#" ] }, { "name": "HumanEval_16_count_distinct_characters", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_3_below_zero", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_10_make_palindrome", "language": "php", "prompt": "", "\n//", "\n#" ] }, { "name": "HumanEval_156_int_to_mini_roman", "language": "php", "prompt": "", "\n//", "\n#" ] } ]