prefix
stringlengths
65
1.8k
suffix
stringclasses
839 values
solution
stringlengths
6
859
test_cases
listlengths
0
100
import_str
listlengths
0
1
demos
listlengths
0
8
entry_func
stringclasses
158 values
data_id
stringlengths
36
40
doc_string
stringclasses
164 values
dataset_name
stringclasses
1 value
task_name
stringclasses
1 value
compare_func
listlengths
0
0
src_lang
stringclasses
1 value
tgt_lang
stringclasses
1 value
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = []
result.append(string[:i+1]) return result
for i in range(len(string)):
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L2_L2
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = []
return result
for i in range(len(string)): result.append(string[:i+1])
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L2_L3
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = []
for i in range(len(string)): result.append(string[:i+1]) return result
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L2_L4
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = [] for i in range(len(string)):
return result
result.append(string[:i+1])
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L3_L3
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = [] for i in range(len(string)):
result.append(string[:i+1]) return result
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L3_L4
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def all_prefixes(string: str) -> List[str]: """ Return list of all prefixes from shortest to longest of the input string """ result = [] for i in range(len(string)): result.append(string[:i+1])
return result
[ [ "''", "[]" ], [ "'asdfgh'", "['a', 'as', 'asd', 'asdf', 'asdfg', 'asdfgh']" ], [ "'WWW'", "['W', 'WW', 'WWW']" ] ]
[ "from typing import List" ]
[ [ "'abc'", "['a', 'ab', 'abc']" ] ]
all_prefixes
MultiLineInfilling/HumanEval/14/L4_L4
Return list of all prefixes from shortest to longest of the input string
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def string_sequence(n: int) -> str: """ Return a string containing space-delimited numbers starting from 0 upto n inclusive. """
return ' '.join([str(x) for x in range(n + 1)])
[ [ "0", "'0'" ], [ "3", "'0 1 2 3'" ], [ "10", "'0 1 2 3 4 5 6 7 8 9 10'" ] ]
[]
[ [ "0", "'0'" ], [ "5", "'0 1 2 3 4 5'" ] ]
string_sequence
MultiLineInfilling/HumanEval/15/L0_L0
Return a string containing space-delimited numbers starting from 0 upto n inclusive.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def count_distinct_characters(string: str) -> int: """ Given a string, find out how many distinct characters (regardless of case) does it consist of """
return len(set(string.lower()))
[ [ "''", "0" ], [ "'abcde'", "5" ], [ "'abcde' + 'cade' + 'CADE'", "5" ], [ "'aaaaAAAAaaaa'", "1" ], [ "'Jerry jERRY JeRRRY'", "5" ] ]
[]
[ [ "'xyzXYZ'", "3" ], [ "'Jerry'", "4" ] ]
count_distinct_characters
MultiLineInfilling/HumanEval/16/L0_L0
Given a string, find out how many distinct characters (regardless of case) does it consist of
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def parse_music(music_string: str) -> List[int]: """ Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat """
return [note_map[x] for x in music_string.split(' ') if x]
note_map = {'o': 4, 'o|': 2, '.|': 1}
[ [ "''", "[]" ], [ "'o o o o'", "[4, 4, 4, 4]" ], [ "'.| .| .| .|'", "[1, 1, 1, 1]" ], [ "'o| o| .| .| o o o o'", "[2, 2, 1, 1, 4, 4, 4, 4]" ], [ "'o| .| o| .| o o| o o|'", "[2, 1, 2, 1, 4, 2, 4, 2]" ] ]
[ "from typing import List" ]
[ [ "'o o| .| o| o| .| .| .| .| o o'", "[4, 2, 1, 2, 2, 1, 1, 1, 1, 4, 4]" ] ]
parse_music
MultiLineInfilling/HumanEval/17/L0_L0
Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def parse_music(music_string: str) -> List[int]: """ Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat """
note_map = {'o': 4, 'o|': 2, '.|': 1} return [note_map[x] for x in music_string.split(' ') if x]
[ [ "''", "[]" ], [ "'o o o o'", "[4, 4, 4, 4]" ], [ "'.| .| .| .|'", "[1, 1, 1, 1]" ], [ "'o| o| .| .| o o o o'", "[2, 2, 1, 1, 4, 4, 4, 4]" ], [ "'o| .| o| .| o o| o o|'", "[2, 1, 2, 1, 4, 2, 4, 2]" ] ]
[ "from typing import List" ]
[ [ "'o o| .| o| o| .| .| .| .| o o'", "[4, 2, 1, 2, 2, 1, 1, 1, 1, 4, 4]" ] ]
parse_music
MultiLineInfilling/HumanEval/17/L0_L1
Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def parse_music(music_string: str) -> List[int]: """ Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat """ note_map = {'o': 4, 'o|': 2, '.|': 1}
return [note_map[x] for x in music_string.split(' ') if x]
[ [ "''", "[]" ], [ "'o o o o'", "[4, 4, 4, 4]" ], [ "'.| .| .| .|'", "[1, 1, 1, 1]" ], [ "'o| o| .| .| o o o o'", "[2, 2, 1, 1, 4, 4, 4, 4]" ], [ "'o| .| o| .| o o| o o|'", "[2, 1, 2, 1, 4, 2, 4, 2]" ] ]
[ "from typing import List" ]
[ [ "'o o| .| o| o| .| .| .| .| o o'", "[4, 2, 1, 2, 2, 1, 1, 1, 1, 4, 4]" ] ]
parse_music
MultiLineInfilling/HumanEval/17/L1_L1
Input to this function is a string representing musical notes in a special ASCII format. Your task is to parse this string and return list of integers corresponding to how many beats does each not last. Here is a legend: 'o' - whole note, lasts four beats 'o|' - half note, lasts two beats '.|' - quater note, lasts one beat
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """
for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1 return times
times = 0
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L0_L0
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """
if string[i:i+len(substring)] == substring: times += 1 return times
times = 0 for i in range(len(string) - len(substring) + 1):
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L0_L2
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """
times += 1 return times
times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring:
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L0_L3
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """
return times
times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L0_L4
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """
times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1 return times
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L0_L6
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0
if string[i:i+len(substring)] == substring: times += 1 return times
for i in range(len(string) - len(substring) + 1):
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L2_L2
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0
times += 1 return times
for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring:
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L2_L3
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0
return times
for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L2_L4
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0
for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1 return times
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L2_L6
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1):
times += 1 return times
if string[i:i+len(substring)] == substring:
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L3_L3
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1):
return times
if string[i:i+len(substring)] == substring: times += 1
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L3_L4
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1):
if string[i:i+len(substring)] == substring: times += 1 return times
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L3_L6
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring:
return times
times += 1
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L4_L4
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring:
times += 1 return times
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L4_L6
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
def how_many_times(string: str, substring: str) -> int: """ Find how many times a given substring can be found in the original string. Count overlaping cases. """ times = 0 for i in range(len(string) - len(substring) + 1): if string[i:i+len(substring)] == substring: times += 1
return times
[ [ "'', 'x'", "0" ], [ "'xyxyxyx', 'x'", "4" ], [ "'cacacacac', 'cac'", "4" ], [ "'john doe', 'john'", "1" ] ]
[]
[ [ "'', 'a'", "0" ], [ "'aaa', 'a'", "3" ], [ "'aaaa', 'aa'", "3" ] ]
how_many_times
MultiLineInfilling/HumanEval/18/L6_L6
Find how many times a given substring can be found in the original string. Count overlaping cases.
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = {
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L0
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L1
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L2
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L3
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L4
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """
value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L0_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L1
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L2
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L3
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L4
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = {
'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L1_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L2
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L3
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L4
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0,
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L2_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L3
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L4
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1,
'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L3_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L4
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2,
'three': 3, 'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L4_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L5
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3,
'four': 4, 'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L5_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L6
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5, 'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5, 'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5, 'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 }
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L11
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4,
'five': 5, 'six': 6, 'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L6_L12
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
'seven': 7, 'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'six': 6,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L7_L7
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
'eight': 8, 'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'six': 6, 'seven': 7,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L7_L8
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
'nine': 9 } return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'six': 6, 'seven': 7, 'eight': 8,
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L7_L9
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python
from typing import List def sort_numbers(numbers: str) -> str: """ Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest """ value_map = { 'zero': 0, 'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5,
} return ' '.join(sorted([x for x in numbers.split(' ') if x], key=lambda x: value_map[x]))
'six': 6, 'seven': 7, 'eight': 8, 'nine': 9
[ [ "''", "''" ], [ "'three'", "'three'" ], [ "'three five nine'", "'three five nine'" ], [ "'five zero four seven nine eight'", "'zero four five seven eight nine'" ], [ "'six five four three two one zero'", "'zero one two three four five six'" ] ]
[ "from typing import List" ]
[ [ "'three one five'", "'one three five'" ] ]
sort_numbers
MultiLineInfilling/HumanEval/19/L7_L10
Input is a space-delimited string of numberals from 'zero' to 'nine'. Valid choices are 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' and 'nine'. Return the string with numbers sorted from smallest to largest
HumanEval_MultiLineInfilling
code_infilling
[]
python
python