{"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":"9391fb7a-3663-5526-9ded-365b79e62f70","task_key":"default--v0~2e1~2e0~5fhf--9391fb7a-3663-5526-9ded-365b79e62f70","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 9391fb7a-3663-5526-9ded-365b79e62f70","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport numpy as np\\nimport folium\\ndef task_func(dic={'Lon': (-180, 180), 'Lat': (-90, 90)}, cities=['New York', 'London', 'Beijing', 'Tokyo', 'Sydney']):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport numpy as np\\nimport folium\\n\\ndef task_func(dic={'Lon': (-180, 180), 'Lat': (-90, 90)}, cities=['New York', 'London', 'Beijing', 'Tokyo', 'Sydney']):\\n    \\\"\\\"\\\"\\n    Create a map with markers for a list of cities, where the coordinates are randomly generated within given ranges.\\n\\n    Parameters:\\n    dic (dict): Dictionary with 'Lon' and 'Lat' keys, each a tuple (min, max) for coordinate range. \\n                Default: {'Lon': (-180, 180), 'Lat': (-90, 90)}\\n    cities (list): List of city names. Default: ['New York', 'London', 'Beijing', 'Tokyo', 'Sydney']\\n\\n    Returns:\\n    tuple: A tuple containing (folium.Map, pandas.DataFrame).\\n           The DataFrame contains 'City', 'Longitude', and 'Latitude' columns.\\n\\n    Raises:\\n    ValueError: If 'Lon' or 'Lat' keys are missing in the dictionary, or if their values are not tuples.\\n\\n    Requirements:\\n    - pandas\\n    - numpy\\n    - folium\\n\\n    Example:\\n    >>> dic = {'Lon': (-180, 180), 'Lat': (-90, 90)}\\n    >>> map_obj, city_data = task_func(dic)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a map with markers for a list of cities, where the coordinates are randomly generated within given ranges.\\nThe function should raise the exception for: ValueError: If 'Lon' or 'Lat' keys are missing in the dictionary, or if their values are not tuples.\\nThe function should output with:\\n    tuple: A tuple containing (folium.Map, pandas.DataFrame).\\n    The DataFrame contains 'City', 'Longitude', and 'Latitude' columns.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport numpy as np\\nimport folium\\ndef task_func(dic={'Lon': (-180, 180), 'Lat': (-90, 90)}, cities=['New York', 'London', 'Beijing', 'Tokyo', 'Sydney']):\\n```\",\"libs\":\"['pandas', 'folium', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}