interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / bench / prompts / mbpp-om.jsonl

272 lines · 344976 bytes Raw Blame History
1{"name": "mbpp_3_is_not_prime", "language": "om", "prompt": "om2\nnote Write an Omega function to identify non-prime numbers.\nfn is_not_prime n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_3_is_not_prime.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_not_prime 2\nret eq r false\nend\nfn tc_1 to bool\nr = is_not_prime 10\nret eq r true\nend\nfn tc_2 to bool\nr = is_not_prime 35\nret eq r true\nend\nfn tc_3 to bool\nr = is_not_prime 37\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
2{"name": "mbpp_4_heap_queue_largest", "language": "om", "prompt": "om2\nnote Write a function to find the n largest integers from a given array of numbers, returned in descending order.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn heap_queue_largest nums view long * n long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_4_heap_queue_largest.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 9 0\nput a0 0 25\nput a0 1 35\nput a0 2 22\nput a0 3 85\nput a0 4 14\nput a0 5 65\nput a0 6 75\nput a0 7 22\nput a0 8 58\nres = new long 4096 0\nr = heap_queue_largest a0 3 res\nif ne r 3\nret false\nend\nif ne get res 0 85\nret false\nend\nif ne get res 1 75\nret false\nend\nif ne get res 2 65\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 9 0\nput a0 0 25\nput a0 1 35\nput a0 2 22\nput a0 3 85\nput a0 4 14\nput a0 5 65\nput a0 6 75\nput a0 7 22\nput a0 8 58\nres = new long 4096 0\nr = heap_queue_largest a0 2 res\nif ne r 2\nret false\nend\nif ne get res 0 85\nret false\nend\nif ne get res 1 75\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 25\nput a0 1 35\nput a0 2 22\nput a0 3 85\nput a0 4 14\nput a0 5 65\nput a0 6 75\nput a0 7 22\nput a0 8 58\nres = new long 4096 0\nr = heap_queue_largest a0 5 res\nif ne r 5\nret false\nend\nif ne get res 0 85\nret false\nend\nif ne get res 1 75\nret false\nend\nif ne get res 2 65\nret false\nend\nif ne get res 3 58\nret false\nend\nif ne get res 4 35\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
3{"name": "mbpp_6_differ_At_One_Bit_Pos", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the two numbers differ at one bit position only or not.\nfn differ_At_One_Bit_Pos a long b long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_6_differ_At_One_Bit_Pos.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = differ_At_One_Bit_Pos 13 9\nret eq r true\nend\nfn tc_1 to bool\nr = differ_At_One_Bit_Pos 15 8\nret eq r false\nend\nfn tc_2 to bool\nr = differ_At_One_Bit_Pos 2 4\nret eq r false\nend\nfn tc_3 to bool\nr = differ_At_One_Bit_Pos 2 3\nret eq r true\nend\nfn tc_4 to bool\nr = differ_At_One_Bit_Pos 5 1\nret eq r true\nend\nfn tc_5 to bool\nr = differ_At_One_Bit_Pos 1 5\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nif not tc_5\nret 6\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
4{"name": "mbpp_8_square_nums", "language": "om", "prompt": "om2\nnote Write a function to find squares of individual elements in an array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn square_nums nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_8_square_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = square_nums a0 res\nif ne r 10\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 16\nret false\nend\nif ne get res 4 25\nret false\nend\nif ne get res 5 36\nret false\nend\nif ne get res 6 49\nret false\nend\nif ne get res 7 64\nret false\nend\nif ne get res 8 81\nret false\nend\nif ne get res 9 100\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 20\nput a0 2 30\nres = new long 4096 0\nr = square_nums a0 res\nif ne r 3\nret false\nend\nif ne get res 0 100\nret false\nend\nif ne get res 1 400\nret false\nend\nif ne get res 2 900\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 12\nput a0 1 15\nres = new long 4096 0\nr = square_nums a0 res\nif ne r 2\nret false\nend\nif ne get res 0 144\nret false\nend\nif ne get res 1 225\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
5{"name": "mbpp_9_find_Rotations", "language": "om", "prompt": "om2\nnote Write an Omega function to find the minimum number of rotations (greater than 0) required to get the same string.\nfn find_Rotations str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_9_find_Rotations.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"aaaa\"\nfn tc_0 to bool\nr = find_Rotations t0_0\nret eq r 1\nend\ntext t1_0 \"ab\"\nfn tc_1 to bool\nr = find_Rotations t1_0\nret eq r 2\nend\ntext t2_0 \"abc\"\nfn tc_2 to bool\nr = find_Rotations t2_0\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
6{"name": "mbpp_11_remove_Occ", "language": "om", "prompt": "om2\nnote Write an Omega function to remove first and last occurrence of a given character from the string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_Occ s view uchar * ch view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_11_remove_Occ.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"hello\"\ntext t0_1 \"l\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_Occ t0_0 t0_1 res\nif ne r 3\nret false\nend\nif ne get res 0 104\nret false\nend\nif ne get res 1 101\nret false\nend\nif ne get res 2 111\nret false\nend\nret true\nend\ntext t1_0 \"abcda\"\ntext t1_1 \"a\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_Occ t1_0 t1_1 res\nif ne r 3\nret false\nend\nif ne get res 0 98\nret false\nend\nif ne get res 1 99\nret false\nend\nif ne get res 2 100\nret false\nend\nret true\nend\ntext t2_0 \"PHP\"\ntext t2_1 \"P\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_Occ t2_0 t2_1 res\nif ne r 1\nret false\nend\nif ne get res 0 72\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
7{"name": "mbpp_14_find_Volume", "language": "om", "prompt": "om2\nnote Write an Omega function to find the volume of a triangular prism.\nfn find_Volume l long b long h long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_14_find_Volume.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_Volume 10 8 6\nret eq r 240\nend\nfn tc_1 to bool\nr = find_Volume 3 2 2\nret eq r 6\nend\nfn tc_2 to bool\nr = find_Volume 1 2 1\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
8{"name": "mbpp_16_text_lowercase_underscore", "language": "om", "prompt": "om2\nnote Write a function to that returns true if the input string contains sequences of lowercase letters joined with an underscore and false otherwise.\nnote Omega name: text is text_ here.\nfn text_lowercase_underscore text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_16_text_lowercase_underscore.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"aab_cbbbc\"\nfn tc_0 to bool\nr = text_lowercase_underscore t0_0\nret eq r true\nend\ntext t1_0 \"aab_Abbbc\"\nfn tc_1 to bool\nr = text_lowercase_underscore t1_0\nret eq r false\nend\ntext t2_0 \"Aaab_abbbc\"\nfn tc_2 to bool\nr = text_lowercase_underscore t2_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
9{"name": "mbpp_17_square_perimeter", "language": "om", "prompt": "om2\nnote Write a function that returns the perimeter of a square given its side length as input.\nfn square_perimeter a long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_17_square_perimeter.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = square_perimeter 10\nret eq r 40\nend\nfn tc_1 to bool\nr = square_perimeter 5\nret eq r 20\nend\nfn tc_2 to bool\nr = square_perimeter 4\nret eq r 16\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
10{"name": "mbpp_18_remove_dirty_chars", "language": "om", "prompt": "om2\nnote Write a function to remove characters from the first string which are present in the second string.\nnote Omega name: second_string is second_s here.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_dirty_chars string view uchar * second_s view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_18_remove_dirty_chars.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"probasscurve\"\ntext t0_1 \"pros\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_dirty_chars t0_0 t0_1 res\nif ne r 6\nret false\nend\nif ne get res 0 98\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 99\nret false\nend\nif ne get res 3 117\nret false\nend\nif ne get res 4 118\nret false\nend\nif ne get res 5 101\nret false\nend\nret true\nend\ntext t1_0 \"digitalindia\"\ntext t1_1 \"talent\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_dirty_chars t1_0 t1_1 res\nif ne r 7\nret false\nend\nif ne get res 0 100\nret false\nend\nif ne get res 1 105\nret false\nend\nif ne get res 2 103\nret false\nend\nif ne get res 3 105\nret false\nend\nif ne get res 4 105\nret false\nend\nif ne get res 5 100\nret false\nend\nif ne get res 6 105\nret false\nend\nret true\nend\ntext t2_0 \"exoticmiles\"\ntext t2_1 \"toxic\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_dirty_chars t2_0 t2_1 res\nif ne r 5\nret false\nend\nif ne get res 0 101\nret false\nend\nif ne get res 1 109\nret false\nend\nif ne get res 2 108\nret false\nend\nif ne get res 3 101\nret false\nend\nif ne get res 4 115\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
11{"name": "mbpp_19_test_duplicate", "language": "om", "prompt": "om2\nnote Write a function to find whether a given array of integers contains any duplicate element.\nnote Omega name: arraynums is arraynum here.\nfn test_duplicate arraynum view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_19_test_duplicate.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = test_duplicate a0\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 4\nr = test_duplicate a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 1\nput a0 1 1\nput a0 2 2\nput a0 3 2\nput a0 4 3\nput a0 5 3\nput a0 6 4\nput a0 7 4\nput a0 8 5\nr = test_duplicate a0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
12{"name": "mbpp_20_is_woodall", "language": "om", "prompt": "om2\nnote Write a function to check if the given number is woodball or not.\nfn is_woodall x long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_20_is_woodall.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_woodall 383\nret eq r true\nend\nfn tc_1 to bool\nr = is_woodall 254\nret eq r false\nend\nfn tc_2 to bool\nr = is_woodall 200\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
13{"name": "mbpp_56_checks", "language": "om", "prompt": "om2\nnote Write an Omega function to check if a given number is one less than twice its reverse.\nfn checks n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_56_checks.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = checks 70\nret eq r false\nend\nfn tc_1 to bool\nr = checks 23\nret eq r false\nend\nfn tc_2 to bool\nr = checks 73\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
14{"name": "mbpp_57_find_Max_Num", "language": "om", "prompt": "om2\nnote Write an Omega function to find the largest number that can be formed with the given array of digits.\nfn find_Max_Num arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_57_find_Max_Num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = find_Max_Num a0\nret eq r 321\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nput a0 3 1\nr = find_Max_Num a0\nret eq r 6541\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 9\nr = find_Max_Num a0\nret eq r 9321\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
15{"name": "mbpp_58_opposite_Signs", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given two integers have opposite sign or not.\nfn opposite_Signs x long y long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_58_opposite_Signs.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = opposite_Signs 1 -2\nret eq r true\nend\nfn tc_1 to bool\nr = opposite_Signs 3 2\nret eq r false\nend\nfn tc_2 to bool\nr = opposite_Signs -10 -10\nret eq r false\nend\nfn tc_3 to bool\nr = opposite_Signs -2 2\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
16{"name": "mbpp_59_is_octagonal", "language": "om", "prompt": "om2\nnote Write a function to find the nth octagonal number.\nfn is_octagonal n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_59_is_octagonal.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_octagonal 5\nret eq r 65\nend\nfn tc_1 to bool\nr = is_octagonal 10\nret eq r 280\nend\nfn tc_2 to bool\nr = is_octagonal 15\nret eq r 645\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
17{"name": "mbpp_61_count_Substrings", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of substrings with the sum of digits equal to their length.\nfn count_Substrings s view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_61_count_Substrings.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"112112\"\nfn tc_0 to bool\nr = count_Substrings t0_0\nret eq r 6\nend\ntext t1_0 \"111\"\nfn tc_1 to bool\nr = count_Substrings t1_0\nret eq r 6\nend\ntext t2_0 \"1101112\"\nfn tc_2 to bool\nr = count_Substrings t2_0\nret eq r 12\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
18{"name": "mbpp_62_smallest_num", "language": "om", "prompt": "om2\nnote Write an Omega function to find smallest number in an array.\nfn smallest_num xs view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_62_smallest_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 10\nput a0 1 20\nput a0 2 1\nput a0 3 45\nput a0 4 99\nr = smallest_num a0\nret eq r 1\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = smallest_num a0\nret eq r 1\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 45\nput a0 1 46\nput a0 2 50\nput a0 3 60\nr = smallest_num a0\nret eq r 45\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
19{"name": "mbpp_66_pos_count", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of positive numbers in an array.\nfn pos_count list view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_66_pos_count.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 -2\nput a0 2 3\nput a0 3 -4\nr = pos_count a0\nret eq r 2\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 3\nput a0 1 4\nput a0 2 5\nput a0 3 -1\nr = pos_count a0\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nr = pos_count a0\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
20{"name": "mbpp_68_is_Monotonic", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given array is monotonic or not.\nfn is_Monotonic A view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_68_is_Monotonic.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 6\nput a0 1 5\nput a0 2 4\nput a0 3 4\nr = is_Monotonic a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 2\nput a0 3 3\nr = is_Monotonic a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 3\nput a0 2 2\nr = is_Monotonic a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
21{"name": "mbpp_69_is_sublist", "language": "om", "prompt": "om2\nnote Write a function to check whether an array contains the given sublist or not.\nfn is_sublist l view long * s view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_69_is_sublist.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 4\nput a0 2 3\nput a0 3 5\nput a0 4 7\na1 = new long 2 0\nput a1 0 3\nput a1 1 7\nr = is_sublist a0 a1\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 4\nput a0 2 3\nput a0 3 5\nput a0 4 7\na1 = new long 2 0\nput a1 0 4\nput a1 1 3\nr = is_sublist a0 a1\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 4\nput a0 2 3\nput a0 3 5\nput a0 4 7\na1 = new long 2 0\nput a1 0 1\nput a1 1 6\nr = is_sublist a0 a1\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
22{"name": "mbpp_71_comb_sort", "language": "om", "prompt": "om2\nnote Write a function to sort an array of elements.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn comb_sort nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_71_comb_sort.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 5\nput a0 1 15\nput a0 2 37\nput a0 3 25\nput a0 4 79\nres = new long 4096 0\nr = comb_sort a0 res\nif ne r 5\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 15\nret false\nend\nif ne get res 2 25\nret false\nend\nif ne get res 3 37\nret false\nend\nif ne get res 4 79\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 41\nput a0 1 32\nput a0 2 15\nput a0 3 19\nput a0 4 22\nres = new long 4096 0\nr = comb_sort a0 res\nif ne r 5\nret false\nend\nif ne get res 0 15\nret false\nend\nif ne get res 1 19\nret false\nend\nif ne get res 2 22\nret false\nend\nif ne get res 3 32\nret false\nend\nif ne get res 4 41\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 99\nput a0 1 15\nput a0 2 13\nput a0 3 47\nres = new long 4096 0\nr = comb_sort a0 res\nif ne r 4\nret false\nend\nif ne get res 0 13\nret false\nend\nif ne get res 1 15\nret false\nend\nif ne get res 2 47\nret false\nend\nif ne get res 3 99\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
23{"name": "mbpp_72_dif_Square", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given number can be represented as the difference of two squares or not.\nfn dif_Square n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_72_dif_Square.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = dif_Square 5\nret eq r true\nend\nfn tc_1 to bool\nr = dif_Square 10\nret eq r false\nend\nfn tc_2 to bool\nr = dif_Square 15\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
24{"name": "mbpp_77_is_Diff", "language": "om", "prompt": "om2\nnote Write an Omega function to find whether a number is divisible by 11.\nfn is_Diff n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_77_is_Diff.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_Diff 12345\nret eq r false\nend\nfn tc_1 to bool\nr = is_Diff 1212112\nret eq r true\nend\nfn tc_2 to bool\nr = is_Diff 1212\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
25{"name": "mbpp_79_word_len", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the length of the word is odd or not.\nfn word_len s view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_79_word_len.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Hadoop\"\nfn tc_0 to bool\nr = word_len t0_0\nret eq r false\nend\ntext t1_0 \"great\"\nfn tc_1 to bool\nr = word_len t1_0\nret eq r true\nend\ntext t2_0 \"structure\"\nfn tc_2 to bool\nr = word_len t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
26{"name": "mbpp_80_tetrahedral_number", "language": "om", "prompt": "om2\nnote Write a function to find the nth tetrahedral number.\nfn tetrahedral_number n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_80_tetrahedral_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = tetrahedral_number 5\nret eq r 35\nend\nfn tc_1 to bool\nr = tetrahedral_number 6\nret eq r 56\nend\nfn tc_2 to bool\nr = tetrahedral_number 7\nret eq r 84\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
27{"name": "mbpp_83_get_Char", "language": "om", "prompt": "om2\nnote Write an Omega function to find the character made by adding the ASCII value of all the characters of the given string modulo 26.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn get_Char strr view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_83_get_Char.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"abc\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = get_Char t0_0 res\nif ne r 1\nret false\nend\nif ne get res 0 102\nret false\nend\nret true\nend\ntext t1_0 \"gfg\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = get_Char t1_0 res\nif ne r 1\nret false\nend\nif ne get res 0 116\nret false\nend\nret true\nend\ntext t2_0 \"ab\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = get_Char t2_0 res\nif ne r 1\nret false\nend\nif ne get res 0 99\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
28{"name": "mbpp_84_sequence", "language": "om", "prompt": "om2\nnote Write a function to find the nth number in the newman conway sequence.\nfn sequence n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_84_sequence.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sequence 10\nret eq r 6\nend\nfn tc_1 to bool\nr = sequence 2\nret eq r 1\nend\nfn tc_2 to bool\nr = sequence 3\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
29{"name": "mbpp_86_centered_hexagonal_number", "language": "om", "prompt": "om2\nnote Write a function to find nth centered hexagonal number.\nfn centered_hexagonal_number n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_86_centered_hexagonal_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = centered_hexagonal_number 10\nret eq r 271\nend\nfn tc_1 to bool\nr = centered_hexagonal_number 2\nret eq r 7\nend\nfn tc_2 to bool\nr = centered_hexagonal_number 9\nret eq r 217\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
30{"name": "mbpp_89_closest_num", "language": "om", "prompt": "om2\nnote Write a function to find the closest smaller number than n.\nfn closest_num N long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_89_closest_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = closest_num 11\nret eq r 10\nend\nfn tc_1 to bool\nr = closest_num 7\nret eq r 6\nend\nfn tc_2 to bool\nr = closest_num 12\nret eq r 11\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
31{"name": "mbpp_92_is_undulating", "language": "om", "prompt": "om2\nnote Write a function to check whether the given number is undulating or not.\nfn is_undulating n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_92_is_undulating.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_undulating 1212121\nret eq r true\nend\nfn tc_1 to bool\nr = is_undulating 1991\nret eq r false\nend\nfn tc_2 to bool\nr = is_undulating 121\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
32{"name": "mbpp_93_power", "language": "om", "prompt": "om2\nnote Write a function to calculate the value of 'a' to the power 'b'.\nfn power a long b long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_93_power.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = power 3 4\nret eq r 81\nend\nfn tc_1 to bool\nr = power 2 3\nret eq r 8\nend\nfn tc_2 to bool\nr = power 5 5\nret eq r 3125\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
33{"name": "mbpp_96_divisor", "language": "om", "prompt": "om2\nnote Write an Omega function to find the number of divisors of a given integer.\nfn divisor n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_96_divisor.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = divisor 15\nret eq r 4\nend\nfn tc_1 to bool\nr = divisor 12\nret eq r 6\nend\nfn tc_2 to bool\nr = divisor 9\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
34{"name": "mbpp_99_decimal_to_binary", "language": "om", "prompt": "om2\nnote Write a function to convert the given decimal number to its binary equivalent, represented as a string with no leading zeros.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn decimal_to_binary n long res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_99_decimal_to_binary.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new uchar 4096 0\nr = decimal_to_binary 8 res\nif ne r 4\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 48\nret false\nend\nif ne get res 2 48\nret false\nend\nif ne get res 3 48\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new uchar 4096 0\nr = decimal_to_binary 18 res\nif ne r 5\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 48\nret false\nend\nif ne get res 2 48\nret false\nend\nif ne get res 3 49\nret false\nend\nif ne get res 4 48\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new uchar 4096 0\nr = decimal_to_binary 7 res\nif ne r 3\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 49\nret false\nend\nif ne get res 2 49\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
35{"name": "mbpp_100_next_smallest_palindrome", "language": "om", "prompt": "om2\nnote Write a function to find the next smallest palindrome of a specified integer, returned as an integer.\nfn next_smallest_palindrome num long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_100_next_smallest_palindrome.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = next_smallest_palindrome 99\nret eq r 101\nend\nfn tc_1 to bool\nr = next_smallest_palindrome 1221\nret eq r 1331\nend\nfn tc_2 to bool\nr = next_smallest_palindrome 120\nret eq r 121\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
36{"name": "mbpp_101_kth_element", "language": "om", "prompt": "om2\nnote Write a function to find the kth element in the given array using 1-based indexing.\nfn kth_element arr view long * k long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_101_kth_element.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 12\nput a0 1 3\nput a0 2 5\nput a0 3 7\nput a0 4 19\nr = kth_element a0 2\nret eq r 3\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 17\nput a0 1 24\nput a0 2 8\nput a0 3 23\nr = kth_element a0 3\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 16\nput a0 1 21\nput a0 2 25\nput a0 3 36\nput a0 4 4\nr = kth_element a0 4\nret eq r 36\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
37{"name": "mbpp_102_snake_to_camel", "language": "om", "prompt": "om2\nnote Write a function to convert a snake case string to camel case string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn snake_to_camel word view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_102_snake_to_camel.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python_program\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = snake_to_camel t0_0 res\nif ne r 13\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 80\nret false\nend\nif ne get res 7 114\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 109\nret false\nend\nret true\nend\ntext t1_0 \"python_language\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = snake_to_camel t1_0 res\nif ne r 14\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 76\nret false\nend\nif ne get res 7 97\nret false\nend\nif ne get res 8 110\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 117\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 103\nret false\nend\nif ne get res 13 101\nret false\nend\nret true\nend\ntext t2_0 \"programming_language\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = snake_to_camel t2_0 res\nif ne r 19\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 114\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 114\nret false\nend\nif ne get res 5 97\nret false\nend\nif ne get res 6 109\nret false\nend\nif ne get res 7 109\nret false\nend\nif ne get res 8 105\nret false\nend\nif ne get res 9 110\nret false\nend\nif ne get res 10 103\nret false\nend\nif ne get res 11 76\nret false\nend\nif ne get res 12 97\nret false\nend\nif ne get res 13 110\nret false\nend\nif ne get res 14 103\nret false\nend\nif ne get res 15 117\nret false\nend\nif ne get res 16 97\nret false\nend\nif ne get res 17 103\nret false\nend\nif ne get res 18 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
38{"name": "mbpp_103_eulerian_num", "language": "om", "prompt": "om2\nnote Write a function to find the Eulerian number a(n, m).\nfn eulerian_num n long m long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_103_eulerian_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = eulerian_num 3 1\nret eq r 4\nend\nfn tc_1 to bool\nr = eulerian_num 4 1\nret eq r 11\nend\nfn tc_2 to bool\nr = eulerian_num 5 3\nret eq r 26\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
39{"name": "mbpp_106_add_lists", "language": "om", "prompt": "om2\nnote Write a function to append the given array to the given tuples.\nnote Omega name: test_list is test_lis here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn add_lists test_lis view long * test_tup view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_106_add_lists.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 5\nput a0 1 6\nput a0 2 7\na1 = new long 2 0\nput a1 0 9\nput a1 1 10\nres = new long 4096 0\nr = add_lists a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 9\nret false\nend\nif ne get res 1 10\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 6\nret false\nend\nif ne get res 4 7\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 6\nput a0 1 7\nput a0 2 8\na1 = new long 2 0\nput a1 0 10\nput a1 1 11\nres = new long 4096 0\nr = add_lists a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 10\nret false\nend\nif ne get res 1 11\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 7\nret false\nend\nif ne get res 4 8\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\na1 = new long 2 0\nput a1 0 11\nput a1 1 12\nres = new long 4096 0\nr = add_lists a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 11\nret false\nend\nif ne get res 1 12\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 8\nret false\nend\nif ne get res 4 9\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
40{"name": "mbpp_109_odd_Equivalent", "language": "om", "prompt": "om2\nnote Write an Omega function to find the number of numbers with an odd value when rotating a binary string the given number of times.\nfn odd_Equivalent s view uchar * n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_109_odd_Equivalent.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"011001\"\nfn tc_0 to bool\nr = odd_Equivalent t0_0 6\nret eq r 3\nend\ntext t1_0 \"11011\"\nfn tc_1 to bool\nr = odd_Equivalent t1_0 5\nret eq r 4\nend\ntext t2_0 \"1010\"\nfn tc_2 to bool\nr = odd_Equivalent t2_0 4\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
41{"name": "mbpp_113_check_integer", "language": "om", "prompt": "om2\nnote Write a function to check if a string represents an integer or not.\nnote Omega name: text is text_ here.\nfn check_integer text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_113_check_integer.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python\"\nfn tc_0 to bool\nr = check_integer t0_0\nret eq r false\nend\ntext t1_0 \"1\"\nfn tc_1 to bool\nr = check_integer t1_0\nret eq r true\nend\ntext t2_0 \"12345\"\nfn tc_2 to bool\nr = check_integer t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
42{"name": "mbpp_116_tuple_to_int", "language": "om", "prompt": "om2\nnote Write a function to convert a given array of positive integers into a single integer.\nfn tuple_to_int nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_116_tuple_to_int.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = tuple_to_int a0\nret eq r 123\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nr = tuple_to_int a0\nret eq r 456\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 5\nput a0 1 6\nput a0 2 7\nr = tuple_to_int a0\nret eq r 567\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
43{"name": "mbpp_119_search", "language": "om", "prompt": "om2\nnote Write an Omega function to find the element that appears only once in a sorted array.\nfn search arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_119_search.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 1\nput a0 2 2\nput a0 3 2\nput a0 4 3\nr = search a0\nret eq r 3\nend\nfn tc_1 to bool\na0 = new long 11 0\nput a0 0 1\nput a0 1 1\nput a0 2 3\nput a0 3 3\nput a0 4 4\nput a0 5 4\nput a0 6 5\nput a0 7 5\nput a0 8 7\nput a0 9 7\nput a0 10 8\nr = search a0\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 2\nput a0 2 2\nput a0 3 3\nput a0 4 3\nput a0 5 4\nput a0 6 4\nr = search a0\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
44{"name": "mbpp_123_amicable_numbers_sum", "language": "om", "prompt": "om2\nnote Write a function to sum all amicable numbers from 1 to a specified number.\nfn amicable_numbers_sum limit long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_123_amicable_numbers_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = amicable_numbers_sum 999\nret eq r 504\nend\nfn tc_1 to bool\nr = amicable_numbers_sum 9999\nret eq r 31626\nend\nfn tc_2 to bool\nr = amicable_numbers_sum 99\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
45{"name": "mbpp_125_find_length", "language": "om", "prompt": "om2\nnote Write a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given binary string.\nfn find_length string view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_125_find_length.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"11000010001\"\nfn tc_0 to bool\nr = find_length t0_0\nret eq r 6\nend\ntext t1_0 \"10111\"\nfn tc_1 to bool\nr = find_length t1_0\nret eq r 1\nend\ntext t2_0 \"11011101100101\"\nfn tc_2 to bool\nr = find_length t2_0\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
46{"name": "mbpp_126_sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of common divisors of two given numbers.\nfn sum a long b long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_126_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum 10 15\nret eq r 6\nend\nfn tc_1 to bool\nr = sum 100 150\nret eq r 93\nend\nfn tc_2 to bool\nr = sum 4 6\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
47{"name": "mbpp_127_multiply_int", "language": "om", "prompt": "om2\nnote Write a function to multiply two integers.\nfn multiply_int x long y long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_127_multiply_int.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = multiply_int 10 20\nret eq r 200\nend\nfn tc_1 to bool\nr = multiply_int 5 10\nret eq r 50\nend\nfn tc_2 to bool\nr = multiply_int 4 8\nret eq r 32\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
48{"name": "mbpp_130_max_occurrences", "language": "om", "prompt": "om2\nnote Write a function to find the item with maximum frequency in a given array.\nfn max_occurrences nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_130_max_occurrences.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 21 0\nput a0 0 2\nput a0 1 3\nput a0 2 8\nput a0 3 4\nput a0 4 7\nput a0 5 9\nput a0 6 8\nput a0 7 2\nput a0 8 6\nput a0 9 5\nput a0 10 1\nput a0 11 6\nput a0 12 1\nput a0 13 2\nput a0 14 3\nput a0 15 2\nput a0 16 4\nput a0 17 6\nput a0 18 9\nput a0 19 1\nput a0 20 2\nr = max_occurrences a0\nret eq r 2\nend\nfn tc_1 to bool\na0 = new long 16 0\nput a0 0 2\nput a0 1 3\nput a0 2 8\nput a0 3 4\nput a0 4 7\nput a0 5 9\nput a0 6 8\nput a0 7 7\nput a0 8 9\nput a0 9 15\nput a0 10 14\nput a0 11 10\nput a0 12 12\nput a0 13 13\nput a0 14 16\nput a0 15 18\nr = max_occurrences a0\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 12 0\nput a0 0 10\nput a0 1 20\nput a0 2 20\nput a0 3 30\nput a0 4 40\nput a0 5 90\nput a0 6 80\nput a0 7 50\nput a0 8 30\nput a0 9 20\nput a0 10 50\nput a0 11 10\nr = max_occurrences a0\nret eq r 20\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
49{"name": "mbpp_131_reverse_vowels", "language": "om", "prompt": "om2\nnote Write an Omega function to reverse only the vowels of a given string (where y is not a vowel).\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn reverse_vowels str1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_131_reverse_vowels.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Python\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = reverse_vowels t0_0 res\nif ne r 6\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nret true\nend\ntext t1_0 \"USA\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = reverse_vowels t1_0 res\nif ne r 3\nret false\nend\nif ne get res 0 65\nret false\nend\nif ne get res 1 83\nret false\nend\nif ne get res 2 85\nret false\nend\nret true\nend\ntext t2_0 \"ab\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = reverse_vowels t2_0 res\nif ne r 2\nret false\nend\nif ne get res 0 97\nret false\nend\nif ne get res 1 98\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
50{"name": "mbpp_133_sum_negativenum", "language": "om", "prompt": "om2\nnote Write a function to calculate the sum of the negative numbers of a given array of numbers.\nfn sum_negativenum nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_133_sum_negativenum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 9 0\nput a0 0 2\nput a0 1 4\nput a0 2 -6\nput a0 3 -9\nput a0 4 11\nput a0 5 -12\nput a0 6 14\nput a0 7 -5\nput a0 8 17\nr = sum_negativenum a0\nret eq r -32\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 10\nput a0 1 15\nput a0 2 -14\nput a0 3 13\nput a0 4 -18\nput a0 5 12\nput a0 6 -20\nr = sum_negativenum a0\nret eq r -52\nend\nfn tc_2 to bool\na0 = new long 10 0\nput a0 0 19\nput a0 1 -65\nput a0 2 57\nput a0 3 39\nput a0 4 152\nput a0 5 -639\nput a0 6 121\nput a0 7 44\nput a0 8 90\nput a0 9 -190\nr = sum_negativenum a0\nret eq r -894\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
51{"name": "mbpp_135_hexagonal_num", "language": "om", "prompt": "om2\nnote Write a function to find the nth hexagonal number.\nfn hexagonal_num n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_135_hexagonal_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = hexagonal_num 10\nret eq r 190\nend\nfn tc_1 to bool\nr = hexagonal_num 5\nret eq r 45\nend\nfn tc_2 to bool\nr = hexagonal_num 7\nret eq r 91\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
52{"name": "mbpp_138_is_Sum_Of_Powers_Of_Two", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given number can be represented as sum of non-zero powers of 2 or not.\nfn is_Sum_Of_Powers_Of_Two n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_138_is_Sum_Of_Powers_Of_Two.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_Sum_Of_Powers_Of_Two 10\nret eq r true\nend\nfn tc_1 to bool\nr = is_Sum_Of_Powers_Of_Two 7\nret eq r false\nend\nfn tc_2 to bool\nr = is_Sum_Of_Powers_Of_Two 14\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
53{"name": "mbpp_141_pancake_sort", "language": "om", "prompt": "om2\nnote Write a function to sort an array of elements.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn pancake_sort nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_141_pancake_sort.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 15\nput a0 1 79\nput a0 2 25\nput a0 3 38\nput a0 4 69\nres = new long 4096 0\nr = pancake_sort a0 res\nif ne r 5\nret false\nend\nif ne get res 0 15\nret false\nend\nif ne get res 1 25\nret false\nend\nif ne get res 2 38\nret false\nend\nif ne get res 3 69\nret false\nend\nif ne get res 4 79\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 98\nput a0 1 12\nput a0 2 54\nput a0 3 36\nput a0 4 85\nres = new long 4096 0\nr = pancake_sort a0 res\nif ne r 5\nret false\nend\nif ne get res 0 12\nret false\nend\nif ne get res 1 36\nret false\nend\nif ne get res 2 54\nret false\nend\nif ne get res 3 85\nret false\nend\nif ne get res 4 98\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 41\nput a0 1 42\nput a0 2 32\nput a0 3 12\nput a0 4 23\nres = new long 4096 0\nr = pancake_sort a0 res\nif ne r 5\nret false\nend\nif ne get res 0 12\nret false\nend\nif ne get res 1 23\nret false\nend\nif ne get res 2 32\nret false\nend\nif ne get res 3 41\nret false\nend\nif ne get res 4 42\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
54{"name": "mbpp_142_count_samepair", "language": "om", "prompt": "om2\nnote Write a function to count number items that are identical in the same position of three given lists.\nfn count_samepair list1 view long * list2 view long * list3 view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_142_count_samepair.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\na1 = new long 8 0\nput a1 0 2\nput a1 1 2\nput a1 2 3\nput a1 3 1\nput a1 4 2\nput a1 5 6\nput a1 6 7\nput a1 7 9\na2 = new long 8 0\nput a2 0 2\nput a2 1 1\nput a2 2 3\nput a2 3 1\nput a2 4 2\nput a2 5 6\nput a2 6 7\nput a2 7 9\nr = count_samepair a0 a1 a2\nret eq r 3\nend\nfn tc_1 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\na1 = new long 8 0\nput a1 0 2\nput a1 1 2\nput a1 2 3\nput a1 3 1\nput a1 4 2\nput a1 5 6\nput a1 6 7\nput a1 7 8\na2 = new long 8 0\nput a2 0 2\nput a2 1 1\nput a2 2 3\nput a2 3 1\nput a2 4 2\nput a2 5 6\nput a2 6 7\nput a2 7 8\nr = count_samepair a0 a1 a2\nret eq r 4\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 2\nput a0 5 6\nput a0 6 7\nput a0 7 8\na1 = new long 8 0\nput a1 0 2\nput a1 1 2\nput a1 2 3\nput a1 3 1\nput a1 4 2\nput a1 5 6\nput a1 6 7\nput a1 7 8\na2 = new long 8 0\nput a2 0 2\nput a2 1 1\nput a2 2 3\nput a2 3 1\nput a2 4 2\nput a2 5 6\nput a2 6 7\nput a2 7 8\nr = count_samepair a0 a1 a2\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
55{"name": "mbpp_145_max_Abs_Diff", "language": "om", "prompt": "om2\nnote Write an Omega function to find the maximum difference between any two elements in a given array.\nfn max_Abs_Diff arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_145_max_Abs_Diff.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 2\nput a0 1 1\nput a0 2 5\nput a0 3 3\nr = max_Abs_Diff a0\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 9\nput a0 1 3\nput a0 2 2\nput a0 3 5\nput a0 4 1\nr = max_Abs_Diff a0\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 3\nput a0 1 2\nput a0 2 1\nr = max_Abs_Diff a0\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
56{"name": "mbpp_161_remove_elements", "language": "om", "prompt": "om2\nnote Write a function to remove all elements from a given array present in another array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn remove_elements list1 view long * list2 view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_161_remove_elements.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\na1 = new long 4 0\nput a1 0 2\nput a1 1 4\nput a1 2 6\nput a1 3 8\nres = new long 4096 0\nr = remove_elements a0 a1 res\nif ne r 6\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 7\nret false\nend\nif ne get res 4 9\nret false\nend\nif ne get res 5 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\na1 = new long 4 0\nput a1 0 1\nput a1 1 3\nput a1 2 5\nput a1 3 7\nres = new long 4096 0\nr = remove_elements a0 a1 res\nif ne r 6\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 8\nret false\nend\nif ne get res 4 9\nret false\nend\nif ne get res 5 10\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\na1 = new long 2 0\nput a1 0 5\nput a1 1 7\nres = new long 4096 0\nr = remove_elements a0 a1 res\nif ne r 8\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 6\nret false\nend\nif ne get res 5 8\nret false\nend\nif ne get res 6 9\nret false\nend\nif ne get res 7 10\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
57{"name": "mbpp_162_sum_series", "language": "om", "prompt": "om2\nnote Write a function to calculate the sum (n - 2*i) from i=0 to n // 2, for instance n + (n-2) + (n-4)... (until n-x =< 0).\nfn sum_series n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_162_sum_series.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum_series 6\nret eq r 12\nend\nfn tc_1 to bool\nr = sum_series 10\nret eq r 30\nend\nfn tc_2 to bool\nr = sum_series 9\nret eq r 25\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
58{"name": "mbpp_164_are_equivalent", "language": "om", "prompt": "om2\nnote Write a function to determine if the sum of the divisors of two integers are the same.\nfn are_equivalent num1 long num2 long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_164_are_equivalent.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = are_equivalent 36 57\nret eq r false\nend\nfn tc_1 to bool\nr = are_equivalent 2 4\nret eq r false\nend\nfn tc_2 to bool\nr = are_equivalent 23 47\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
59{"name": "mbpp_165_count_char_position", "language": "om", "prompt": "om2\nnote Write a function to count the number of characters in a string that occur at the same position in the string as in the English alphabet (case insensitive).\nfn count_char_position str1 view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_165_count_char_position.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"xbcefg\"\nfn tc_0 to bool\nr = count_char_position t0_0\nret eq r 2\nend\ntext t1_0 \"ABcED\"\nfn tc_1 to bool\nr = count_char_position t1_0\nret eq r 3\nend\ntext t2_0 \"AbgdeF\"\nfn tc_2 to bool\nr = count_char_position t2_0\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
60{"name": "mbpp_166_find_even_pair", "language": "om", "prompt": "om2\nnote Write a function that counts the number of pairs of integers in an array that xor to an even number.\nfn find_even_pair A view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_166_find_even_pair.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 5\nput a0 1 4\nput a0 2 7\nput a0 3 2\nput a0 4 1\nr = find_even_pair a0\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 7\nput a0 1 2\nput a0 2 8\nput a0 3 1\nput a0 4 0\nput a0 5 5\nput a0 6 11\nr = find_even_pair a0\nret eq r 9\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = find_even_pair a0\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
61{"name": "mbpp_167_next_power_of_2", "language": "om", "prompt": "om2\nnote Write an Omega function to find the smallest power of 2 greater than or equal to n.\nfn next_power_of_2 n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_167_next_power_of_2.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = next_power_of_2 0\nret eq r 1\nend\nfn tc_1 to bool\nr = next_power_of_2 5\nret eq r 8\nend\nfn tc_2 to bool\nr = next_power_of_2 17\nret eq r 32\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
62{"name": "mbpp_168_frequency", "language": "om", "prompt": "om2\nnote Write a function to count the number of occurrences of a number in a given array.\nfn frequency a view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_168_frequency.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = frequency a0 4\nret eq r 0\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 2\nput a0 2 2\nput a0 3 3\nput a0 4 3\nput a0 5 3\nput a0 6 4\nr = frequency a0 3\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 3\nput a0 4 1\nput a0 5 2\nr = frequency a0 1\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
63{"name": "mbpp_170_sum_range_list", "language": "om", "prompt": "om2\nnote Write a function to find the sum of numbers in an array within a range specified by two indices.\nfn sum_range_list list1 view long * m long n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_170_sum_range_list.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 12 0\nput a0 0 2\nput a0 1 1\nput a0 2 5\nput a0 3 6\nput a0 4 8\nput a0 5 3\nput a0 6 4\nput a0 7 9\nput a0 8 10\nput a0 9 11\nput a0 10 8\nput a0 11 12\nr = sum_range_list a0 8 10\nret eq r 29\nend\nfn tc_1 to bool\na0 = new long 12 0\nput a0 0 2\nput a0 1 1\nput a0 2 5\nput a0 3 6\nput a0 4 8\nput a0 5 3\nput a0 6 4\nput a0 7 9\nput a0 8 10\nput a0 9 11\nput a0 10 8\nput a0 11 12\nr = sum_range_list a0 5 7\nret eq r 16\nend\nfn tc_2 to bool\na0 = new long 12 0\nput a0 0 2\nput a0 1 1\nput a0 2 5\nput a0 3 6\nput a0 4 8\nput a0 5 3\nput a0 6 4\nput a0 7 9\nput a0 8 10\nput a0 9 11\nput a0 10 8\nput a0 11 12\nr = sum_range_list a0 7 10\nret eq r 38\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
64{"name": "mbpp_171_perimeter_pentagon", "language": "om", "prompt": "om2\nnote Write a function to find the perimeter of a regular pentagon from the length of its sides.\nfn perimeter_pentagon a long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_171_perimeter_pentagon.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = perimeter_pentagon 5\nret eq r 25\nend\nfn tc_1 to bool\nr = perimeter_pentagon 10\nret eq r 50\nend\nfn tc_2 to bool\nr = perimeter_pentagon 15\nret eq r 75\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
65{"name": "mbpp_172_count_occurance", "language": "om", "prompt": "om2\nnote Write a function to count the number of occurence of the string 'std' in a given string.\nfn count_occurance s view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_172_count_occurance.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"letstdlenstdporstd\"\nfn tc_0 to bool\nr = count_occurance t0_0\nret eq r 3\nend\ntext t1_0 \"truststdsolensporsd\"\nfn tc_1 to bool\nr = count_occurance t1_0\nret eq r 1\nend\ntext t2_0 \"makestdsostdworthit\"\nfn tc_2 to bool\nr = count_occurance t2_0\nret eq r 2\nend\ntext t3_0 \"stds\"\nfn tc_3 to bool\nr = count_occurance t3_0\nret eq r 1\nend\nfn tc_4 to bool\na0 = new uchar 1 0\nr = count_occurance part a0 0 0\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
66{"name": "mbpp_223_is_majority", "language": "om", "prompt": "om2\nnote Write a function that takes in a sorted array, its length (n), and an element and returns whether the element is the majority element in the given sorted array. (The majority element is the element that occurs more than n/2 times.)\nfn is_majority arr view long * n long x long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_223_is_majority.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 3\nput a0 4 3\nput a0 5 3\nput a0 6 10\nr = is_majority a0 7 3\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 1\nput a0 2 2\nput a0 3 4\nput a0 4 4\nput a0 5 4\nput a0 6 6\nput a0 7 6\nr = is_majority a0 8 4\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nput a0 3 2\nput a0 4 2\nr = is_majority a0 5 1\nret eq r true\nend\nfn tc_3 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 1\nput a0 2 2\nput a0 3 2\nr = is_majority a0 5 1\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
67{"name": "mbpp_224_count_Set_Bits", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of set bits (binary digits with value 1) in a given number.\nfn count_Set_Bits n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_224_count_Set_Bits.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = count_Set_Bits 2\nret eq r 1\nend\nfn tc_1 to bool\nr = count_Set_Bits 4\nret eq r 1\nend\nfn tc_2 to bool\nr = count_Set_Bits 6\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
68{"name": "mbpp_226_odd_values_string", "language": "om", "prompt": "om2\nnote Write an Omega function to remove the characters which have odd index values of a given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn odd_values_string str view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_226_odd_values_string.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"abcdef\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = odd_values_string t0_0 res\nif ne r 3\nret false\nend\nif ne get res 0 97\nret false\nend\nif ne get res 1 99\nret false\nend\nif ne get res 2 101\nret false\nend\nret true\nend\ntext t1_0 \"python\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = odd_values_string t1_0 res\nif ne r 3\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 116\nret false\nend\nif ne get res 2 111\nret false\nend\nret true\nend\ntext t2_0 \"data\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = odd_values_string t2_0 res\nif ne r 2\nret false\nend\nif ne get res 0 100\nret false\nend\nif ne get res 1 116\nret false\nend\nret true\nend\ntext t3_0 \"lambs\"\nfn tc_3 to bool\nres = new uchar 4096 0\nr = odd_values_string t3_0 res\nif ne r 3\nret false\nend\nif ne get res 0 108\nret false\nend\nif ne get res 1 109\nret false\nend\nif ne get res 2 115\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
69{"name": "mbpp_227_min_of_three", "language": "om", "prompt": "om2\nnote Write a function to find minimum of three numbers.\nfn min_of_three a long b long c long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_227_min_of_three.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = min_of_three 10 20 0\nret eq r 0\nend\nfn tc_1 to bool\nr = min_of_three 19 15 18\nret eq r 15\nend\nfn tc_2 to bool\nr = min_of_three -10 -20 -30\nret eq r -30\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
70{"name": "mbpp_228_all_Bits_Set_In_The_Given_Range", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether all the bits are unset in the given range or not.\nnote Omega name: r is r_ here.\nfn all_Bits_Set_In_The_Given_Range n long l long r_ long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_228_all_Bits_Set_In_The_Given_Range.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = all_Bits_Set_In_The_Given_Range 4 1 2\nret eq r true\nend\nfn tc_1 to bool\nr = all_Bits_Set_In_The_Given_Range 17 2 4\nret eq r true\nend\nfn tc_2 to bool\nr = all_Bits_Set_In_The_Given_Range 39 4 6\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
71{"name": "mbpp_229_re_arrange_array", "language": "om", "prompt": "om2\nnote Write a function that takes in an array and an integer n, and re-arranges the first n elements of the given array so that all negative elements appear before positive ones, and where the relative order among negative and positive elements is preserved.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn re_arrange_array arr view long * n long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_229_re_arrange_array.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 9 0\nput a0 0 -1\nput a0 1 2\nput a0 2 -3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 -7\nput a0 7 8\nput a0 8 9\nres = new long 4096 0\nr = re_arrange_array a0 9 res\nif ne r 9\nret false\nend\nif ne get res 0 -1\nret false\nend\nif ne get res 1 -3\nret false\nend\nif ne get res 2 -7\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 6\nret false\nend\nif ne get res 6 2\nret false\nend\nif ne get res 7 8\nret false\nend\nif ne get res 8 9\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 12\nput a0 1 -14\nput a0 2 -26\nput a0 3 13\nput a0 4 15\nres = new long 4096 0\nr = re_arrange_array a0 5 res\nif ne r 5\nret false\nend\nif ne get res 0 -14\nret false\nend\nif ne get res 1 -26\nret false\nend\nif ne get res 2 12\nret false\nend\nif ne get res 3 13\nret false\nend\nif ne get res 4 15\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 10\nput a0 1 24\nput a0 2 36\nput a0 3 -42\nput a0 4 -39\nput a0 5 -78\nput a0 6 85\nres = new long 4096 0\nr = re_arrange_array a0 7 res\nif ne r 7\nret false\nend\nif ne get res 0 -42\nret false\nend\nif ne get res 1 -39\nret false\nend\nif ne get res 2 -78\nret false\nend\nif ne get res 3 10\nret false\nend\nif ne get res 4 24\nret false\nend\nif ne get res 5 36\nret false\nend\nif ne get res 6 85\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
72{"name": "mbpp_230_replace_blank", "language": "om", "prompt": "om2\nnote Write a function that takes in a string and character, replaces blank spaces in the string with the character, and returns the string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn replace_blank str1 view uchar * char view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_230_replace_blank.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"hello people\"\ntext t0_1 \"@\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = replace_blank t0_0 t0_1 res\nif ne r 12\nret false\nend\nif ne get res 0 104\nret false\nend\nif ne get res 1 101\nret false\nend\nif ne get res 2 108\nret false\nend\nif ne get res 3 108\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 64\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 101\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 112\nret false\nend\nif ne get res 10 108\nret false\nend\nif ne get res 11 101\nret false\nend\nret true\nend\ntext t1_0 \"python program language\"\ntext t1_1 \"$\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = replace_blank t1_0 t1_1 res\nif ne r 23\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 36\nret false\nend\nif ne get res 7 112\nret false\nend\nif ne get res 8 114\nret false\nend\nif ne get res 9 111\nret false\nend\nif ne get res 10 103\nret false\nend\nif ne get res 11 114\nret false\nend\nif ne get res 12 97\nret false\nend\nif ne get res 13 109\nret false\nend\nif ne get res 14 36\nret false\nend\nif ne get res 15 108\nret false\nend\nif ne get res 16 97\nret false\nend\nif ne get res 17 110\nret false\nend\nif ne get res 18 103\nret false\nend\nif ne get res 19 117\nret false\nend\nif ne get res 20 97\nret false\nend\nif ne get res 21 103\nret false\nend\nif ne get res 22 101\nret false\nend\nret true\nend\ntext t2_0 \"blank space\"\ntext t2_1 \"-\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = replace_blank t2_0 t2_1 res\nif ne r 11\nret false\nend\nif ne get res 0 98\nret false\nend\nif ne get res 1 108\nret false\nend\nif ne get res 2 97\nret false\nend\nif ne get res 3 110\nret false\nend\nif ne get res 4 107\nret false\nend\nif ne get res 5 45\nret false\nend\nif ne get res 6 115\nret false\nend\nif ne get res 7 112\nret false\nend\nif ne get res 8 97\nret false\nend\nif ne get res 9 99\nret false\nend\nif ne get res 10 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
73{"name": "mbpp_234_volume_cube", "language": "om", "prompt": "om2\nnote Write a function to find the volume of a cube given its side length.\nfn volume_cube l long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_234_volume_cube.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = volume_cube 3\nret eq r 27\nend\nfn tc_1 to bool\nr = volume_cube 2\nret eq r 8\nend\nfn tc_2 to bool\nr = volume_cube 5\nret eq r 125\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
74{"name": "mbpp_238_number_of_substrings", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of non-empty substrings of a given string.\nfn number_of_substrings str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_238_number_of_substrings.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"abc\"\nfn tc_0 to bool\nr = number_of_substrings t0_0\nret eq r 6\nend\ntext t1_0 \"abcd\"\nfn tc_1 to bool\nr = number_of_substrings t1_0\nret eq r 10\nend\ntext t2_0 \"abcde\"\nfn tc_2 to bool\nr = number_of_substrings t2_0\nret eq r 15\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
75{"name": "mbpp_239_get_total_number_of_sequences", "language": "om", "prompt": "om2\nnote Write a function that takes in positive integers m and n and finds the number of possible sequences of length n, such that each element is a positive integer and is greater than or equal to twice the previous element but less than or equal to m.\nfn get_total_number_of_sequences m long n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_239_get_total_number_of_sequences.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = get_total_number_of_sequences 10 4\nret eq r 4\nend\nfn tc_1 to bool\nr = get_total_number_of_sequences 5 2\nret eq r 6\nend\nfn tc_2 to bool\nr = get_total_number_of_sequences 16 3\nret eq r 84\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
76{"name": "mbpp_242_count_charac", "language": "om", "prompt": "om2\nnote Write a function to count the total number of characters in a string.\nfn count_charac str1 view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_242_count_charac.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python programming\"\nfn tc_0 to bool\nr = count_charac t0_0\nret eq r 18\nend\ntext t1_0 \"language\"\nfn tc_1 to bool\nr = count_charac t1_0\nret eq r 8\nend\ntext t2_0 \"words\"\nfn tc_2 to bool\nr = count_charac t2_0\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
77{"name": "mbpp_244_next_Perfect_Square", "language": "om", "prompt": "om2\nnote Write an Omega function to find the next perfect square greater than a given number.\nfn next_Perfect_Square N long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_244_next_Perfect_Square.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = next_Perfect_Square 35\nret eq r 36\nend\nfn tc_1 to bool\nr = next_Perfect_Square 6\nret eq r 9\nend\nfn tc_2 to bool\nr = next_Perfect_Square 9\nret eq r 16\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
78{"name": "mbpp_245_max_sum", "language": "om", "prompt": "om2\nnote Write a function that takes an array and finds the maximum sum of a bitonic subsequence for the given array, where a sequence is bitonic if it is first increasing and then decreasing.\nfn max_sum arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_245_max_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 9 0\nput a0 0 1\nput a0 1 15\nput a0 2 51\nput a0 3 45\nput a0 4 33\nput a0 5 100\nput a0 6 12\nput a0 7 18\nput a0 8 9\nr = max_sum a0\nret eq r 194\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 80\nput a0 1 60\nput a0 2 30\nput a0 3 40\nput a0 4 20\nput a0 5 10\nr = max_sum a0\nret eq r 210\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 2\nput a0 1 3\nput a0 2 14\nput a0 3 16\nput a0 4 21\nput a0 5 23\nput a0 6 29\nput a0 7 30\nr = max_sum a0\nret eq r 138\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
79{"name": "mbpp_247_lps", "language": "om", "prompt": "om2\nnote Write a function to find the length of the longest palindromic subsequence in the given string.\nfn lps str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_247_lps.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"TENS FOR TENS\"\nfn tc_0 to bool\nr = lps t0_0\nret eq r 5\nend\ntext t1_0 \"CARDIO FOR CARDS\"\nfn tc_1 to bool\nr = lps t1_0\nret eq r 7\nend\ntext t2_0 \"PART OF THE JOURNEY IS PART\"\nfn tc_2 to bool\nr = lps t2_0\nret eq r 9\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
80{"name": "mbpp_249_intersection_array", "language": "om", "prompt": "om2\nnote Write a function to find the intersection of two arrays.\nnote Omega name: array_nums1 is array_nu here.\nnote Omega name: array_nums2 is array_n_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn intersection_array array_nu view long * array_n_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_249_intersection_array.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 5\nput a0 4 7\nput a0 5 8\nput a0 6 9\nput a0 7 10\na1 = new long 5 0\nput a1 0 1\nput a1 1 2\nput a1 2 4\nput a1 3 8\nput a1 4 9\nres = new long 4096 0\nr = intersection_array a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 8\nret false\nend\nif ne get res 3 9\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 5\nput a0 4 7\nput a0 5 8\nput a0 6 9\nput a0 7 10\na1 = new long 4 0\nput a1 0 3\nput a1 1 5\nput a1 2 7\nput a1 3 9\nres = new long 4096 0\nr = intersection_array a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 9\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 5\nput a0 4 7\nput a0 5 8\nput a0 6 9\nput a0 7 10\na1 = new long 4 0\nput a1 0 10\nput a1 1 20\nput a1 2 30\nput a1 3 40\nres = new long 4096 0\nr = intersection_array a0 a1 res\nif ne r 1\nret false\nend\nif ne get res 0 10\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
81{"name": "mbpp_250_count_X", "language": "om", "prompt": "om2\nnote Write an Omega function that takes in an array and an element and counts the occcurences of the element in the array.\nfn count_X tup view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_250_count_X.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 12 0\nput a0 0 10\nput a0 1 8\nput a0 2 5\nput a0 3 2\nput a0 4 10\nput a0 5 15\nput a0 6 10\nput a0 7 8\nput a0 8 5\nput a0 9 8\nput a0 10 8\nput a0 11 2\nr = count_X a0 4\nret eq r 0\nend\nfn tc_1 to bool\na0 = new long 12 0\nput a0 0 10\nput a0 1 8\nput a0 2 5\nput a0 3 2\nput a0 4 10\nput a0 5 15\nput a0 6 10\nput a0 7 8\nput a0 8 5\nput a0 9 8\nput a0 10 8\nput a0 11 2\nr = count_X a0 10\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 12 0\nput a0 0 10\nput a0 1 8\nput a0 2 5\nput a0 3 2\nput a0 4 10\nput a0 5 15\nput a0 6 10\nput a0 7 8\nput a0 8 5\nput a0 9 8\nput a0 10 8\nput a0 11 2\nr = count_X a0 8\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
82{"name": "mbpp_252_convert", "language": "om", "prompt": "om2\nnote Write an Omega function to convert complex numbers to polar coordinates.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn convert numbers long res edit f64 * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_252_convert.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new f64 4096 0.0\nr = convert 1 res\nif ne r 2\nret false\nend\nif ne get res 0 1.0\nret false\nend\nif ne get res 1 0.0\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new f64 4096 0.0\nr = convert 4 res\nif ne r 2\nret false\nend\nif ne get res 0 4.0\nret false\nend\nif ne get res 1 0.0\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new f64 4096 0.0\nr = convert 5 res\nif ne r 2\nret false\nend\nif ne get res 0 5.0\nret false\nend\nif ne get res 1 0.0\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
83{"name": "mbpp_256_count_Primes_nums", "language": "om", "prompt": "om2\nnote Write an Omega function that takes in a non-negative number and returns the number of prime numbers less than the given non-negative number.\nfn count_Primes_nums n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_256_count_Primes_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = count_Primes_nums 5\nret eq r 2\nend\nfn tc_1 to bool\nr = count_Primes_nums 10\nret eq r 4\nend\nfn tc_2 to bool\nr = count_Primes_nums 100\nret eq r 25\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
84{"name": "mbpp_257_swap_numbers", "language": "om", "prompt": "om2\nnote Write a function that takes in two numbers and returns an array with the second number and then the first number.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn swap_numbers a long b long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_257_swap_numbers.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new long 4096 0\nr = swap_numbers 10 20 res\nif ne r 2\nret false\nend\nif ne get res 0 20\nret false\nend\nif ne get res 1 10\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new long 4096 0\nr = swap_numbers 15 17 res\nif ne r 2\nret false\nend\nif ne get res 0 17\nret false\nend\nif ne get res 1 15\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new long 4096 0\nr = swap_numbers 100 200 res\nif ne r 2\nret false\nend\nif ne get res 0 200\nret false\nend\nif ne get res 1 100\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
85{"name": "mbpp_260_newman_prime", "language": "om", "prompt": "om2\nnote Write a function to find the nth newman\u2013shanks\u2013williams prime number.\nfn newman_prime n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_260_newman_prime.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = newman_prime 3\nret eq r 7\nend\nfn tc_1 to bool\nr = newman_prime 4\nret eq r 17\nend\nfn tc_2 to bool\nr = newman_prime 5\nret eq r 41\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
86{"name": "mbpp_261_division_elements", "language": "om", "prompt": "om2\nnote Write a function that takes in two tuples and performs mathematical division operation element-wise across the given tuples.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn division_elements test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_261_division_elements.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 4\nput a0 2 6\nput a0 3 9\na1 = new long 4 0\nput a1 0 5\nput a1 1 2\nput a1 2 3\nput a1 3 3\nres = new long 4096 0\nr = division_elements a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 3\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 12\nput a0 1 6\nput a0 2 8\nput a0 3 16\na1 = new long 4 0\nput a1 0 6\nput a1 1 3\nput a1 2 4\nput a1 3 4\nres = new long 4096 0\nr = division_elements a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 4\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 20\nput a0 1 14\nput a0 2 36\nput a0 3 18\na1 = new long 4 0\nput a1 0 5\nput a1 1 7\nput a1 2 6\nput a1 3 9\nres = new long 4096 0\nr = division_elements a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 4\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 2\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
87{"name": "mbpp_264_dog_age", "language": "om", "prompt": "om2\nnote Write a function to calculate a dog's age in dog's years.\nfn dog_age h_age long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_264_dog_age.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = dog_age 12\nret eq r 61\nend\nfn tc_1 to bool\nr = dog_age 15\nret eq r 73\nend\nfn tc_2 to bool\nr = dog_age 24\nret eq r 109\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
88{"name": "mbpp_266_lateralsurface_cube", "language": "om", "prompt": "om2\nnote Write a function to find the lateral surface area of a cube given its side length.\nfn lateralsurface_cube l long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_266_lateralsurface_cube.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = lateralsurface_cube 5\nret eq r 100\nend\nfn tc_1 to bool\nr = lateralsurface_cube 9\nret eq r 324\nend\nfn tc_2 to bool\nr = lateralsurface_cube 10\nret eq r 400\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
89{"name": "mbpp_267_square_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function that takes in an integer n and returns the sum of the squares of the first n odd natural numbers.\nfn square_Sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_267_square_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = square_Sum 2\nret eq r 10\nend\nfn tc_1 to bool\nr = square_Sum 3\nret eq r 35\nend\nfn tc_2 to bool\nr = square_Sum 4\nret eq r 84\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
90{"name": "mbpp_268_find_star_num", "language": "om", "prompt": "om2\nnote Write a function to find the n'th star number.\nfn find_star_num n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_268_find_star_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_star_num 3\nret eq r 37\nend\nfn tc_1 to bool\nr = find_star_num 4\nret eq r 73\nend\nfn tc_2 to bool\nr = find_star_num 5\nret eq r 121\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
91{"name": "mbpp_269_ascii_value", "language": "om", "prompt": "om2\nnote Write a function to find the ascii value of a character.\nfn ascii_value k view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_269_ascii_value.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"A\"\nfn tc_0 to bool\nr = ascii_value t0_0\nret eq r 65\nend\ntext t1_0 \"R\"\nfn tc_1 to bool\nr = ascii_value t1_0\nret eq r 82\nend\ntext t2_0 \"S\"\nfn tc_2 to bool\nr = ascii_value t2_0\nret eq r 83\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
92{"name": "mbpp_270_sum_even_and_even_index", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of even numbers at even positions of an array.\nfn sum_even_and_even_index arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_270_sum_even_and_even_index.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 5\nput a0 1 6\nput a0 2 12\nput a0 3 1\nput a0 4 18\nput a0 5 8\nr = sum_even_and_even_index a0\nret eq r 30\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 3\nput a0 1 20\nput a0 2 17\nput a0 3 9\nput a0 4 2\nput a0 5 10\nput a0 6 18\nput a0 7 13\nput a0 8 6\nput a0 9 18\nr = sum_even_and_even_index a0\nret eq r 26\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 5\nput a0 1 6\nput a0 2 12\nput a0 3 1\nr = sum_even_and_even_index a0\nret eq r 12\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
93{"name": "mbpp_271_even_Power_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function that takes in an integer n and finds the sum of the first n even natural numbers that are raised to the fifth power.\nfn even_Power_Sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_271_even_Power_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = even_Power_Sum 2\nret eq r 1056\nend\nfn tc_1 to bool\nr = even_Power_Sum 3\nret eq r 8832\nend\nfn tc_2 to bool\nr = even_Power_Sum 1\nret eq r 32\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
94{"name": "mbpp_273_substract_elements", "language": "om", "prompt": "om2\nnote Write a function that takes in two tuples and subtracts the elements of the first array by the elements of the second array with the same index.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn substract_elements test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_273_substract_elements.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 4\nput a0 2 5\na1 = new long 3 0\nput a1 0 2\nput a1 1 5\nput a1 2 18\nres = new long 4096 0\nr = substract_elements a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 8\nret false\nend\nif ne get res 1 -1\nret false\nend\nif ne get res 2 -13\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 11\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 24\nput a1 1 45\nput a1 2 16\nres = new long 4096 0\nr = substract_elements a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 -13\nret false\nend\nif ne get res 1 -43\nret false\nend\nif ne get res 2 -13\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 7\nput a0 1 18\nput a0 2 9\na1 = new long 3 0\nput a1 0 10\nput a1 1 11\nput a1 2 12\nres = new long 4096 0\nr = substract_elements a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 -3\nret false\nend\nif ne get res 1 7\nret false\nend\nif ne get res 2 -3\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
95{"name": "mbpp_274_even_binomial_Coeff_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function that takes in a positive integer n and finds the sum of even index binomial coefficients.\nfn even_binomial_Coeff_Sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_274_even_binomial_Coeff_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = even_binomial_Coeff_Sum 4\nret eq r 8\nend\nfn tc_1 to bool\nr = even_binomial_Coeff_Sum 6\nret eq r 32\nend\nfn tc_2 to bool\nr = even_binomial_Coeff_Sum 2\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
96{"name": "mbpp_279_is_num_decagonal", "language": "om", "prompt": "om2\nnote Write a function to find the nth decagonal number.\nfn is_num_decagonal n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_279_is_num_decagonal.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_num_decagonal 3\nret eq r 27\nend\nfn tc_1 to bool\nr = is_num_decagonal 7\nret eq r 175\nend\nfn tc_2 to bool\nr = is_num_decagonal 10\nret eq r 370\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
97{"name": "mbpp_281_all_unique", "language": "om", "prompt": "om2\nnote Write an Omega function to check if the elements of a given array are unique or not.\nnote Omega name: test_list is test_lis here.\nfn all_unique test_lis view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_281_all_unique.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = all_unique a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nput a0 3 2\nr = all_unique a0\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = all_unique a0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
98{"name": "mbpp_282_sub_list", "language": "om", "prompt": "om2\nnote Write a function to subtract two lists element-wise.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn sub_list nums1 view long * nums2 view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_282_sub_list.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 4\nput a1 1 5\nput a1 2 6\nres = new long 4096 0\nr = sub_list a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 -3\nret false\nend\nif ne get res 1 -3\nret false\nend\nif ne get res 2 -3\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 2 0\nput a0 0 1\nput a0 1 2\na1 = new long 2 0\nput a1 0 3\nput a1 1 4\nres = new long 4096 0\nr = sub_list a0 a1 res\nif ne r 2\nret false\nend\nif ne get res 0 -2\nret false\nend\nif ne get res 1 -2\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 90\nput a0 1 120\na1 = new long 2 0\nput a1 0 50\nput a1 1 70\nres = new long 4096 0\nr = sub_list a0 a1 res\nif ne r 2\nret false\nend\nif ne get res 0 40\nret false\nend\nif ne get res 1 50\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
99{"name": "mbpp_283_validate", "language": "om", "prompt": "om2\nnote Write an Omega function takes in an integer and check whether the frequency of each digit in the integer is less than or equal to the digit itself.\nfn validate n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_283_validate.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = validate 1234\nret eq r true\nend\nfn tc_1 to bool\nr = validate 51241\nret eq r false\nend\nfn tc_2 to bool\nr = validate 321\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
100{"name": "mbpp_285_text_match_two_three", "language": "om", "prompt": "om2\nnote Write a function that checks whether a string contains the 'a' character followed by two or three 'b' characters.\nnote Omega name: text is text_ here.\nfn text_match_two_three text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_285_text_match_two_three.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"ac\"\nfn tc_0 to bool\nr = text_match_two_three t0_0\nret eq r false\nend\ntext t1_0 \"dc\"\nfn tc_1 to bool\nr = text_match_two_three t1_0\nret eq r false\nend\ntext t2_0 \"abbbba\"\nfn tc_2 to bool\nr = text_match_two_three t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
101{"name": "mbpp_286_max_sub_array_sum_repeated", "language": "om", "prompt": "om2\nnote Write a function to find the largest sum of a contiguous array in the modified array which is formed by repeating the given array k times.\nfn max_sub_array_sum_repeated a view long * n long k long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_286_max_sub_array_sum_repeated.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 20\nput a0 2 -30\nput a0 3 -1\nr = max_sub_array_sum_repeated a0 4 3\nret eq r 30\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 -1\nput a0 1 10\nput a0 2 20\nr = max_sub_array_sum_repeated a0 3 2\nret eq r 59\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 -1\nput a0 1 -2\nput a0 2 -3\nr = max_sub_array_sum_repeated a0 3 3\nret eq r -1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
102{"name": "mbpp_287_square_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function takes in an integer n and returns the sum of squares of first n even natural numbers.\nfn square_Sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_287_square_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = square_Sum 2\nret eq r 20\nend\nfn tc_1 to bool\nr = square_Sum 3\nret eq r 56\nend\nfn tc_2 to bool\nr = square_Sum 4\nret eq r 120\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
103{"name": "mbpp_291_count_no_of_ways", "language": "om", "prompt": "om2\nnote Write a function to find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color for the given fence with n posts and k colors.\nfn count_no_of_ways n long k long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_291_count_no_of_ways.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = count_no_of_ways 2 4\nret eq r 16\nend\nfn tc_1 to bool\nr = count_no_of_ways 3 2\nret eq r 6\nend\nfn tc_2 to bool\nr = count_no_of_ways 4 4\nret eq r 228\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
104{"name": "mbpp_292_find", "language": "om", "prompt": "om2\nnote Write an Omega function to find quotient of two numbers (rounded down to the nearest integer).\nfn find n long m long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_292_find.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find 10 3\nret eq r 3\nend\nfn tc_1 to bool\nr = find 4 2\nret eq r 2\nend\nfn tc_2 to bool\nr = find 20 5\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
105{"name": "mbpp_293_otherside_rightangle", "language": "om", "prompt": "om2\nnote Write a function to find the third side of a right angled triangle.\nnote Omega name: w is w_ here.\nfn otherside_rightangle w_ long h long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_293_otherside_rightangle.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = otherside_rightangle 7 8\nret eq r 10.63014581273465\nend\nfn tc_1 to bool\nr = otherside_rightangle 3 4\nret eq r 5.0\nend\nfn tc_2 to bool\nr = otherside_rightangle 7 15\nret eq r 16.55294535724685\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
106{"name": "mbpp_295_sum_div", "language": "om", "prompt": "om2\nnote Write a function to return the sum of all divisors of a number.\nfn sum_div number long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_295_sum_div.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum_div 8\nret eq r 7\nend\nfn tc_1 to bool\nr = sum_div 12\nret eq r 16\nend\nfn tc_2 to bool\nr = sum_div 7\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
107{"name": "mbpp_296_get_Inv_Count", "language": "om", "prompt": "om2\nnote Write an Omega function to count inversions in an array.\nfn get_Inv_Count arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_296_get_Inv_Count.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 20\nput a0 2 6\nput a0 3 4\nput a0 4 5\nr = get_Inv_Count a0\nret eq r 5\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nr = get_Inv_Count a0\nret eq r 1\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 5\nput a0 3 6\nput a0 4 1\nr = get_Inv_Count a0\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
108{"name": "mbpp_306_max_sum_increasing_subseq", "language": "om", "prompt": "om2\nnote Write a function to find the maximum sum of increasing subsequence from prefix until ith index and also including a given kth element which is after i, i.e., k > i .\nfn max_sum_increasing_subseq a view long * n long index long k long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_306_max_sum_increasing_subseq.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 101\nput a0 2 2\nput a0 3 3\nput a0 4 100\nput a0 5 4\nput a0 6 5\nr = max_sum_increasing_subseq a0 7 4 6\nret eq r 11\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 101\nput a0 2 2\nput a0 3 3\nput a0 4 100\nput a0 5 4\nput a0 6 5\nr = max_sum_increasing_subseq a0 7 2 5\nret eq r 7\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 11\nput a0 1 15\nput a0 2 19\nput a0 3 21\nput a0 4 26\nput a0 5 28\nput a0 6 31\nr = max_sum_increasing_subseq a0 7 2 4\nret eq r 71\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
109{"name": "mbpp_309_maximum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the maximum of two numbers.\nfn maximum a long b long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_309_maximum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = maximum 5 10\nret eq r 10\nend\nfn tc_1 to bool\nr = maximum -1 -2\nret eq r -1\nend\nfn tc_2 to bool\nr = maximum 9 7\nret eq r 9\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
110{"name": "mbpp_388_highest_Power_of_2", "language": "om", "prompt": "om2\nnote Write an Omega function to find the highest power of 2 that is less than or equal to n.\nfn highest_Power_of_2 n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_388_highest_Power_of_2.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = highest_Power_of_2 10\nret eq r 8\nend\nfn tc_1 to bool\nr = highest_Power_of_2 19\nret eq r 16\nend\nfn tc_2 to bool\nr = highest_Power_of_2 32\nret eq r 32\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
111{"name": "mbpp_389_find_lucas", "language": "om", "prompt": "om2\nnote Write a function to find the n'th lucas number.\nfn find_lucas n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_389_find_lucas.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_lucas 9\nret eq r 76\nend\nfn tc_1 to bool\nr = find_lucas 4\nret eq r 7\nend\nfn tc_2 to bool\nr = find_lucas 3\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
112{"name": "mbpp_392_get_max_sum", "language": "om", "prompt": "om2\nnote Write a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(n/5)), n).\nfn get_max_sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_392_get_max_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = get_max_sum 60\nret eq r 106\nend\nfn tc_1 to bool\nr = get_max_sum 10\nret eq r 12\nend\nfn tc_2 to bool\nr = get_max_sum 2\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
113{"name": "mbpp_394_check_distinct", "language": "om", "prompt": "om2\nnote Write a function to check if given array contains no duplicates.\nfn check_distinct test_tup view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_394_check_distinct.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 4\nput a0 2 5\nput a0 3 6\nput a0 4 1\nput a0 5 4\nr = check_distinct a0\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 4\nput a0 2 5\nput a0 3 6\nr = check_distinct a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 3\nput a0 2 4\nput a0 3 5\nput a0 4 6\nr = check_distinct a0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
114{"name": "mbpp_396_check_char", "language": "om", "prompt": "om2\nnote Write a function to check whether the given string starts and ends with the same character or not.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn check_char string view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_396_check_char.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"abba\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = check_char t0_0 res\nif ne r 5\nret false\nend\nif ne get res 0 86\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 108\nret false\nend\nif ne get res 3 105\nret false\nend\nif ne get res 4 100\nret false\nend\nret true\nend\ntext t1_0 \"a\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = check_char t1_0 res\nif ne r 5\nret false\nend\nif ne get res 0 86\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 108\nret false\nend\nif ne get res 3 105\nret false\nend\nif ne get res 4 100\nret false\nend\nret true\nend\ntext t2_0 \"abcd\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = check_char t2_0 res\nif ne r 7\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 110\nret false\nend\nif ne get res 2 118\nret false\nend\nif ne get res 3 97\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 105\nret false\nend\nif ne get res 6 100\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
115{"name": "mbpp_397_median_numbers", "language": "om", "prompt": "om2\nnote Write a function to find the median of three numbers.\nfn median_numbers a long b long c long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_397_median_numbers.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = median_numbers 25 55 65\nret eq r 55.0\nend\nfn tc_1 to bool\nr = median_numbers 20 10 30\nret eq r 20.0\nend\nfn tc_2 to bool\nr = median_numbers 15 45 75\nret eq r 45.0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
116{"name": "mbpp_399_bitwise_xor", "language": "om", "prompt": "om2\nnote Write a function to perform the mathematical bitwise xor operation across the given tuples.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn bitwise_xor test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_399_bitwise_xor.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 4\nput a0 2 6\nput a0 3 9\na1 = new long 4 0\nput a1 0 5\nput a1 1 2\nput a1 2 3\nput a1 3 3\nres = new long 4096 0\nr = bitwise_xor a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 15\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 11\nput a0 1 5\nput a0 2 7\nput a0 3 10\na1 = new long 4 0\nput a1 0 6\nput a1 1 3\nput a1 2 4\nput a1 3 4\nres = new long 4096 0\nr = bitwise_xor a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 13\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 14\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 12\nput a0 1 6\nput a0 2 8\nput a0 3 11\na1 = new long 4 0\nput a1 0 7\nput a1 1 4\nput a1 2 5\nput a1 3 6\nres = new long 4096 0\nr = bitwise_xor a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 11\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 13\nret false\nend\nif ne get res 3 13\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
117{"name": "mbpp_404_minimum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the minimum of two numbers.\nfn minimum a long b long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_404_minimum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = minimum 1 2\nret eq r 1\nend\nfn tc_1 to bool\nr = minimum -5 -4\nret eq r -5\nend\nfn tc_2 to bool\nr = minimum 0 0\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
118{"name": "mbpp_406_find_Parity", "language": "om", "prompt": "om2\nnote Write an Omega function to find whether the parity of a given number is odd.\nfn find_Parity x long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_406_find_Parity.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_Parity 12\nret eq r false\nend\nfn tc_1 to bool\nr = find_Parity 7\nret eq r true\nend\nfn tc_2 to bool\nr = find_Parity 10\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
119{"name": "mbpp_411_snake_to_camel", "language": "om", "prompt": "om2\nnote Write a function to convert the given snake case string to camel case string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn snake_to_camel word view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_411_snake_to_camel.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"android_tv\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = snake_to_camel t0_0 res\nif ne r 9\nret false\nend\nif ne get res 0 65\nret false\nend\nif ne get res 1 110\nret false\nend\nif ne get res 2 100\nret false\nend\nif ne get res 3 114\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 105\nret false\nend\nif ne get res 6 100\nret false\nend\nif ne get res 7 84\nret false\nend\nif ne get res 8 118\nret false\nend\nret true\nend\ntext t1_0 \"google_pixel\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = snake_to_camel t1_0 res\nif ne r 11\nret false\nend\nif ne get res 0 71\nret false\nend\nif ne get res 1 111\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 80\nret false\nend\nif ne get res 7 105\nret false\nend\nif ne get res 8 120\nret false\nend\nif ne get res 9 101\nret false\nend\nif ne get res 10 108\nret false\nend\nret true\nend\ntext t2_0 \"apple_watch\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = snake_to_camel t2_0 res\nif ne r 10\nret false\nend\nif ne get res 0 65\nret false\nend\nif ne get res 1 112\nret false\nend\nif ne get res 2 112\nret false\nend\nif ne get res 3 108\nret false\nend\nif ne get res 4 101\nret false\nend\nif ne get res 5 87\nret false\nend\nif ne get res 6 97\nret false\nend\nif ne get res 7 116\nret false\nend\nif ne get res 8 99\nret false\nend\nif ne get res 9 104\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
120{"name": "mbpp_412_remove_odd", "language": "om", "prompt": "om2\nnote Write an Omega function to remove odd numbers from a given array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn remove_odd l view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_412_remove_odd.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nres = new long 4096 0\nr = remove_odd a0 res\nif ne r 1\nret false\nend\nif ne get res 0 2\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 2\nput a0 1 4\nput a0 2 6\nres = new long 4096 0\nr = remove_odd a0 res\nif ne r 3\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 6\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 20\nput a0 2 3\nres = new long 4096 0\nr = remove_odd a0 res\nif ne r 2\nret false\nend\nif ne get res 0 10\nret false\nend\nif ne get res 1 20\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
121{"name": "mbpp_414_overlapping", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether any value in a sequence exists in a sequence or not.\nfn overlapping list1 view long * list2 view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_414_overlapping.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\na1 = new long 4 0\nput a1 0 6\nput a1 1 7\nput a1 2 8\nput a1 3 9\nr = overlapping a0 a1\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 4\nput a1 1 5\nput a1 2 6\nr = overlapping a0 a1\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 4\nput a0 2 5\na1 = new long 3 0\nput a1 0 1\nput a1 1 4\nput a1 2 5\nr = overlapping a0 a1\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
122{"name": "mbpp_415_max_Product", "language": "om", "prompt": "om2\nnote Write an Omega function to find a pair with highest product from a given array of integers.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn max_Product arr view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_415_max_Product.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 7\nput a0 5 0\nput a0 6 8\nput a0 7 4\nres = new long 4096 0\nr = max_Product a0 res\nif ne r 2\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 8\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 0\nput a0 1 -1\nput a0 2 -2\nput a0 3 -4\nput a0 4 5\nput a0 5 0\nput a0 6 -6\nres = new long 4096 0\nr = max_Product a0 res\nif ne r 2\nret false\nend\nif ne get res 0 -4\nret false\nend\nif ne get res 1 -6\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nres = new long 4096 0\nr = max_Product a0 res\nif ne r 2\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
123{"name": "mbpp_420_cube_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the cube sum of first n even natural numbers.\nfn cube_Sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_420_cube_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = cube_Sum 2\nret eq r 72\nend\nfn tc_1 to bool\nr = cube_Sum 3\nret eq r 288\nend\nfn tc_2 to bool\nr = cube_Sum 4\nret eq r 800\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
124{"name": "mbpp_422_find_Average_Of_Cube", "language": "om", "prompt": "om2\nnote Write an Omega function to find the average of cubes of first n natural numbers.\nfn find_Average_Of_Cube n long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_422_find_Average_Of_Cube.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_Average_Of_Cube 2\nret eq r 4.5\nend\nfn tc_1 to bool\nr = find_Average_Of_Cube 3\nret eq r 12.0\nend\nfn tc_2 to bool\nr = find_Average_Of_Cube 1\nret eq r 1.0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
125{"name": "mbpp_426_filter_oddnumbers", "language": "om", "prompt": "om2\nnote Write a function to filter odd numbers.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn filter_oddnumbers nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_426_filter_oddnumbers.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = filter_oddnumbers a0 res\nif ne r 5\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 7\nret false\nend\nif ne get res 4 9\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 10\nput a0 1 20\nput a0 2 45\nput a0 3 67\nput a0 4 84\nput a0 5 93\nres = new long 4096 0\nr = filter_oddnumbers a0 res\nif ne r 3\nret false\nend\nif ne get res 0 45\nret false\nend\nif ne get res 1 67\nret false\nend\nif ne get res 2 93\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 5\nput a0 1 7\nput a0 2 9\nput a0 3 8\nput a0 4 6\nput a0 5 4\nput a0 6 3\nres = new long 4096 0\nr = filter_oddnumbers a0 res\nif ne r 4\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 7\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 3\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
126{"name": "mbpp_427_change_date_format", "language": "om", "prompt": "om2\nnote Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn change_date_format dt view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_427_change_date_format.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"2026-01-02\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = change_date_format t0_0 res\nif ne r 10\nret false\nend\nif ne get res 0 48\nret false\nend\nif ne get res 1 50\nret false\nend\nif ne get res 2 45\nret false\nend\nif ne get res 3 48\nret false\nend\nif ne get res 4 49\nret false\nend\nif ne get res 5 45\nret false\nend\nif ne get res 6 50\nret false\nend\nif ne get res 7 48\nret false\nend\nif ne get res 8 50\nret false\nend\nif ne get res 9 54\nret false\nend\nret true\nend\ntext t1_0 \"2020-11-13\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = change_date_format t1_0 res\nif ne r 10\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 51\nret false\nend\nif ne get res 2 45\nret false\nend\nif ne get res 3 49\nret false\nend\nif ne get res 4 49\nret false\nend\nif ne get res 5 45\nret false\nend\nif ne get res 6 50\nret false\nend\nif ne get res 7 48\nret false\nend\nif ne get res 8 50\nret false\nend\nif ne get res 9 48\nret false\nend\nret true\nend\ntext t2_0 \"2021-04-26\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = change_date_format t2_0 res\nif ne r 10\nret false\nend\nif ne get res 0 50\nret false\nend\nif ne get res 1 54\nret false\nend\nif ne get res 2 45\nret false\nend\nif ne get res 3 48\nret false\nend\nif ne get res 4 52\nret false\nend\nif ne get res 5 45\nret false\nend\nif ne get res 6 50\nret false\nend\nif ne get res 7 48\nret false\nend\nif ne get res 8 50\nret false\nend\nif ne get res 9 49\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
127{"name": "mbpp_428_shell_sort", "language": "om", "prompt": "om2\nnote Write a function to sort the given array by using shell sort.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn shell_sort my_list view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_428_shell_sort.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 12\nput a0 1 23\nput a0 2 4\nput a0 3 5\nput a0 4 3\nput a0 5 2\nput a0 6 12\nput a0 7 81\nput a0 8 56\nput a0 9 95\nres = new long 4096 0\nr = shell_sort a0 res\nif ne r 10\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 4\nret false\nend\nif ne get res 3 5\nret false\nend\nif ne get res 4 12\nret false\nend\nif ne get res 5 12\nret false\nend\nif ne get res 6 23\nret false\nend\nif ne get res 7 56\nret false\nend\nif ne get res 8 81\nret false\nend\nif ne get res 9 95\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 24\nput a0 1 22\nput a0 2 39\nput a0 3 34\nput a0 4 87\nput a0 5 73\nput a0 6 68\nres = new long 4096 0\nr = shell_sort a0 res\nif ne r 7\nret false\nend\nif ne get res 0 22\nret false\nend\nif ne get res 1 24\nret false\nend\nif ne get res 2 34\nret false\nend\nif ne get res 3 39\nret false\nend\nif ne get res 4 68\nret false\nend\nif ne get res 5 73\nret false\nend\nif ne get res 6 87\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 32\nput a0 1 30\nput a0 2 16\nput a0 3 96\nput a0 4 82\nput a0 5 83\nput a0 6 74\nres = new long 4096 0\nr = shell_sort a0 res\nif ne r 7\nret false\nend\nif ne get res 0 16\nret false\nend\nif ne get res 1 30\nret false\nend\nif ne get res 2 32\nret false\nend\nif ne get res 3 74\nret false\nend\nif ne get res 4 82\nret false\nend\nif ne get res 5 83\nret false\nend\nif ne get res 6 96\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
128{"name": "mbpp_429_and_tuples", "language": "om", "prompt": "om2\nnote Write a function to extract the elementwise and tuples from the given two tuples.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn and_tuples test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_429_and_tuples.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 4\nput a0 2 6\nput a0 3 9\na1 = new long 4 0\nput a1 0 5\nput a1 1 2\nput a1 2 3\nput a1 3 3\nres = new long 4096 0\nr = and_tuples a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 0\nret false\nend\nif ne get res 1 0\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 1\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\na1 = new long 4 0\nput a1 0 5\nput a1 1 6\nput a1 2 7\nput a1 3 8\nres = new long 4096 0\nr = and_tuples a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 0\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 8\nput a0 1 9\nput a0 2 11\nput a0 3 12\na1 = new long 4 0\nput a1 0 7\nput a1 1 13\nput a1 2 14\nput a1 3 17\nres = new long 4096 0\nr = and_tuples a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 0\nret false\nend\nif ne get res 1 9\nret false\nend\nif ne get res 2 10\nret false\nend\nif ne get res 3 0\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
129{"name": "mbpp_430_parabola_directrix", "language": "om", "prompt": "om2\nnote Write a function to find the directrix of a parabola.\nfn parabola_directrix a long b long c long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_430_parabola_directrix.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = parabola_directrix 5 3 2\nret eq r -198\nend\nfn tc_1 to bool\nr = parabola_directrix 9 8 4\nret eq r -2336\nend\nfn tc_2 to bool\nr = parabola_directrix 2 4 6\nret eq r -130\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
130{"name": "mbpp_432_median_trapezium", "language": "om", "prompt": "om2\nnote Write a function to find the median length of a trapezium.\nfn median_trapezium base1 long base2 long height long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_432_median_trapezium.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = median_trapezium 15 25 35\nret eq r 20.0\nend\nfn tc_1 to bool\nr = median_trapezium 10 20 30\nret eq r 15.0\nend\nfn tc_2 to bool\nr = median_trapezium 6 9 4\nret eq r 7.5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
131{"name": "mbpp_433_check_greater", "language": "om", "prompt": "om2\nnote Write a function to check whether the entered number is greater than the elements of the given array.\nfn check_greater arr view long * number long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_433_check_greater.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = check_greater a0 4\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 3\nput a0 2 4\nput a0 3 5\nput a0 4 6\nr = check_greater a0 8\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 9\nput a0 1 7\nput a0 2 4\nput a0 3 8\nput a0 4 6\nput a0 5 1\nr = check_greater a0 11\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
132{"name": "mbpp_434_text_match_one", "language": "om", "prompt": "om2\nnote Write a function that matches a string that has an a followed by one or more b's.\nnote Omega name: text is text_ here.\nfn text_match_one text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_434_text_match_one.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"ac\"\nfn tc_0 to bool\nr = text_match_one t0_0\nret eq r false\nend\ntext t1_0 \"dc\"\nfn tc_1 to bool\nr = text_match_one t1_0\nret eq r false\nend\ntext t2_0 \"abba\"\nfn tc_2 to bool\nr = text_match_one t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
133{"name": "mbpp_435_last_Digit", "language": "om", "prompt": "om2\nnote Write an Omega function to find the last digit of a given number.\nfn last_Digit n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_435_last_Digit.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = last_Digit 123\nret eq r 3\nend\nfn tc_1 to bool\nr = last_Digit 25\nret eq r 5\nend\nfn tc_2 to bool\nr = last_Digit 30\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
134{"name": "mbpp_436_neg_nos", "language": "om", "prompt": "om2\nnote Write an Omega function to return the negative numbers in an array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn neg_nos list1 view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_436_neg_nos.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 -1\nput a0 1 4\nput a0 2 5\nput a0 3 -6\nres = new long 4096 0\nr = neg_nos a0 res\nif ne r 2\nret false\nend\nif ne get res 0 -1\nret false\nend\nif ne get res 1 -6\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 -1\nput a0 1 -2\nput a0 2 3\nput a0 3 4\nres = new long 4096 0\nr = neg_nos a0 res\nif ne r 2\nret false\nend\nif ne get res 0 -1\nret false\nend\nif ne get res 1 -2\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 -7\nput a0 1 -6\nput a0 2 8\nput a0 3 9\nres = new long 4096 0\nr = neg_nos a0 res\nif ne r 2\nret false\nend\nif ne get res 0 -7\nret false\nend\nif ne get res 1 -6\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
135{"name": "mbpp_437_remove_odd", "language": "om", "prompt": "om2\nnote Write a function to remove odd characters in a string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_odd str1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_437_remove_odd.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_odd t0_0 res\nif ne r 3\nret false\nend\nif ne get res 0 121\nret false\nend\nif ne get res 1 104\nret false\nend\nif ne get res 2 110\nret false\nend\nret true\nend\ntext t1_0 \"program\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_odd t1_0 res\nif ne r 3\nret false\nend\nif ne get res 0 114\nret false\nend\nif ne get res 1 103\nret false\nend\nif ne get res 2 97\nret false\nend\nret true\nend\ntext t2_0 \"language\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_odd t2_0 res\nif ne r 4\nret false\nend\nif ne get res 0 97\nret false\nend\nif ne get res 1 103\nret false\nend\nif ne get res 2 97\nret false\nend\nif ne get res 3 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
136{"name": "mbpp_439_multiple_to_single", "language": "om", "prompt": "om2\nnote Write a function to join an array of multiple integers into a single integer.\nfn multiple_to_single L view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_439_multiple_to_single.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 11\nput a0 1 33\nput a0 2 50\nr = multiple_to_single a0\nret eq r 113350\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 -1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nr = multiple_to_single a0\nret eq r -123456\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 15\nput a0 2 20\nput a0 3 25\nr = multiple_to_single a0\nret eq r 10152025\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
137{"name": "mbpp_441_surfacearea_cube", "language": "om", "prompt": "om2\nnote Write a function to find the surface area of a cube of a given size.\nfn surfacearea_cube l long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_441_surfacearea_cube.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = surfacearea_cube 5\nret eq r 150\nend\nfn tc_1 to bool\nr = surfacearea_cube 3\nret eq r 54\nend\nfn tc_2 to bool\nr = surfacearea_cube 10\nret eq r 600\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
138{"name": "mbpp_442_positive_count", "language": "om", "prompt": "om2\nnote Write a function to find the ration of positive numbers in an array of integers.\nfn positive_count nums view long * to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_442_positive_count.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 13 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 -1\nput a0 4 -5\nput a0 5 6\nput a0 6 0\nput a0 7 -3\nput a0 8 -2\nput a0 9 3\nput a0 10 4\nput a0 11 6\nput a0 12 8\nr = positive_count a0\nret eq r 0.54\nend\nfn tc_1 to bool\na0 = new long 13 0\nput a0 0 2\nput a0 1 1\nput a0 2 2\nput a0 3 -1\nput a0 4 -5\nput a0 5 6\nput a0 6 4\nput a0 7 -3\nput a0 8 -2\nput a0 9 3\nput a0 10 4\nput a0 11 6\nput a0 12 8\nr = positive_count a0\nret eq r 0.69\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 2\nput a0 1 4\nput a0 2 -6\nput a0 3 -9\nput a0 4 11\nput a0 5 -12\nput a0 6 14\nput a0 7 -5\nput a0 8 17\nr = positive_count a0\nret eq r 0.56\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
139{"name": "mbpp_443_largest_neg", "language": "om", "prompt": "om2\nnote Write an Omega function to find the largest negative number from the given array.\nfn largest_neg list1 view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_443_largest_neg.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 -4\nput a0 4 -6\nr = largest_neg a0\nret eq r -6\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 -8\nput a0 4 -9\nr = largest_neg a0\nret eq r -9\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 -1\nr = largest_neg a0\nret eq r -1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
140{"name": "mbpp_447_cube_nums", "language": "om", "prompt": "om2\nnote Write a function to find cubes of individual elements in an array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn cube_nums nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_447_cube_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = cube_nums a0 res\nif ne r 10\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 8\nret false\nend\nif ne get res 2 27\nret false\nend\nif ne get res 3 64\nret false\nend\nif ne get res 4 125\nret false\nend\nif ne get res 5 216\nret false\nend\nif ne get res 6 343\nret false\nend\nif ne get res 7 512\nret false\nend\nif ne get res 8 729\nret false\nend\nif ne get res 9 1000\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 20\nput a0 2 30\nres = new long 4096 0\nr = cube_nums a0 res\nif ne r 3\nret false\nend\nif ne get res 0 1000\nret false\nend\nif ne get res 1 8000\nret false\nend\nif ne get res 2 27000\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 12\nput a0 1 15\nres = new long 4096 0\nr = cube_nums a0 res\nif ne r 2\nret false\nend\nif ne get res 0 1728\nret false\nend\nif ne get res 1 3375\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
141{"name": "mbpp_448_cal_sum", "language": "om", "prompt": "om2\nnote Write a function to calculate the sum of perrin numbers.\nfn cal_sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_448_cal_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = cal_sum 9\nret eq r 49\nend\nfn tc_1 to bool\nr = cal_sum 10\nret eq r 66\nend\nfn tc_2 to bool\nr = cal_sum 11\nret eq r 88\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
142{"name": "mbpp_451_remove_whitespaces", "language": "om", "prompt": "om2\nnote Write a function to remove all whitespaces from the given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_whitespaces text1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_451_remove_whitespaces.py", "prompt_terminology": "reworded", "tests": "text t0_0 \" Google Flutter \"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_whitespaces t0_0 res\nif ne r 13\nret false\nend\nif ne get res 0 71\nret false\nend\nif ne get res 1 111\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 70\nret false\nend\nif ne get res 7 108\nret false\nend\nif ne get res 8 117\nret false\nend\nif ne get res 9 116\nret false\nend\nif ne get res 10 116\nret false\nend\nif ne get res 11 101\nret false\nend\nif ne get res 12 114\nret false\nend\nret true\nend\ntext t1_0 \" Google Dart \"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_whitespaces t1_0 res\nif ne r 10\nret false\nend\nif ne get res 0 71\nret false\nend\nif ne get res 1 111\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 68\nret false\nend\nif ne get res 7 97\nret false\nend\nif ne get res 8 114\nret false\nend\nif ne get res 9 116\nret false\nend\nret true\nend\ntext t2_0 \" iOS Swift \"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_whitespaces t2_0 res\nif ne r 8\nret false\nend\nif ne get res 0 105\nret false\nend\nif ne get res 1 79\nret false\nend\nif ne get res 2 83\nret false\nend\nif ne get res 3 83\nret false\nend\nif ne get res 4 119\nret false\nend\nif ne get res 5 105\nret false\nend\nif ne get res 6 102\nret false\nend\nif ne get res 7 116\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
143{"name": "mbpp_452_loss_amount", "language": "om", "prompt": "om2\nnote Write a function that gives loss amount on a sale if the given amount has loss else return 0.\nnote Omega name: actual_cost is actual_c here.\nnote Omega name: sale_amount is sale_amo here.\nfn loss_amount actual_c long sale_amo long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_452_loss_amount.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = loss_amount 1500 1200\nret eq r 0\nend\nfn tc_1 to bool\nr = loss_amount 100 200\nret eq r 100\nend\nfn tc_2 to bool\nr = loss_amount 2000 5000\nret eq r 3000\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
144{"name": "mbpp_453_sumofFactors", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of even factors of a number.\nfn sumofFactors n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_453_sumofFactors.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sumofFactors 18\nret eq r 26\nend\nfn tc_1 to bool\nr = sumofFactors 30\nret eq r 48\nend\nfn tc_2 to bool\nr = sumofFactors 6\nret eq r 8\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
145{"name": "mbpp_454_text_match_wordz", "language": "om", "prompt": "om2\nnote Write a function that matches a word containing 'z'.\nnote Omega name: text is text_ here.\nfn text_match_wordz text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_454_text_match_wordz.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"pythonz.\"\nfn tc_0 to bool\nr = text_match_wordz t0_0\nret eq r true\nend\ntext t1_0 \"xyz.\"\nfn tc_1 to bool\nr = text_match_wordz t1_0\nret eq r true\nend\ntext t2_0 \" lang .\"\nfn tc_2 to bool\nr = text_match_wordz t2_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
146{"name": "mbpp_455_check_monthnumb_number", "language": "om", "prompt": "om2\nnote Write a function to check whether the given month number contains 31 days or not.\nnote Omega name: monthnum2 is monthnum here.\nfn check_monthnumb_number monthnum long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_455_check_monthnumb_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = check_monthnumb_number 5\nret eq r true\nend\nfn tc_1 to bool\nr = check_monthnumb_number 2\nret eq r false\nend\nfn tc_2 to bool\nr = check_monthnumb_number 6\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
147{"name": "mbpp_458_rectangle_area", "language": "om", "prompt": "om2\nnote Write a function to find the area of a rectangle.\nfn rectangle_area l long b long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_458_rectangle_area.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = rectangle_area 10 20\nret eq r 200\nend\nfn tc_1 to bool\nr = rectangle_area 10 5\nret eq r 50\nend\nfn tc_2 to bool\nr = rectangle_area 4 2\nret eq r 8\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
148{"name": "mbpp_459_remove_uppercase", "language": "om", "prompt": "om2\nnote Write a function to remove uppercase substrings from a given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_uppercase str1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_459_remove_uppercase.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"cAstyoUrFavoRitETVshoWs\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_uppercase t0_0 res\nif ne r 15\nret false\nend\nif ne get res 0 99\nret false\nend\nif ne get res 1 115\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 121\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 114\nret false\nend\nif ne get res 6 97\nret false\nend\nif ne get res 7 118\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 105\nret false\nend\nif ne get res 10 116\nret false\nend\nif ne get res 11 115\nret false\nend\nif ne get res 12 104\nret false\nend\nif ne get res 13 111\nret false\nend\nif ne get res 14 115\nret false\nend\nret true\nend\ntext t1_0 \"wAtchTheinTernEtrAdIo\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_uppercase t1_0 res\nif ne r 15\nret false\nend\nif ne get res 0 119\nret false\nend\nif ne get res 1 116\nret false\nend\nif ne get res 2 99\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 104\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 105\nret false\nend\nif ne get res 7 110\nret false\nend\nif ne get res 8 101\nret false\nend\nif ne get res 9 114\nret false\nend\nif ne get res 10 110\nret false\nend\nif ne get res 11 116\nret false\nend\nif ne get res 12 114\nret false\nend\nif ne get res 13 100\nret false\nend\nif ne get res 14 111\nret false\nend\nret true\nend\ntext t2_0 \"VoicESeaRchAndreComMendaTionS\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_uppercase t2_0 res\nif ne r 20\nret false\nend\nif ne get res 0 111\nret false\nend\nif ne get res 1 105\nret false\nend\nif ne get res 2 99\nret false\nend\nif ne get res 3 101\nret false\nend\nif ne get res 4 97\nret false\nend\nif ne get res 5 99\nret false\nend\nif ne get res 6 104\nret false\nend\nif ne get res 7 110\nret false\nend\nif ne get res 8 100\nret false\nend\nif ne get res 9 114\nret false\nend\nif ne get res 10 101\nret false\nend\nif ne get res 11 111\nret false\nend\nif ne get res 12 109\nret false\nend\nif ne get res 13 101\nret false\nend\nif ne get res 14 110\nret false\nend\nif ne get res 15 100\nret false\nend\nif ne get res 16 97\nret false\nend\nif ne get res 17 105\nret false\nend\nif ne get res 18 111\nret false\nend\nif ne get res 19 110\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
149{"name": "mbpp_461_upper_ctr", "language": "om", "prompt": "om2\nnote Write an Omega function to count the upper case characters in a given string.\nfn upper_ctr str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_461_upper_ctr.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"PYthon\"\nfn tc_0 to bool\nr = upper_ctr t0_0\nret eq r 1\nend\ntext t1_0 \"BigData\"\nfn tc_1 to bool\nr = upper_ctr t1_0\nret eq r 1\nend\ntext t2_0 \"program\"\nfn tc_2 to bool\nr = upper_ctr t2_0\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
150{"name": "mbpp_463_max_subarray_product", "language": "om", "prompt": "om2\nnote Write a function to find the maximum product subarray of the given array.\nfn max_subarray_product arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_463_max_subarray_product.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 -2\nput a0 2 -3\nput a0 3 0\nput a0 4 7\nput a0 5 -8\nput a0 6 -2\nr = max_subarray_product a0\nret eq r 112\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 6\nput a0 1 -3\nput a0 2 -10\nput a0 3 0\nput a0 4 2\nr = max_subarray_product a0\nret eq r 180\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 -2\nput a0 1 -40\nput a0 2 0\nput a0 3 -2\nput a0 4 -3\nr = max_subarray_product a0\nret eq r 80\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
151{"name": "mbpp_468_max_product", "language": "om", "prompt": "om2\nnote Write a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array.\nfn max_product arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_468_max_product.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 3\nput a0 1 100\nput a0 2 4\nput a0 3 5\nput a0 4 150\nput a0 5 6\nr = max_product a0\nret eq r 3000\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 4\nput a0 1 42\nput a0 2 55\nput a0 3 68\nput a0 4 80\nr = max_product a0\nret eq r 50265600\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 10\nput a0 1 22\nput a0 2 9\nput a0 3 33\nput a0 4 21\nput a0 5 50\nput a0 6 41\nput a0 7 60\nr = max_product a0\nret eq r 2460\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
152{"name": "mbpp_470_add_pairwise", "language": "om", "prompt": "om2\nnote Write a function to find the pairwise addition of the neighboring elements of the given array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn add_pairwise test_tup view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_470_add_pairwise.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 5\nput a0 2 7\nput a0 3 8\nput a0 4 10\nres = new long 4096 0\nr = add_pairwise a0 res\nif ne r 4\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 12\nret false\nend\nif ne get res 2 15\nret false\nend\nif ne get res 3 18\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 6\nput a0 2 8\nput a0 3 9\nput a0 4 11\nres = new long 4096 0\nr = add_pairwise a0 res\nif ne r 4\nret false\nend\nif ne get res 0 8\nret false\nend\nif ne get res 1 14\nret false\nend\nif ne get res 2 17\nret false\nend\nif ne get res 3 20\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 3\nput a0 1 7\nput a0 2 9\nput a0 3 10\nput a0 4 12\nres = new long 4096 0\nr = add_pairwise a0 res\nif ne r 4\nret false\nend\nif ne get res 0 10\nret false\nend\nif ne get res 1 16\nret false\nend\nif ne get res 2 19\nret false\nend\nif ne get res 3 22\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
153{"name": "mbpp_471_find_remainder", "language": "om", "prompt": "om2\nnote Write an Omega function to find the product of the array multiplication modulo n.\nfn find_remainder arr view long * n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_471_find_remainder.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 100\nput a0 1 10\nput a0 2 5\nput a0 3 25\nput a0 4 35\nput a0 5 14\nr = find_remainder a0 11\nret eq r 9\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nr = find_remainder a0 1\nret eq r 0\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nr = find_remainder a0 2\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
154{"name": "mbpp_472_check_Consecutive", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given array contains consecutive numbers or not.\nfn check_Consecutive l view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_472_check_Consecutive.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = check_Consecutive a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 5\nput a0 4 6\nr = check_Consecutive a0\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nr = check_Consecutive a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
155{"name": "mbpp_476_big_sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of the largest and smallest value in a given array.\nfn big_sum nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_476_big_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = big_sum a0\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 -1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nr = big_sum a0\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 2\nput a0 1 3\nput a0 2 6\nr = big_sum a0\nret eq r 8\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
156{"name": "mbpp_477_is_lower", "language": "om", "prompt": "om2\nnote Write an Omega function to convert the given string to lower case.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn is_lower string view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_477_is_lower.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"InValid\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = is_lower t0_0 res\nif ne r 7\nret false\nend\nif ne get res 0 105\nret false\nend\nif ne get res 1 110\nret false\nend\nif ne get res 2 118\nret false\nend\nif ne get res 3 97\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 105\nret false\nend\nif ne get res 6 100\nret false\nend\nret true\nend\ntext t1_0 \"TruE\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = is_lower t1_0 res\nif ne r 4\nret false\nend\nif ne get res 0 116\nret false\nend\nif ne get res 1 114\nret false\nend\nif ne get res 2 117\nret false\nend\nif ne get res 3 101\nret false\nend\nret true\nend\ntext t2_0 \"SenTenCE\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = is_lower t2_0 res\nif ne r 8\nret false\nend\nif ne get res 0 115\nret false\nend\nif ne get res 1 101\nret false\nend\nif ne get res 2 110\nret false\nend\nif ne get res 3 116\nret false\nend\nif ne get res 4 101\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 99\nret false\nend\nif ne get res 7 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
157{"name": "mbpp_478_remove_lowercase", "language": "om", "prompt": "om2\nnote Write a function to remove lowercase substrings from a given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_lowercase str1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_478_remove_lowercase.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"PYTHon\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_lowercase t0_0 res\nif ne r 4\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 89\nret false\nend\nif ne get res 2 84\nret false\nend\nif ne get res 3 72\nret false\nend\nret true\nend\ntext t1_0 \"FInD\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_lowercase t1_0 res\nif ne r 3\nret false\nend\nif ne get res 0 70\nret false\nend\nif ne get res 1 73\nret false\nend\nif ne get res 2 68\nret false\nend\nret true\nend\ntext t2_0 \"STRinG\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_lowercase t2_0 res\nif ne r 4\nret false\nend\nif ne get res 0 83\nret false\nend\nif ne get res 1 84\nret false\nend\nif ne get res 2 82\nret false\nend\nif ne get res 3 71\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
158{"name": "mbpp_479_first_Digit", "language": "om", "prompt": "om2\nnote Write an Omega function to find the first digit of a given number.\nfn first_Digit n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_479_first_Digit.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = first_Digit 123\nret eq r 1\nend\nfn tc_1 to bool\nr = first_Digit 456\nret eq r 4\nend\nfn tc_2 to bool\nr = first_Digit 12\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
159{"name": "mbpp_554_Split", "language": "om", "prompt": "om2\nnote Write an Omega function which takes an array of integers and only returns the odd ones.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn Split list view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_554_Split.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nres = new long 4096 0\nr = Split a0 res\nif ne r 3\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 5\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 11\nput a0 2 12\nput a0 3 13\nres = new long 4096 0\nr = Split a0 res\nif ne r 2\nret false\nend\nif ne get res 0 11\nret false\nend\nif ne get res 1 13\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\nput a0 3 1\nres = new long 4096 0\nr = Split a0 res\nif ne r 3\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 9\nret false\nend\nif ne get res 2 1\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
160{"name": "mbpp_555_difference", "language": "om", "prompt": "om2\nnote Write an Omega function to find the difference between the sum of cubes of the first n natural numbers and the sum of the first n natural numbers.\nfn difference n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_555_difference.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = difference 3\nret eq r 30\nend\nfn tc_1 to bool\nr = difference 5\nret eq r 210\nend\nfn tc_2 to bool\nr = difference 2\nret eq r 6\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
161{"name": "mbpp_556_find_Odd_Pair", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of pairs whose xor value is odd.\nfn find_Odd_Pair A view long * N long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_556_find_Odd_Pair.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 5\nput a0 1 4\nput a0 2 7\nput a0 3 2\nput a0 4 1\nr = find_Odd_Pair a0 5\nret eq r 6\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 7\nput a0 1 2\nput a0 2 8\nput a0 3 1\nput a0 4 0\nput a0 5 5\nput a0 6 11\nr = find_Odd_Pair a0 7\nret eq r 12\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = find_Odd_Pair a0 3\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
162{"name": "mbpp_557_toggle_string", "language": "om", "prompt": "om2\nnote Write a function to toggle the case of all characters in a string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn toggle_string string view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_557_toggle_string.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Python\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = toggle_string t0_0 res\nif ne r 6\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 89\nret false\nend\nif ne get res 2 84\nret false\nend\nif ne get res 3 72\nret false\nend\nif ne get res 4 79\nret false\nend\nif ne get res 5 78\nret false\nend\nret true\nend\ntext t1_0 \"Pangram\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = toggle_string t1_0 res\nif ne r 7\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 65\nret false\nend\nif ne get res 2 78\nret false\nend\nif ne get res 3 71\nret false\nend\nif ne get res 4 82\nret false\nend\nif ne get res 5 65\nret false\nend\nif ne get res 6 77\nret false\nend\nret true\nend\ntext t2_0 \"LIttLE\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = toggle_string t2_0 res\nif ne r 6\nret false\nend\nif ne get res 0 108\nret false\nend\nif ne get res 1 105\nret false\nend\nif ne get res 2 84\nret false\nend\nif ne get res 3 84\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
163{"name": "mbpp_558_digit_distance_nums", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of the per-digit difference between two integers.\nfn digit_distance_nums n1 long n2 long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_558_digit_distance_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = digit_distance_nums 1 2\nret eq r 1\nend\nfn tc_1 to bool\nr = digit_distance_nums 23 56\nret eq r 6\nend\nfn tc_2 to bool\nr = digit_distance_nums 123 256\nret eq r 7\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
164{"name": "mbpp_559_max_sub_array_sum", "language": "om", "prompt": "om2\nnote Write a function to find the sum of the largest contiguous sublist in the given array.\nfn max_sub_array_sum a view long * size long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_559_max_sub_array_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 -2\nput a0 1 -3\nput a0 2 4\nput a0 3 -1\nput a0 4 -2\nput a0 5 1\nput a0 6 5\nput a0 7 -3\nr = max_sub_array_sum a0 8\nret eq r 7\nend\nfn tc_1 to bool\na0 = new long 8 0\nput a0 0 -3\nput a0 1 -4\nput a0 2 5\nput a0 3 -2\nput a0 4 -3\nput a0 5 2\nput a0 6 6\nput a0 7 -4\nr = max_sub_array_sum a0 8\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 -4\nput a0 1 -5\nput a0 2 6\nput a0 3 -3\nput a0 4 -4\nput a0 5 3\nput a0 6 7\nput a0 7 -5\nr = max_sub_array_sum a0 8\nret eq r 10\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
165{"name": "mbpp_560_union_elements", "language": "om", "prompt": "om2\nnote Write a function to find the union of the elements of two given lists and output them in sorted order.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn union_elements test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_560_union_elements.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 3\nput a0 1 4\nput a0 2 5\nput a0 3 6\na1 = new long 4 0\nput a1 0 5\nput a1 1 7\nput a1 2 4\nput a1 3 10\nres = new long 4096 0\nr = union_elements a0 a1 res\nif ne r 6\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 6\nret false\nend\nif ne get res 4 7\nret false\nend\nif ne get res 5 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\na1 = new long 4 0\nput a1 0 3\nput a1 1 4\nput a1 2 5\nput a1 3 6\nres = new long 4096 0\nr = union_elements a0 a1 res\nif ne r 6\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 6\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 11\nput a0 1 12\nput a0 2 13\nput a0 3 14\na1 = new long 4 0\nput a1 0 13\nput a1 1 15\nput a1 2 16\nput a1 3 17\nres = new long 4096 0\nr = union_elements a0 a1 res\nif ne r 7\nret false\nend\nif ne get res 0 11\nret false\nend\nif ne get res 1 12\nret false\nend\nif ne get res 2 13\nret false\nend\nif ne get res 3 14\nret false\nend\nif ne get res 4 15\nret false\nend\nif ne get res 5 16\nret false\nend\nif ne get res 6 17\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
166{"name": "mbpp_564_count_Pairs", "language": "om", "prompt": "om2\nnote Write an Omega function which takes an array of integers and counts the number of possible unordered pairs where both elements are unequal.\nfn count_Pairs arr view long * n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_564_count_Pairs.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nr = count_Pairs a0 3\nret eq r 2\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nput a0 3 1\nr = count_Pairs a0 4\nret eq r 0\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = count_Pairs a0 5\nret eq r 10\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
167{"name": "mbpp_566_sum_digits", "language": "om", "prompt": "om2\nnote Write a function to get the sum of the digits of a non-negative integer.\nfn sum_digits n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_566_sum_digits.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum_digits 345\nret eq r 12\nend\nfn tc_1 to bool\nr = sum_digits 12\nret eq r 3\nend\nfn tc_2 to bool\nr = sum_digits 97\nret eq r 16\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
168{"name": "mbpp_567_issort_list", "language": "om", "prompt": "om2\nnote Write a function to check whether a specified array is sorted or not.\nfn issort_list list1 view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_567_issort_list.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 6\nput a0 4 8\nput a0 5 10\nput a0 6 12\nput a0 7 14\nput a0 8 16\nput a0 9 17\nr = issort_list a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 6\nput a0 4 8\nput a0 5 10\nput a0 6 12\nput a0 7 14\nput a0 8 20\nput a0 9 17\nr = issort_list a0\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 6\nput a0 4 8\nput a0 5 10\nput a0 6 15\nput a0 7 14\nput a0 8 20\nr = issort_list a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
169{"name": "mbpp_572_two_unique_nums", "language": "om", "prompt": "om2\nnote Write an Omega function to remove duplicate numbers from a given number of lists.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn two_unique_nums nums view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_572_two_unique_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 7 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 2\nput a0 4 3\nput a0 5 4\nput a0 6 5\nres = new long 4096 0\nr = two_unique_nums a0 res\nif ne r 3\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 5\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 2\nput a0 4 4\nput a0 5 5\nres = new long 4096 0\nr = two_unique_nums a0 res\nif ne r 4\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 4\nret false\nend\nif ne get res 3 5\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nres = new long 4096 0\nr = two_unique_nums a0 res\nif ne r 5\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
170{"name": "mbpp_573_unique_product", "language": "om", "prompt": "om2\nnote Write an Omega function to calculate the product of the unique numbers in a given array.\nnote Omega name: list_data is list_dat here.\nfn unique_product list_dat view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_573_unique_product.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 10\nput a0 1 20\nput a0 2 30\nput a0 3 40\nput a0 4 20\nput a0 5 50\nput a0 6 60\nput a0 7 40\nr = unique_product a0\nret eq r 720000000\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 1\nr = unique_product a0\nret eq r 6\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\nput a0 3 0\nput a0 4 1\nput a0 5 1\nr = unique_product a0\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
171{"name": "mbpp_574_surfacearea_cylinder", "language": "om", "prompt": "om2\nnote Write a function to find the surface area of a cylinder.\nnote Omega name: r is r_ here.\nfn surfacearea_cylinder r_ long h long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_574_surfacearea_cylinder.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = surfacearea_cylinder 10 5\nret eq r 942.45\nend\nfn tc_1 to bool\nr = surfacearea_cylinder 4 5\nret eq r 226.18800000000002\nend\nfn tc_2 to bool\nr = surfacearea_cylinder 4 10\nret eq r 351.848\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
172{"name": "mbpp_576_is_Sub_Array", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether an array is sublist of another or not.\nfn is_Sub_Array A view long * B view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_576_is_Sub_Array.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 4\nput a0 2 3\nput a0 3 5\na1 = new long 2 0\nput a1 0 1\nput a1 1 2\nr = is_Sub_Array a0 a1\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\na1 = new long 3 0\nput a1 0 1\nput a1 1 2\nput a1 2 1\nr = is_Sub_Array a0 a1\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 0\nput a0 2 2\nput a0 3 2\na1 = new long 3 0\nput a1 0 2\nput a1 1 2\nput a1 2 0\nr = is_Sub_Array a0 a1\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
173{"name": "mbpp_577_last_Digit_Factorial", "language": "om", "prompt": "om2\nnote Write an Omega function to find the last digit in factorial of a given number.\nfn last_Digit_Factorial n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_577_last_Digit_Factorial.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = last_Digit_Factorial 4\nret eq r 4\nend\nfn tc_1 to bool\nr = last_Digit_Factorial 21\nret eq r 0\nend\nfn tc_2 to bool\nr = last_Digit_Factorial 30\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
174{"name": "mbpp_579_find_dissimilar", "language": "om", "prompt": "om2\nnote Write a function to find the dissimilar elements in the given two tuples.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn find_dissimilar test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_579_find_dissimilar.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 3\nput a0 1 4\nput a0 2 5\nput a0 3 6\na1 = new long 4 0\nput a1 0 5\nput a1 1 7\nput a1 2 4\nput a1 3 10\nres = new long 4096 0\nr = find_dissimilar a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\na1 = new long 4 0\nput a1 0 7\nput a1 1 2\nput a1 2 3\nput a1 3 9\nres = new long 4096 0\nr = find_dissimilar a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 9\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 21\nput a0 1 11\nput a0 2 25\nput a0 3 26\na1 = new long 4 0\nput a1 0 26\nput a1 1 34\nput a1 2 21\nput a1 3 36\nres = new long 4096 0\nr = find_dissimilar a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 34\nret false\nend\nif ne get res 1 36\nret false\nend\nif ne get res 2 11\nret false\nend\nif ne get res 3 25\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
175{"name": "mbpp_581_surface_Area", "language": "om", "prompt": "om2\nnote Write an Omega function to find the surface area of a square pyramid with a given base edge and height.\nfn surface_Area b long s long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_581_surface_Area.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = surface_Area 3 4\nret eq r 33\nend\nfn tc_1 to bool\nr = surface_Area 4 5\nret eq r 56\nend\nfn tc_2 to bool\nr = surface_Area 1 2\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
176{"name": "mbpp_583_catalan_number", "language": "om", "prompt": "om2\nnote Write a function which returns nth catalan number.\nfn catalan_number num long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_583_catalan_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = catalan_number 10\nret eq r 16796\nend\nfn tc_1 to bool\nr = catalan_number 9\nret eq r 4862\nend\nfn tc_2 to bool\nr = catalan_number 7\nret eq r 429\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
177{"name": "mbpp_584_find_adverbs", "language": "om", "prompt": "om2\nnote Write a function to find the first adverb ending with ly and its positions in a given string.\nnote Omega name: text is text_ here.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn find_adverbs text_ view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_584_find_adverbs.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Clearly, he has no excuse for such behavior.\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = find_adverbs t0_0 res\nif ne r 12\nret false\nend\nif ne get res 0 48\nret false\nend\nif ne get res 1 45\nret false\nend\nif ne get res 2 55\nret false\nend\nif ne get res 3 58\nret false\nend\nif ne get res 4 32\nret false\nend\nif ne get res 5 67\nret false\nend\nif ne get res 6 108\nret false\nend\nif ne get res 7 101\nret false\nend\nif ne get res 8 97\nret false\nend\nif ne get res 9 114\nret false\nend\nif ne get res 10 108\nret false\nend\nif ne get res 11 121\nret false\nend\nret true\nend\ntext t1_0 \"Please handle the situation carefuly\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = find_adverbs t1_0 res\nif ne r 15\nret false\nend\nif ne get res 0 50\nret false\nend\nif ne get res 1 56\nret false\nend\nif ne get res 2 45\nret false\nend\nif ne get res 3 51\nret false\nend\nif ne get res 4 54\nret false\nend\nif ne get res 5 58\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 99\nret false\nend\nif ne get res 8 97\nret false\nend\nif ne get res 9 114\nret false\nend\nif ne get res 10 101\nret false\nend\nif ne get res 11 102\nret false\nend\nif ne get res 12 117\nret false\nend\nif ne get res 13 108\nret false\nend\nif ne get res 14 121\nret false\nend\nret true\nend\ntext t2_0 \"Complete the task quickly\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = find_adverbs t2_0 res\nif ne r 14\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 56\nret false\nend\nif ne get res 2 45\nret false\nend\nif ne get res 3 50\nret false\nend\nif ne get res 4 53\nret false\nend\nif ne get res 5 58\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 113\nret false\nend\nif ne get res 8 117\nret false\nend\nif ne get res 9 105\nret false\nend\nif ne get res 10 99\nret false\nend\nif ne get res 11 107\nret false\nend\nif ne get res 12 108\nret false\nend\nif ne get res 13 121\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
178{"name": "mbpp_586_split_Arr", "language": "om", "prompt": "om2\nnote Write an Omega function to split an array at the nth eelment and add the first part to the end.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn split_Arr l view long * n long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_586_split_Arr.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 12\nput a0 1 10\nput a0 2 5\nput a0 3 6\nput a0 4 52\nput a0 5 36\nres = new long 4096 0\nr = split_Arr a0 2 res\nif ne r 6\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 52\nret false\nend\nif ne get res 3 36\nret false\nend\nif ne get res 4 12\nret false\nend\nif ne get res 5 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nres = new long 4096 0\nr = split_Arr a0 1 res\nif ne r 4\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 4\nret false\nend\nif ne get res 3 1\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 8 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 3\nput a0 4 4\nput a0 5 5\nput a0 6 6\nput a0 7 7\nres = new long 4096 0\nr = split_Arr a0 3 res\nif ne r 8\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 6\nret false\nend\nif ne get res 4 7\nret false\nend\nif ne get res 5 0\nret false\nend\nif ne get res 6 1\nret false\nend\nif ne get res 7 2\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
179{"name": "mbpp_588_big_diff", "language": "om", "prompt": "om2\nnote Write an Omega function to find the difference between largest and smallest value in a given array.\nfn big_diff nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_588_big_diff.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nr = big_diff a0\nret eq r 3\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 12\nr = big_diff a0\nret eq r 8\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 9\nput a0 1 2\nput a0 2 3\nr = big_diff a0\nret eq r 7\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
180{"name": "mbpp_589_perfect_squares", "language": "om", "prompt": "om2\nnote Write a function to find perfect squares between two given numbers.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn perfect_squares a long b long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_589_perfect_squares.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new long 4096 0\nr = perfect_squares 1 30 res\nif ne r 5\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 16\nret false\nend\nif ne get res 4 25\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new long 4096 0\nr = perfect_squares 50 100 res\nif ne r 3\nret false\nend\nif ne get res 0 64\nret false\nend\nif ne get res 1 81\nret false\nend\nif ne get res 2 100\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new long 4096 0\nr = perfect_squares 100 200 res\nif ne r 5\nret false\nend\nif ne get res 0 100\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 144\nret false\nend\nif ne get res 3 169\nret false\nend\nif ne get res 4 196\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
181{"name": "mbpp_591_swap_List", "language": "om", "prompt": "om2\nnote Write an Omega function to interchange the first and last elements in an array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn swap_List newList view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_591_swap_List.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 12\nput a0 1 35\nput a0 2 9\nput a0 3 56\nput a0 4 24\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 5\nret false\nend\nif ne get res 0 24\nret false\nend\nif ne get res 1 35\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 56\nret false\nend\nif ne get res 4 12\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 3\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 1\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 3\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 4\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
182{"name": "mbpp_592_sum_Of_product", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of the product of consecutive binomial co-efficients.\nfn sum_Of_product n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_592_sum_Of_product.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum_Of_product 3\nret eq r 15\nend\nfn tc_1 to bool\nr = sum_Of_product 4\nret eq r 56\nend\nfn tc_2 to bool\nr = sum_Of_product 1\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
183{"name": "mbpp_593_removezero_ip", "language": "om", "prompt": "om2\nnote Write a function to remove leading zeroes from an ip address.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn removezero_ip ip view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_593_removezero_ip.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"216.08.094.196\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = removezero_ip t0_0 res\nif ne r 12\nret false\nend\nif ne get res 0 50\nret false\nend\nif ne get res 1 49\nret false\nend\nif ne get res 2 54\nret false\nend\nif ne get res 3 46\nret false\nend\nif ne get res 4 56\nret false\nend\nif ne get res 5 46\nret false\nend\nif ne get res 6 57\nret false\nend\nif ne get res 7 52\nret false\nend\nif ne get res 8 46\nret false\nend\nif ne get res 9 49\nret false\nend\nif ne get res 10 57\nret false\nend\nif ne get res 11 54\nret false\nend\nret true\nend\ntext t1_0 \"12.01.024\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = removezero_ip t1_0 res\nif ne r 7\nret false\nend\nif ne get res 0 49\nret false\nend\nif ne get res 1 50\nret false\nend\nif ne get res 2 46\nret false\nend\nif ne get res 3 49\nret false\nend\nif ne get res 4 46\nret false\nend\nif ne get res 5 50\nret false\nend\nif ne get res 6 52\nret false\nend\nret true\nend\ntext t2_0 \"216.08.094.0196\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = removezero_ip t2_0 res\nif ne r 12\nret false\nend\nif ne get res 0 50\nret false\nend\nif ne get res 1 49\nret false\nend\nif ne get res 2 54\nret false\nend\nif ne get res 3 46\nret false\nend\nif ne get res 4 56\nret false\nend\nif ne get res 5 46\nret false\nend\nif ne get res 6 57\nret false\nend\nif ne get res 7 52\nret false\nend\nif ne get res 8 46\nret false\nend\nif ne get res 9 49\nret false\nend\nif ne get res 10 57\nret false\nend\nif ne get res 11 54\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
184{"name": "mbpp_594_diff_even_odd", "language": "om", "prompt": "om2\nnote Write a function to find the difference of the first even and first odd number of a given array.\nfn diff_even_odd list1 view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_594_diff_even_odd.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 3\nput a0 2 5\nput a0 3 7\nput a0 4 4\nput a0 5 1\nput a0 6 6\nput a0 7 8\nr = diff_even_odd a0\nret eq r 3\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nr = diff_even_odd a0\nret eq r 1\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 5\nput a0 2 7\nput a0 3 9\nput a0 4 10\nr = diff_even_odd a0\nret eq r 9\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
185{"name": "mbpp_597_find_kth", "language": "om", "prompt": "om2\nnote Write a function to find kth element from the given two sorted arrays.\nfn find_kth arr1 view long * arr2 view long * k long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_597_find_kth.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 3\nput a0 2 6\nput a0 3 7\nput a0 4 9\na1 = new long 4 0\nput a1 0 1\nput a1 1 4\nput a1 2 8\nput a1 3 10\nr = find_kth a0 a1 5\nret eq r 6\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 100\nput a0 1 112\nput a0 2 256\nput a0 3 349\nput a0 4 770\na1 = new long 7 0\nput a1 0 72\nput a1 1 86\nput a1 2 113\nput a1 3 119\nput a1 4 265\nput a1 5 445\nput a1 6 892\nr = find_kth a0 a1 7\nret eq r 256\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 3\nput a0 1 4\nput a0 2 7\nput a0 3 8\nput a0 4 10\na1 = new long 4 0\nput a1 0 2\nput a1 1 5\nput a1 2 9\nput a1 3 11\nr = find_kth a0 a1 6\nret eq r 8\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
186{"name": "mbpp_598_armstrong_number", "language": "om", "prompt": "om2\nnote Write a function to check whether the given number is armstrong or not.\nfn armstrong_number number long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_598_armstrong_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = armstrong_number 153\nret eq r true\nend\nfn tc_1 to bool\nr = armstrong_number 259\nret eq r false\nend\nfn tc_2 to bool\nr = armstrong_number 4458\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
187{"name": "mbpp_600_is_Even", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the given number is even or not.\nfn is_Even n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_600_is_Even.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_Even 1\nret eq r false\nend\nfn tc_1 to bool\nr = is_Even 2\nret eq r true\nend\nfn tc_2 to bool\nr = is_Even 3\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
188{"name": "mbpp_603_get_ludic", "language": "om", "prompt": "om2\nnote Write a function to get all lucid numbers smaller than or equal to a given integer.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn get_ludic n long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_603_get_ludic.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new long 4096 0\nr = get_ludic 10 res\nif ne r 5\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 5\nret false\nend\nif ne get res 4 7\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new long 4096 0\nr = get_ludic 25 res\nif ne r 10\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 5\nret false\nend\nif ne get res 4 7\nret false\nend\nif ne get res 5 11\nret false\nend\nif ne get res 6 13\nret false\nend\nif ne get res 7 17\nret false\nend\nif ne get res 8 23\nret false\nend\nif ne get res 9 25\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new long 4096 0\nr = get_ludic 45 res\nif ne r 14\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 5\nret false\nend\nif ne get res 4 7\nret false\nend\nif ne get res 5 11\nret false\nend\nif ne get res 6 13\nret false\nend\nif ne get res 7 17\nret false\nend\nif ne get res 8 23\nret false\nend\nif ne get res 9 25\nret false\nend\nif ne get res 10 29\nret false\nend\nif ne get res 11 37\nret false\nend\nif ne get res 12 41\nret false\nend\nif ne get res 13 43\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
189{"name": "mbpp_604_reverse_words", "language": "om", "prompt": "om2\nnote Write a function to reverse words seperated by spaces in a given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn reverse_words s view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_604_reverse_words.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python program\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = reverse_words t0_0 res\nif ne r 14\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 114\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 114\nret false\nend\nif ne get res 5 97\nret false\nend\nif ne get res 6 109\nret false\nend\nif ne get res 7 32\nret false\nend\nif ne get res 8 112\nret false\nend\nif ne get res 9 121\nret false\nend\nif ne get res 10 116\nret false\nend\nif ne get res 11 104\nret false\nend\nif ne get res 12 111\nret false\nend\nif ne get res 13 110\nret false\nend\nret true\nend\ntext t1_0 \"java language\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = reverse_words t1_0 res\nif ne r 13\nret false\nend\nif ne get res 0 108\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 110\nret false\nend\nif ne get res 3 103\nret false\nend\nif ne get res 4 117\nret false\nend\nif ne get res 5 97\nret false\nend\nif ne get res 6 103\nret false\nend\nif ne get res 7 101\nret false\nend\nif ne get res 8 32\nret false\nend\nif ne get res 9 106\nret false\nend\nif ne get res 10 97\nret false\nend\nif ne get res 11 118\nret false\nend\nif ne get res 12 97\nret false\nend\nret true\nend\ntext t2_0 \"indian man\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = reverse_words t2_0 res\nif ne r 10\nret false\nend\nif ne get res 0 109\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 110\nret false\nend\nif ne get res 3 32\nret false\nend\nif ne get res 4 105\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 100\nret false\nend\nif ne get res 7 105\nret false\nend\nif ne get res 8 97\nret false\nend\nif ne get res 9 110\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
190{"name": "mbpp_605_prime_num", "language": "om", "prompt": "om2\nnote Write a function to check if the given integer is a prime number.\nfn prime_num num long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_605_prime_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = prime_num 13\nret eq r true\nend\nfn tc_1 to bool\nr = prime_num 7\nret eq r true\nend\nfn tc_2 to bool\nr = prime_num -1010\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
191{"name": "mbpp_606_radian_degree", "language": "om", "prompt": "om2\nnote Write a function to convert degrees to radians.\nfn radian_degree degree long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_606_radian_degree.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = radian_degree 90\nret eq r 1.5707963267948966\nend\nfn tc_1 to bool\nr = radian_degree 60\nret eq r 1.0471975511965976\nend\nfn tc_2 to bool\nr = radian_degree 120\nret eq r 2.0943951023931953\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
192{"name": "mbpp_608_bell_Number", "language": "om", "prompt": "om2\nnote Write an Omega function to find nth bell number.\nfn bell_Number n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_608_bell_Number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = bell_Number 2\nret eq r 2\nend\nfn tc_1 to bool\nr = bell_Number 3\nret eq r 5\nend\nfn tc_2 to bool\nr = bell_Number 4\nret eq r 15\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
193{"name": "mbpp_610_remove_kth_element", "language": "om", "prompt": "om2\nnote Write an Omega function which takes an array and returns an array with the same elements, but the k'th element removed.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn remove_kth_element list1 view long * L long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_610_remove_kth_element.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 1\nput a0 2 2\nput a0 3 3\nput a0 4 4\nput a0 5 4\nput a0 6 5\nput a0 7 1\nres = new long 4096 0\nr = remove_kth_element a0 3 res\nif ne r 7\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 1\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 4\nret false\nend\nif ne get res 5 5\nret false\nend\nif ne get res 6 1\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 16 0\nput a0 0 0\nput a0 1 0\nput a0 2 1\nput a0 3 2\nput a0 4 3\nput a0 5 4\nput a0 6 4\nput a0 7 5\nput a0 8 6\nput a0 9 6\nput a0 10 6\nput a0 11 7\nput a0 12 8\nput a0 13 9\nput a0 14 4\nput a0 15 4\nres = new long 4096 0\nr = remove_kth_element a0 4 res\nif ne r 15\nret false\nend\nif ne get res 0 0\nret false\nend\nif ne get res 1 0\nret false\nend\nif ne get res 2 1\nret false\nend\nif ne get res 3 3\nret false\nend\nif ne get res 4 4\nret false\nend\nif ne get res 5 4\nret false\nend\nif ne get res 6 5\nret false\nend\nif ne get res 7 6\nret false\nend\nif ne get res 8 6\nret false\nend\nif ne get res 9 6\nret false\nend\nif ne get res 10 7\nret false\nend\nif ne get res 11 8\nret false\nend\nif ne get res 12 9\nret false\nend\nif ne get res 13 4\nret false\nend\nif ne get res 14 4\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 12 0\nput a0 0 10\nput a0 1 10\nput a0 2 15\nput a0 3 19\nput a0 4 18\nput a0 5 18\nput a0 6 17\nput a0 7 26\nput a0 8 26\nput a0 9 17\nput a0 10 18\nput a0 11 10\nres = new long 4096 0\nr = remove_kth_element a0 5 res\nif ne r 11\nret false\nend\nif ne get res 0 10\nret false\nend\nif ne get res 1 10\nret false\nend\nif ne get res 2 15\nret false\nend\nif ne get res 3 19\nret false\nend\nif ne get res 4 18\nret false\nend\nif ne get res 5 17\nret false\nend\nif ne get res 6 26\nret false\nend\nif ne get res 7 26\nret false\nend\nif ne get res 8 17\nret false\nend\nif ne get res 9 18\nret false\nend\nif ne get res 10 10\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
194{"name": "mbpp_616_tuple_modulo", "language": "om", "prompt": "om2\nnote Write a function which takes two tuples of the same length and performs the element wise modulo.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn tuple_modulo test_tup view long * test_tu_ view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_616_tuple_modulo.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 10\nput a0 1 4\nput a0 2 5\nput a0 3 6\na1 = new long 4 0\nput a1 0 5\nput a1 1 6\nput a1 2 7\nput a1 3 5\nres = new long 4096 0\nr = tuple_modulo a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 0\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 5\nret false\nend\nif ne get res 3 1\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 11\nput a0 1 5\nput a0 2 6\nput a0 3 7\na1 = new long 4 0\nput a1 0 6\nput a1 1 7\nput a1 2 8\nput a1 3 6\nres = new long 4096 0\nr = tuple_modulo a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 1\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 12\nput a0 1 6\nput a0 2 7\nput a0 3 8\na1 = new long 4 0\nput a1 0 7\nput a1 1 8\nput a1 2 9\nput a1 3 7\nres = new long 4096 0\nr = tuple_modulo a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 1\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
195{"name": "mbpp_617_min_Jumps", "language": "om", "prompt": "om2\nnote Write a function to check for the number of jumps required of given length to reach a point of form (d, 0) from origin in a 2d plane.\nfn min_Jumps steps view long * d long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_617_min_Jumps.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 2 0\nput a0 0 3\nput a0 1 4\nr = min_Jumps a0 11\nret eq r 3.5\nend\nfn tc_1 to bool\na0 = new long 2 0\nput a0 0 3\nput a0 1 4\nr = min_Jumps a0 0\nret eq r 0.0\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 11\nput a0 1 14\nr = min_Jumps a0 11\nret eq r 1.0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
196{"name": "mbpp_618_div_list", "language": "om", "prompt": "om2\nnote Write a function to divide two lists element wise.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn div_list nums1 view long * nums2 view long * res edit f64 * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_618_div_list.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\na1 = new long 3 0\nput a1 0 1\nput a1 1 2\nput a1 2 3\nres = new f64 4096 0.0\nr = div_list a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 4.0\nret false\nend\nif ne get res 1 2.5\nret false\nend\nif ne get res 2 2.0\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 2 0\nput a0 0 3\nput a0 1 2\na1 = new long 2 0\nput a1 0 1\nput a1 1 4\nres = new f64 4096 0.0\nr = div_list a0 a1 res\nif ne r 2\nret false\nend\nif ne get res 0 3.0\nret false\nend\nif ne get res 1 0.5\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 90\nput a0 1 120\na1 = new long 2 0\nput a1 0 50\nput a1 1 70\nres = new f64 4096 0.0\nr = div_list a0 a1 res\nif ne r 2\nret false\nend\nif ne get res 0 1.8\nret false\nend\nif ne get res 1 1.7142857142857142\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
197{"name": "mbpp_619_move_num", "language": "om", "prompt": "om2\nnote Write a function to move all the numbers to the end of the given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn move_num test_str view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_619_move_num.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"I1love143you55three3000thousand\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = move_num t0_0 res\nif ne r 31\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 108\nret false\nend\nif ne get res 2 111\nret false\nend\nif ne get res 3 118\nret false\nend\nif ne get res 4 101\nret false\nend\nif ne get res 5 121\nret false\nend\nif ne get res 6 111\nret false\nend\nif ne get res 7 117\nret false\nend\nif ne get res 8 116\nret false\nend\nif ne get res 9 104\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 101\nret false\nend\nif ne get res 12 101\nret false\nend\nif ne get res 13 116\nret false\nend\nif ne get res 14 104\nret false\nend\nif ne get res 15 111\nret false\nend\nif ne get res 16 117\nret false\nend\nif ne get res 17 115\nret false\nend\nif ne get res 18 97\nret false\nend\nif ne get res 19 110\nret false\nend\nif ne get res 20 100\nret false\nend\nif ne get res 21 49\nret false\nend\nif ne get res 22 49\nret false\nend\nif ne get res 23 52\nret false\nend\nif ne get res 24 51\nret false\nend\nif ne get res 25 53\nret false\nend\nif ne get res 26 53\nret false\nend\nif ne get res 27 51\nret false\nend\nif ne get res 28 48\nret false\nend\nif ne get res 29 48\nret false\nend\nif ne get res 30 48\nret false\nend\nret true\nend\ntext t1_0 \"Avengers124Assemble\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = move_num t1_0 res\nif ne r 19\nret false\nend\nif ne get res 0 65\nret false\nend\nif ne get res 1 118\nret false\nend\nif ne get res 2 101\nret false\nend\nif ne get res 3 110\nret false\nend\nif ne get res 4 103\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 114\nret false\nend\nif ne get res 7 115\nret false\nend\nif ne get res 8 65\nret false\nend\nif ne get res 9 115\nret false\nend\nif ne get res 10 115\nret false\nend\nif ne get res 11 101\nret false\nend\nif ne get res 12 109\nret false\nend\nif ne get res 13 98\nret false\nend\nif ne get res 14 108\nret false\nend\nif ne get res 15 101\nret false\nend\nif ne get res 16 49\nret false\nend\nif ne get res 17 50\nret false\nend\nif ne get res 18 52\nret false\nend\nret true\nend\ntext t2_0 \"Its11our12path13to14see15things16do17things\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = move_num t2_0 res\nif ne r 43\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 116\nret false\nend\nif ne get res 2 115\nret false\nend\nif ne get res 3 111\nret false\nend\nif ne get res 4 117\nret false\nend\nif ne get res 5 114\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 97\nret false\nend\nif ne get res 8 116\nret false\nend\nif ne get res 9 104\nret false\nend\nif ne get res 10 116\nret false\nend\nif ne get res 11 111\nret false\nend\nif ne get res 12 115\nret false\nend\nif ne get res 13 101\nret false\nend\nif ne get res 14 101\nret false\nend\nif ne get res 15 116\nret false\nend\nif ne get res 16 104\nret false\nend\nif ne get res 17 105\nret false\nend\nif ne get res 18 110\nret false\nend\nif ne get res 19 103\nret false\nend\nif ne get res 20 115\nret false\nend\nif ne get res 21 100\nret false\nend\nif ne get res 22 111\nret false\nend\nif ne get res 23 116\nret false\nend\nif ne get res 24 104\nret false\nend\nif ne get res 25 105\nret false\nend\nif ne get res 26 110\nret false\nend\nif ne get res 27 103\nret false\nend\nif ne get res 28 115\nret false\nend\nif ne get res 29 49\nret false\nend\nif ne get res 30 49\nret false\nend\nif ne get res 31 49\nret false\nend\nif ne get res 32 50\nret false\nend\nif ne get res 33 49\nret false\nend\nif ne get res 34 51\nret false\nend\nif ne get res 35 49\nret false\nend\nif ne get res 36 52\nret false\nend\nif ne get res 37 49\nret false\nend\nif ne get res 38 53\nret false\nend\nif ne get res 39 49\nret false\nend\nif ne get res 40 54\nret false\nend\nif ne get res 41 49\nret false\nend\nif ne get res 42 55\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
198{"name": "mbpp_622_get_median", "language": "om", "prompt": "om2\nnote Write a function to find the median of two sorted lists of same size.\nfn get_median arr1 view long * arr2 view long * n long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_622_get_median.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 12\nput a0 2 15\nput a0 3 26\nput a0 4 38\na1 = new long 5 0\nput a1 0 2\nput a1 1 13\nput a1 2 17\nput a1 3 30\nput a1 4 45\nr = get_median a0 a1 5\nret eq r 16.0\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 2\nput a0 1 4\nput a0 2 8\nput a0 3 9\na1 = new long 4 0\nput a1 0 7\nput a1 1 13\nput a1 2 19\nput a1 3 28\nr = get_median a0 a1 4\nret eq r 8.5\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 3\nput a0 1 6\nput a0 2 14\nput a0 3 23\nput a0 4 36\nput a0 5 42\na1 = new long 6 0\nput a1 0 2\nput a1 1 18\nput a1 2 27\nput a1 3 39\nput a1 4 49\nput a1 5 55\nr = get_median a0 a1 6\nret eq r 25.0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
199{"name": "mbpp_623_nth_nums", "language": "om", "prompt": "om2\nnote Write a function to compute the n-th power of each number in an array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn nth_nums nums view long * n long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_623_nth_nums.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = nth_nums a0 2 res\nif ne r 10\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 16\nret false\nend\nif ne get res 4 25\nret false\nend\nif ne get res 5 36\nret false\nend\nif ne get res 6 49\nret false\nend\nif ne get res 7 64\nret false\nend\nif ne get res 8 81\nret false\nend\nif ne get res 9 100\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 20\nput a0 2 30\nres = new long 4096 0\nr = nth_nums a0 3 res\nif ne r 3\nret false\nend\nif ne get res 0 1000\nret false\nend\nif ne get res 1 8000\nret false\nend\nif ne get res 2 27000\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 12\nput a0 1 15\nres = new long 4096 0\nr = nth_nums a0 5 res\nif ne r 2\nret false\nend\nif ne get res 0 248832\nret false\nend\nif ne get res 1 759375\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
200{"name": "mbpp_624_is_upper", "language": "om", "prompt": "om2\nnote Write an Omega function to convert a given string to uppercase.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn is_upper string view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_624_is_upper.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"person\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = is_upper t0_0 res\nif ne r 6\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 69\nret false\nend\nif ne get res 2 82\nret false\nend\nif ne get res 3 83\nret false\nend\nif ne get res 4 79\nret false\nend\nif ne get res 5 78\nret false\nend\nret true\nend\ntext t1_0 \"final\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = is_upper t1_0 res\nif ne r 5\nret false\nend\nif ne get res 0 70\nret false\nend\nif ne get res 1 73\nret false\nend\nif ne get res 2 78\nret false\nend\nif ne get res 3 65\nret false\nend\nif ne get res 4 76\nret false\nend\nret true\nend\ntext t2_0 \"Valid\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = is_upper t2_0 res\nif ne r 5\nret false\nend\nif ne get res 0 86\nret false\nend\nif ne get res 1 65\nret false\nend\nif ne get res 2 76\nret false\nend\nif ne get res 3 73\nret false\nend\nif ne get res 4 68\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
201{"name": "mbpp_625_swap_List", "language": "om", "prompt": "om2\nnote Write an Omega function to interchange the first and last element in a given array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn swap_List newList view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_625_swap_List.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 3\nret false\nend\nif ne get res 0 3\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 1\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 4\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 5\nret false\nend\nif ne get res 0 4\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 1\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nres = new long 4096 0\nr = swap_List a0 res\nif ne r 3\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 4\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
202{"name": "mbpp_627_find_First_Missing", "language": "om", "prompt": "om2\nnote Write an Omega function to find the smallest missing number from a sorted array of natural numbers.\nfn find_First_Missing array view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_627_find_First_Missing.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 3\nr = find_First_Missing a0\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 6\nput a0 4 9\nr = find_First_Missing a0\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 3\nput a0 2 5\nput a0 3 8\nput a0 4 9\nr = find_First_Missing a0\nret eq r 0\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
203{"name": "mbpp_628_replace_spaces", "language": "om", "prompt": "om2\nnote Write a function to replace all spaces in the given string with '%20'.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn replace_spaces string view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_628_replace_spaces.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"My Name is Dawood\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = replace_spaces t0_0 res\nif ne r 23\nret false\nend\nif ne get res 0 77\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 37\nret false\nend\nif ne get res 3 50\nret false\nend\nif ne get res 4 48\nret false\nend\nif ne get res 5 78\nret false\nend\nif ne get res 6 97\nret false\nend\nif ne get res 7 109\nret false\nend\nif ne get res 8 101\nret false\nend\nif ne get res 9 37\nret false\nend\nif ne get res 10 50\nret false\nend\nif ne get res 11 48\nret false\nend\nif ne get res 12 105\nret false\nend\nif ne get res 13 115\nret false\nend\nif ne get res 14 37\nret false\nend\nif ne get res 15 50\nret false\nend\nif ne get res 16 48\nret false\nend\nif ne get res 17 68\nret false\nend\nif ne get res 18 97\nret false\nend\nif ne get res 19 119\nret false\nend\nif ne get res 20 111\nret false\nend\nif ne get res 21 111\nret false\nend\nif ne get res 22 100\nret false\nend\nret true\nend\ntext t1_0 \"I am a Programmer\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = replace_spaces t1_0 res\nif ne r 23\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 37\nret false\nend\nif ne get res 2 50\nret false\nend\nif ne get res 3 48\nret false\nend\nif ne get res 4 97\nret false\nend\nif ne get res 5 109\nret false\nend\nif ne get res 6 37\nret false\nend\nif ne get res 7 50\nret false\nend\nif ne get res 8 48\nret false\nend\nif ne get res 9 97\nret false\nend\nif ne get res 10 37\nret false\nend\nif ne get res 11 50\nret false\nend\nif ne get res 12 48\nret false\nend\nif ne get res 13 80\nret false\nend\nif ne get res 14 114\nret false\nend\nif ne get res 15 111\nret false\nend\nif ne get res 16 103\nret false\nend\nif ne get res 17 114\nret false\nend\nif ne get res 18 97\nret false\nend\nif ne get res 19 109\nret false\nend\nif ne get res 20 109\nret false\nend\nif ne get res 21 101\nret false\nend\nif ne get res 22 114\nret false\nend\nret true\nend\ntext t2_0 \"I love Coding\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = replace_spaces t2_0 res\nif ne r 17\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 37\nret false\nend\nif ne get res 2 50\nret false\nend\nif ne get res 3 48\nret false\nend\nif ne get res 4 108\nret false\nend\nif ne get res 5 111\nret false\nend\nif ne get res 6 118\nret false\nend\nif ne get res 7 101\nret false\nend\nif ne get res 8 37\nret false\nend\nif ne get res 9 50\nret false\nend\nif ne get res 10 48\nret false\nend\nif ne get res 11 67\nret false\nend\nif ne get res 12 111\nret false\nend\nif ne get res 13 100\nret false\nend\nif ne get res 14 105\nret false\nend\nif ne get res 15 110\nret false\nend\nif ne get res 16 103\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
204{"name": "mbpp_629_Split", "language": "om", "prompt": "om2\nnote Write an Omega function to find even numbers from an array of numbers.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn Split list view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_629_Split.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nres = new long 4096 0\nr = Split a0 res\nif ne r 2\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 4\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 7 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nput a0 3 7\nput a0 4 8\nput a0 5 0\nput a0 6 1\nres = new long 4096 0\nr = Split a0 res\nif ne r 4\nret false\nend\nif ne get res 0 4\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 8\nret false\nend\nif ne get res 3 0\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 8\nput a0 1 12\nput a0 2 15\nput a0 3 19\nres = new long 4096 0\nr = Split a0 res\nif ne r 2\nret false\nend\nif ne get res 0 8\nret false\nend\nif ne get res 1 12\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
205{"name": "mbpp_631_replace_spaces", "language": "om", "prompt": "om2\nnote Write a function to replace whitespaces with an underscore and vice versa in a given string.\nnote Omega name: text is text_ here.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn replace_spaces text_ view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_631_replace_spaces.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Jumanji The Jungle\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = replace_spaces t0_0 res\nif ne r 18\nret false\nend\nif ne get res 0 74\nret false\nend\nif ne get res 1 117\nret false\nend\nif ne get res 2 109\nret false\nend\nif ne get res 3 97\nret false\nend\nif ne get res 4 110\nret false\nend\nif ne get res 5 106\nret false\nend\nif ne get res 6 105\nret false\nend\nif ne get res 7 95\nret false\nend\nif ne get res 8 84\nret false\nend\nif ne get res 9 104\nret false\nend\nif ne get res 10 101\nret false\nend\nif ne get res 11 95\nret false\nend\nif ne get res 12 74\nret false\nend\nif ne get res 13 117\nret false\nend\nif ne get res 14 110\nret false\nend\nif ne get res 15 103\nret false\nend\nif ne get res 16 108\nret false\nend\nif ne get res 17 101\nret false\nend\nret true\nend\ntext t1_0 \"The_Avengers\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = replace_spaces t1_0 res\nif ne r 12\nret false\nend\nif ne get res 0 84\nret false\nend\nif ne get res 1 104\nret false\nend\nif ne get res 2 101\nret false\nend\nif ne get res 3 32\nret false\nend\nif ne get res 4 65\nret false\nend\nif ne get res 5 118\nret false\nend\nif ne get res 6 101\nret false\nend\nif ne get res 7 110\nret false\nend\nif ne get res 8 103\nret false\nend\nif ne get res 9 101\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 115\nret false\nend\nret true\nend\ntext t2_0 \"Fast and Furious\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = replace_spaces t2_0 res\nif ne r 16\nret false\nend\nif ne get res 0 70\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 115\nret false\nend\nif ne get res 3 116\nret false\nend\nif ne get res 4 95\nret false\nend\nif ne get res 5 97\nret false\nend\nif ne get res 6 110\nret false\nend\nif ne get res 7 100\nret false\nend\nif ne get res 8 95\nret false\nend\nif ne get res 9 70\nret false\nend\nif ne get res 10 117\nret false\nend\nif ne get res 11 114\nret false\nend\nif ne get res 12 105\nret false\nend\nif ne get res 13 111\nret false\nend\nif ne get res 14 117\nret false\nend\nif ne get res 15 115\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
206{"name": "mbpp_632_move_zero", "language": "om", "prompt": "om2\nnote Write an Omega function to move all zeroes to the end of the given array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn move_zero num_list view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_632_move_zero.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 0\nput a0 2 2\nput a0 3 0\nput a0 4 3\nput a0 5 4\nres = new long 4096 0\nr = move_zero a0 res\nif ne r 6\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 0\nret false\nend\nif ne get res 5 0\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 9 0\nput a0 0 2\nput a0 1 3\nput a0 2 2\nput a0 3 0\nput a0 4 0\nput a0 5 4\nput a0 6 0\nput a0 7 5\nput a0 8 0\nres = new long 4096 0\nr = move_zero a0 res\nif ne r 9\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 0\nret false\nend\nif ne get res 6 0\nret false\nend\nif ne get res 7 0\nret false\nend\nif ne get res 8 0\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 0\nput a0 1 1\nput a0 2 0\nput a0 3 1\nput a0 4 1\nres = new long 4096 0\nr = move_zero a0 res\nif ne r 5\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 1\nret false\nend\nif ne get res 2 1\nret false\nend\nif ne get res 3 0\nret false\nend\nif ne get res 4 0\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
207{"name": "mbpp_633_pair_xor_Sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of xor of all pairs of numbers in the given array.\nfn pair_xor_Sum arr view long * n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_633_pair_xor_Sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 5\nput a0 1 9\nput a0 2 7\nput a0 3 6\nr = pair_xor_Sum a0 4\nret eq r 47\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 7\nput a0 1 3\nput a0 2 5\nr = pair_xor_Sum a0 3\nret eq r 12\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 7\nput a0 1 3\nr = pair_xor_Sum a0 2\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
208{"name": "mbpp_635_heap_sort", "language": "om", "prompt": "om2\nnote Write a function to sort the given array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn heap_sort iterable view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_635_heap_sort.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 3\nput a0 2 5\nput a0 3 7\nput a0 4 9\nput a0 5 2\nput a0 6 4\nput a0 7 6\nput a0 8 8\nput a0 9 0\nres = new long 4096 0\nr = heap_sort a0 res\nif ne r 10\nret false\nend\nif ne get res 0 0\nret false\nend\nif ne get res 1 1\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 3\nret false\nend\nif ne get res 4 4\nret false\nend\nif ne get res 5 5\nret false\nend\nif ne get res 6 6\nret false\nend\nif ne get res 7 7\nret false\nend\nif ne get res 8 8\nret false\nend\nif ne get res 9 9\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 9 0\nput a0 0 25\nput a0 1 35\nput a0 2 22\nput a0 3 85\nput a0 4 14\nput a0 5 65\nput a0 6 75\nput a0 7 25\nput a0 8 58\nres = new long 4096 0\nr = heap_sort a0 res\nif ne r 9\nret false\nend\nif ne get res 0 14\nret false\nend\nif ne get res 1 22\nret false\nend\nif ne get res 2 25\nret false\nend\nif ne get res 3 25\nret false\nend\nif ne get res 4 35\nret false\nend\nif ne get res 5 58\nret false\nend\nif ne get res 6 65\nret false\nend\nif ne get res 7 75\nret false\nend\nif ne get res 8 85\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 7\nput a0 1 1\nput a0 2 9\nput a0 3 5\nres = new long 4096 0\nr = heap_sort a0 res\nif ne r 4\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 9\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
209{"name": "mbpp_637_noprofit_noloss", "language": "om", "prompt": "om2\nnote Write a function to check whether the given amount has no profit and no loss\nnote Omega name: actual_cost is actual_c here.\nnote Omega name: sale_amount is sale_amo here.\nfn noprofit_noloss actual_c long sale_amo long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_637_noprofit_noloss.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = noprofit_noloss 1500 1200\nret eq r false\nend\nfn tc_1 to bool\nr = noprofit_noloss 100 100\nret eq r true\nend\nfn tc_2 to bool\nr = noprofit_noloss 2000 5000\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
210{"name": "mbpp_638_wind_chill", "language": "om", "prompt": "om2\nnote Write a function to calculate the wind chill index rounded to the next integer given the wind velocity in km/h and a temperature in celsius.\nfn wind_chill v long t long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_638_wind_chill.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = wind_chill 120 35\nret eq r 40\nend\nfn tc_1 to bool\nr = wind_chill 40 20\nret eq r 19\nend\nfn tc_2 to bool\nr = wind_chill 10 8\nret eq r 6\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
211{"name": "mbpp_641_is_nonagonal", "language": "om", "prompt": "om2\nnote Write a function to find the nth nonagonal number.\nfn is_nonagonal n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_641_is_nonagonal.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_nonagonal 10\nret eq r 325\nend\nfn tc_1 to bool\nr = is_nonagonal 15\nret eq r 750\nend\nfn tc_2 to bool\nr = is_nonagonal 18\nret eq r 1089\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
212{"name": "mbpp_643_text_match_wordz_middle", "language": "om", "prompt": "om2\nnote Write a function that checks if a strings contains 'z', except at the start and end of the word.\nnote Omega name: text is text_ here.\nfn text_match_wordz_middle text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_643_text_match_wordz_middle.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"pythonzabc.\"\nfn tc_0 to bool\nr = text_match_wordz_middle t0_0\nret eq r true\nend\ntext t1_0 \"zxyabc.\"\nfn tc_1 to bool\nr = text_match_wordz_middle t1_0\nret eq r false\nend\ntext t2_0 \" lang .\"\nfn tc_2 to bool\nr = text_match_wordz_middle t2_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
213{"name": "mbpp_644_reverse_Array_Upto_K", "language": "om", "prompt": "om2\nnote Write an Omega function to reverse an array upto a given position.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn reverse_Array_Upto_K input view long * k long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_644_reverse_Array_Upto_K.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nres = new long 4096 0\nr = reverse_Array_Upto_K a0 4 res\nif ne r 6\nret false\nend\nif ne get res 0 4\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 2\nret false\nend\nif ne get res 3 1\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 6\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\nput a0 3 7\nres = new long 4096 0\nr = reverse_Array_Upto_K a0 2 res\nif ne r 4\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 4\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 7\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 9\nput a0 1 8\nput a0 2 7\nput a0 3 6\nput a0 4 5\nres = new long 4096 0\nr = reverse_Array_Upto_K a0 3 res\nif ne r 5\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 8\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 6\nret false\nend\nif ne get res 4 5\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
214{"name": "mbpp_723_count_same_pair", "language": "om", "prompt": "om2\nnote The input is defined as two lists of the same length. Write a function to count indices where the lists have the same values.\nfn count_same_pair nums1 view long * nums2 view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_723_count_same_pair.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\na1 = new long 8 0\nput a1 0 2\nput a1 1 2\nput a1 2 3\nput a1 3 1\nput a1 4 2\nput a1 5 6\nput a1 6 7\nput a1 7 9\nr = count_same_pair a0 a1\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 13 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nput a0 3 -1\nput a0 4 -5\nput a0 5 6\nput a0 6 0\nput a0 7 -3\nput a0 8 -2\nput a0 9 3\nput a0 10 4\nput a0 11 6\nput a0 12 8\na1 = new long 13 0\nput a1 0 2\nput a1 1 1\nput a1 2 2\nput a1 3 -1\nput a1 4 -5\nput a1 5 6\nput a1 6 4\nput a1 7 -3\nput a1 8 -2\nput a1 9 3\nput a1 10 4\nput a1 11 6\nput a1 12 8\nr = count_same_pair a0 a1\nret eq r 11\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 2\nput a0 1 4\nput a0 2 -6\nput a0 3 -9\nput a0 4 11\nput a0 5 -12\nput a0 6 14\nput a0 7 -5\nput a0 8 17\na1 = new long 13 0\nput a1 0 2\nput a1 1 1\nput a1 2 2\nput a1 3 -1\nput a1 4 -5\nput a1 5 6\nput a1 6 4\nput a1 7 -3\nput a1 8 -2\nput a1 9 3\nput a1 10 4\nput a1 11 6\nput a1 12 8\nr = count_same_pair a0 a1\nret eq r 1\nend\nfn tc_3 to bool\na0 = new long 4 0\nput a0 0 0\nput a0 1 1\nput a0 2 1\nput a0 3 2\na1 = new long 4 0\nput a1 0 0\nput a1 1 1\nput a1 2 2\nput a1 3 2\nr = count_same_pair a0 a1\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
215{"name": "mbpp_724_power_base_sum", "language": "om", "prompt": "om2\nnote Write a function that takes base and power as arguments and calculate the sum of all digits of the base to the specified power.\nfn power_base_sum base long power long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_724_power_base_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = power_base_sum 2 100\nret eq r 115\nend\nfn tc_1 to bool\nr = power_base_sum 8 10\nret eq r 37\nend\nfn tc_2 to bool\nr = power_base_sum 8 15\nret eq r 62\nend\nfn tc_3 to bool\nr = power_base_sum 3 3\nret eq r 9\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
216{"name": "mbpp_726_multiply_elements", "language": "om", "prompt": "om2\nnote Write a function that takes as input an array of numbers (t_1,...,t_{N+1}) and returns an array of length N where the i-th element of the array is equal to t_i * t_{i+1}.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn multiply_elements test_tup view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_726_multiply_elements.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 5\nput a0 2 7\nput a0 3 8\nput a0 4 10\nres = new long 4096 0\nr = multiply_elements a0 res\nif ne r 4\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 35\nret false\nend\nif ne get res 2 56\nret false\nend\nif ne get res 3 80\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 2\nput a0 1 4\nput a0 2 5\nput a0 3 6\nput a0 4 7\nres = new long 4096 0\nr = multiply_elements a0 res\nif ne r 4\nret false\nend\nif ne get res 0 8\nret false\nend\nif ne get res 1 20\nret false\nend\nif ne get res 2 30\nret false\nend\nif ne get res 3 42\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 12\nput a0 1 13\nput a0 2 14\nput a0 3 9\nput a0 4 15\nres = new long 4096 0\nr = multiply_elements a0 res\nif ne r 4\nret false\nend\nif ne get res 0 156\nret false\nend\nif ne get res 1 182\nret false\nend\nif ne get res 2 126\nret false\nend\nif ne get res 3 135\nret false\nend\nret true\nend\nfn tc_3 to bool\na0 = new long 1 0\nput a0 0 12\nres = new long 4096 0\nr = multiply_elements a0 res\nif ne r 0\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
217{"name": "mbpp_728_sum_list", "language": "om", "prompt": "om2\nnote Write a function takes as input two lists [a_1,...,a_n], [b_1,...,b_n] and returns [a_1+b_1,...,a_n+b_n].\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn sum_list lst1 view long * lst2 view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_728_sum_list.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 10\nput a0 1 20\nput a0 2 30\na1 = new long 3 0\nput a1 0 15\nput a1 1 25\nput a1 2 35\nres = new long 4096 0\nr = sum_list a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 25\nret false\nend\nif ne get res 1 45\nret false\nend\nif ne get res 2 65\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 5\nput a1 1 6\nput a1 2 7\nres = new long 4096 0\nr = sum_list a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 8\nret false\nend\nif ne get res 2 10\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 15\nput a0 1 20\nput a0 2 30\na1 = new long 3 0\nput a1 0 15\nput a1 1 45\nput a1 2 75\nres = new long 4096 0\nr = sum_list a0 a1 res\nif ne r 3\nret false\nend\nif ne get res 0 30\nret false\nend\nif ne get res 1 65\nret false\nend\nif ne get res 2 105\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
218{"name": "mbpp_731_lateralsurface_cone", "language": "om", "prompt": "om2\nnote Write a function to find the lateral surface area of a cone given radius r and the height h.\nnote Omega name: r is r_ here.\nfn lateralsurface_cone r_ long h long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_731_lateralsurface_cone.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = lateralsurface_cone 5 12\nret eq r 204.20352248333654\nend\nfn tc_1 to bool\nr = lateralsurface_cone 10 15\nret eq r 566.3586699569488\nend\nfn tc_2 to bool\nr = lateralsurface_cone 19 17\nret eq r 1521.8090132193388\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
219{"name": "mbpp_732_replace_specialchar", "language": "om", "prompt": "om2\nnote Write a function to replace all occurrences of spaces, commas, or dots with a colon.\nnote Omega name: text is text_ here.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn replace_specialchar text_ view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_732_replace_specialchar.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Python language, Programming language.\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = replace_specialchar t0_0 res\nif ne r 38\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 58\nret false\nend\nif ne get res 7 108\nret false\nend\nif ne get res 8 97\nret false\nend\nif ne get res 9 110\nret false\nend\nif ne get res 10 103\nret false\nend\nif ne get res 11 117\nret false\nend\nif ne get res 12 97\nret false\nend\nif ne get res 13 103\nret false\nend\nif ne get res 14 101\nret false\nend\nif ne get res 15 58\nret false\nend\nif ne get res 16 58\nret false\nend\nif ne get res 17 80\nret false\nend\nif ne get res 18 114\nret false\nend\nif ne get res 19 111\nret false\nend\nif ne get res 20 103\nret false\nend\nif ne get res 21 114\nret false\nend\nif ne get res 22 97\nret false\nend\nif ne get res 23 109\nret false\nend\nif ne get res 24 109\nret false\nend\nif ne get res 25 105\nret false\nend\nif ne get res 26 110\nret false\nend\nif ne get res 27 103\nret false\nend\nif ne get res 28 58\nret false\nend\nif ne get res 29 108\nret false\nend\nif ne get res 30 97\nret false\nend\nif ne get res 31 110\nret false\nend\nif ne get res 32 103\nret false\nend\nif ne get res 33 117\nret false\nend\nif ne get res 34 97\nret false\nend\nif ne get res 35 103\nret false\nend\nif ne get res 36 101\nret false\nend\nif ne get res 37 58\nret false\nend\nret true\nend\ntext t1_0 \"a b c,d e f\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = replace_specialchar t1_0 res\nif ne r 11\nret false\nend\nif ne get res 0 97\nret false\nend\nif ne get res 1 58\nret false\nend\nif ne get res 2 98\nret false\nend\nif ne get res 3 58\nret false\nend\nif ne get res 4 99\nret false\nend\nif ne get res 5 58\nret false\nend\nif ne get res 6 100\nret false\nend\nif ne get res 7 58\nret false\nend\nif ne get res 8 101\nret false\nend\nif ne get res 9 58\nret false\nend\nif ne get res 10 102\nret false\nend\nret true\nend\ntext t2_0 \"ram reshma,ram rahim\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = replace_specialchar t2_0 res\nif ne r 20\nret false\nend\nif ne get res 0 114\nret false\nend\nif ne get res 1 97\nret false\nend\nif ne get res 2 109\nret false\nend\nif ne get res 3 58\nret false\nend\nif ne get res 4 114\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 115\nret false\nend\nif ne get res 7 104\nret false\nend\nif ne get res 8 109\nret false\nend\nif ne get res 9 97\nret false\nend\nif ne get res 10 58\nret false\nend\nif ne get res 11 114\nret false\nend\nif ne get res 12 97\nret false\nend\nif ne get res 13 109\nret false\nend\nif ne get res 14 58\nret false\nend\nif ne get res 15 114\nret false\nend\nif ne get res 16 97\nret false\nend\nif ne get res 17 104\nret false\nend\nif ne get res 18 105\nret false\nend\nif ne get res 19 109\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
220{"name": "mbpp_733_find_first_occurrence", "language": "om", "prompt": "om2\nnote Write a function to find the index of the first occurrence of a given number in a sorted array.\nfn find_first_occurrence A view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_733_find_first_occurrence.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 2\nput a0 1 5\nput a0 2 5\nput a0 3 5\nput a0 4 6\nput a0 5 6\nput a0 6 8\nput a0 7 9\nput a0 8 9\nput a0 9 9\nr = find_first_occurrence a0 5\nret eq r 1\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 2\nput a0 1 3\nput a0 2 5\nput a0 3 5\nput a0 4 6\nput a0 5 6\nput a0 6 8\nput a0 7 9\nput a0 8 9\nput a0 9 9\nr = find_first_occurrence a0 5\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 10 0\nput a0 0 2\nput a0 1 4\nput a0 2 1\nput a0 3 5\nput a0 4 6\nput a0 5 6\nput a0 6 8\nput a0 7 9\nput a0 8 9\nput a0 9 9\nr = find_first_occurrence a0 6\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
221{"name": "mbpp_734_sum_Of_Subarray_Prod", "language": "om", "prompt": "om2\nnote Write an Omega function to find sum of products of all possible sublists of a given array. https://www.geeksforgeeks.org/sum-of-products-of-all-possible-subarrays/\nfn sum_Of_Subarray_Prod arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_734_sum_Of_Subarray_Prod.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = sum_Of_Subarray_Prod a0\nret eq r 20\nend\nfn tc_1 to bool\na0 = new long 2 0\nput a0 0 1\nput a0 1 2\nr = sum_Of_Subarray_Prod a0\nret eq r 5\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nr = sum_Of_Subarray_Prod a0\nret eq r 84\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
222{"name": "mbpp_735_toggle_middle_bits", "language": "om", "prompt": "om2\nnote Write an Omega function to toggle bits of the number except the first and the last bit. https://www.geeksforgeeks.org/toggle-bits-number-expect-first-last-bits/\nfn toggle_middle_bits n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_735_toggle_middle_bits.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = toggle_middle_bits 9\nret eq r 15\nend\nfn tc_1 to bool\nr = toggle_middle_bits 10\nret eq r 12\nend\nfn tc_2 to bool\nr = toggle_middle_bits 11\nret eq r 13\nend\nfn tc_3 to bool\nr = toggle_middle_bits 65\nret eq r 127\nend\nfn tc_4 to bool\nr = toggle_middle_bits 77\nret eq r 115\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
223{"name": "mbpp_736_left_insertion", "language": "om", "prompt": "om2\nnote Write a function to locate the left insertion point for a specified value in sorted order. https://www.w3resource.com/Omega-exercises/data-structures-and-algorithms/Omega-data-structure-exercise-24.php\nfn left_insertion a view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_736_left_insertion.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = left_insertion a0 6\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = left_insertion a0 3\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = left_insertion a0 7\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
224{"name": "mbpp_737_check_str", "language": "om", "prompt": "om2\nnote Write a function to check whether the given string is starting with a vowel or not using regex.\nfn check_str string view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_737_check_str.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"annie\"\nfn tc_0 to bool\nr = check_str t0_0\nret eq r true\nend\ntext t1_0 \"dawood\"\nfn tc_1 to bool\nr = check_str t1_0\nret eq r false\nend\ntext t2_0 \"Else\"\nfn tc_2 to bool\nr = check_str t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
225{"name": "mbpp_738_geometric_sum", "language": "om", "prompt": "om2\nnote Write a function to calculate the geometric sum of n-1. https://www.w3resource.com/Omega-exercises/data-structures-and-algorithms/Omega-recursion-exercise-9.php\nfn geometric_sum n long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_738_geometric_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = geometric_sum 7\nret eq r 1.9921875\nend\nfn tc_1 to bool\nr = geometric_sum 4\nret eq r 1.9375\nend\nfn tc_2 to bool\nr = geometric_sum 8\nret eq r 1.99609375\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
226{"name": "mbpp_739_find_Index", "language": "om", "prompt": "om2\nnote Write an Omega function to find the index of smallest triangular number with n digits. https://www.geeksforgeeks.org/index-of-smallest-triangular-number-with-n-digits/\nfn find_Index n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_739_find_Index.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = find_Index 2\nret eq r 4\nend\nfn tc_1 to bool\nr = find_Index 3\nret eq r 14\nend\nfn tc_2 to bool\nr = find_Index 4\nret eq r 45\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
227{"name": "mbpp_741_all_Characters_Same", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether all the characters are same or not.\nfn all_Characters_Same s view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_741_all_Characters_Same.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python\"\nfn tc_0 to bool\nr = all_Characters_Same t0_0\nret eq r false\nend\ntext t1_0 \"aaa\"\nfn tc_1 to bool\nr = all_Characters_Same t1_0\nret eq r true\nend\ntext t2_0 \"data\"\nfn tc_2 to bool\nr = all_Characters_Same t2_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
228{"name": "mbpp_742_area_tetrahedron", "language": "om", "prompt": "om2\nnote Write a function to caluclate the area of a tetrahedron.\nfn area_tetrahedron side long to f64\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_742_area_tetrahedron.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = area_tetrahedron 3\nret eq r 15.588457268119894\nend\nfn tc_1 to bool\nr = area_tetrahedron 20\nret eq r 692.8203230275509\nend\nfn tc_2 to bool\nr = area_tetrahedron 10\nret eq r 173.20508075688772\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
229{"name": "mbpp_743_rotate_right", "language": "om", "prompt": "om2\nnote Write a function to rotate a given array by specified number of items to the right direction. https://www.geeksforgeeks.org/Omega-program-right-rotate-array-n/\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn rotate_right list view long * m long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_743_rotate_right.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = rotate_right a0 3 res\nif ne r 10\nret false\nend\nif ne get res 0 8\nret false\nend\nif ne get res 1 9\nret false\nend\nif ne get res 2 10\nret false\nend\nif ne get res 3 1\nret false\nend\nif ne get res 4 2\nret false\nend\nif ne get res 5 3\nret false\nend\nif ne get res 6 4\nret false\nend\nif ne get res 7 5\nret false\nend\nif ne get res 8 6\nret false\nend\nif ne get res 9 7\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = rotate_right a0 2 res\nif ne r 10\nret false\nend\nif ne get res 0 9\nret false\nend\nif ne get res 1 10\nret false\nend\nif ne get res 2 1\nret false\nend\nif ne get res 3 2\nret false\nend\nif ne get res 4 3\nret false\nend\nif ne get res 5 4\nret false\nend\nif ne get res 6 5\nret false\nend\nif ne get res 7 6\nret false\nend\nif ne get res 8 7\nret false\nend\nif ne get res 9 8\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nres = new long 4096 0\nr = rotate_right a0 5 res\nif ne r 10\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 7\nret false\nend\nif ne get res 2 8\nret false\nend\nif ne get res 3 9\nret false\nend\nif ne get res 4 10\nret false\nend\nif ne get res 5 1\nret false\nend\nif ne get res 6 2\nret false\nend\nif ne get res 7 3\nret false\nend\nif ne get res 8 4\nret false\nend\nif ne get res 9 5\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
230{"name": "mbpp_745_divisible_by_digits", "language": "om", "prompt": "om2\nnote Write a function to find numbers within a given range from startnum ti endnum where every number is divisible by every digit it contains. https://www.w3resource.com/Omega-exercises/lambda/Omega-lambda-exercise-24.php\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn divisible_by_digits startnum long endnum long res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_745_divisible_by_digits.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new long 4096 0\nr = divisible_by_digits 1 22 res\nif ne r 13\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 6\nret false\nend\nif ne get res 6 7\nret false\nend\nif ne get res 7 8\nret false\nend\nif ne get res 8 9\nret false\nend\nif ne get res 9 11\nret false\nend\nif ne get res 10 12\nret false\nend\nif ne get res 11 15\nret false\nend\nif ne get res 12 22\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new long 4096 0\nr = divisible_by_digits 1 15 res\nif ne r 12\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nif ne get res 3 4\nret false\nend\nif ne get res 4 5\nret false\nend\nif ne get res 5 6\nret false\nend\nif ne get res 6 7\nret false\nend\nif ne get res 7 8\nret false\nend\nif ne get res 8 9\nret false\nend\nif ne get res 9 11\nret false\nend\nif ne get res 10 12\nret false\nend\nif ne get res 11 15\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new long 4096 0\nr = divisible_by_digits 20 25 res\nif ne r 2\nret false\nend\nif ne get res 0 22\nret false\nend\nif ne get res 1 24\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
231{"name": "mbpp_747_lcs_of_three", "language": "om", "prompt": "om2\nnote Write a function to find the longest common subsequence for the given three string sequence. https://www.geeksforgeeks.org/lcs-longest-common-subsequence-three-strings/\nfn lcs_of_three X view uchar * Y view uchar * Z view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_747_lcs_of_three.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"AGGT12\"\ntext t0_1 \"12TXAYB\"\ntext t0_2 \"12XBA\"\nfn tc_0 to bool\nr = lcs_of_three t0_0 t0_1 t0_2\nret eq r 2\nend\ntext t1_0 \"Reels\"\ntext t1_1 \"Reelsfor\"\ntext t1_2 \"ReelsforReels\"\nfn tc_1 to bool\nr = lcs_of_three t1_0 t1_1 t1_2\nret eq r 5\nend\ntext t2_0 \"abcd1e2\"\ntext t2_1 \"bc12ea\"\ntext t2_2 \"bd1ea\"\nfn tc_2 to bool\nr = lcs_of_three t2_0 t2_1 t2_2\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
232{"name": "mbpp_748_capital_words_spaces", "language": "om", "prompt": "om2\nnote Write a function to put spaces between words starting with capital letters in a given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn capital_words_spaces str1 view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_748_capital_words_spaces.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"Python\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = capital_words_spaces t0_0 res\nif ne r 6\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nret true\nend\ntext t1_0 \"PythonProgrammingExamples\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = capital_words_spaces t1_0 res\nif ne r 27\nret false\nend\nif ne get res 0 80\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 80\nret false\nend\nif ne get res 8 114\nret false\nend\nif ne get res 9 111\nret false\nend\nif ne get res 10 103\nret false\nend\nif ne get res 11 114\nret false\nend\nif ne get res 12 97\nret false\nend\nif ne get res 13 109\nret false\nend\nif ne get res 14 109\nret false\nend\nif ne get res 15 105\nret false\nend\nif ne get res 16 110\nret false\nend\nif ne get res 17 103\nret false\nend\nif ne get res 18 32\nret false\nend\nif ne get res 19 69\nret false\nend\nif ne get res 20 120\nret false\nend\nif ne get res 21 97\nret false\nend\nif ne get res 22 109\nret false\nend\nif ne get res 23 112\nret false\nend\nif ne get res 24 108\nret false\nend\nif ne get res 25 101\nret false\nend\nif ne get res 26 115\nret false\nend\nret true\nend\ntext t2_0 \"GetReadyToBeCodingFreak\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = capital_words_spaces t2_0 res\nif ne r 28\nret false\nend\nif ne get res 0 71\nret false\nend\nif ne get res 1 101\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 32\nret false\nend\nif ne get res 4 82\nret false\nend\nif ne get res 5 101\nret false\nend\nif ne get res 6 97\nret false\nend\nif ne get res 7 100\nret false\nend\nif ne get res 8 121\nret false\nend\nif ne get res 9 32\nret false\nend\nif ne get res 10 84\nret false\nend\nif ne get res 11 111\nret false\nend\nif ne get res 12 32\nret false\nend\nif ne get res 13 66\nret false\nend\nif ne get res 14 101\nret false\nend\nif ne get res 15 32\nret false\nend\nif ne get res 16 67\nret false\nend\nif ne get res 17 111\nret false\nend\nif ne get res 18 100\nret false\nend\nif ne get res 19 105\nret false\nend\nif ne get res 20 110\nret false\nend\nif ne get res 21 103\nret false\nend\nif ne get res 22 32\nret false\nend\nif ne get res 23 70\nret false\nend\nif ne get res 24 114\nret false\nend\nif ne get res 25 101\nret false\nend\nif ne get res 26 97\nret false\nend\nif ne get res 27 107\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
233{"name": "mbpp_750_add_tuple", "language": "om", "prompt": "om2\nnote Write a function to add the given array to the given array.\nnote Omega name: test_list is test_lis here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn add_tuple test_lis view long * test_tup view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_750_add_tuple.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 5\nput a0 1 6\nput a0 2 7\na1 = new long 2 0\nput a1 0 9\nput a1 1 10\nres = new long 4096 0\nr = add_tuple a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 5\nret false\nend\nif ne get res 1 6\nret false\nend\nif ne get res 2 7\nret false\nend\nif ne get res 3 9\nret false\nend\nif ne get res 4 10\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 6\nput a0 1 7\nput a0 2 8\na1 = new long 2 0\nput a1 0 10\nput a1 1 11\nres = new long 4096 0\nr = add_tuple a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 6\nret false\nend\nif ne get res 1 7\nret false\nend\nif ne get res 2 8\nret false\nend\nif ne get res 3 10\nret false\nend\nif ne get res 4 11\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\na1 = new long 2 0\nput a1 0 11\nput a1 1 12\nres = new long 4096 0\nr = add_tuple a0 a1 res\nif ne r 5\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 8\nret false\nend\nif ne get res 2 9\nret false\nend\nif ne get res 3 11\nret false\nend\nif ne get res 4 12\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
234{"name": "mbpp_751_check_min_heap", "language": "om", "prompt": "om2\nnote Write a function to check if the given array represents min heap or not. https://www.geeksforgeeks.org/how-to-check-if-a-given-array-represents-a-binary-heap/\nfn check_min_heap arr view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_751_check_min_heap.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nr = check_min_heap a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 2\nput a0 1 3\nput a0 2 4\nput a0 3 5\nput a0 4 10\nput a0 5 15\nr = check_min_heap a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 2\nput a0 1 10\nput a0 2 4\nput a0 3 5\nput a0 4 3\nput a0 5 15\nr = check_min_heap a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
235{"name": "mbpp_752_jacobsthal_num", "language": "om", "prompt": "om2\nnote Write a function to find the nth jacobsthal number. https://www.geeksforgeeks.org/jacobsthal-and-jacobsthal-lucas-numbers/ 0, 1, 1, 3, 5, 11, 21, 43, 85, 171, 341, 683, 1365, 2731, ...\nfn jacobsthal_num n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_752_jacobsthal_num.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = jacobsthal_num 5\nret eq r 11\nend\nfn tc_1 to bool\nr = jacobsthal_num 2\nret eq r 1\nend\nfn tc_2 to bool\nr = jacobsthal_num 4\nret eq r 5\nend\nfn tc_3 to bool\nr = jacobsthal_num 13\nret eq r 2731\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
236{"name": "mbpp_756_text_match_zero_one", "language": "om", "prompt": "om2\nnote Write a function that matches a string that has an 'a' followed by one or more 'b's. https://www.w3resource.com/Omega-exercises/re/Omega-re-exercise-3.php\nnote Omega name: text is text_ here.\nfn text_match_zero_one text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_756_text_match_zero_one.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"ac\"\nfn tc_0 to bool\nr = text_match_zero_one t0_0\nret eq r false\nend\ntext t1_0 \"dc\"\nfn tc_1 to bool\nr = text_match_zero_one t1_0\nret eq r false\nend\ntext t2_0 \"abbbba\"\nfn tc_2 to bool\nr = text_match_zero_one t2_0\nret eq r true\nend\ntext t3_0 \"dsabbbba\"\nfn tc_3 to bool\nr = text_match_zero_one t3_0\nret eq r true\nend\ntext t4_0 \"asbbbba\"\nfn tc_4 to bool\nr = text_match_zero_one t4_0\nret eq r false\nend\ntext t5_0 \"abaaa\"\nfn tc_5 to bool\nr = text_match_zero_one t5_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nif not tc_5\nret 6\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
237{"name": "mbpp_759_is_decimal", "language": "om", "prompt": "om2\nnote Write a function to check whether a given string is a decimal number with a precision of 2.\nfn is_decimal num view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_759_is_decimal.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"123.11\"\nfn tc_0 to bool\nr = is_decimal t0_0\nret eq r true\nend\ntext t1_0 \"e666.86\"\nfn tc_1 to bool\nr = is_decimal t1_0\nret eq r false\nend\ntext t2_0 \"3.124587\"\nfn tc_2 to bool\nr = is_decimal t2_0\nret eq r false\nend\ntext t3_0 \"1.11\"\nfn tc_3 to bool\nr = is_decimal t3_0\nret eq r true\nend\ntext t4_0 \"1.1.11\"\nfn tc_4 to bool\nr = is_decimal t4_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
238{"name": "mbpp_760_unique_Element", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether an array of numbers contains only one distinct element or not.\nfn unique_Element arr view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_760_unique_Element.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nr = unique_Element a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nput a0 3 2\nr = unique_Element a0\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nr = unique_Element a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
239{"name": "mbpp_762_check_monthnumber_number", "language": "om", "prompt": "om2\nnote Write a function to check whether the given month number contains 30 days or not. Months are given as number from 1 to 12.\nnote Omega name: monthnum3 is monthnum here.\nfn check_monthnumber_number monthnum long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_762_check_monthnumber_number.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = check_monthnumber_number 6\nret eq r true\nend\nfn tc_1 to bool\nr = check_monthnumber_number 2\nret eq r false\nend\nfn tc_2 to bool\nr = check_monthnumber_number 12\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
240{"name": "mbpp_763_find_min_diff", "language": "om", "prompt": "om2\nnote Write an Omega function to find the minimum difference between any two elements in a given array. https://www.geeksforgeeks.org/find-minimum-difference-pair/\nfn find_min_diff arr view long * n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_763_find_min_diff.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 5\nput a0 2 3\nput a0 3 19\nput a0 4 18\nput a0 5 25\nr = find_min_diff a0 6\nret eq r 1\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 4\nput a0 1 3\nput a0 2 2\nput a0 3 6\nr = find_min_diff a0 4\nret eq r 1\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 30\nput a0 1 5\nput a0 2 20\nput a0 3 9\nr = find_min_diff a0 4\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
241{"name": "mbpp_764_number_ctr", "language": "om", "prompt": "om2\nnote Write an Omega function to count number of digits in a given string.\nfn number_ctr str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_764_number_ctr.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"program2bedone\"\nfn tc_0 to bool\nr = number_ctr t0_0\nret eq r 1\nend\ntext t1_0 \"3wonders\"\nfn tc_1 to bool\nr = number_ctr t1_0\nret eq r 1\nend\ntext t2_0 \"123\"\nfn tc_2 to bool\nr = number_ctr t2_0\nret eq r 3\nend\ntext t3_0 \"3wond-1ers2\"\nfn tc_3 to bool\nr = number_ctr t3_0\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
242{"name": "mbpp_765_is_polite", "language": "om", "prompt": "om2\nnote Write a function to find nth polite number. geeksforgeeks.org/n-th-polite-number/\nfn is_polite n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_765_is_polite.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_polite 7\nret eq r 11\nend\nfn tc_1 to bool\nr = is_polite 4\nret eq r 7\nend\nfn tc_2 to bool\nr = is_polite 9\nret eq r 13\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
243{"name": "mbpp_767_get_pairs_count", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of pairs whose sum is equal to \u2018sum\u2019. The funtion gets as input an array of numbers and the sum,\nfn get_pairs_count arr view long * sum long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_767_get_pairs_count.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nput a0 3 1\nr = get_pairs_count a0 2\nret eq r 6\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 5\nput a0 2 7\nput a0 3 -1\nput a0 4 5\nr = get_pairs_count a0 6\nret eq r 3\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 -2\nput a0 2 3\nr = get_pairs_count a0 1\nret eq r 1\nend\nfn tc_3 to bool\na0 = new long 3 0\nput a0 0 -1\nput a0 1 -2\nput a0 2 3\nr = get_pairs_count a0 -3\nret eq r 1\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
244{"name": "mbpp_769_Diff", "language": "om", "prompt": "om2\nnote Write an Omega function to get the difference between two lists.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn Diff li1 view long * li2 view long * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_769_Diff.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 7 0\nput a0 0 10\nput a0 1 15\nput a0 2 20\nput a0 3 25\nput a0 4 30\nput a0 5 35\nput a0 6 40\na1 = new long 3 0\nput a1 0 25\nput a1 1 40\nput a1 2 35\nres = new long 4096 0\nr = Diff a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 10\nret false\nend\nif ne get res 1 20\nret false\nend\nif ne get res 2 30\nret false\nend\nif ne get res 3 15\nret false\nend\nret true\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\na1 = new long 3 0\nput a1 0 6\nput a1 1 7\nput a1 2 1\nres = new long 4096 0\nr = Diff a0 a1 res\nif ne r 6\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 4\nret false\nend\nif ne get res 3 5\nret false\nend\nif ne get res 4 6\nret false\nend\nif ne get res 5 7\nret false\nend\nret true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 6\nput a1 1 7\nput a1 2 1\nres = new long 4096 0\nr = Diff a0 a1 res\nif ne r 4\nret false\nend\nif ne get res 0 2\nret false\nend\nif ne get res 1 3\nret false\nend\nif ne get res 2 6\nret false\nend\nif ne get res 3 7\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
245{"name": "mbpp_770_odd_num_sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of fourth power of first n odd natural numbers.\nfn odd_num_sum n long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_770_odd_num_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = odd_num_sum 2\nret eq r 82\nend\nfn tc_1 to bool\nr = odd_num_sum 3\nret eq r 707\nend\nfn tc_2 to bool\nr = odd_num_sum 4\nret eq r 3108\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
246{"name": "mbpp_771_check_expression", "language": "om", "prompt": "om2\nnote Write a function to check if the given expression is balanced or not. https://www.geeksforgeeks.org/check-for-balanced-parentheses-in-an-expression/\nfn check_expression exp view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_771_check_expression.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"{()}[{}]\"\nfn tc_0 to bool\nr = check_expression t0_0\nret eq r true\nend\ntext t1_0 \"{()}[{]\"\nfn tc_1 to bool\nr = check_expression t1_0\nret eq r false\nend\ntext t2_0 \"{()}[{}][]({})\"\nfn tc_2 to bool\nr = check_expression t2_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
247{"name": "mbpp_772_remove_length", "language": "om", "prompt": "om2\nnote Write a function to remove all the words with k length in the given string.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_length test_str view uchar * K long res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_772_remove_length.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"The person is most value tet\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_length t0_0 3 res\nif ne r 20\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 101\nret false\nend\nif ne get res 2 114\nret false\nend\nif ne get res 3 115\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 105\nret false\nend\nif ne get res 8 115\nret false\nend\nif ne get res 9 32\nret false\nend\nif ne get res 10 109\nret false\nend\nif ne get res 11 111\nret false\nend\nif ne get res 12 115\nret false\nend\nif ne get res 13 116\nret false\nend\nif ne get res 14 32\nret false\nend\nif ne get res 15 118\nret false\nend\nif ne get res 16 97\nret false\nend\nif ne get res 17 108\nret false\nend\nif ne get res 18 117\nret false\nend\nif ne get res 19 101\nret false\nend\nret true\nend\ntext t1_0 \"If you told me about this ok\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_length t1_0 4 res\nif ne r 18\nret false\nend\nif ne get res 0 73\nret false\nend\nif ne get res 1 102\nret false\nend\nif ne get res 2 32\nret false\nend\nif ne get res 3 121\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 117\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 109\nret false\nend\nif ne get res 8 101\nret false\nend\nif ne get res 9 32\nret false\nend\nif ne get res 10 97\nret false\nend\nif ne get res 11 98\nret false\nend\nif ne get res 12 111\nret false\nend\nif ne get res 13 117\nret false\nend\nif ne get res 14 116\nret false\nend\nif ne get res 15 32\nret false\nend\nif ne get res 16 111\nret false\nend\nif ne get res 17 107\nret false\nend\nret true\nend\ntext t2_0 \"Forces of darkeness is come into the play\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_length t2_0 4 res\nif ne r 26\nret false\nend\nif ne get res 0 70\nret false\nend\nif ne get res 1 111\nret false\nend\nif ne get res 2 114\nret false\nend\nif ne get res 3 99\nret false\nend\nif ne get res 4 101\nret false\nend\nif ne get res 5 115\nret false\nend\nif ne get res 6 32\nret false\nend\nif ne get res 7 111\nret false\nend\nif ne get res 8 102\nret false\nend\nif ne get res 9 32\nret false\nend\nif ne get res 10 100\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 114\nret false\nend\nif ne get res 13 107\nret false\nend\nif ne get res 14 101\nret false\nend\nif ne get res 15 110\nret false\nend\nif ne get res 16 101\nret false\nend\nif ne get res 17 115\nret false\nend\nif ne get res 18 115\nret false\nend\nif ne get res 19 32\nret false\nend\nif ne get res 20 105\nret false\nend\nif ne get res 21 115\nret false\nend\nif ne get res 22 32\nret false\nend\nif ne get res 23 116\nret false\nend\nif ne get res 24 104\nret false\nend\nif ne get res 25 101\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
248{"name": "mbpp_775_odd_position", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether every odd index contains odd numbers of a given array.\nfn odd_position nums view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_775_odd_position.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 2\nput a0 1 1\nput a0 2 4\nput a0 3 3\nput a0 4 6\nput a0 5 7\nput a0 6 6\nput a0 7 3\nr = odd_position a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 1\nput a0 2 2\nr = odd_position a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = odd_position a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
249{"name": "mbpp_776_count_vowels", "language": "om", "prompt": "om2\nnote Write a function to count those characters which have vowels as their neighbors in the given string.\nfn count_vowels test_str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_776_count_vowels.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"bestinstareels\"\nfn tc_0 to bool\nr = count_vowels t0_0\nret eq r 7\nend\ntext t1_0 \"partofthejourneyistheend\"\nfn tc_1 to bool\nr = count_vowels t1_0\nret eq r 12\nend\ntext t2_0 \"amazonprime\"\nfn tc_2 to bool\nr = count_vowels t2_0\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
250{"name": "mbpp_777_find_sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of non-repeated elements in a given array.\nfn find_sum arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_777_find_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 1\nput a0 4 1\nput a0 5 4\nput a0 6 5\nput a0 7 6\nr = find_sum a0\nret eq r 21\nend\nfn tc_1 to bool\na0 = new long 9 0\nput a0 0 1\nput a0 1 10\nput a0 2 9\nput a0 3 4\nput a0 4 2\nput a0 5 10\nput a0 6 10\nput a0 7 45\nput a0 8 4\nr = find_sum a0\nret eq r 71\nend\nfn tc_2 to bool\na0 = new long 9 0\nput a0 0 12\nput a0 1 10\nput a0 2 9\nput a0 3 45\nput a0 4 2\nput a0 5 10\nput a0 6 10\nput a0 7 45\nput a0 8 10\nr = find_sum a0\nret eq r 78\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
251{"name": "mbpp_781_count_divisors", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether the count of divisors is even. https://www.w3resource.com/Omega-exercises/basic/Omega-basic-1-exercise-24.php\nfn count_divisors n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_781_count_divisors.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = count_divisors 10\nret eq r true\nend\nfn tc_1 to bool\nr = count_divisors 100\nret eq r false\nend\nfn tc_2 to bool\nr = count_divisors 125\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
252{"name": "mbpp_782_odd_length_sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of all odd length subarrays. https://www.geeksforgeeks.org/sum-of-all-odd-length-subarrays/\nfn odd_length_sum arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_782_odd_length_sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nr = odd_length_sum a0\nret eq r 14\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nput a0 3 2\nr = odd_length_sum a0\nret eq r 15\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 1\nput a0 1 7\nr = odd_length_sum a0\nret eq r 8\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
253{"name": "mbpp_783_rgb_to_hsv", "language": "om", "prompt": "om2\nnote Write a function to convert rgb color to hsv color. https://www.geeksforgeeks.org/program-change-rgb-color-model-hsv-color-model/\nnote Omega name: r is r_ here.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn rgb_to_hsv r_ long g long b long res edit f64 * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_783_rgb_to_hsv.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nres = new f64 4096 0.0\nr = rgb_to_hsv 255 255 255 res\nif ne r 3\nret false\nend\nif ne get res 0 0.0\nret false\nend\nif ne get res 1 0.0\nret false\nend\nif ne get res 2 100.0\nret false\nend\nret true\nend\nfn tc_1 to bool\nres = new f64 4096 0.0\nr = rgb_to_hsv 0 215 0 res\nif ne r 3\nret false\nend\nif ne get res 0 120.0\nret false\nend\nif ne get res 1 100.0\nret false\nend\nif ne get res 2 84.31372549019608\nret false\nend\nret true\nend\nfn tc_2 to bool\nres = new f64 4096 0.0\nr = rgb_to_hsv 10 215 110 res\nif ne r 3\nret false\nend\nif ne get res 0 149.26829268292684\nret false\nend\nif ne get res 1 95.34883720930233\nret false\nend\nif ne get res 2 84.31372549019608\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
254{"name": "mbpp_784_mul_even_odd", "language": "om", "prompt": "om2\nnote Write a function to find the product of first even and odd number of a given array.\nfn mul_even_odd list1 view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_784_mul_even_odd.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 8 0\nput a0 0 1\nput a0 1 3\nput a0 2 5\nput a0 3 7\nput a0 4 4\nput a0 5 1\nput a0 6 6\nput a0 7 8\nr = mul_even_odd a0\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 10 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nput a0 6 7\nput a0 7 8\nput a0 8 9\nput a0 9 10\nr = mul_even_odd a0\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 5 0\nput a0 0 1\nput a0 1 5\nput a0 2 7\nput a0 3 9\nput a0 4 10\nr = mul_even_odd a0\nret eq r 10\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
255{"name": "mbpp_785_tuple_str_int", "language": "om", "prompt": "om2\nnote Write a function to convert array string to integer array.\nnote Result: write the elements into res (len res >= 4096) and return how many were written.\nfn tuple_str_int test_str view uchar * res edit long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_785_tuple_str_int.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"(7, 8, 9)\"\nfn tc_0 to bool\nres = new long 4096 0\nr = tuple_str_int t0_0 res\nif ne r 3\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 8\nret false\nend\nif ne get res 2 9\nret false\nend\nret true\nend\ntext t1_0 \"(1, 2, 3)\"\nfn tc_1 to bool\nres = new long 4096 0\nr = tuple_str_int t1_0 res\nif ne r 3\nret false\nend\nif ne get res 0 1\nret false\nend\nif ne get res 1 2\nret false\nend\nif ne get res 2 3\nret false\nend\nret true\nend\ntext t2_0 \"(4, 5, 6)\"\nfn tc_2 to bool\nres = new long 4096 0\nr = tuple_str_int t2_0 res\nif ne r 3\nret false\nend\nif ne get res 0 4\nret false\nend\nif ne get res 1 5\nret false\nend\nif ne get res 2 6\nret false\nend\nret true\nend\ntext t3_0 \"(7, 81, 19)\"\nfn tc_3 to bool\nres = new long 4096 0\nr = tuple_str_int t3_0 res\nif ne r 3\nret false\nend\nif ne get res 0 7\nret false\nend\nif ne get res 1 81\nret false\nend\nif ne get res 2 19\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
256{"name": "mbpp_786_right_insertion", "language": "om", "prompt": "om2\nnote Write a function to locate the right insertion point for a specified value in sorted order.\nfn right_insertion a view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_786_right_insertion.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = right_insertion a0 6\nret eq r 4\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = right_insertion a0 3\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 4\nput a0 3 5\nr = right_insertion a0 7\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
257{"name": "mbpp_787_text_match_three", "language": "om", "prompt": "om2\nnote Write a function that matches a string that has an a followed by three 'b'.\nnote Omega name: text is text_ here.\nfn text_match_three text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_787_text_match_three.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"ac\"\nfn tc_0 to bool\nr = text_match_three t0_0\nret eq r false\nend\ntext t1_0 \"dc\"\nfn tc_1 to bool\nr = text_match_three t1_0\nret eq r false\nend\ntext t2_0 \"abbbba\"\nfn tc_2 to bool\nr = text_match_three t2_0\nret eq r true\nend\ntext t3_0 \"caacabbbba\"\nfn tc_3 to bool\nr = text_match_three t3_0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
258{"name": "mbpp_790_even_position", "language": "om", "prompt": "om2\nnote Write an Omega function to check whether every even index contains even numbers of a given array.\nfn even_position nums view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_790_even_position.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 3\nput a0 1 2\nput a0 2 1\nr = even_position a0\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = even_position a0\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 2\nput a0 1 1\nput a0 2 4\nr = even_position a0\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
259{"name": "mbpp_793_last", "language": "om", "prompt": "om2\nnote Write an Omega function to find the last position of an element in a sorted array.\nfn last arr view long * x long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_793_last.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = last a0 1\nret eq r 0\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 1\nput a0 2 1\nput a0 3 2\nput a0 4 3\nput a0 5 4\nr = last a0 1\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 7 0\nput a0 0 2\nput a0 1 3\nput a0 2 2\nput a0 3 3\nput a0 4 6\nput a0 5 8\nput a0 6 9\nr = last a0 3\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
260{"name": "mbpp_794_text_starta_endb", "language": "om", "prompt": "om2\nnote Write a function that matches a string that has an 'a' followed by anything, ending in 'b'.\nnote Omega name: text is text_ here.\nfn text_starta_endb text_ view uchar * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_794_text_starta_endb.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"aabbbb\"\nfn tc_0 to bool\nr = text_starta_endb t0_0\nret eq r true\nend\ntext t1_0 \"aabAbbbc\"\nfn tc_1 to bool\nr = text_starta_endb t1_0\nret eq r false\nend\ntext t2_0 \"accddbbjjj\"\nfn tc_2 to bool\nr = text_starta_endb t2_0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
261{"name": "mbpp_797_sum_in_range", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of all odd natural numbers within the range l and r.\nnote Omega name: r is r_ here.\nfn sum_in_range l long r_ long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_797_sum_in_range.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = sum_in_range 2 5\nret eq r 8\nend\nfn tc_1 to bool\nr = sum_in_range 5 7\nret eq r 12\nend\nfn tc_2 to bool\nr = sum_in_range 7 13\nret eq r 40\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
262{"name": "mbpp_798__sum", "language": "om", "prompt": "om2\nnote Write an Omega function to find the sum of an array.\nfn _sum arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_798__sum.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = _sum a0\nret eq r 6\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 15\nput a0 1 12\nput a0 2 13\nput a0 3 10\nr = _sum a0\nret eq r 50\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 0\nput a0 1 1\nput a0 2 2\nr = _sum a0\nret eq r 3\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
263{"name": "mbpp_799_left_rotate", "language": "om", "prompt": "om2\nnote Write a function to that rotate left bits by d bits a given number. We assume that the number is 32 bit.\nfn left_rotate n long d long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_799_left_rotate.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = left_rotate 16 2\nret eq r 64\nend\nfn tc_1 to bool\nr = left_rotate 10 2\nret eq r 40\nend\nfn tc_2 to bool\nr = left_rotate 99 3\nret eq r 792\nend\nfn tc_3 to bool\nr = left_rotate 99 3\nret eq r 792\nend\nfn tc_4 to bool\nr = left_rotate 1 3\nret eq r 8\nend\nfn tc_5 to bool\nr = left_rotate 5 3\nret eq r 40\nend\nfn tc_6 to bool\nr = left_rotate 29 3\nret eq r 232\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nif not tc_5\nret 6\nend\nif not tc_6\nret 7\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
264{"name": "mbpp_800_remove_all_spaces", "language": "om", "prompt": "om2\nnote Write a function to remove all whitespaces from a string.\nnote Omega name: text is text_ here.\nnote Result: write the bytes into res (len res >= 4096) and return how many were written.\nfn remove_all_spaces text_ view uchar * res edit uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_800_remove_all_spaces.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"python program\"\nfn tc_0 to bool\nres = new uchar 4096 0\nr = remove_all_spaces t0_0 res\nif ne r 13\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 114\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 109\nret false\nend\nret true\nend\ntext t1_0 \"python programming language\"\nfn tc_1 to bool\nres = new uchar 4096 0\nr = remove_all_spaces t1_0 res\nif ne r 25\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 114\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 109\nret false\nend\nif ne get res 13 109\nret false\nend\nif ne get res 14 105\nret false\nend\nif ne get res 15 110\nret false\nend\nif ne get res 16 103\nret false\nend\nif ne get res 17 108\nret false\nend\nif ne get res 18 97\nret false\nend\nif ne get res 19 110\nret false\nend\nif ne get res 20 103\nret false\nend\nif ne get res 21 117\nret false\nend\nif ne get res 22 97\nret false\nend\nif ne get res 23 103\nret false\nend\nif ne get res 24 101\nret false\nend\nret true\nend\ntext t2_0 \"python program\"\nfn tc_2 to bool\nres = new uchar 4096 0\nr = remove_all_spaces t2_0 res\nif ne r 13\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 114\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 109\nret false\nend\nret true\nend\ntext t3_0 \" python program\"\nfn tc_3 to bool\nres = new uchar 4096 0\nr = remove_all_spaces t3_0 res\nif ne r 13\nret false\nend\nif ne get res 0 112\nret false\nend\nif ne get res 1 121\nret false\nend\nif ne get res 2 116\nret false\nend\nif ne get res 3 104\nret false\nend\nif ne get res 4 111\nret false\nend\nif ne get res 5 110\nret false\nend\nif ne get res 6 112\nret false\nend\nif ne get res 7 114\nret false\nend\nif ne get res 8 111\nret false\nend\nif ne get res 9 103\nret false\nend\nif ne get res 10 114\nret false\nend\nif ne get res 11 97\nret false\nend\nif ne get res 12 109\nret false\nend\nret true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
265{"name": "mbpp_801_test_three_equal", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of equal numbers from three given integers.\nfn test_three_equal x long y long z long to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_801_test_three_equal.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = test_three_equal 1 1 1\nret eq r 3\nend\nfn tc_1 to bool\nr = test_three_equal -1 -2 -3\nret eq r 0\nend\nfn tc_2 to bool\nr = test_three_equal 1 2 2\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
266{"name": "mbpp_802_count_rotation", "language": "om", "prompt": "om2\nnote Write an Omega function to count the number of rotations required to generate a sorted array. https://www.geeksforgeeks.org/count-of-rotations-required-to-generate-a-sorted-array/\nfn count_rotation arr view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_802_count_rotation.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 3\nput a0 1 2\nput a0 2 1\nr = count_rotation a0\nret eq r 1\nend\nfn tc_1 to bool\na0 = new long 5 0\nput a0 0 4\nput a0 1 5\nput a0 2 1\nput a0 3 2\nput a0 4 3\nr = count_rotation a0\nret eq r 2\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\nput a0 3 1\nput a0 4 2\nput a0 5 3\nr = count_rotation a0\nret eq r 3\nend\nfn tc_3 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = count_rotation a0\nret eq r 0\nend\nfn tc_4 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 3\nput a0 2 2\nr = count_rotation a0\nret eq r 2\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
267{"name": "mbpp_803_is_perfect_square", "language": "om", "prompt": "om2\nnote Write a function to check whether the given number is a perfect square or not. https://www.geeksforgeeks.org/check-if-given-number-is-perfect-square-in-cpp/\nfn is_perfect_square n long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_803_is_perfect_square.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\nr = is_perfect_square 10\nret eq r false\nend\nfn tc_1 to bool\nr = is_perfect_square 36\nret eq r true\nend\nfn tc_2 to bool\nr = is_perfect_square 14\nret eq r false\nend\nfn tc_3 to bool\nr = is_perfect_square 196\nret eq r true\nend\nfn tc_4 to bool\nr = is_perfect_square 125\nret eq r false\nend\nfn tc_5 to bool\nr = is_perfect_square 15625\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nif not tc_5\nret 6\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
268{"name": "mbpp_804_is_product_even", "language": "om", "prompt": "om2\nnote Write a function to check whether the product of numbers in an array is even or not.\nfn is_product_even arr view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_804_is_product_even.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nr = is_product_even a0\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 1\nput a0 1 2\nput a0 2 1\nput a0 3 4\nr = is_product_even a0\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 2 0\nput a0 0 1\nput a0 1 1\nr = is_product_even a0\nret eq r false\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
269{"name": "mbpp_806_max_run_uppercase", "language": "om", "prompt": "om2\nnote Write a function to find maximum run of uppercase characters in the given string.\nfn max_run_uppercase test_str view uchar * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_806_max_run_uppercase.py", "prompt_terminology": "reworded", "tests": "text t0_0 \"GeMKSForGERksISBESt\"\nfn tc_0 to bool\nr = max_run_uppercase t0_0\nret eq r 5\nend\ntext t1_0 \"PrECIOusMOVemENTSYT\"\nfn tc_1 to bool\nr = max_run_uppercase t1_0\nret eq r 6\nend\ntext t2_0 \"GooGLEFluTTER\"\nfn tc_2 to bool\nr = max_run_uppercase t2_0\nret eq r 4\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
270{"name": "mbpp_807_first_odd", "language": "om", "prompt": "om2\nnote Write an Omega function to find the first odd number in a given array of numbers.\nfn first_odd nums view long * to long\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_807_first_odd.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 3\nput a0 2 5\nr = first_odd a0\nret eq r 1\nend\nfn tc_1 to bool\na0 = new long 4 0\nput a0 0 2\nput a0 1 4\nput a0 2 1\nput a0 3 3\nr = first_odd a0\nret eq r 1\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 8\nput a0 1 9\nput a0 2 1\nr = first_odd a0\nret eq r 9\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
271{"name": "mbpp_808_check_K", "language": "om", "prompt": "om2\nnote Write a function to check if the given tuples contain the k or not.\nfn check_K test_tup view long * K long to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_808_check_K.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 5 0\nput a0 0 10\nput a0 1 4\nput a0 2 5\nput a0 3 6\nput a0 4 8\nr = check_K a0 6\nret eq r true\nend\nfn tc_1 to bool\na0 = new long 6 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\nput a0 3 4\nput a0 4 5\nput a0 5 6\nr = check_K a0 7\nret eq r false\nend\nfn tc_2 to bool\na0 = new long 6 0\nput a0 0 7\nput a0 1 8\nput a0 2 9\nput a0 3 44\nput a0 4 11\nput a0 5 12\nr = check_K a0 11\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}
272{"name": "mbpp_809_check_smaller", "language": "om", "prompt": "om2\nnote Write a function to check if each element of second array is smaller than its corresponding element in the first array.\nnote Omega name: test_tup1 is test_tup here.\nnote Omega name: test_tup2 is test_tu_ here.\nfn check_smaller test_tup view long * test_tu_ view long * to bool\n", "doctests": "transform", "original": "datasets/mbpp-typed/mbpp_809_check_smaller.py", "prompt_terminology": "reworded", "tests": "fn tc_0 to bool\na0 = new long 3 0\nput a0 0 1\nput a0 1 2\nput a0 2 3\na1 = new long 3 0\nput a1 0 2\nput a1 1 3\nput a1 2 4\nr = check_smaller a0 a1\nret eq r false\nend\nfn tc_1 to bool\na0 = new long 3 0\nput a0 0 4\nput a0 1 5\nput a0 2 6\na1 = new long 3 0\nput a1 0 3\nput a1 1 4\nput a1 2 5\nr = check_smaller a0 a1\nret eq r true\nend\nfn tc_2 to bool\na0 = new long 3 0\nput a0 0 11\nput a0 1 12\nput a0 2 13\na1 = new long 3 0\nput a1 0 10\nput a1 1 11\nput a1 2 12\nr = check_smaller a0 a1\nret eq r true\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", "stop_tokens": ["\nfn ", "\nstruct ", "\nglobal ", "\ntext ", "\nconst ", "\nlayout ", "\nabstract "]}