{"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":"6448db4b-7fcb-5b96-9269-7690568b9bbf","task_key":"default--v0~2e1~2e0~5fhf--6448db4b-7fcb-5b96-9269-7690568b9bbf","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 6448db4b-7fcb-5b96-9269-7690568b9bbf","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import urllib.request\\nimport os\\nimport json\\nimport pandas as pd\\n# Constants\\nTARGET_JSON_FILE = \\\"downloaded_file.json\\\"\\ndef task_func(url):\\n\",\"complete_prompt\":\"import urllib.request\\nimport os\\nimport json\\nimport pandas as pd\\n\\n# Constants\\nTARGET_JSON_FILE = \\\"downloaded_file.json\\\"\\n\\n\\ndef task_func(url):\\n    \\\"\\\"\\\"\\n    This function retrieves a JSON file from the given URL using urllib.request.urlretrieve,\\n    temporarily saving it as 'downloaded_file.json'. It then opens and reads this file,\\n    converts the JSON content into a pandas DataFrame, and finally deletes the temporary JSON file.\\n\\n    Parameters:\\n    url (str): The URL of the JSON file to be downloaded.\\n\\n    Returns:\\n    pandas.DataFrame: A DataFrame constructed from the JSON data in the downloaded file.\\n\\n    Requirements:\\n    - urllib.request\\n    - os\\n    - json\\n    - pandas\\n\\n    Example:\\n    >>> task_func('http://example.com/employees.json')\\n        name  age           city\\n    0  Alice   25       New York\\n    1    Bob   30  San Francisco\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"This function retrieves a JSON file from the given URL using urllib.request.urlretrieve, temporarily saving it as 'downloaded_file.json'. It then opens and reads this file, converts the JSON content into a pandas DataFrame, and finally deletes the temporary JSON file.\\nThe function should output with:\\n    pandas.DataFrame: A DataFrame constructed from the JSON data in the downloaded file.\\nYou should write self-contained code starting with:\\n```\\nimport urllib.request\\nimport os\\nimport json\\nimport pandas as pd\\n# Constants\\nTARGET_JSON_FILE = \\\"downloaded_file.json\\\"\\ndef task_func(url):\\n```\",\"libs\":\"['pandas', 'urllib', 'os', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}