{"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":"bd999e8d-e5f7-5cb4-8a18-d17fce9d5f6b","task_key":"default--v0~2e1~2e0~5fhf--bd999e8d-e5f7-5cb4-8a18-d17fce9d5f6b","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf bd999e8d-e5f7-5cb4-8a18-d17fce9d5f6b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport random\\nimport itertools\\nimport pandas as pd\\n# Constants\\nPLANETS = [\\n    \\\"Mercury\\\",\\n    \\\"Venus\\\",\\n    \\\"Earth\\\",\\n    \\\"Mars\\\",\\n    \\\"Jupiter\\\",\\n    \\\"Saturn\\\",\\n    \\\"Uranus\\\",\\n    \\\"Neptune\\\",\\n]\\nELEMENTS = [\\n    \\\"Hydrogen\\\",\\n    \\\"Helium\\\",\\n    \\\"Oxygen\\\",\\n    \\\"Carbon\\\",\\n    \\\"Nitrogen\\\",\\n    \\\"Magnesium\\\",\\n    \\\"Silicon\\\",\\n    \\\"Iron\\\",\\n    \\\"Nickel\\\",\\n]\\ndef task_func():\\n\",\"complete_prompt\":\"import numpy as np\\nimport random\\nimport itertools\\nimport pandas as pd\\n\\n# Constants\\nPLANETS = [\\n    \\\"Mercury\\\",\\n    \\\"Venus\\\",\\n    \\\"Earth\\\",\\n    \\\"Mars\\\",\\n    \\\"Jupiter\\\",\\n    \\\"Saturn\\\",\\n    \\\"Uranus\\\",\\n    \\\"Neptune\\\",\\n]\\nELEMENTS = [\\n    \\\"Hydrogen\\\",\\n    \\\"Helium\\\",\\n    \\\"Oxygen\\\",\\n    \\\"Carbon\\\",\\n    \\\"Nitrogen\\\",\\n    \\\"Magnesium\\\",\\n    \\\"Silicon\\\",\\n    \\\"Iron\\\",\\n    \\\"Nickel\\\",\\n]\\n\\n\\ndef task_func():\\n    \\\"\\\"\\\"\\n    Generate a DataFrame where each row contains random planet-element pairs.\\n    Each pair is formatted as 'Planet:Element'. The number of rows is determined by\\n    the number of planets, and each row will contain as many planet-element pairs as there are elements.\\n\\n    Parameters:\\n    - None\\n\\n    Returns:\\n    pandas.DataFrame: A DataFrame where each cell contains a string in the format 'Planet:Element'.\\n                      The DataFrame has a number of rows equal to the number of planets and\\n                      a number of columns equal to the number of elements.\\n\\n    Requirements:\\n    - numpy\\n    - random\\n    - itertools\\n    - pandas\\n\\n    Example:\\n    >>> random.seed(0)\\n    >>> planet_elements_table = task_func()\\n    >>> planet_elements_table.head(2)\\n              Hydrogen         Helium  ...          Iron         Nickel\\n    0   Uranus:Silicon  Earth:Silicon  ...  Earth:Nickel  Uranus:Helium\\n    1  Venus:Magnesium  Saturn:Helium  ...  Mercury:Iron   Venus:Helium\\n    <BLANKLINE>\\n    [2 rows x 9 columns]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a DataFrame where each row contains random planet-element pairs. Each pair is formatted as 'Planet:Element'. The number of rows is determined by the number of planets, and each row will contain as many planet-element pairs as there are elements.\\nThe function should output with:\\n    pandas.DataFrame: A DataFrame where each cell contains a string in the format 'Planet:Element'.\\n    The DataFrame has a number of rows equal to the number of planets and\\n    a number of columns equal to the number of elements.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport random\\nimport itertools\\nimport pandas as pd\\n# Constants\\nPLANETS = [\\n    \\\"Mercury\\\",\\n    \\\"Venus\\\",\\n    \\\"Earth\\\",\\n    \\\"Mars\\\",\\n    \\\"Jupiter\\\",\\n    \\\"Saturn\\\",\\n    \\\"Uranus\\\",\\n    \\\"Neptune\\\",\\n]\\nELEMENTS = [\\n    \\\"Hydrogen\\\",\\n    \\\"Helium\\\",\\n    \\\"Oxygen\\\",\\n    \\\"Carbon\\\",\\n    \\\"Nitrogen\\\",\\n    \\\"Magnesium\\\",\\n    \\\"Silicon\\\",\\n    \\\"Iron\\\",\\n    \\\"Nickel\\\",\\n]\\ndef task_func():\\n```\",\"libs\":\"['pandas', 'numpy', 'itertools', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}