{"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":"c1d37f0b-672d-5e9e-b30e-99717773632b","task_key":"default--v0~2e1~2e0~5fhf--c1d37f0b-672d-5e9e-b30e-99717773632b","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c1d37f0b-672d-5e9e-b30e-99717773632b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import zipfile\\nimport io\\nfrom django.http import FileResponse, HttpRequest\\nfrom django.conf import settings\\ndef task_func(request, file_paths):\\n\",\"complete_prompt\":\"import zipfile\\nimport io\\nfrom django.http import FileResponse, HttpRequest\\nfrom django.conf import settings\\n\\ndef task_func(request, file_paths):\\n    \\\"\\\"\\\"\\n    Generates a ZIP file response for a Django HttpRequest, zipping the specified files. This function is useful \\n    for scenarios where multiple file downloads are required in response to a web request. The actual HttpRequest \\n    is not utilized within the function but is required for compatibility with Django view structures.\\n\\n    Parameters:\\n    - request (HttpRequest): The incoming Django HttpRequest, not used within the function.\\n    - file_paths (list of str): A list of file paths or file contents to be included in the zip.\\n\\n    Returns:\\n    - FileResponse: A Django FileResponse object containing the ZIP file as an attachment.\\n\\n    Requirements:\\n    - django.http\\n    - django.conf\\n    - zipfile\\n    - io\\n\\n    Examples:\\n    >>> from django.conf import settings\\n    >>> if not settings.configured:\\n    ...     settings.configure()  # Add minimal necessary settings\\n    >>> from django.http import HttpRequest\\n    >>> request = HttpRequest()\\n    >>> response = task_func(request)\\n    >>> response['Content-Type']\\n    'application/zip'\\n    >>> request = HttpRequest()\\n    >>> response = task_func(request)\\n    >>> response['Content-Disposition']\\n    'attachment; filename=\\\"files.zip\\\"'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a ZIP file response for a Django HttpRequest, zipping the specified files. This function is useful for scenarios where multiple file downloads are required in response to a web request. The actual HttpRequest is not utilized within the function but is required for compatibility with Django view structures.\\nThe function should output with:\\n    FileResponse: A Django FileResponse object containing the ZIP file as an attachment.\\nYou should write self-contained code starting with:\\n```\\nimport zipfile\\nimport io\\nfrom django.http import FileResponse, HttpRequest\\nfrom django.conf import settings\\ndef task_func(request, file_paths):\\n```\",\"libs\":\"['io', 'django', 'zipfile']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}