{"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":"f782c434-5c92-5a47-9f8d-72907c8ae8f7","task_key":"default--v0~2e1~2e0~5fhf--f782c434-5c92-5a47-9f8d-72907c8ae8f7","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f782c434-5c92-5a47-9f8d-72907c8ae8f7","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import codecs\\nimport os\\nimport zipfile\\ndef task_func(directory_name=\\\"latin_files\\\",\\n          content='Sopetón',\\n          file_names=['file1.txt', 'file2.txt', 'file3.txt'],\\n          encoding=\\\"latin-1\\\"):\\n\",\"complete_prompt\":\"import codecs\\nimport os\\nimport zipfile\\n\\n\\ndef task_func(directory_name=\\\"latin_files\\\",\\n          content='Sopetón',\\n          file_names=['file1.txt', 'file2.txt', 'file3.txt'],\\n          encoding=\\\"latin-1\\\"):\\n    '''\\n    Create a directory with the given name, create specified .txt files. Encode\\n    the content using the specified encoding and write it into all .txt files, \\n    then zip the directory. \\n\\n    Args:\\n    directory_name (str): The name of the directory to be created.\\n    content (str, optional): The content which should be written to each .txt file.\\n                             Defaults to 'Sopetón'.\\n    file_names (list): List of .txt file names to be created.\\n                       Defaults to ['file1.txt', 'file2.txt', 'file3.txt'].\\n    encoding (str): The encoding type for the files. Default is 'latin-1'.\\n\\n    Returns:\\n    str: The zipped file name.\\n\\n    Requirements:\\n    - codecs\\n    - os\\n    - zipfile\\n\\n    Example:\\n    >>> zipped_file = task_func(\\\"latin_files\\\", \\\"test\\\", [\\\"file1.txt\\\", \\\"file2.txt\\\", \\\"file3.txt\\\"])\\n    >>> print(zipped_file)\\n    latin_files.zip\\n\\n    >>> zipped_file = task_func(directory_name=\\\"directorio\\\", content='hi', file_names=[\\\"custom1.txt\\\", \\\"custom2.txt\\\"], encoding='utf-8')\\n    >>> print(zipped_file)\\n    directorio.zip\\n    '''\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a directory with the given name, create specified .txt files. Encode the content using the specified encoding and write it into all .txt files, then zip the directory. Args: directory_name (str): The name of the directory to be created. content (str, optional): The content which should be written to each .txt file. Defaults to 'Sopetón'. file_names (list): List of .txt file names to be created. Defaults to ['file1.txt', 'file2.txt', 'file3.txt']. encoding (str): The encoding type for the files. Default is 'latin-1'. >>> zipped_file = task_func(directory_name=\\\"directorio\\\", content='hi', file_names=[\\\"custom1.txt\\\", \\\"custom2.txt\\\"], encoding='utf-8') >>> print(zipped_file) directorio.zip\\nThe function should output with:\\n    str: The zipped file name.\\nYou should write self-contained code starting with:\\n```\\nimport codecs\\nimport os\\nimport zipfile\\ndef task_func(directory_name=\\\"latin_files\\\",\\n          content='Sopetón',\\n          file_names=['file1.txt', 'file2.txt', 'file3.txt'],\\n          encoding=\\\"latin-1\\\"):\\n```\",\"libs\":\"['codecs', 'zipfile', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}