{"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":"ed51a1c2-c105-5cb8-b90a-17335d80df7b","task_key":"default--v0~2e1~2e0~5fhf--ed51a1c2-c105-5cb8-b90a-17335d80df7b","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ed51a1c2-c105-5cb8-b90a-17335d80df7b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import matplotlib.pyplot as plt\\nimport pandas as pd\\nimport seaborn as sns\\n# Constants\\nCOLUMNS = ['Name', 'Age', 'Country', 'Score']\\ndef task_func(df):\\n\",\"complete_prompt\":\"import matplotlib.pyplot as plt\\nimport pandas as pd\\nimport seaborn as sns\\n\\n# Constants\\nCOLUMNS = ['Name', 'Age', 'Country', 'Score']\\n\\ndef task_func(df):\\n    \\\"\\\"\\\"\\n    Generates a histogram of scores and a boxplot of scores by country from a pandas DataFrame. \\n    It considers only unique names for both plots.\\n\\n    Parameters:\\n    df (DataFrame): A pandas DataFrame containing the columns 'Name', 'Age', 'Country', and 'Score'.\\n\\n    Returns:\\n    matplotlib.figure.Figure: A matplotlib figure containing the histogram and boxplot.\\n\\n    Requirements:\\n    - matplotlib.pyplot\\n    - seaborn\\n    - pandas\\n\\n    Note:\\n    - The function would return \\\"Invalid input\\\" string if the input is invalid (e.g., does not contain the required 'Name' key).\\n    - The histogram of scores has a title \\\"Histogram of Scores\\\".\\n    - The boxplot of scores has a title \\\"Boxplot of Scores by Country\\\".\\n\\n    Example:\\n    >>> data = pd.DataFrame([{'Name': 'James', 'Age': 30, 'Country': 'USA', 'Score': 85}, {'Name': 'Nick', 'Age': 50, 'Country': 'Australia', 'Score': 80}])\\n    >>> fig = task_func(data)\\n    >>> axes = fig.get_axes()\\n    >>> print(axes[0].get_title())\\n    Histogram of Scores\\n\\n    >>> print(task_func(\\\"not a dataframe\\\"))\\n    Invalid input\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a histogram of scores and a boxplot of scores by country from a pandas DataFrame. It considers only unique names for both plots. >>> print(task_func(\\\"not a dataframe\\\")) Invalid input\\nNote that: The function would return \\\"Invalid input\\\" string if the input is invalid (e.g., does not contain the required 'Name' key). The histogram of scores has a title \\\"Histogram of Scores\\\". The boxplot of scores has a title \\\"Boxplot of Scores by Country\\\".\\nThe function should output with:\\n    matplotlib.figure.Figure: A matplotlib figure containing the histogram and boxplot.\\nYou should write self-contained code starting with:\\n```\\nimport matplotlib.pyplot as plt\\nimport pandas as pd\\nimport seaborn as sns\\n# Constants\\nCOLUMNS = ['Name', 'Age', 'Country', 'Score']\\ndef task_func(df):\\n```\",\"libs\":\"['pandas', '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":[]}