{"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":"e9435858-9bcf-568e-b849-491ede1561a9","task_key":"default--v0~2e1~2e0~5fhf--e9435858-9bcf-568e-b849-491ede1561a9","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e9435858-9bcf-568e-b849-491ede1561a9","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import string\\nimport random\\ndef task_func(text, seed=None):\\n\",\"complete_prompt\":\"import string\\nimport random\\n\\n\\ndef task_func(text, seed=None):\\n    \\\"\\\"\\\"\\n    Transforms the input text by replacing each alphabetic character with a random letter,\\n    while preserving the case and non-alphabetic characters of the original text.\\n\\n    Parameters:\\n    - text (str): The input text to be transformed.\\n    - seed (int, optional): Random seed for reproducibility. Defaults to None (not set).\\n\\n    Returns:\\n    - str: A transformed string with random letters replacing the alphabetic characters of the input text,\\n      preserving non-alphabetic characters and the original case.\\n\\n    Requirements:\\n    - string\\n    - random\\n\\n    Notes:\\n    - Alphabet replacements are chosen from ascii characters of the same case as the original.\\n\\n    Example:\\n    >>> text = 'Hello, world!'\\n    >>> task_func(text, 0)\\n    'Mynbi, qpmzj!'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Transforms the input text by replacing each alphabetic character with a random letter, while preserving the case and non-alphabetic characters of the original text.\\nNote that: Notes: Alphabet replacements are chosen from ascii characters of the same case as the original.\\nThe function should output with:\\n    str: A transformed string with random letters replacing the alphabetic characters of the input text,\\n    preserving non-alphabetic characters and the original case.\\nYou should write self-contained code starting with:\\n```\\nimport string\\nimport random\\ndef task_func(text, 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":[]}