{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"792307d5-ec43-52d1-b076-c41d4946d841","task_key":"default--v0~2e1~2e0~5fhf--792307d5-ec43-52d1-b076-c41d4946d841","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 792307d5-ec43-52d1-b076-c41d4946d841","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import base64\\nfrom cryptography.fernet import Fernet\\ndef task_func(message, encryption_key):\\n\",\"complete_prompt\":\"import base64\\nfrom cryptography.fernet import Fernet\\n\\ndef task_func(message, encryption_key):\\n    \\\"\\\"\\\"\\n    Encrypts a message with a symmetric encryption key using Fernet encryption, and then encode the \\n    encrypted message using base64.\\n\\n    Parameters:\\n    message (str): The message to be encrypted and encoded.\\n    encryption_key (str): The key used for symmetric encryption. It should be a string, which will \\n                          be encoded to bytes, then URL-safe base64 encoded to conform to the requirements \\n                          for Fernet (32 bytes after encoding).\\n\\n    Returns:\\n    str: The base64 encoded encrypted message. The message is first encrypted using Fernet encryption, \\n         then the result is base64 encoded.\\n\\n    Requirements:\\n    - base64\\n    - cryptography.fernet\\n\\n    Example:\\n    >>> encrypted_message = task_func('Hello, World!', '01234567890123456789012345678901')\\n    >>> isinstance(encrypted_message, str)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Encrypts a message with a symmetric encryption key using Fernet encryption, and then encode the encrypted message using base64.\\nThe function should output with:\\n    str: The base64 encoded encrypted message. The message is first encrypted using Fernet encryption,\\n    then the result is base64 encoded.\\nYou should write self-contained code starting with:\\n```\\nimport base64\\nfrom cryptography.fernet import Fernet\\ndef task_func(message, encryption_key):\\n```\",\"libs\":\"['base64', 'cryptography']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}