{"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":"5e8be57b-a658-50e6-93d7-97109570e48a","task_key":"default--v0~2e1~2e0~5fhf--5e8be57b-a658-50e6-93d7-97109570e48a","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 5e8be57b-a658-50e6-93d7-97109570e48a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from django.http import HttpResponse\\nfrom django.conf import settings\\nimport random\\nimport time\\ndef task_func(data, min_delay, max_delay):\\n\",\"complete_prompt\":\"from django.http import HttpResponse\\nfrom django.conf import settings\\nimport random\\nimport time\\n\\ndef task_func(data, min_delay, max_delay):\\n    \\\"\\\"\\\"\\n    After a random delay, generate a Django HttpResponse with JSON data to simulate the latency of the network.\\n    \\n    Parameters:\\n    data (str): The data to be included in the response body.\\n    min_delay (int): The minimum delay in seconds.\\n    max_delay (int): The maximum delay in seconds.\\n    \\n    Returns:\\n    HttpResponse: A Django HttpResponse with JSON data.\\n    \\n    Requirements:\\n    - django\\n    - random\\n    - time\\n\\n    Example:\\n    >>> import json\\n    >>> random.seed(0)\\n    >>> response = task_func(json.dumps({\\\"Sample-Key\\\": \\\"Sample-Value\\\"}), 1, 5)\\n    >>> response.status_code\\n    200\\n    >>> json.loads(response.content)\\n    {\\\"Sample-Key\\\": \\\"Sample-Value\\\"}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"After a random delay, generate a Django HttpResponse with JSON data to simulate the latency of the network.\\nThe function should output with:\\n    HttpResponse: A Django HttpResponse with JSON data.\\nYou should write self-contained code starting with:\\n```\\nfrom django.http import HttpResponse\\nfrom django.conf import settings\\nimport random\\nimport time\\ndef task_func(data, min_delay, max_delay):\\n```\",\"libs\":\"['django', 'random', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}