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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return False
return True
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L8 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return False
return True
f = [0, 1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L9 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return False
return True
f = [0, 1]
while True:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L10 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return False
return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L11 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| n -= 1
if n == 0:
return f[-1]
| return False
return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| if n == 0:
return f[-1]
| return False
return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| return f[-1]
| return False
return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
| return False
return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L7_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return True
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L8 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return True
f = [0, 1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L9 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return True
f = [0, 1]
while True:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L10 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L11 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return True
f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L8_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| f = [0, 1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L9 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| f = [0, 1]
while True:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L10 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| f = [0, 1]
while True:
f.append(f[-1] + f[-2])
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L11 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f = [0, 1]
while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L9_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| while True:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L10 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| while True:
f.append(f[-1] + f[-2])
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L11 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | while True:
f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L10_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| f.append(f[-1] + f[-2])
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L11_L11 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| f.append(f[-1] + f[-2])
if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L11_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L11_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L11_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | f.append(f[-1] + f[-2])
if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L11_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| if is_prime(f[-1]):
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L12_L12 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| if is_prime(f[-1]):
n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L12_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| if is_prime(f[-1]):
n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L12_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if is_prime(f[-1]):
n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L12_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| n -= 1
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L13_L13 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| n -= 1
if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L13_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | n -= 1
if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L13_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| if n == 0:
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L14_L14 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | if n == 0:
return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L14_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def prime_fib(n: int):
"""
prime_fib returns n-th number that is a Fibonacci number and it's also prime.
"""
import math
def is_prime(p):
if p < 2:
return False
for k in range(2, min(int(math.sqrt(p)) + 1, p - 1)):
if p % k == 0:
return Fals... | return f[-1]
| [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
],
[
"6",
"233"
],
[
"7",
"1597"
],
[
"8",
"28657"
],
[
"9",
"514229"
],
[
"10",
"433494437"
]
] | [] | [
[
"1",
"2"
],
[
"2",
"3"
],
[
"3",
"5"
],
[
"4",
"13"
],
[
"5",
"89"
]
] | prime_fib | MultiLineInfilling/HumanEval/39/L15_L15 | prime_fib returns n-th number that is a Fibonacci number and it's also prime. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| for i in range(len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L0 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| for i in range(len(l)):
for j in range(i + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L1 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| if l[i] + l[j] + l[k] == 0:
return True
return False
| for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L2 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| return True
return False
| for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L3 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| return False
| for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L4 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
| for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L0_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
| for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| for j in range(i + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L1_L1 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
| if l[i] + l[j] + l[k] == 0:
return True
return False
| for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L1_L2 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
| return True
return False
| for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L1_L3 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
| return False
| for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L1_L4 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
| for j in range(i + 1, len(l)):
for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L1_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
| if l[i] + l[j] + l[k] == 0:
return True
return False
| for k in range(j + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L2_L2 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
| return True
return False
| for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L2_L3 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
| return False
| for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L2_L4 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
| for k in range(j + 1, len(l)):
if l[i] + l[j] + l[k] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L2_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | return True
return False
| if l[i] + l[j] + l[k] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L3_L3 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | return False
| if l[i] + l[j] + l[k] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L3_L4 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | if l[i] + l[j] + l[k] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L3_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | return False
| return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L4_L4 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L4_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triples_sum_to_zero(l: list):
"""
triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise.
"""
for i in range(len(l)):
for j in range(i + 1, len(l)):
for k in range... | return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, 5, -1]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[1, 2, 5, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[1, 3, 5, -100]",
"F... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"True"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 9, 7]",
"True"
],
[
"[1]",
"False"
]
] | triples_sum_to_zero | MultiLineInfilling/HumanEval/40/L5_L5 | triples_sum_to_zero takes a list of integers as an input.
it returns True if there are three distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def car_race_collision(n: int):
"""
Imagine a road that's a perfectly straight infinitely long line.
n cars are driving left to right; simultaneously, a different set of n cars
are driving right to left. The two sets of cars start out being very far from
each other. All cars move in the same s... | return n**2
| [
[
"2",
"4"
],
[
"3",
"9"
],
[
"4",
"16"
],
[
"8",
"64"
],
[
"10",
"100"
]
] | [] | [] | car_race_collision | MultiLineInfilling/HumanEval/41/L0_L0 | Imagine a road that's a perfectly straight infinitely long line.
n cars are driving left to right; simultaneously, a different set of n cars
are driving right to left. The two sets of cars start out being very far from
each other. All cars move in the same speed. Two cars are said to collide
when a... | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def incr_list(l: list):
"""Return list with elements incremented by 1.
"""
| return [(e + 1) for e in l]
| [
[
"[]",
"[]"
],
[
"[3, 2, 1]",
"[4, 3, 2]"
],
[
"[5, 2, 5, 2, 3, 3, 9, 0, 123]",
"[6, 3, 6, 3, 4, 4, 10, 1, 124]"
]
] | [] | [
[
"[1, 2, 3]",
"[2, 3, 4]"
],
[
"[5, 3, 5, 2, 3, 3, 9, 0, 123]",
"[6, 4, 6, 3, 4, 4, 10, 1, 124]"
]
] | incr_list | MultiLineInfilling/HumanEval/42/L0_L0 | Return list with elements incremented by 1. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
| for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
return True
return False
| for i, l1 in enumerate(l):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L0_L0 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
| if l1 + l[j] == 0:
return True
return False
| for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L0_L1 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
| return True
return False
| for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L0_L2 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
| return False
| for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L0_L3 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
| for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L0_L4 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
| if l1 + l[j] == 0:
return True
return False
| for j in range(i + 1, len(l)):
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L1_L1 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
| return True
return False
| for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L1_L2 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
| return False
| for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L1_L3 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
| for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L1_L4 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
| return True
return False
| if l1 + l[j] == 0:
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L2_L2 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
| return False
| if l1 + l[j] == 0:
return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L2_L3 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
| if l1 + l[j] == 0:
return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L2_L4 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
| return False
| return True
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L3_L3 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
| return True
return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L3_L4 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def pairs_sum_to_zero(l):
"""
pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise.
"""
for i, l1 in enumerate(l):
for j in range(i + 1, len(l)):
if l1 + l[j] == 0:
... | return False
| [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
],
[
"[-3, 9, -1, 3, 2, 30]",
"True"
],
[
"[-3, 9, -1, 3, 2, 31]",
"True"
],
[
"[-3, 9, ... | [] | [
[
"[1, 3, 5, 0]",
"False"
],
[
"[1, 3, -2, 1]",
"False"
],
[
"[1, 2, 3, 7]",
"False"
],
[
"[2, 4, -5, 3, 5, 7]",
"True"
],
[
"[1]",
"False"
]
] | pairs_sum_to_zero | MultiLineInfilling/HumanEval/43/L4_L4 | pairs_sum_to_zero takes a list of integers as an input.
it returns True if there are two distinct elements in the list that
sum to zero, and False otherwise. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
| while x > 0:
ret = str(x % base) + ret
x //= base
return ret
| ret = ""
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L0_L0 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
| ret = str(x % base) + ret
x //= base
return ret
| ret = ""
while x > 0:
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L0_L1 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
| x //= base
return ret
| ret = ""
while x > 0:
ret = str(x % base) + ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L0_L2 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
| return ret
| ret = ""
while x > 0:
ret = str(x % base) + ret
x //= base
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L0_L3 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
| ret = ""
while x > 0:
ret = str(x % base) + ret
x //= base
return ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L0_L4 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
| ret = str(x % base) + ret
x //= base
return ret
| while x > 0:
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L1_L1 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
| x //= base
return ret
| while x > 0:
ret = str(x % base) + ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L1_L2 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
| return ret
| while x > 0:
ret = str(x % base) + ret
x //= base
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L1_L3 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
| while x > 0:
ret = str(x % base) + ret
x //= base
return ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L1_L4 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
| x //= base
return ret
| ret = str(x % base) + ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L2_L2 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
| return ret
| ret = str(x % base) + ret
x //= base
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L2_L3 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
| ret = str(x % base) + ret
x //= base
return ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L2_L4 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
ret = str(x % base) + ret
| return ret
| x //= base
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L3_L3 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
ret = str(x % base) + ret
| x //= base
return ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L3_L4 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def change_base(x: int, base: int):
"""Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10.
"""
ret = ""
while x > 0:
ret = str(x % base) + ret
x //= base
| return ret
| [
[
"8, 3",
"\"22\""
],
[
"9, 3",
"\"100\""
],
[
"234, 2",
"\"11101010\""
],
[
"16, 2",
"\"10000\""
],
[
"8, 2",
"\"1000\""
],
[
"7, 2",
"\"111\""
]
] | [] | [
[
"8, 3",
"'22'"
],
[
"8, 2",
"'1000'"
],
[
"7, 2",
"'111'"
]
] | change_base | MultiLineInfilling/HumanEval/44/L4_L4 | Change numerical base of input number x to base.
return string representation after the conversion.
base numbers are less than 10. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def triangle_area(a, h):
"""Given length of a side and high return area for a triangle.
"""
| return a * h / 2.0
| [
[
"5, 3",
"7.5"
],
[
"2, 2",
"2.0"
],
[
"10, 8",
"40.0"
]
] | [] | [
[
"5, 3",
"7.5"
]
] | triangle_area | MultiLineInfilling/HumanEval/45/L0_L0 | Given length of a side and high return area for a triangle. | HumanEval_MultiLineInfilling | code_infilling | [] | python | python | |
def fib4(n: int):
"""The Fib4 number sequence is a sequence similar to the Fibbonacci sequnece that's defined as follows:
fib4(0) -> 0
fib4(1) -> 0
fib4(2) -> 2
fib4(3) -> 0
fib4(n) -> fib4(n-1) + fib4(n-2) + fib4(n-3) + fib4(n-4).
Please write a function to efficiently compute the n-th el... | if n < 4:
return results[n]
for _ in range(4, n + 1):
results.append(results[-1] + results[-2] + results[-3] + results[-4])
results.pop(0)
return results[-1]
| results = [0, 0, 2, 0]
| [
[
"5",
"4"
],
[
"8",
"28"
],
[
"10",
"104"
],
[
"12",
"386"
]
] | [] | [
[
"5",
"4"
],
[
"6",
"8"
],
[
"7",
"14"
]
] | fib4 | MultiLineInfilling/HumanEval/46/L0_L0 | The Fib4 number sequence is a sequence similar to the Fibbonacci sequnece that's defined as follows:
fib4(0) -> 0
fib4(1) -> 0
fib4(2) -> 2
fib4(3) -> 0
fib4(n) -> fib4(n-1) + fib4(n-2) + fib4(n-3) + fib4(n-4).
Please write a function to efficiently compute the n-th element of the fib4 number se... | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
def fib4(n: int):
"""The Fib4 number sequence is a sequence similar to the Fibbonacci sequnece that's defined as follows:
fib4(0) -> 0
fib4(1) -> 0
fib4(2) -> 2
fib4(3) -> 0
fib4(n) -> fib4(n-1) + fib4(n-2) + fib4(n-3) + fib4(n-4).
Please write a function to efficiently compute the n-th el... | return results[n]
for _ in range(4, n + 1):
results.append(results[-1] + results[-2] + results[-3] + results[-4])
results.pop(0)
return results[-1]
| results = [0, 0, 2, 0]
if n < 4:
| [
[
"5",
"4"
],
[
"8",
"28"
],
[
"10",
"104"
],
[
"12",
"386"
]
] | [] | [
[
"5",
"4"
],
[
"6",
"8"
],
[
"7",
"14"
]
] | fib4 | MultiLineInfilling/HumanEval/46/L0_L1 | The Fib4 number sequence is a sequence similar to the Fibbonacci sequnece that's defined as follows:
fib4(0) -> 0
fib4(1) -> 0
fib4(2) -> 2
fib4(3) -> 0
fib4(n) -> fib4(n-1) + fib4(n-2) + fib4(n-3) + fib4(n-4).
Please write a function to efficiently compute the n-th element of the fib4 number se... | HumanEval_MultiLineInfilling | code_infilling | [] | python | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.