{"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":"505e19fa-25de-53d1-9978-d93a0bd9f8d2","task_key":"default--v0~2e1~2e0~5fhf--505e19fa-25de-53d1-9978-d93a0bd9f8d2","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 505e19fa-25de-53d1-9978-d93a0bd9f8d2","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nCITIES = ['New York', 'London', 'Beijing', 'Tokyo', 'Sydney', 'Paris', 'Berlin', 'Moscow', 'Madrid', 'Rome']\\ndef task_func(city_dict, max_range=1000000, seed=0):\\n\",\"complete_prompt\":\"import numpy as np\\nimport matplotlib.pyplot as plt\\n\\n\\n# Constants\\nCITIES = ['New York', 'London', 'Beijing', 'Tokyo', 'Sydney', 'Paris', 'Berlin', 'Moscow', 'Madrid', 'Rome']\\n\\ndef task_func(city_dict, max_range=1000000, seed=0):\\n    \\\"\\\"\\\"\\n    Given a constant list of cities (CITIES) and a dictionary 'city_dict' of people's names and their favorite cities, \\n    this function generates a dictionary of city populations for the cities in the list and plots the population \\n    data using a bar chart. The population values are randomly generated integers between 1 and 'max_range' if \\n    the city is in the list of cities, otherwise the population value is -1. The random number generator is seeded\\n    with the value 'seed' before generating the population values.\\n\\n    Parameters:\\n    city_dict (dict): The dictionary with keys as people's names and values as city names. \\n    max_range (int, Optional): The maximum population value for the randomly generated population. Defaults to 1000000.\\n    Must be greater than 1.\\n    seed (int, Optional): The seed for the random number generator. Defaults to 0.\\n\\n    Returns:\\n    dict: A dictionary with city names as keys and randomly generated populations as values.\\n    matplotlib.axes.Axes: The Axes object of the plot for further manipulation or testing.\\n\\n    Requirements:\\n    - numpy for random number generation\\n    - matplotlib for plotting\\n\\n    Example:\\n    >>> city_dict = {'John': 'New York', 'Alice': 'London', 'Bob': 'Beijing', 'Charlie': 'Tokyo', 'David': 'Sydney'}\\n    >>> population_dict, plot_axes = task_func(city_dict)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Given a constant list of cities (CITIES) and a dictionary 'city_dict' of people's names and their favorite cities, this function generates a dictionary of city populations for the cities in the list and plots the population data using a bar chart. The population values are randomly generated integers between 1 and 'max_range' if the city is in the list of cities, otherwise the population value is -1. The random number generator is seeded with the value 'seed' before generating the population values.\\nThe function should output with:\\n    dict: A dictionary with city names as keys and randomly generated populations as values.\\n    matplotlib.axes.Axes: The Axes object of the plot for further manipulation or testing.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport matplotlib.pyplot as plt\\n# Constants\\nCITIES = ['New York', 'London', 'Beijing', 'Tokyo', 'Sydney', 'Paris', 'Berlin', 'Moscow', 'Madrid', 'Rome']\\ndef task_func(city_dict, max_range=1000000, seed=0):\\n```\",\"libs\":\"['numpy', 'matplotlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}