{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"94f4d196-6670-5217-9cbb-d9015bfae0e5","task_key":"default--v0~2e1~2e0~5fhf--94f4d196-6670-5217-9cbb-d9015bfae0e5","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 94f4d196-6670-5217-9cbb-d9015bfae0e5","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nfrom random import randint, seed as random_seed\\nimport statistics\\nimport numpy as np\\ndef task_func(animals=None, seed=42):\\n\",\"complete_prompt\":\"import pandas as pd\\nfrom random import randint, seed as random_seed\\nimport statistics\\nimport numpy as np\\n\\ndef task_func(animals=None, seed=42):\\n    \\\"\\\"\\\"\\n    Create a report on the number of animals in a zoo. For each animal, generate a random count within \\n    a specified range, calculate the mean, median, and standard deviation of these counts, and return \\n    a DataFrame with these statistics. Additionally, generate a bar chart of the counts.\\n\\n    Parameters:\\n    - animals (list of str, optional): List of animals to include in the report. \\n        Defaults to ['Lion', 'Elephant', 'Tiger', 'Giraffe', 'Panda'].\\n    - seed (int, optional): Random seed for reproducibility. Defaults to 42.\\n\\n    Returns:\\n    - DataFrame: A pandas DataFrame with columns ['Animal', 'Mean', 'Median', 'Standard Deviation'].\\n      Each animal's count is randomly generated 10 times within the range 1 to 100, inclusive.\\n\\n    Requirements:\\n    - pandas\\n    - random\\n    - statistics\\n    - numpy\\n\\n    Example:\\n    >>> report = task_func()\\n    >>> print(report)\\n         Animal  Mean  Median  Mode  Standard Deviation\\n    0      Lion  42.0    30.5    95           33.250564\\n    1  Elephant  44.4    41.5    12           34.197076\\n    2     Tiger  61.1    71.0    30           28.762649\\n    3   Giraffe  51.8    54.5    54           29.208903\\n    4     Panda  35.8    32.0    44           24.595935\\n\\n    Note: The mode is not included in the returned DataFrame due to the possibility of no repeating values \\n    in the randomly generated counts.\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a report on the number of animals in a zoo. For each animal, generate a random count within a specified range, calculate the mean, median, and standard deviation of these counts, and return a DataFrame with these statistics. Additionally, generate a bar chart of the counts.\\nNote that: The mode is not included in the returned DataFrame due to the possibility of no repeating values in the randomly generated counts.\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns ['Animal', 'Mean', 'Median', 'Standard Deviation'].\\n    Each animal's count is randomly generated 10 times within the range 1 to 100, inclusive.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nfrom random import randint, seed as random_seed\\nimport statistics\\nimport numpy as np\\ndef task_func(animals=None, seed=42):\\n```\",\"libs\":\"['statistics', 'pandas', 'numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}