{"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":"eff91a01-a0ab-5508-8237-15d4d37c5adb","task_key":"default--v0~2e1~2e0~5fhf--eff91a01-a0ab-5508-8237-15d4d37c5adb","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf eff91a01-a0ab-5508-8237-15d4d37c5adb","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nimport pandas as pd\\ndef task_func(data_str, separator=\\\",\\\", bins=20):\\n\",\"complete_prompt\":\"import numpy as np\\nimport pandas as pd\\n\\n\\ndef task_func(data_str, separator=\\\",\\\", bins=20):\\n    \\\"\\\"\\\"\\n    Convert a string of numerical values separated by a specified separator into a pandas\\n    numerical series with int64, and then draw a histogram of the data.\\n\\n    The function raises a ValueError if data is empty or it fails to convert the data.\\n    It plots the histogram with the following attributes:\\n    - grid: True\\n    - rwidth: 0.9\\n    - color: '#607c8e'\\n\\n    Parameters:\\n    - data_str (str): The string of numbers separated by the specified separator.\\n    - separator (str, optional): The separator used in the data string. Default is ','.\\n    - bins (int, optional): Number of histogram bins. Default is 20.\\n\\n    Returns:\\n    - tuple: A tuple containing:\\n        1. Series: A pandas Series of the data coonverted into integers.\\n        2. Axes: The Axes object of the plotted histogram.\\n\\n    Requirements:\\n    - numpy\\n    - pandas\\n\\n    Example:\\n    >>> series, ax = task_func('1,2,3,4,5,5,5,4,3,2,1')\\n    >>> print(type(series), series.tolist())\\n    <class 'pandas.core.series.Series'> [1, 2, 3, 4, 5, 5, 5, 4, 3, 2, 1]\\n    >>> print(type(ax))\\n    <class 'matplotlib.axes._axes.Axes'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert a string of numerical values separated by a specified separator into a pandas numerical series with int64, and then draw a histogram of the data. The function raises a ValueError if data is empty or it fails to convert the data. It plots the histogram with the following attributes: - grid: True - rwidth: 0.9 - color: '#607c8e'\\nThe function should output with:\\n    tuple: A tuple containing:\\n    1. Series: A pandas Series of the data coonverted into integers.\\n    2. Axes: The Axes object of the plotted histogram.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nimport pandas as pd\\ndef task_func(data_str, separator=\\\",\\\", bins=20):\\n```\",\"libs\":\"['pandas', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}