{"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":"faeca27a-6c0e-594e-9df8-d475e7464856","task_key":"default--v0~2e1~2e0~5fhf--faeca27a-6c0e-594e-9df8-d475e7464856","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf faeca27a-6c0e-594e-9df8-d475e7464856","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nfrom operator import itemgetter\\nimport itertools\\n#CONSTANT\\nANIMAL = ['cat', 'camel', 'cow', 'dog', 'elephant', 'fox', 'giraffe', 'hippo', 'iguana', 'jaguar']\\ndef task_func(animal_dict):\\n\",\"complete_prompt\":\"from collections import Counter\\nfrom operator import itemgetter\\nimport itertools\\n\\n#CONSTANT\\nANIMAL = ['cat', 'camel', 'cow', 'dog', 'elephant', 'fox', 'giraffe', 'hippo', 'iguana', 'jaguar']\\n\\ndef task_func(animal_dict):\\n    \\\"\\\"\\\"\\n    Given a dictionary of animals as keys and letters as values, count the frequency of each letter in the animals.\\n    \\n    Note:\\n    - Remove key in the dictionary if it is not an animal from ANIMAL constant\\n\\n    Parameters:\\n    animal_dict (dict): The dictionary with animals as keys and their letters as values.\\n    \\n    Returns:\\n    dict: A dictionary with letters as keys and their frequencies as values, sorted in descending order by frequency. Format: {letter: frequency}.\\n    \\n    Requirements:\\n    - collections.Counter\\n    - operator.itemgetter\\n    - itertools\\n    \\n    Example:\\n    >>> animal_dict = {'cat': 'c', 'dog': 'd', 'elephant': 'e', 'fox': 'f', 'giraffe': 'g', 'hippo': 'h', 'iguana': 'i', 'jaguar': 'j'}\\n    >>> counts = task_func(animal_dict)\\n    >>> print(counts)\\n    {'a': 7, 'g': 4, 'o': 3, 'e': 3, 'p': 3, 'f': 3, 'i': 3, 't': 2, 'h': 2, 'n': 2, 'r': 2, 'u': 2, 'c': 1, 'd': 1, 'l': 1, 'x': 1, 'j': 1}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Given a dictionary of animals as keys and letters as values, count the frequency of each letter in the animals.\\nNote that: Remove key in the dictionary if it is not an animal from ANIMAL constant\\nThe function should output with:\\n    dict: A dictionary with letters as keys and their frequencies as values, sorted in descending order by frequency. Format: {letter: frequency}.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nfrom operator import itemgetter\\nimport itertools\\n#CONSTANT\\nANIMAL = ['cat', 'camel', 'cow', 'dog', 'elephant', 'fox', 'giraffe', 'hippo', 'iguana', 'jaguar']\\ndef task_func(animal_dict):\\n```\",\"libs\":\"['operator', 'collections', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}