{"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":"index","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[],"history":"","construction":"","limitations":"","saturation":"","scores":[]}},"task_id":"aa570dd4-f5fb-5fae-8453-92e7185c9cba","task_key":"default--v0~2e1~2e0~5fhf--aa570dd4-f5fb-5fae-8453-92e7185c9cba","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf aa570dd4-f5fb-5fae-8453-92e7185c9cba","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport glob\\nfrom collections import Counter\\ndef task_func(directory, extensions=[\\\".txt\\\", \\\".docx\\\", \\\".xlsx\\\", \\\".csv\\\"], keep_zero=True):\\n\",\"complete_prompt\":\"import os\\nimport glob\\nfrom collections import Counter\\n\\n\\ndef task_func(directory, extensions=[\\\".txt\\\", \\\".docx\\\", \\\".xlsx\\\", \\\".csv\\\"], keep_zero=True):\\n    \\\"\\\"\\\"\\n    Traverses a given directory recursively to count files by specified extensions.\\n\\n    Parameters:\\n    - directory (str): The path of the directory to search.\\n    - extensions (list of str): File extensions to count. Defaults to ['.txt', '.docx', '.xlsx', '.csv'].\\n    - keep_zero (bool): Whether to include extensions with zero counts. Defaults to True.\\n\\n    Returns:\\n    - Counter: An object containing counts of files for each of the specified extensions.\\n\\n    Raises:\\n    - OSError: If the specified directory does not exist.\\n\\n    Requirements:\\n    - os\\n    - glob\\n    - collections\\n\\n    Note:\\n    - This function counts files in a case-sensitive manner.\\n\\n    Examples:\\n    >>> task_func('/path/to/documents')\\n    Counter({'.txt': 5, '.docx': 2, '.xlsx': 1, '.csv': 0})\\n    >>> task_func('/path/to/documents', keep_zero=False)\\n    Counter({'.txt': 5, '.docx': 2, '.xlsx': 1})\\n    >>> task_func('/path/to/documents', extensions=['.txt'], keep_zero=False)\\n    Counter({'.txt': 5})\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Traverses a given directory recursively to count files by specified extensions.\\nNote that: This function counts files in a case-sensitive manner.\\nThe function should raise the exception for: OSError: If the specified directory does not exist.\\nThe function should output with:\\n    Counter: An object containing counts of files for each of the specified extensions.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport glob\\nfrom collections import Counter\\ndef task_func(directory, extensions=[\\\".txt\\\", \\\".docx\\\", \\\".xlsx\\\", \\\".csv\\\"], keep_zero=True):\\n```\",\"libs\":\"['glob', 'collections', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}