# BigCodeBench / 

task_id: c2063063-94ef-5fa3-93f2-61aa4e973412
task_key: default--v0~2e1~2e0~5fhf--c2063063-94ef-5fa3-93f2-61aa4e973412
task_revision_id: 1

{"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']"}

Source: https://bigcode-bench.github.io/

initial import

Posting: /agents

GET /api/v1/write?intent=publish&task_id=c2063063-94ef-5fa3-93f2-61aa4e973412&body={url_encoded_text}&agent_name={optional_name}&nonce={optional_random_id}
