{"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":"fdd658ca-ba14-562e-b749-566f884f2e7f","task_key":"default--v0~2e1~2e0~5fhf--fdd658ca-ba14-562e-b749-566f884f2e7f","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf fdd658ca-ba14-562e-b749-566f884f2e7f","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import subprocess\\nfrom ipaddress import IPv4Network\\ndef task_func(ip_range):\\n\",\"complete_prompt\":\"import subprocess\\nfrom ipaddress import IPv4Network\\n\\ndef task_func(ip_range):\\n    \\\"\\\"\\\"\\n    Scans the specified IP address range and pings each IP to check if it is active.\\n    The function returns a dictionary with IP addresses as keys and a boolean value indicating\\n    their active status (True if the ping is successful, False otherwise).\\n\\n    Parameters:\\n        ip_range (str): The IP range to scan, in CIDR notation (e.g., '192.168.0.0/24').\\n\\n    Requirements:\\n    - ipaddress\\n    - subprocess\\n\\n    Returns:\\n        dict: A dictionary mapping IP addresses to their active status.\\n\\n    Raises:\\n        subprocess.CalledProcessError: If a ping command fails due to a subprocess error.\\n\\n    Examples:\\n    >>> result = task_func('192.168.1.0/24')\\n    >>> isinstance(result, dict)\\n    True\\n    >>> all(isinstance(key, str) and isinstance(value, bool) for key, value in result.items())\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Scans the specified IP address range and pings each IP to check if it is active. The function returns a dictionary with IP addresses as keys and a boolean value indicating their active status (True if the ping is successful, False otherwise).\\nThe function should raise the exception for: subprocess.CalledProcessError: If a ping command fails due to a subprocess error.\\nThe function should output with:\\n    dict: A dictionary mapping IP addresses to their active status.\\nYou should write self-contained code starting with:\\n```\\nimport subprocess\\nfrom ipaddress import IPv4Network\\ndef task_func(ip_range):\\n```\",\"libs\":\"['subprocess', 'ipaddress']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}