{"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":"f45f708a-ac3d-5b19-8d7a-5a7dfd5531e0","task_key":"default--v0~2e1~2e0~5fhf--f45f708a-ac3d-5b19-8d7a-5a7dfd5531e0","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f45f708a-ac3d-5b19-8d7a-5a7dfd5531e0","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import rsa\\nimport os\\nimport zipfile\\nfrom base64 import b64encode\\ndef task_func(directory):\\n\",\"complete_prompt\":\"import rsa\\nimport os\\nimport zipfile\\nfrom base64 import b64encode\\n\\ndef task_func(directory):\\n    \\\"\\\"\\\"\\n    Generates RSA public and private keys, encrypts all files in the specified directory using the public key,\\n    and saves the encrypted files into a zip file. It returns the public key and the name of the zip file.\\n\\n    Note: This method directly encrypts file data with RSA, which is not recommended for large files or\\n    production use. Typically, RSA is used to encrypt a symmetric key (like AES), which is then used to\\n    encrypt the actual data.\\n\\n    Parameters:\\n    directory (str): The directory containing the files to be encrypted.\\n\\n    Returns:\\n    rsa.PublicKey: The RSA public key.\\n    str: The filename of the zip file containing the encrypted files.\\n\\n    Requirements:\\n    - rsa\\n    - os\\n    - zipfile\\n    - base64.b64encode\\n\\n    Examples:\\n    >>> pub_key, zipfile_name = task_func('./')\\n    >>> isinstance(pub_key, rsa.PublicKey)\\n    'True'\\n    >>> isinstance(zipfile_name, str)\\n    'True'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates RSA public and private keys, encrypts all files in the specified directory using the public key, and saves the encrypted files into a zip file. It returns the public key and the name of the zip file.\\nNote that: This method directly encrypts file data with RSA, which is not recommended for large files or production use. Typically, RSA is used to encrypt a symmetric key (like AES), which is then used to encrypt the actual data.\\nThe function should output with:\\n    rsa.PublicKey: The RSA public key.\\n    str: The filename of the zip file containing the encrypted files.\\nYou should write self-contained code starting with:\\n```\\nimport rsa\\nimport os\\nimport zipfile\\nfrom base64 import b64encode\\ndef task_func(directory):\\n```\",\"libs\":\"['base64', 'rsa', '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":[]}