{"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":"9586d57a-fe49-5b43-8806-a80dd61bdfec","task_key":"default--v0~2e1~2e0~5fhf--9586d57a-fe49-5b43-8806-a80dd61bdfec","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 9586d57a-fe49-5b43-8806-a80dd61bdfec","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import numpy as np\\nfrom collections import Counter\\ndef task_func(list_of_tuples):\\n\",\"complete_prompt\":\"import numpy as np\\nfrom collections import Counter\\n\\n\\ndef task_func(list_of_tuples):\\n    \\\"\\\"\\\"\\n    Computes the sum of numeric values and counts the occurrences of categories in a list of tuples.\\n\\n    Each tuple in the input list contains a numeric value and a category. This function calculates\\n    the sum of all the numeric values and also counts how many times each category appears in the list.\\n\\n    Parameters:\\n    - list_of_tuples (list of tuple): A list where each tuple contains a numeric value and a category.\\n\\n    Returns:\\n    - tuple: A 2-element tuple where the first element is the sum of the numeric values, and the\\n             second element is a dictionary with categories as keys and their counts as values.\\n\\n    Requirements:\\n    - numpy\\n    - collections.Counter\\n\\n    Example:\\n    >>> list_of_tuples = [(5, 'Fruits'), (9, 'Vegetables'), (-1, 'Dairy'), (-2, 'Bakery'), (4, 'Meat')]\\n    >>> sum_of_values, category_counts = task_func(list_of_tuples)\\n    >>> print(sum_of_values)\\n    15\\n    >>> print(category_counts)\\n    {'Fruits': 1, 'Vegetables': 1, 'Dairy': 1, 'Bakery': 1, 'Meat': 1}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Computes the sum of numeric values and counts the occurrences of categories in a list of tuples. Each tuple in the input list contains a numeric value and a category. This function calculates the sum of all the numeric values and also counts how many times each category appears in the list.\\nThe function should output with:\\n    tuple: A 2-element tuple where the first element is the sum of the numeric values, and the\\n    second element is a dictionary with categories as keys and their counts as values.\\nYou should write self-contained code starting with:\\n```\\nimport numpy as np\\nfrom collections import Counter\\ndef task_func(list_of_tuples):\\n```\",\"libs\":\"['collections', 'numpy']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}