{"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":"37dda5e5-39ee-54ee-85ea-99825c702058","task_key":"default--v0~2e1~2e0~5fhf--37dda5e5-39ee-54ee-85ea-99825c702058","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 37dda5e5-39ee-54ee-85ea-99825c702058","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from datetime import datetime\\nimport pandas as pd\\n# For Python versions lower than 3.9, use 'pytz' instead of 'zoneinfo'\\ntry:\\n    from zoneinfo import ZoneInfo\\nexcept ImportError:\\n    from pytz import timezone as ZoneInfo\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\ndef task_func(time_strings, target_tz):\\n\",\"complete_prompt\":\"from datetime import datetime\\nimport pandas as pd\\n\\n# For Python versions lower than 3.9, use 'pytz' instead of 'zoneinfo'\\ntry:\\n    from zoneinfo import ZoneInfo\\nexcept ImportError:\\n    from pytz import timezone as ZoneInfo\\n\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\n\\ndef task_func(time_strings, target_tz):\\n    \\\"\\\"\\\"\\n    Convert a list of time strings from UTC to a specified timezone and return a DataFrame.\\n\\n    The function processes each UTC time string in the given list,\\n    converts it to the specified timezone, and stores the results in a DataFrame.\\n\\n    Parameters:\\n    - time_strings (list of str): A list of time strings in UTC. Each string should be formatted as 'dd/mm/yy HH:MM:SS.fff'.\\n    - target_tz (str): The timezone identifier (e.g., 'America/New_York') to which the time strings should be converted.\\n\\n    Returns:\\n    - pandas.DataFrame: A DataFrame with two columns: 'Original Time'\\n    containing the UTC times and 'Converted Time' containing the times converted to the target timezone.\\n\\n    Requirements:\\n    - pandas\\n    - datetime\\n    - zoneinfo.ZoneInfo (Python 3.9+) or pytz.timezone.ZoneInfo (Python < 3.9)\\n    \\n    Note:\\n    - The function assumes that the input times are in UTC.\\n\\n    Example:\\n    >>> time_strings = ['30/03/09 16:31:32.123', '15/04/10 14:25:46.789', '20/12/11 12:34:56.000']\\n    >>> df = task_func(time_strings, 'America/New_York')\\n    >>> print(df)\\n               Original Time            Converted Time\\n    0  30/03/09 16:31:32.123  30/03/09 12:31:32.123000\\n    1  15/04/10 14:25:46.789  15/04/10 10:25:46.789000\\n    2  20/12/11 12:34:56.000  20/12/11 07:34:56.000000\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert a list of time strings from UTC to a specified timezone and return a DataFrame. The function processes each UTC time string in the given list, converts it to the specified timezone, and stores the results in a DataFrame.\\nNote that: The function assumes that the input times are in UTC.\\nThe function should output with:\\n    pandas.DataFrame: A DataFrame with two columns: 'Original Time'\\n    containing the UTC times and 'Converted Time' containing the times converted to the target timezone.\\nYou should write self-contained code starting with:\\n```\\nfrom datetime import datetime\\nimport pandas as pd\\n# For Python versions lower than 3.9, use 'pytz' instead of 'zoneinfo'\\ntry:\\n    from zoneinfo import ZoneInfo\\nexcept ImportError:\\n    from pytz import timezone as ZoneInfo\\nTIME_FORMAT = \\\"%d/%m/%y %H:%M:%S.%f\\\"\\ndef task_func(time_strings, target_tz):\\n```\",\"libs\":\"['pytz', '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":[]}