{"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":"277cf324-aa17-59c6-b78d-7b0b9725539a","task_key":"default--v0~2e1~2e0~5fhf--277cf324-aa17-59c6-b78d-7b0b9725539a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 277cf324-aa17-59c6-b78d-7b0b9725539a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from random import randint\\nfrom statistics import mean\\nimport pandas as pd\\ndef task_func(products_list):\\n\",\"complete_prompt\":\"from random import randint\\nfrom statistics import mean\\nimport pandas as pd\\n\\n\\ndef task_func(products_list):\\n    \\\"\\\"\\\"\\n    This function takes in a list of product names and generates random sales data for each product over a period of\\n    12 months. It then calculates the average sales for each product and returns the results as a pandas DataFrame with\\n    columns: 'Product', 'Month 1', 'Month 2', ..., 'Month 12', 'Average Sales'..\\n    \\n    Parameters:\\n    products_list (list): A list of product names.\\n    \\n    Returns:\\n    DataFrame: A pandas DataFrame with columns: 'Product', 'Month 1', 'Month 2', ..., 'Month 12', 'Average Sales'.\\n    \\n    Requirements:\\n    - pandas\\n    - random\\n    - statistics\\n    \\n    Example:\\n    >>> products = ['Apples', 'Bananas', 'Grapes', 'Oranges', 'Pineapples']\\n    >>> sales_data = task_func(products)\\n    >>> type(sales_data)\\n    <class 'pandas.core.frame.DataFrame'>\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"This function takes in a list of product names and generates random sales data for each product over a period of 12 months. It then calculates the average sales for each product and returns the results as a pandas DataFrame with columns: 'Product', 'Month 1', 'Month 2', ..., 'Month 12', 'Average Sales'..\\nThe function should output with:\\n    DataFrame: A pandas DataFrame with columns: 'Product', 'Month 1', 'Month 2', ..., 'Month 12', 'Average Sales'.\\nYou should write self-contained code starting with:\\n```\\nfrom random import randint\\nfrom statistics import mean\\nimport pandas as pd\\ndef task_func(products_list):\\n```\",\"libs\":\"['statistics', 'pandas', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}