{"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":"23dc3ab6-d5a0-5a93-b009-668a90f337ce","task_key":"default--v0~2e1~2e0~5fhf--23dc3ab6-d5a0-5a93-b009-668a90f337ce","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 23dc3ab6-d5a0-5a93-b009-668a90f337ce","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import hashlib\\nimport rsa\\nimport base64\\ndef task_func(file_path):\\n\",\"complete_prompt\":\"import hashlib\\nimport rsa\\nimport base64\\n\\n\\ndef task_func(file_path):\\n    \\\"\\\"\\\"\\n    Generates a signed hash of a file's contents using RSA encryption. The file's contents are hashed using SHA-256,\\n    and then the hash is signed with a private RSA key stored in 'private.pem'. The signed hash is encoded in base64.\\n\\n    Parameters:\\n    file_path (str): The path to the file whose contents are to be signed.\\n\\n    Returns:\\n    str: The base64 encoded signed hash of the file.\\n\\n    Requirements:\\n    - hashlib\\n    - rsa\\n    - base64\\n\\n    Examples:\\n    Assuming 'example.txt' contains some text and a valid 'private.pem' is present,\\n    >>> len(task_func('example.txt')) > 0\\n    True\\n\\n    Assuming 'empty.txt' is an empty file and a valid 'private.pem' is present,\\n    >>> len(task_func('empty.txt')) > 0\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generates a signed hash of a file's contents using RSA encryption. The file's contents are hashed using SHA-256, and then the hash is signed with a private RSA key stored in 'private.pem'. The signed hash is encoded in base64. Assuming 'empty.txt' is an empty file and a valid 'private.pem' is present, >>> len(task_func('empty.txt')) > 0 True\\nThe function should output with:\\n    str: The base64 encoded signed hash of the file.\\nYou should write self-contained code starting with:\\n```\\nimport hashlib\\nimport rsa\\nimport base64\\ndef task_func(file_path):\\n```\",\"libs\":\"['base64', 'rsa', 'hashlib']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}