{"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":"d1d0c902-20fd-56ec-b537-58df44ebc6fd","task_key":"default--v0~2e1~2e0~5fhf--d1d0c902-20fd-56ec-b537-58df44ebc6fd","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d1d0c902-20fd-56ec-b537-58df44ebc6fd","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import collections\\nimport seaborn as sns\\nimport matplotlib.pyplot as plt\\ndef task_func(dictionary, new_key, new_value):\\n\",\"complete_prompt\":\"import collections\\nimport seaborn as sns\\nimport matplotlib.pyplot as plt\\n\\n\\ndef task_func(dictionary, new_key, new_value):\\n    \\\"\\\"\\\"\\n    Add a new key-value pair to the dictionary and plot the distribution of its values.\\n\\n    Parameters:\\n    dictionary (dict): The dictionary to be updated.\\n    new_key (str): The new key to be added to the dictionary.\\n    new_value (str): The corresponding value for the new key.\\n\\n    Returns:\\n    dict: The updated dictionary.\\n    matplotlib.axes.Axes: The axes object of the plotted bar graph.\\n\\n    Requirements:\\n    - collections\\n    - numpy\\n    - seaborn\\n    - matplotlib\\n\\n    Example:\\n    >>> updated_dict, plot_axes = task_func({'key1': 'value1', 'key2': 'value2'}, 'key3', 'value3')\\n    >>> updated_dict\\n    {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Add a new key-value pair to the dictionary and plot the distribution of its values.\\nThe function should output with:\\n    dict: The updated dictionary.\\n    matplotlib.axes.Axes: The axes object of the plotted bar graph.\\nYou should write self-contained code starting with:\\n```\\nimport collections\\nimport seaborn as sns\\nimport matplotlib.pyplot as plt\\ndef task_func(dictionary, new_key, new_value):\\n```\",\"libs\":\"['collections', 'matplotlib', 'seaborn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}