{"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":"26542789-dbc7-5feb-ad6e-3d752373c47e","task_key":"default--v0~2e1~2e0~5fhf--26542789-dbc7-5feb-ad6e-3d752373c47e","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 26542789-dbc7-5feb-ad6e-3d752373c47e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import struct\\nimport io\\nimport gzip\\ndef task_func(newArray):\\n\",\"complete_prompt\":\"import struct\\nimport io\\nimport gzip\\n\\ndef task_func(newArray):\\n    \\\"\\\"\\\"\\n    Compresses a given NumPy array using gzip compression and returns the compressed data.\\n\\n    This method takes a NumPy array as input, compresses it using gzip, and returns the compressed data as bytes.\\n    It is useful for efficiently handling large datasets, especially when saving space is a concern.\\n    The function utilizes the struct module to pack the array elements into bytes before compressing them.\\n    The compressed data can then be used for storage or transmission purposes where space efficiency is crucial.\\n\\n    Parameters:\\n        newArray (numpy.array): The NumPy array to be compressed. The array should contain numerical data.\\n\\n    Returns:\\n        bytes: The gzipped data of the NumPy array.\\n\\n    Requirements:\\n    - struct\\n    - io\\n    - gzip\\n\\n    Examples:\\n    >>> isinstance(task_func(np.array([1, 2, 3])), bytes)\\n    True\\n    >>> len(task_func(np.array([1, 2, 3, 4, 5]))) > 0\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Compresses a given NumPy array using gzip compression and returns the compressed data. This method takes a NumPy array as input, compresses it using gzip, and returns the compressed data as bytes. It is useful for efficiently handling large datasets, especially when saving space is a concern. The function utilizes the struct module to pack the array elements into bytes before compressing them. The compressed data can then be used for storage or transmission purposes where space efficiency is crucial.\\nThe function should output with:\\n    bytes: The gzipped data of the NumPy array.\\nYou should write self-contained code starting with:\\n```\\nimport struct\\nimport io\\nimport gzip\\ndef task_func(newArray):\\n```\",\"libs\":\"['struct', 'io', 'gzip']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}