{"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":"f9dd7652-c1c2-5141-9acb-1046e25e2f3e","task_key":"default--v0~2e1~2e0~5fhf--f9dd7652-c1c2-5141-9acb-1046e25e2f3e","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f9dd7652-c1c2-5141-9acb-1046e25e2f3e","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\n# Constants\\nROOMS = [\\\"Room1\\\", \\\"Room2\\\", \\\"Room3\\\", \\\"Room4\\\", \\\"Room5\\\"]\\ndef task_func(date_str, booking_data):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom datetime import datetime\\n\\n# Constants\\nROOMS = [\\\"Room1\\\", \\\"Room2\\\", \\\"Room3\\\", \\\"Room4\\\", \\\"Room5\\\"]\\n\\ndef task_func(date_str, booking_data):\\n    \\\"\\\"\\\"\\n    This function generates a status report of room bookings for a specified date\\n    and displays a bar plot representing the booking statuses of various rooms.\\n    It validates the provided date, compiles a booking status report, and visualizes\\n    the data in a bar plot.\\n\\n    Parameters:\\n    - date_str (str): The date for which the booking status needs to be checked,\\n                      in \\\"yyyy-mm-dd\\\" format. The function validates this date.\\n    - booking_data (dict): A dictionary with room names as keys and booking statuses\\n                           as values. The keys should match the rooms listed in the ROOMS constant.\\n\\n    Returns:\\n    - DataFrame: A pandas DataFrame containing booking status for each room.\\n    - matplotlib.pyplot.Axes: A matplotlib Axes object for the bar plot of booking statuses.\\n\\n    Raises:\\n    - ValueError: Raised in two scenarios:\\n                  1. If `date_str` does not follow the \\\"yyyy-mm-dd\\\" format or is not a valid date.\\n                  2. If `date_str` refers to a past date.\\n\\n    Requirements:\\n    - pandas\\n    - datetime\\n\\n    Example:\\n    >>> future_date = (datetime.now() + timedelta(days=1)).strftime(\\\"%Y-%m-%d\\\")\\n    >>> booking_info = {\\\"Room1\\\": \\\"Booked\\\", \\\"Room2\\\": \\\"Available\\\"}\\n    >>> report_df, ax = task_func(future_date, booking_info)\\n    >>> print(report_df)\\n        Room Booking Status\\n    0  Room1         Booked\\n    1  Room2      Available\\n    2  Room3     Not Listed\\n    3  Room4     Not Listed\\n    4  Room5     Not Listed\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"This function generates a status report of room bookings for a specified date and displays a bar plot representing the booking statuses of various rooms. It validates the provided date, compiles a booking status report, and visualizes the data in a bar plot.\\nThe function should raise the exception for: ValueError: Raised in two scenarios: 1. If `date_str` does not follow the \\\"yyyy-mm-dd\\\" format or is not a valid date. 2. If `date_str` refers to a past date.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame containing booking status for each room.\\n    matplotlib.pyplot.Axes: A matplotlib Axes object for the bar plot of booking statuses.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom datetime import datetime\\n# Constants\\nROOMS = [\\\"Room1\\\", \\\"Room2\\\", \\\"Room3\\\", \\\"Room4\\\", \\\"Room5\\\"]\\ndef task_func(date_str, booking_data):\\n```\",\"libs\":\"['pandas', 'datetime']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}