{"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":"28e2174f-b517-5f36-868b-35ea5d06c07b","task_key":"default--v0~2e1~2e0~5fhf--28e2174f-b517-5f36-868b-35ea5d06c07b","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 28e2174f-b517-5f36-868b-35ea5d06c07b","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nimport itertools\\ndef task_func(d):\\n\",\"complete_prompt\":\"from collections import Counter\\nimport itertools\\n\\ndef task_func(d):\\n    \\\"\\\"\\\"\\n    Count the occurrence of each integer in the values of the input dictionary, where each value is a list of integers,\\n    and return a dictionary with these counts. The resulting dictionary's keys are the integers, and the values are \\n    their respective counts across all lists in the input dictionary.\\n\\n    Parameters:\\n    d (dict): A dictionary where each key is a string and the value is a list of integers.\\n\\n    Returns:\\n    dict: A dictionary where each key is an integer from any of the input lists, and the value is the count of \\n            how often that integer appears in all the lists combined.\\n\\n    Requirements:\\n    - collections.Counter\\n    - itertools\\n    \\n    Example:\\n    >>> d = {'a': [1, 2, 3, 1], 'b': [3, 4, 5], 'c': [1, 2]}\\n    >>> count_dict = task_func(d)\\n    >>> print(count_dict)\\n    {1: 3, 2: 2, 3: 2, 4: 1, 5: 1}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Count the occurrence of each integer in the values of the input dictionary, where each value is a list of integers, and return a dictionary with these counts. The resulting dictionary's keys are the integers, and the values are their respective counts across all lists in the input dictionary.\\nThe function should output with:\\n    dict: A dictionary where each key is an integer from any of the input lists, and the value is the count of\\n    how often that integer appears in all the lists combined.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nimport itertools\\ndef task_func(d):\\n```\",\"libs\":\"['collections', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}