{"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":"ecf710ca-70c4-5ed3-952c-781655e7c222","task_key":"default--v0~2e1~2e0~5fhf--ecf710ca-70c4-5ed3-952c-781655e7c222","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ecf710ca-70c4-5ed3-952c-781655e7c222","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport seaborn as sns\\ndef task_func(df, col1, col2):\\n\",\"complete_prompt\":\"import pandas as pd\\nimport seaborn as sns\\n\\ndef task_func(df, col1, col2):\\n    \\\"\\\"\\\"\\n    Draw a scatter plot with a regression line for two columns from a DataFrame.\\n\\n    Parameters:\\n    df (DataFrame): Input DataFrame.\\n    col1 (str): Name of the first column.\\n    col2 (str): Name of the second column.\\n\\n    Returns:\\n    Axes: A seaborn axes object.\\n\\n    Requirements:\\n    - pandas\\n    - seaborn\\n\\n    Raises:\\n    - Raise ValueError if the input df is not a DataFrame, empty, or does not contain the specified columns.\\n    - Raise TypeError if df use non-numeric data\\n\\n    Example:\\n    >>> import matplotlib.pyplot as plt\\n    >>> df = pd.DataFrame({'X': [1, 2, 3, 4, 5], 'Y': [2, 4, 6, 8, 10]})\\n    >>> plot = task_func(df, 'X', 'Y')\\n    >>> len(plot.collections[0].get_offsets().data)\\n    5\\n    >>> plt.close()\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Draw a scatter plot with a regression line for two columns from a DataFrame.\\nThe function should raise the exception for: Raise ValueError if the input df is not a DataFrame, empty, or does not contain the specified columns. Raise TypeError if df use non-numeric data\\nThe function should output with:\\n    Axes: A seaborn axes object.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport seaborn as sns\\ndef task_func(df, col1, col2):\\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":[]}