{"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":"dee8bd89-cbc0-55a4-8a7a-b7746dfe4c11","task_key":"default--v0~2e1~2e0~5fhf--dee8bd89-cbc0-55a4-8a7a-b7746dfe4c11","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf dee8bd89-cbc0-55a4-8a7a-b7746dfe4c11","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport shutil\\ndef task_func(path, delimiter=\\\"/\\\"):\\n\",\"complete_prompt\":\"import os\\nimport shutil\\n\\n\\ndef task_func(path, delimiter=\\\"/\\\"):\\n    \\\"\\\"\\\"\\n    Splits a given file path by a specific delimiter and computes disk usage for each directory component.\\n\\n    Parameters:\\n    - path (str): The file path to split.\\n    - delimiter (str, optional): The delimiter to use for splitting the path. Default is '/'.\\n\\n    Returns:\\n    list: A list of tuples where each tuple contains a path component and its disk usage as a dictionary.\\n          The disk usage dictionary contains keys 'total', 'used', and 'free'.\\n\\n    Raises:\\n    - ValueError: If the 'path' is empty, not a string, or contain invalid components.\\n    - FileNotFoundError: If the 'path' does not exist in the filesystem.\\n\\n    Requirements:\\n    - os\\n    - shutil\\n\\n    Examples:\\n    >>> task_func('Docs/src', '/')\\n    [('Docs', {'total': 100, 'used': 50, 'free': 50}), ('src', {'total': 200, 'used': 100, 'free': 100})]\\n\\n    >>> task_func('a/b', '/')\\n    [('a', {'total': 300, 'used': 150, 'free': 150}), ('b', {'total': 400, 'used': 200, 'free': 200})]\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Splits a given file path by a specific delimiter and computes disk usage for each directory component. >>> task_func('a/b', '/') [('a', {'total': 300, 'used': 150, 'free': 150}), ('b', {'total': 400, 'used': 200, 'free': 200})]\\nThe function should raise the exception for: ValueError: If the 'path' is empty, not a string, or contain invalid components. FileNotFoundError: If the 'path' does not exist in the filesystem.\\nThe function should output with:\\n    list: A list of tuples where each tuple contains a path component and its disk usage as a dictionary.\\n    The disk usage dictionary contains keys 'total', 'used', and 'free'.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport shutil\\ndef task_func(path, delimiter=\\\"/\\\"):\\n```\",\"libs\":\"['shutil', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}