{"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":"c2063063-94ef-5fa3-93f2-61aa4e973412","task_key":"default--v0~2e1~2e0~5fhf--c2063063-94ef-5fa3-93f2-61aa4e973412","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c2063063-94ef-5fa3-93f2-61aa4e973412","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import string\\nimport random\\ndef task_func(length, random_seed=None):\\n\",\"complete_prompt\":\"import string\\nimport random\\n\\n\\n\\ndef task_func(length, random_seed=None):\\n    \\\"\\\"\\\"\\n    Generate a random string of a given length, with each character being either\\n    a parenthesis (from the set \\\"(){}[]\\\") \\n    or a lowercase English character.\\n    For function uses a optional random_seed when sampling characters.\\n\\n    Parameters:\\n    length (int): The length of the string to generate.\\n    random_seed (int): Random seed for rng. Used in picking random characters.\\n                       Defaults to None.\\n\\n    Returns:\\n    str: The generated string.\\n\\n    Requirements:\\n    - string\\n    - random\\n\\n    Note: The function uses the internal string constant BRACKETS for \\n          definition of the bracket set.\\n\\n    Example:\\n    >>> string = task_func(10, random_seed=1)\\n    >>> print(string)\\n    ieqh]{[yng\\n    \\n    >>> string = task_func(34, random_seed=42)\\n    >>> print(string)\\n    hbrpoigf)cbfnobm(o{rak)vrjnvgfygww\\n\\n    >>> string = task_func(23, random_seed=1)\\n    >>> print(string)\\n    ieqh]{[yng]by)a{rogubbb\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a random string of a given length, with each character being either a parenthesis (from the set \\\"(){}[]\\\") or a lowercase English character. For function uses a optional random_seed when sampling characters. >>> string = task_func(34, random_seed=42) >>> print(string) hbrpoigf)cbfnobm(o{rak)vrjnvgfygww >>> string = task_func(23, random_seed=1) >>> print(string) ieqh]{[yng]by)a{rogubbb\\nNote that: The function uses the internal string constant BRACKETS for definition of the bracket set.\\nThe function should output with:\\n    str: The generated string.\\nYou should write self-contained code starting with:\\n```\\nimport string\\nimport random\\ndef task_func(length, random_seed=None):\\n```\",\"libs\":\"['random', 'string']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}