messages listlengths 3 3 |
|---|
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef has_close_elements(numbers: ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef separate_paren_groups(paren_... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef truncate_number(number: float) -> float:\n \"\"\" ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef below_zero(operations: List[... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef mean_absolute_deviation(numb... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef intersperse(numbers: List[in... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef parse_nested_parens(paren_st... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef filter_by_substring(strings:... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List, Tuple\n\n\ndef sum_product(numbers: ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List, Tuple\n\n\ndef rolling_max(numbers: ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef is_palindrome(string: str) -> bool:\n \"\"\" Test ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef string_xor(a: str, b: str) -... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List, Optional\n\n\ndef longest(strings: L... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef greatest_common_divisor(a: int, b: int) -> int:\n ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef all_prefixes(string: str) ->... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef string_sequence(n: int) -> str:\n \"\"\" Return a ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef count_distinct_characters(string: str) -> int:\n \... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef parse_music(music_string: st... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef how_many_times(string: str, substring: str) -> int:\n... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef sort_numbers(numbers: str) -... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List, Tuple\n\n\ndef find_closest_elements... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef rescale_to_unit(numbers: Lis... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List, Any\n\n\ndef filter_integers(values:... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef strlen(string: str) -> int:\n \"\"\" Return length... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef largest_divisor(n: int) -> int:\n \"\"\" For a giv... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef factorize(n: int) -> List[in... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef remove_duplicates(numbers: L... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef flip_case(string: str) -> str:\n \"\"\" For a give... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef concatenate(strings: List[st... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nfrom typing import List\n\n\ndef filter_by_prefix(strings: Li... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef get_positive(l: list):\n \"\"\"Return only positiv... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef is_prime(n):\n \"\"\"Return true if a given number... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\nimport math\n\n\ndef poly(xs: list, x: float):\n \"\"\"\n ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef sort_third(l: list):\n \"\"\"This function takes a... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef unique(l: list):\n \"\"\"Return sorted unique elem... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef max_element(l: list):\n \"\"\"Return maximum eleme... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef fizz_buzz(n: int):\n \"\"\"Return the number of ti... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef sort_even(l: list):\n \"\"\"This function takes a ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef encode_cyclic(s: str):\n \"\"\"\n returns encod... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef prime_fib(n: int):\n \"\"\"\n prime_fib returns... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef triples_sum_to_zero(l: list):\n \"\"\"\n triple... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef car_race_collision(n: int):\n \"\"\"\n Imagine ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef incr_list(l: list):\n \"\"\"Return list with eleme... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef pairs_sum_to_zero(l):\n \"\"\"\n pairs_sum_to_z... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef change_base(x: int, base: int):\n \"\"\"Change num... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef triangle_area(a, h):\n \"\"\"Given length of a sid... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef fib4(n: int):\n \"\"\"The Fib4 number sequence is ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef median(l: list):\n \"\"\"Return median of elements... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef is_palindrome(text: str):\n \"\"\"\n Checks if ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef modp(n: int, p: int):\n \"\"\"Return 2^n modulo p ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef encode_shift(s: str):\n \"\"\"\n returns encode... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef remove_vowels(text):\n \"\"\"\n remove_vowels i... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef below_threshold(l: list, t: int):\n \"\"\"Return T... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef add(x: int, y: int):\n \"\"\"Add two numbers x and... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef same_chars(s0: str, s1: str):\n \"\"\"\n Check ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef fib(n: int):\n \"\"\"Return n-th Fibonacci number.... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef correct_bracketing(brackets: str):\n \"\"\" bracke... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef monotonic(l: list):\n \"\"\"Return True is list el... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef common(l1: list, l2: list):\n \"\"\"Return sorted ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef largest_prime_factor(n: int):\n \"\"\"Return the l... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef sum_to_n(n: int):\n \"\"\"sum_to_n is a function t... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef correct_bracketing(brackets: str):\n \"\"\" bracke... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef derivative(xs: list):\n \"\"\" xs represent coeffi... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef fibfib(n: int):\n \"\"\"The FibFib number sequence... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\nFIX = \"\"\"\nAdd more test cases.\n\"\"\"\n\ndef vowels_co... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef circular_shift(x, shift):\n \"\"\"Circular shift the... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef digitSum(s):\n \"\"\"Task\n Write a function that... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef fruit_distribution(s,n):\n \"\"\"\n In this task,... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef pluck(arr):\n \"\"\"\n \"Given an array represent... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef search(lst):\n '''\n You are given a non-empty li... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef strange_sort_list(lst):\n '''\n Given list of int... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef triangle_area(a, b, c):\n '''\n Given the lengths... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef will_it_fly(q,w):\n '''\n Write a function that r... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef smallest_change(arr):\n \"\"\"\n Given an array a... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef total_match(lst1, lst2):\n '''\n Write a function... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef is_multiply_prime(a):\n \"\"\"Write a function that ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef is_simple_power(x, n):\n \"\"\"Your task is to write... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef iscube(a):\n '''\n Write a function that takes an... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef hex_key(num):\n \"\"\"You have been tasked to write ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef decimal_to_binary(decimal):\n \"\"\"You will be give... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef is_happy(s):\n \"\"\"You are given a string s.\n ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef numerical_letter_grade(grades):\n \"\"\"It is the la... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef prime_length(string):\n \"\"\"Write a function that ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef starts_one_ends(n):\n \"\"\"\n Given a positive i... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef solve(N):\n \"\"\"Given a positive integer N, return... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef add(lst):\n \"\"\"Given a non-empty list of integers... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef anti_shuffle(s):\n \"\"\"\n Write a function that... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef get_row(lst, x):\n \"\"\"\n You are given a 2 dim... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef sort_array(array):\n \"\"\"\n Given an array of n... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef encrypt(s):\n \"\"\"Create a function encrypt that t... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef next_smallest(lst):\n \"\"\"\n You are given a li... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef is_bored(S):\n \"\"\"\n You'll be given a string ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef any_int(x, y, z):\n '''\n Create a function that ... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef encode(message):\n \"\"\"\n Write a function that... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\n\ndef skjkasdkd(lst):\n \"\"\"You are given a list of in... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef check_dict_case(dict):\n \"\"\"\n Given a diction... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef count_up_to(n):\n \"\"\"Implement a function that ta... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef multiply(a, b):\n \"\"\"Complete the function that t... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef count_upper(s):\n \"\"\"\n Given a string s, coun... |
[
{
"content": "\nComplete the given code snippet under the CODE field based on its function signature and examples. You may use the additional context given in the CONTEXT field if required.\n",
"role": "system"
},
{
"content": "\nCODE:\n\n\ndef closest_integer(value):\n '''\n Create a function... |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7