{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"509c143f-7f20-5e98-9332-cf566960008d","task_key":"default--v0~2e1~2e0~5fhf--509c143f-7f20-5e98-9332-cf566960008d","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 509c143f-7f20-5e98-9332-cf566960008d","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nimport urllib.request\\nimport urllib.parse\\nimport gzip\\ndef task_func(url_str, file_path):\\n\",\"complete_prompt\":\"import json\\nimport urllib.request\\nimport urllib.parse\\nimport gzip\\n\\ndef task_func(url_str, file_path):\\n    \\\"\\\"\\\"\\n    Fetches JSON data from a given URL, decodes the json-formatted data, and compresses it into a gzip file.\\n\\n    Parameters:\\n        url_str (str): The URL string pointing to the JSON data.\\n        file_path (str): The path where the compressed gzip file should be saved.\\n\\n    Returns:\\n        str: The path to the compressed gzip file containing the JSON data.\\n\\n    Requirements:\\n    - json\\n    - urllib.request\\n    - urllib.parse\\n    - gzip\\n\\n    Examples:\\n    >>> isinstance(task_func('http://example.com/data.json', '/path/to/file.json.gz'), str)\\n    True\\n    >>> task_func('http://example.com/data.json', '/path/to/file.json.gz').endswith('.gz')\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Fetches JSON data from a given URL, decodes the json-formatted data, and compresses it into a gzip file.\\nThe function should output with:\\n    str: The path to the compressed gzip file containing the JSON data.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nimport urllib.request\\nimport urllib.parse\\nimport gzip\\ndef task_func(url_str, file_path):\\n```\",\"libs\":\"['urllib', 'gzip', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}