{"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":"7a0932d8-3f4c-522b-ad75-da8645365161","task_key":"default--v0~2e1~2e0~5fhf--7a0932d8-3f4c-522b-ad75-da8645365161","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7a0932d8-3f4c-522b-ad75-da8645365161","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pathlib\\nimport os\\ndef task_func(path: str, delimiter: str = os.path.sep) -> list:\\n\",\"complete_prompt\":\"import pathlib\\nimport os\\n\\n\\ndef task_func(path: str, delimiter: str = os.path.sep) -> list:\\n    \\\"\\\"\\\"\\n    Validates that a given file path does not contain invalid characters for file paths\\n    then splits it into path components using a specified delimiter.\\n\\n    Parameters:\\n    - path (str):      The file path to split. If empty, the function returns an empty list.\\n    - delimiter (str): The delimiter to use for splitting the path.\\n                       Defaults to the system's path separator (os.path.sep).\\n\\n    Returns:\\n    - list: A list of the path components if the path is valid;\\n            otherwise, an empty list if the path contains invalid characters.\\n\\n    Raises:\\n    - ValueError: If the path contains invalid characters.\\n\\n    Requirements:\\n    - pathlib\\n    - os\\n\\n    Notes:\\n    - Backslashes ('\\\\\\\\') are internally converted to forward slashes ('/') before processing.\\n    - This function treats '<', '>', ':', '\\\"', '|', '?', '*' as invalid characters in paths.\\n\\n    Examples:\\n    >>> task_func('Docs/src/Scripts/temp', '/')\\n    ['Docs', 'src', 'Scripts', 'temp']\\n    >>> task_func(r'Docs\\\\\\\\src\\\\\\\\Scripts\\\\\\\\temp', '\\\\\\\\\\\\\\\\')\\n    ['Docs', 'src', 'Scripts', 'temp']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Validates that a given file path does not contain invalid characters for file paths then splits it into path components using a specified delimiter.\\nNote that: Notes: Backslashes ('\\\\\\\\') are internally converted to forward slashes ('/') before processing. This function treats '<', '>', ':', '\\\"', '|', '?', '*' as invalid characters in paths.\\nThe function should raise the exception for: ValueError: If the path contains invalid characters.\\nThe function should output with:\\n    list: A list of the path components if the path is valid;\\n    otherwise, an empty list if the path contains invalid characters.\\nYou should write self-contained code starting with:\\n```\\nimport pathlib\\nimport os\\ndef task_func(path: str, delimiter: str = os.path.sep) -> list:\\n```\",\"libs\":\"['pathlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}