{"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":"242fbce5-606a-5d93-a12b-8c5b3ac8933a","task_key":"default--v0~2e1~2e0~5fhf--242fbce5-606a-5d93-a12b-8c5b3ac8933a","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 242fbce5-606a-5d93-a12b-8c5b3ac8933a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport re\\nimport os\\ndef task_func(dir_path: str, pattern: str = '^EMP'):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport re\\nimport os\\n\\ndef task_func(dir_path: str, pattern: str = '^EMP'):\\n    \\\"\\\"\\\"\\n    Look for all ascendingly sorted files in a directory that start with a given pattern, and return the number of files against their size. You should return a pandas DataFrame with 2 columns 'File' and 'Size' with correspond to the file name and the size respectively.\\n\\n    Parameters:\\n    - dir_path (str): The path to the directory.\\n    - pattern (str): The pattern to match. Default is '^EMP' (files starting with 'EMP').\\n\\n    Returns:\\n    - pandas.DataFrame: A pandas DataFrame with file names and their sizes.\\n\\n    Requirements:\\n    - pandas\\n    - re\\n    - os\\n\\n    Example:\\n    >>> report = task_func('/path/to/directory')\\n    >>> print(report)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Look for all ascendingly sorted files in a directory that start with a given pattern, and return the number of files against their size. You should return a pandas DataFrame with 2 columns 'File' and 'Size' with correspond to the file name and the size respectively.\\nThe function should output with:\\n    pandas.DataFrame: A pandas DataFrame with file names and their sizes.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport re\\nimport os\\ndef task_func(dir_path: str, pattern: str = '^EMP'):\\n```\",\"libs\":\"['pandas', 're', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}