context listlengths 1 1 | gen_kwargs dict | repeat_idx int64 0 0 | request_idx int64 0 163 | task_name stringclasses 1 value | metadata dict |
|---|---|---|---|---|---|
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef has_close_elements(numbers: List[float], thr... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 0 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef separate_paren_groups(paren_string: str) -> ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 1 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef truncate_number(number: float) -> float:\n \"\"\" Given a positive flo... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 2 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef below_zero(operations: List[int]) -> bool:\n... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 3 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef mean_absolute_deviation(numbers: List[float]... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 4 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef intersperse(numbers: List[int], delimeter: i... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 5 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef parse_nested_parens(paren_string: str) -> Li... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 6 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef filter_by_substring(strings: List[str], subs... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 7 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List, Tuple\n\n\ndef sum_product(numbers: List[int]) -> Tu... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 8 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List, Tuple\n\n\ndef rolling_max(numbers: List[int]) -> Li... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 9 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_palindrome(string: str) -> bool:\n \"\"\" Test if given string is a... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 10 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef string_xor(a: str, b: str) -> str:\n \"\"... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 11 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List, Optional\n\n\ndef longest(strings: List[str]) -> Opt... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 12 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef greatest_common_divisor(a: int, b: int) -> int:\n \"\"\" Return a grea... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 13 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef all_prefixes(string: str) -> List[str]:\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 14 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef string_sequence(n: int) -> str:\n \"\"\" Return a string containing sp... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 15 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef count_distinct_characters(string: str) -> int:\n \"\"\" Given a string... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 16 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef parse_music(music_string: str) -> List[int]:... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 17 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef how_many_times(string: str, substring: str) -> int:\n \"\"\" Find how ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 18 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef sort_numbers(numbers: str) -> str:\n \"\"... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 19 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List, Tuple\n\n\ndef find_closest_elements(numbers: List[f... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 20 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef rescale_to_unit(numbers: List[float]) -> Lis... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 21 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List, Any\n\n\ndef filter_integers(values: List[Any]) -> L... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 22 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef strlen(string: str) -> int:\n \"\"\" Return length of given string\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 23 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef largest_divisor(n: int) -> int:\n \"\"\" For a given number n, find th... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 24 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef factorize(n: int) -> List[int]:\n \"\"\" ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 25 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef remove_duplicates(numbers: List[int]) -> Lis... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 26 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef flip_case(string: str) -> str:\n \"\"\" For a given string, flip lower... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 27 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef concatenate(strings: List[str]) -> str:\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 28 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nfrom typing import List\n\n\ndef filter_by_prefix(strings: List[str], prefix:... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 29 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef get_positive(l: list):\n \"\"\"Return only positive numbers in the lis... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 30 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_prime(n):\n \"\"\"Return true if a given number is prime, and false... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 31 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nimport math\n\n\ndef poly(xs: list, x: float):\n \"\"\"\n Evaluates pol... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 32 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef sort_third(l: list):\n \"\"\"This function takes a list l and returns ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 33 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef unique(l: list):\n \"\"\"Return sorted unique elements in a list\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 34 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef max_element(l: list):\n \"\"\"Return maximum element in the list.\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 35 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef fizz_buzz(n: int):\n \"\"\"Return the number of times the digit 7 appe... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 36 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef sort_even(l: list):\n \"\"\"This function takes a list l and returns a... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 37 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef encode_cyclic(s: str):\n \"\"\"\n returns encoded string by cycling... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 38 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef prime_fib(n: int):\n \"\"\"\n prime_fib returns n-th number that is... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 39 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef triples_sum_to_zero(l: list):\n \"\"\"\n triples_sum_to_zero takes ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 40 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef car_race_collision(n: int):\n \"\"\"\n Imagine a road that's a perf... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 41 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef incr_list(l: list):\n \"\"\"Return list with elements incremented by 1... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 42 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef pairs_sum_to_zero(l):\n \"\"\"\n pairs_sum_to_zero takes a list of ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 43 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef change_base(x: int, base: int):\n \"\"\"Change numerical base of input... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 44 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef triangle_area(a, h):\n \"\"\"Given length of a side and high return ar... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 45 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef fib4(n: int):\n \"\"\"The Fib4 number sequence is a sequence similar t... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 46 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef median(l: list):\n \"\"\"Return median of elements in the list l.\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 47 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_palindrome(text: str):\n \"\"\"\n Checks if given string is a pa... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 48 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef modp(n: int, p: int):\n \"\"\"Return 2^n modulo p (be aware of numeric... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 49 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef encode_shift(s: str):\n \"\"\"\n returns encoded string by shifting... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 50 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef remove_vowels(text):\n \"\"\"\n remove_vowels is a function that ta... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 51 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef below_threshold(l: list, t: int):\n \"\"\"Return True if all numbers i... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 52 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef add(x: int, y: int):\n \"\"\"Add two numbers x and y\n >>> add(2, 3... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 53 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef same_chars(s0: str, s1: str):\n \"\"\"\n Check if two words have th... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 54 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef fib(n: int):\n \"\"\"Return n-th Fibonacci number.\n >>> fib(10)\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 55 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef correct_bracketing(brackets: str):\n \"\"\" brackets is a string of \"... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 56 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef monotonic(l: list):\n \"\"\"Return True is list elements are monotonic... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 57 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef common(l1: list, l2: list):\n \"\"\"Return sorted unique common elemen... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 58 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef largest_prime_factor(n: int):\n \"\"\"Return the largest prime factor ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 59 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef sum_to_n(n: int):\n \"\"\"sum_to_n is a function that sums numbers fro... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 60 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef correct_bracketing(brackets: str):\n \"\"\" brackets is a string of \"... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 61 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef derivative(xs: list):\n \"\"\" xs represent coefficients of a polynomi... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 62 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef fibfib(n: int):\n \"\"\"The FibFib number sequence is a sequence simil... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 63 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\nFIX = \"\"\"\nAdd more test cases.\n\"\"\"\n\ndef vowels_count(s):\n \"\"\... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 64 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef circular_shift(x, shift):\n \"\"\"Circular shift the digits of the int... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 65 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef digitSum(s):\n \"\"\"Task\n Write a function that takes a string as... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 66 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef fruit_distribution(s,n):\n \"\"\"\n In this task, you will be given... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 67 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef pluck(arr):\n \"\"\"\n \"Given an array representing a branch of a ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 68 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef search(lst):\n '''\n You are given a non-empty list of positive int... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 69 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef strange_sort_list(lst):\n '''\n Given list of integers, return list... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 70 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef triangle_area(a, b, c):\n '''\n Given the lengths of the three side... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 71 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef will_it_fly(q,w):\n '''\n Write a function that returns True if the... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 72 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef smallest_change(arr):\n \"\"\"\n Given an array arr of integers, fi... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 73 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef total_match(lst1, lst2):\n '''\n Write a function that accepts two ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 74 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_multiply_prime(a):\n \"\"\"Write a function that returns true if th... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 75 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_simple_power(x, n):\n \"\"\"Your task is to write a function that r... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 76 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef iscube(a):\n '''\n Write a function that takes an integer a and ret... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 77 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef hex_key(num):\n \"\"\"You have been tasked to write a function that re... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 78 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef decimal_to_binary(decimal):\n \"\"\"You will be given a number in deci... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 79 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_happy(s):\n \"\"\"You are given a string s.\n Your task is to ch... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 80 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef numerical_letter_grade(grades):\n \"\"\"It is the last week of the sem... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 81 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef prime_length(string):\n \"\"\"Write a function that takes a string and... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 82 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef starts_one_ends(n):\n \"\"\"\n Given a positive integer n, return t... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 83 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef solve(N):\n \"\"\"Given a positive integer N, return the total sum of ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 84 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef add(lst):\n \"\"\"Given a non-empty list of integers lst. add the even... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 85 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef anti_shuffle(s):\n \"\"\"\n Write a function that takes a string an... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 86 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef get_row(lst, x):\n \"\"\"\n You are given a 2 dimensional data, as ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 87 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef sort_array(array):\n \"\"\"\n Given an array of non-negative intege... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 88 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef encrypt(s):\n \"\"\"Create a function encrypt that takes a string as a... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 89 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef next_smallest(lst):\n \"\"\"\n You are given a list of integers.\n ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 90 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef is_bored(S):\n \"\"\"\n You'll be given a string of words, and your... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 91 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef any_int(x, y, z):\n '''\n Create a function that takes 3 numbers.\n... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 92 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef encode(message):\n \"\"\"\n Write a function that takes a message, ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 93 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef skjkasdkd(lst):\n \"\"\"You are given a list of integers.\n You nee... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 94 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef check_dict_case(dict):\n \"\"\"\n Given a dictionary, return True i... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 95 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef count_up_to(n):\n \"\"\"Implement a function that takes an non-negativ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 96 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef multiply(a, b):\n \"\"\"Complete the function that takes two integers ... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 97 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef count_upper(s):\n \"\"\"\n Given a string s, count the number of up... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 98 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
[
{
"content": "Please continue to complete the function. You are not allowed to modify the given code and do the completion only. Please return all completed function in a codeblock. Here is the given code to do completion:\n```python\ndef closest_integer(value):\n '''\n Create a function that takes a valu... | {
"do_sample": false,
"max_new_tokens": 1024
} | 0 | 99 | HumanEvalPlus | {
"expected_answer": "",
"problem_id": "",
"reference_solution": ""
} |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 8