{"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":"3e679c76-480f-5f4f-a722-d33cb0b3b4c7","task_key":"default--v0~2e1~2e0~5fhf--3e679c76-480f-5f4f-a722-d33cb0b3b4c7","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 3e679c76-480f-5f4f-a722-d33cb0b3b4c7","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from datetime import datetime\\nimport pytz\\nimport re\\nfrom faker import Faker\\ndef task_func(epoch_milliseconds, seed=0, timezones=[\\\"UTC\\\"]):\\n\",\"complete_prompt\":\"from datetime import datetime\\nimport pytz\\nimport re\\nfrom faker import Faker\\n\\n\\ndef task_func(epoch_milliseconds, seed=0, timezones=[\\\"UTC\\\"]):\\n    \\\"\\\"\\\"Create a dictionary with a fake event schedule given an event time.\\n\\n    The function converts a given epoch in milliseconds into a datetime object in\\n    the current system time's timezone. It generates a fake event name using Faker. \\n    Then, it uses pytz and regex to check if specified timezones are valid (i.e. \\n    in pytz.all_timezones or can be parsed using regex from UTC±HH:MM format), ignoring \\n    invalid ones. If none is valid or if timezones were not specified, it selects UTC; \\n    otherwise, it randomly selects a valid one using Faker. Finally, the function returns a \\n    dictionary with the fake event name as key and a list as value, where the list itself \\n    contains a schedule, i.e. a dictionary with keys 'date', 'time', 'timezone'.\\n\\n    Parameters:\\n    - epoch_milliseconds (int): Epoch time in milliseconds. If negative, defaults to 0.\\n    - seed (int, optional): Random seed for Faker's RNG. Defaults to None.\\n    - timezones (list, optional): A list of timezones to select from.\\n                                  If none is valid or if not specified, defaults to ['UTC'].\\n\\n    Returns:\\n    - A dictionary containing event names as keys and a list of event details as values.\\n      Event details include the date, time, and timezone of the event.\\n\\n    Requirements:\\n    - datetime.datetime\\n    - faker\\n    - pytz\\n    - re\\n\\n    Example:\\n    >>> task_func(1236472051807, seed=42)\\n    {'Danielle': [{'date': datetime.date(2009, 3, 8), 'time': datetime.time(11, 27, 31, 807000), 'timezone': 'UTC'}]}\\n    >>> task_func(1609459200000, seed=24, timezones=['UTC', 'UTC+01:00'])\\n    {'Jennifer': [{'date': datetime.date(2021, 1, 1), 'time': datetime.time(11, 0), 'timezone': 'UTC'}]}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a dictionary with a fake event schedule given an event time. The function converts a given epoch in milliseconds into a datetime object in the current system time's timezone. It generates a fake event name using Faker. Then, it uses pytz and regex to check if specified timezones are valid (i.e. in pytz.all_timezones or can be parsed using regex from UTC±HH:MM format), ignoring invalid ones. If none is valid or if timezones were not specified, it selects UTC; otherwise, it randomly selects a valid one using Faker. Finally, the function returns a dictionary with the fake event name as key and a list as value, where the list itself contains a schedule, i.e. a dictionary with keys 'date', 'time', 'timezone'.\\nThe function should output with:\\n    A dictionary containing event names as keys and a list of event details as values.\\n    Event details include the date, time, and timezone of the event.\\nYou should write self-contained code starting with:\\n```\\nfrom datetime import datetime\\nimport pytz\\nimport re\\nfrom faker import Faker\\ndef task_func(epoch_milliseconds, seed=0, timezones=[\\\"UTC\\\"]):\\n```\",\"libs\":\"['pytz', 'faker', 'datetime', 're']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}