{"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":"1b15cf6d-6a27-5ded-a922-9282313ac2e9","task_key":"default--v0~2e1~2e0~5fhf--1b15cf6d-6a27-5ded-a922-9282313ac2e9","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 1b15cf6d-6a27-5ded-a922-9282313ac2e9","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport seaborn as sns\\ndef task_func(data=None):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport seaborn as sns\\n\\n\\ndef task_func(data=None):\\n    \\\"\\\"\\\"\\n    Converts string-formatted weights to floats and plots a scatter plot of weight against height.\\n\\n    This function takes a dictionary with two keys: 'Weight_String' and 'Height'. The 'Weight_String' key should \\n    contain a list of weight values in string format, while the 'Height' key should have a list of corresponding \\n    height values in numerical format. If the input dictionary is not provided, the function uses a default dataset.\\n    The function then converts the string-formatted weights into float, and plots a scatter plot to visualize \\n    the relationship between weight and height.\\n       \\n    Parameters:\\n    - data (dict, optional): A dictionary with keys 'Weight_String' and 'Height'. 'Weight_String' is expected to be \\n                           a list of weight values in string format (e.g., ['60.5', '65.7']), and 'Height' is expected \\n                           to be a list of corresponding numerical height values (e.g., [160, 165]). If no dictionary \\n                           is provided, a default dataset with predetermined values is used.\\n                           Default dictionary:\\n                           {\\n                               'Weight_String': ['60.5', '65.7', '70.2', '75.9', '80.1'],\\n                               'Height': [160, 165, 170, 175, 180]\\n                           }\\n\\n    Returns:\\n    - ax (matplotlib.axes._axes.Axes): A scatter plot with weight on the x-axis and height on the y-axis, titled \\\"Weight vs Height\\\".\\n\\n    Raises:\\n    - ValueError: If any of the values in the 'Weight_String' key are not formatted as strings. This validation ensures \\n                that the weight data is in the expected format for conversion to float.\\n\\n    Requirements:\\n    - pandas\\n    - seaborn\\n\\n    Example:\\n    >>> ax = task_func()\\n    >>> print(ax.get_title())\\n    Weight vs Height\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Converts string-formatted weights to floats and plots a scatter plot of weight against height. This function takes a dictionary with two keys: 'Weight_String' and 'Height'. The 'Weight_String' key should contain a list of weight values in string format, while the 'Height' key should have a list of corresponding height values in numerical format. If the input dictionary is not provided, the function uses a default dataset. The function then converts the string-formatted weights into float, and plots a scatter plot to visualize the relationship between weight and height.\\nThe function should raise the exception for: ValueError: If any of the values in the 'Weight_String' key are not formatted as strings. This validation ensures that the weight data is in the expected format for conversion to float.\\nThe function should output with:\\n    ax (matplotlib.axes._axes.Axes): A scatter plot with weight on the x-axis and height on the y-axis, titled \\\"Weight vs Height\\\".\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport seaborn as sns\\ndef task_func(data=None):\\n```\",\"libs\":\"['pandas', 'seaborn']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}