{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"bigcodebench","formal_name":"BigCodeBench","introduction":"BigCodeBench poses 1,140 function-level tasks drawn across 139 libraries. It tests whether a model can compose several real APIs correctly rather than write one self-contained function.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://bigcode-bench.github.io/","indexing_mode":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"56033861-cbba-5ac8-a404-74af7c0e00d6","task_key":"default--v0~2e1~2e0~5fhf--56033861-cbba-5ac8-a404-74af7c0e00d6","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 56033861-cbba-5ac8-a404-74af7c0e00d6","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from itertools import combinations\\nimport pandas as pd\\ndef task_func(number_list, element):\\n\",\"complete_prompt\":\"from itertools import combinations\\nimport pandas as pd\\n\\n\\ndef task_func(number_list, element):\\n    \\\"\\\"\\\"\\n    Find all unique combinations of 3 numbers from a list that add up to a certain element.\\n\\n    If the number_list is empty, or there is no combination that adds up to the element,\\n    an empty dataframe is returned.\\n    \\n\\n    Parameters:\\n    number_list (list): The list of numbers.\\n    element (int): The number to which the combination of 3 numbers should add up.\\n\\n    Returns:\\n    Pandas DataFrame: A pandas Dataframe with the column 'Combinations',\\n         where each row contains a tuple containing a unique combination of 3 numbers that add up to the element.\\n\\n    Requirements:\\n    - itertools\\n    - pandas:\\n\\n    Example:\\n    >>> result = task_func([1, 2, 3, 4, 5], 6)\\n    >>> print(result)    \\n      Combinations\\n    0    (1, 2, 3)\\n\\n    >>> result = task_func([-1, 1, 0, -2, 2, 3], 0)\\n    >>> print(result) \\n      Combinations\\n    0  (-1, -2, 3)\\n    1   (-1, 1, 0)\\n    2   (0, -2, 2)\\n\\n    >>> result = task_func([], 0)\\n    >>> print(result)\\n    Empty DataFrame\\n    Columns: [Combinations]\\n    Index: []\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Find all unique combinations of 3 numbers from a list that add up to a certain element. If the number_list is empty, or there is no combination that adds up to the element, an empty dataframe is returned. >>> result = task_func([-1, 1, 0, -2, 2, 3], 0) >>> print(result) Combinations 0  (-1, -2, 3) 1   (-1, 1, 0) 2   (0, -2, 2) >>> result = task_func([], 0) >>> print(result) Empty DataFrame Columns: [Combinations] Index: []\\nThe function should output with:\\n    Pandas DataFrame: A pandas Dataframe with the column 'Combinations',\\n    where each row contains a tuple containing a unique combination of 3 numbers that add up to the element.\\nYou should write self-contained code starting with:\\n```\\nfrom itertools import combinations\\nimport pandas as pd\\ndef task_func(number_list, element):\\n```\",\"libs\":\"['pandas', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}