{"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":"77c518e4-54e8-5760-ba51-e3efd0e6ad23","task_key":"default--v0~2e1~2e0~5fhf--77c518e4-54e8-5760-ba51-e3efd0e6ad23","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 77c518e4-54e8-5760-ba51-e3efd0e6ad23","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from datetime import datetime\\nimport pandas as pd\\nimport pytz\\nimport matplotlib.pyplot as plt\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\nTIMEZONES = [\\n    \\\"America/New_York\\\",\\n    \\\"Europe/London\\\",\\n    \\\"Asia/Shanghai\\\",\\n    \\\"Asia/Tokyo\\\",\\n    \\\"Australia/Sydney\\\",\\n]\\ndef task_func(timestamp):\\n\",\"complete_prompt\":\"from datetime import datetime\\nimport pandas as pd\\nimport pytz\\nimport matplotlib.pyplot as plt\\n\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\nTIMEZONES = [\\n    \\\"America/New_York\\\",\\n    \\\"Europe/London\\\",\\n    \\\"Asia/Shanghai\\\",\\n    \\\"Asia/Tokyo\\\",\\n    \\\"Australia/Sydney\\\",\\n]\\n\\n\\ndef task_func(timestamp):\\n    \\\"\\\"\\\"\\n    Convert a Unix timestamp to date objects in different time zones, create a Pandas DataFrame, and draw a bar chart.\\n    - You should use the time zones mentionned in the constant TIMEZONES.\\n    - The date format should be as DATE_FORMAT.\\n    - The DataFrame should have 'Timezone' and 'Datetime' as column names.\\n    - The x-label of the bar plot should be set to 'Timezone' while the y-label should be set to 'Datetime'.\\n    - The plot title should be \\\"Datetime = f(Timezone)\\\"\\n\\n    Parameters:\\n    timestamp (int): The Unix timestamp.\\n\\n    Returns:\\n    tuple: A tuple containing:\\n        - DataFrame: A pandas DataFrame containing the datetime in different timezones.\\n        - Axes: A matplotlib Axes object for the generated bar chart.\\n\\n    Requirements:\\n    - datetime\\n    - pandas\\n    - pytz\\n    - matplotlib.pyplot\\n\\n    Example:\\n    >>> df, ax = task_func(1347517370)\\n    >>> print(df)\\n               Timezone            Datetime\\n    0  America/New_York 2012-09-13 02:22:50\\n    1     Europe/London 2012-09-13 07:22:50\\n    2     Asia/Shanghai 2012-09-13 14:22:50\\n    3        Asia/Tokyo 2012-09-13 15:22:50\\n    4  Australia/Sydney 2012-09-13 16:22:50\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert a Unix timestamp to date objects in different time zones, create a Pandas DataFrame, and draw a bar chart. - You should use the time zones mentionned in the constant TIMEZONES. - The date format should be as DATE_FORMAT. - The DataFrame should have 'Timezone' and 'Datetime' as column names. - The x-label of the bar plot should be set to 'Timezone' while the y-label should be set to 'Datetime'. - The plot title should be \\\"Datetime = f(Timezone)\\\"\\nThe function should output with:\\n    tuple: A tuple containing:\\n    DataFrame: A pandas DataFrame containing the datetime in different timezones.\\n    Axes: A matplotlib Axes object for the generated bar chart.\\nYou should write self-contained code starting with:\\n```\\nfrom datetime import datetime\\nimport pandas as pd\\nimport pytz\\nimport matplotlib.pyplot as plt\\n# Constants\\nDATE_FORMAT = \\\"%Y-%m-%d %H:%M:%S\\\"\\nTIMEZONES = [\\n    \\\"America/New_York\\\",\\n    \\\"Europe/London\\\",\\n    \\\"Asia/Shanghai\\\",\\n    \\\"Asia/Tokyo\\\",\\n    \\\"Australia/Sydney\\\",\\n]\\ndef task_func(timestamp):\\n```\",\"libs\":\"['pytz', 'pandas', 'datetime', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}