{"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":"83419c34-a941-5e29-b38f-34b3eed792f3","task_key":"default--v0~2e1~2e0~5fhf--83419c34-a941-5e29-b38f-34b3eed792f3","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 83419c34-a941-5e29-b38f-34b3eed792f3","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nfrom scipy import stats\\ndef task_func(animals, mean):\\n\",\"complete_prompt\":\"import random\\nfrom scipy import stats\\n\\ndef task_func(animals, mean):\\n    \\\"\\\"\\\"\\n    Simulates sales in a pet shop based on a randomly determined number of customers.\\n    Each customer randomly buys one type of animal from the specified list of animals.\\n    The function displays and returns a summary of the sales, where the number of customers \\n    follows a Poisson distribution with the specified mean (mu).\\n\\n    Parameters:\\n        animals (list of str): A list of animal types available for sale.\\n\\n    Returns:\\n        dict: A dictionary with animal types as keys and the number of sales as values.\\n\\n    Requirements:\\n    - random\\n    - scipy.stats\\n\\n    Examples:\\n    >>> ANIMALS = ['Dog', 'Cat', 'Bird', 'Fish', 'Hamster']\\n    >>> sales = task_func(ANIMALS, 120)\\n    >>> isinstance(sales, dict)\\n    True\\n    >>> all(animal in ANIMALS for animal in sales.keys())\\n    True\\n    >>> sum(sales.values()) >= 0  # sum of sales should be non-negative\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Simulates sales in a pet shop based on a randomly determined number of customers. Each customer randomly buys one type of animal from the specified list of animals. The function displays and returns a summary of the sales, where the number of customers follows a Poisson distribution with the specified mean (mu).\\nThe function should output with:\\n    dict: A dictionary with animal types as keys and the number of sales as values.\\nYou should write self-contained code starting with:\\n```\\nimport random\\nfrom scipy import stats\\ndef task_func(animals, mean):\\n```\",\"libs\":\"['random', 'scipy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}