{"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":"38030736-f57c-512d-a4a7-5418f13a12b2","task_key":"default--v0~2e1~2e0~5fhf--38030736-f57c-512d-a4a7-5418f13a12b2","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 38030736-f57c-512d-a4a7-5418f13a12b2","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nfrom collections import Counter\\nimport random\\ndef task_func(my_dict, keys):\\n\",\"complete_prompt\":\"import json\\nfrom collections import Counter\\nimport random\\n\\ndef task_func(my_dict, keys):\\n    \\\"\\\"\\\"\\n    Updates a given dictionary by adding 10 random elements based on the 'keys' parameter,\\n    with values as random integers from 1 to 100. It saves the JSON representation of the\\n    updated dictionary to a file and the counts of each key to a separate text file.\\n\\n    Parameters:\\n        my_dict (dict): The dictionary to be updated.\\n        keys (list of str): A list of keys to be added to the dictionary.\\n\\n    Returns:\\n        tuple: The dictionary, path to the JSON file, and path to the text file.\\n\\n    Raises:\\n        ValueError: If 'keys' does not contain exactly 10 unique elements.\\n\\n    Note:\\n        This function modifies the input dictionary in place.\\n        The filename of the json is 'updated_dictionary.json'\\n        The filename of the txt file is 'key_frequencies.txt'\\n\\n    Requirements:\\n    - json\\n    - collections.Counter\\n    - random\\n\\n    Examples:\\n    >>> result, json_path, txt_path = task_func({'first_key': 1, 'second_key': 2}, ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'])\\n    >>> isinstance(result, dict)\\n    True\\n    >>> len(result) > 2  # Checking if more keys have been added\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Updates a given dictionary by adding 10 random elements based on the 'keys' parameter, with values as random integers from 1 to 100. It saves the JSON representation of the updated dictionary to a file and the counts of each key to a separate text file.\\nNote that: This function modifies the input dictionary in place. The filename of the json is 'updated_dictionary.json' The filename of the txt file is 'key_frequencies.txt'\\nThe function should raise the exception for: ValueError: If 'keys' does not contain exactly 10 unique elements.\\nThe function should output with:\\n    tuple: The dictionary, path to the JSON file, and path to the text file.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nfrom collections import Counter\\nimport random\\ndef task_func(my_dict, keys):\\n```\",\"libs\":\"['collections', 'random', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}