{"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":"0dd4e115-8955-57c9-a573-8009119dc7d9","task_key":"default--v0~2e1~2e0~5fhf--0dd4e115-8955-57c9-a573-8009119dc7d9","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 0dd4e115-8955-57c9-a573-8009119dc7d9","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from collections import Counter\\nimport json\\nimport random\\n# Constants\\nWORDS = ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig', 'grape', 'honeydew']\\ndef task_func(n, file_name, seed=77):\\n\",\"complete_prompt\":\"from collections import Counter\\nimport json\\nimport random\\n\\n\\n# Constants\\nWORDS = ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig', 'grape', 'honeydew']\\n\\ndef task_func(n, file_name, seed=77):\\n    \\\"\\\"\\\"\\n    Create a json file with a number of n randomly selected words from a constant list named WORDS.\\n    \\n    Parameters:\\n    n (int): The number of words to select from the list.\\n    file_name (str): The name of the json file to be generated.\\n    seed (int, Optional): The seed for the random number generator. Defaults to 77.\\n    \\n    Returns:\\n    str: The name of the json file generated.\\n\\n    Requirements:\\n    - collections\\n    - json\\n    - random\\n\\n    Example:\\n    >>> import tempfile\\n    >>> temp_dir = tempfile.mkdtemp()\\n    >>> file_name = temp_dir + \\\"/word_counts.json\\\"\\n    >>> task_func(5, file_name, 29).endswith('word_counts.json')\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a json file with a number of n randomly selected words from a constant list named WORDS.\\nThe function should output with:\\n    str: The name of the json file generated.\\nYou should write self-contained code starting with:\\n```\\nfrom collections import Counter\\nimport json\\nimport random\\n# Constants\\nWORDS = ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig', 'grape', 'honeydew']\\ndef task_func(n, file_name, seed=77):\\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":"index","subproblems":[],"grids":[]}