Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
1
1
ground_truth
stringlengths
965
502k
dataset
stringclasses
1 value
[ { "content": "from typing import List\n\n\ndef has_close_elements(numbers: List[float], threshold: float) -> bool:\n \"\"\" Check if in given list of numbers, are any two numbers closer to each other than\n given threshold.\n >>> has_close_elements([1.0, 2.0, 3.0], 0.5)\n False\n >>> has_close_el...
["\n\nimport numpy as np\n\ndef is_floats(x) -> bool:\n # check if it is float; List[float]; Tuple[float]\n if isinstance(x, float):\n return True\n if isinstance(x, (list, tuple)):\n return all(isinstance(i, float) for i in x)\n if isinstance(x, np.ndarray):\n return x.dtype == np.floa...
code_humanevalplus
[ { "content": "from typing import List\n\n\ndef separate_paren_groups(paren_string: str) -> List[str]:\n \"\"\" Input to this function is a string containing multiple groups of nested parentheses. Your goal is to\n separate those group into separate strings and return the list of those.\n Separate group...
["\n\nimport numpy as np\n\ndef is_floats(x) -> bool:\n # check if it is float; List[float]; Tuple[float]\n if isinstance(x, float):\n return True\n if isinstance(x, (list, tuple)):\n return all(isinstance(i, float) for i in x)\n if isinstance(x, np.ndarray):\n return x.dtype == np.floa...
code_humanevalplus
[ { "content": "def truncate_number(number: float) -> float:\n \"\"\" Given a positive floating point number, it can be decomposed into\n and integer part (largest integer smaller than given number) and decimals\n (leftover part always smaller than 1).\n\n Return the decimal part of the number.\n >...
["\n\nimport numpy as np\n\ndef is_floats(x) -> bool:\n # check if it is float; List[float]; Tuple[float]\n if isinstance(x, float):\n return True\n if isinstance(x, (list, tuple)):\n return all(isinstance(i, float) for i in x)\n if isinstance(x, np.ndarray):\n return x.dtype == np.floa...
code_humanevalplus
[{"content":"from typing import List\n\n\ndef below_zero(operations: List[int]) -> bool:\n \"\"\"(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List\n\n\ndef mean_absolute_deviation(numbers: List[float]) -> float(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List\n\n\ndef intersperse(numbers: List[int], delimeter: int) -> Lis(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List\n\n\ndef parse_nested_parens(paren_string: str) -> List[int]:\n(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List\n\n\ndef filter_by_substring(strings: List[str], substring: str(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List, Tuple\n\n\ndef sum_product(numbers: List[int]) -> Tuple[int, i(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
[{"content":"from typing import List, Tuple\n\n\ndef rolling_max(numbers: List[int]) -> List[int]:\n(...TRUNCATED)
"[\"\\n\\nimport numpy as np\\n\\ndef is_floats(x) -> bool:\\n # check if it is float; List[float(...TRUNCATED)
code_humanevalplus
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
28