task_name
stringclasses 1
value | src_lang
stringclasses 1
value | tgt_lang
stringclasses 1
value | data_id
stringlengths 10
12
| demos
listlengths 0
0
| compare_func
listlengths 0
0
| dataset_name
stringclasses 1
value | suffix
stringlengths 0
672
| test_cases
listlengths 0
5
| entry_func
stringlengths 3
31
| import_str
listlengths 0
1
| doc_string
stringlengths 39
252
| prefix
stringlengths 80
786
| solution
stringlengths 11
142
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code_infilling
|
python
|
python
|
MBPP/478/L3
|
[] |
[] |
MBPP_Infilling
|
[
[
"\"PYTHon\"",
"('PYTH')"
],
[
"\"FInD\"",
"('FID')"
],
[
"\"STRinG\"",
"('STRG')"
]
] |
remove_lowercase
|
[
"import re"
] |
Write a function to remove lowercase substrings from a given string.
|
import re
def remove_lowercase(str1):
"""Write a function to remove lowercase substrings from a given string. """
|
return re.sub('[a-z]', '', str1)
|
|
code_infilling
|
python
|
python
|
MBPP/479/L1
|
[] |
[] |
MBPP_Infilling
|
n = n / 10
return int(n)
|
[
[
"123",
"1"
],
[
"456",
"4"
],
[
"12",
"1"
]
] |
first_Digit
|
[] |
Write a python function to find the first digit of a given number.
|
def first_Digit(n):
"""Write a python function to find the first digit of a given number. """
|
while n >= 10:
|
code_infilling
|
python
|
python
|
MBPP/479/L2
|
[] |
[] |
MBPP_Infilling
|
return int(n)
|
[
[
"123",
"1"
],
[
"456",
"4"
],
[
"12",
"1"
]
] |
first_Digit
|
[] |
Write a python function to find the first digit of a given number.
|
def first_Digit(n):
"""Write a python function to find the first digit of a given number. """
while n >= 10:
|
n = n / 10
|
code_infilling
|
python
|
python
|
MBPP/479/L3
|
[] |
[] |
MBPP_Infilling
|
[
[
"123",
"1"
],
[
"456",
"4"
],
[
"12",
"1"
]
] |
first_Digit
|
[] |
Write a python function to find the first digit of a given number.
|
def first_Digit(n):
"""Write a python function to find the first digit of a given number. """
while n >= 10:
n = n / 10
|
return int(n)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.