{"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":"a1b0fdaf-b948-51be-8ec7-fdf5514fa3a0","task_key":"default--v0~2e1~2e0~5fhf--a1b0fdaf-b948-51be-8ec7-fdf5514fa3a0","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a1b0fdaf-b948-51be-8ec7-fdf5514fa3a0","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\nimport holidays\\ndef task_func(start_date=datetime(2023, 1, 1), end_date=datetime(2023, 12, 31), country='US'):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\nimport holidays\\n\\ndef task_func(start_date=datetime(2023, 1, 1), end_date=datetime(2023, 12, 31), country='US'):\\n    \\\"\\\"\\\"\\n    Create a list of business days between two dates, excluding weekends and specified country's public holidays.\\n\\n    Parameters:\\n    start_date (datetime): The start date. Default is January 1, 2023.\\n    end_date (datetime): The end date. Default is December 31, 2023. \\n    country (str): ISO country code to determine public holidays. Default is 'US'.\\n\\n    Returns:\\n    list[datetime]: A list of business days (as datetime objects). The start date and end date is included to process. \\n\\n    Raises:\\n    ValueError: If start_date is not a datetime object or is after end_date.\\n    ValueError: If end_date is not a datetime object or is before start_date.\\n\\n    Requirements:\\n    - pandas\\n    - datetime\\n    - holidays\\n\\n    Note:\\n    - The function depends on the 'holidays' package for fetching public holidays.\\n    - Ensure 'pandas' and 'holidays' packages are installed.\\n\\n    Example:\\n    >>> business_days = task_func()\\n    >>> print(business_days[0])\\n    2023-01-03 00:00:00\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a list of business days between two dates, excluding weekends and specified country's public holidays.\\nNote that: The function depends on the 'holidays' package for fetching public holidays. Ensure 'pandas' and 'holidays' packages are installed.\\nThe function should raise the exception for: ValueError: If start_date is not a datetime object or is after end_date. ValueError: If end_date is not a datetime object or is before start_date.\\nThe function should output with:\\n    list[datetime]: A list of business days (as datetime objects). The start date and end date is included to process.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom datetime import datetime\\nimport holidays\\ndef task_func(start_date=datetime(2023, 1, 1), end_date=datetime(2023, 12, 31), country='US'):\\n```\",\"libs\":\"['holidays', 'pandas', 'datetime']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}