{"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":"da568c46-01ca-553f-9c98-f0c4a5576fde","task_key":"default--v0~2e1~2e0~5fhf--da568c46-01ca-553f-9c98-f0c4a5576fde","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf da568c46-01ca-553f-9c98-f0c4a5576fde","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import pandas as pd\\nimport random\\nimport statistics\\nimport matplotlib.pyplot as plt\\nimport numpy as np\\n# Constants\\nRANGE = 10000  # The range within which random numbers are generated\\nSIZE = 1000  # The number of random numbers to generate\\nBIN_WIDTH = 100  # The width of bins for the histogram\\ndef task_func():\\n\",\"complete_prompt\":\"import pandas as pd\\nimport random\\nimport statistics\\nimport matplotlib.pyplot as plt\\nimport numpy as np\\n\\n# Constants\\nRANGE = 10000  # The range within which random numbers are generated\\nSIZE = 1000  # The number of random numbers to generate\\nBIN_WIDTH = 100  # The width of bins for the histogram\\n\\n\\ndef task_func():\\n    \\\"\\\"\\\"\\n    Generates a pandas DataFrame with two columns, \\\"Random Numbers\\\" and \\\"Moving Average,\\\"\\n    filled with random integers and their moving average, respectively.\\n    Additionally, this function plots a histogram of the \\\"Random Numbers\\\" column.\\n\\n    No Parameters.\\n\\n    Returns:\\n        pd.DataFrame: A DataFrame with two columns:\\n                      - \\\"Random Numbers\\\": Contains a list of randomly generated integers.\\n                      - \\\"Moving Average\\\": Contains the moving average of the random integers,\\n                                          calculated over a window that includes the current\\n                                          and previous 5 integers.\\n\\n    Requirements:\\n        - pandas\\n        - random\\n        - statistics\\n        - matplotlib.pyplot\\n        - numpy\\n\\n    Example:\\n        >>> df = task_func()\\n        >>> isinstance(df, pd.DataFrame)\\n        True\\n        >>> 'Random Numbers' in df.columns and 'Moving Average' in df.columns\\n        True\\n        >>> len(df)\\n        1000\\n        >>> all(df['Random Numbers'].between(0, RANGE))\\n        True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a pandas DataFrame with two columns, \\\"Random Numbers\\\" and \\\"Moving Average,\\\" filled with random integers and their moving average, respectively. Additionally, this function plots a histogram of the \\\"Random Numbers\\\" column. No Parameters.\\nThe function should output with:\\n    pd.DataFrame: A DataFrame with two columns:\\n    \\\"Random Numbers\\\": Contains a list of randomly generated integers.\\n    \\\"Moving Average\\\": Contains the moving average of the random integers,\\n    calculated over a window that includes the current\\n    and previous 5 integers.\\nYou should write self-contained code starting with:\\n```\\nimport pandas as pd\\nimport random\\nimport statistics\\nimport matplotlib.pyplot as plt\\nimport numpy as np\\n# Constants\\nRANGE = 10000  # The range within which random numbers are generated\\nSIZE = 1000  # The number of random numbers to generate\\nBIN_WIDTH = 100  # The width of bins for the histogram\\ndef task_func():\\n```\",\"libs\":\"['statistics', 'pandas', 'matplotlib', 'numpy', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}