{"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":"87d17635-8040-506c-8291-e5af2e84e481","task_key":"default--v0~2e1~2e0~5fhf--87d17635-8040-506c-8291-e5af2e84e481","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 87d17635-8040-506c-8291-e5af2e84e481","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import collections\\nimport random\\nimport string\\ndef task_func(length=100):\\n\",\"complete_prompt\":\"import collections\\nimport random\\nimport string\\n\\ndef task_func(length=100):\\n    \\\"\\\"\\\"\\n    Generate a random string of the specified length composed of uppercase and lowercase letters, \\n    and then count the occurrence of each character in this string.\\n\\n    Parameters:\\n    length (int, optional): The number of characters in the generated string. Default is 100.\\n\\n    Returns:\\n    dict: A dictionary where each key is a character from the generated string and the value \\n            is the count of how many times that character appears in the string.\\n\\n    Requirements:\\n    - collections\\n    - random\\n    - string\\n\\n    Raises:\\n    ValueError if the length is a negative number\\n\\n    Example:\\n    >>> import random\\n    >>> random.seed(42)  # Ensures reproducibility for demonstration\\n    >>> task_func(10)\\n    {'h': 1, 'B': 2, 'O': 1, 'L': 1, 'm': 1, 'j': 1, 'u': 1, 'E': 1, 'V': 1}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a random string of the specified length composed of uppercase and lowercase letters, and then count the occurrence of each character in this string.\\nThe function should raise the exception for: ValueError if the length is a negative number\\nThe function should output with:\\n    dict: A dictionary where each key is a character from the generated string and the value\\n    is the count of how many times that character appears in the string.\\nYou should write self-contained code starting with:\\n```\\nimport collections\\nimport random\\nimport string\\ndef task_func(length=100):\\n```\",\"libs\":\"['collections', 'random', 'string']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}