{"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":"540d61c6-32a4-59ec-a51b-a99462651f96","task_key":"default--v0~2e1~2e0~5fhf--540d61c6-32a4-59ec-a51b-a99462651f96","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 540d61c6-32a4-59ec-a51b-a99462651f96","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import base64\\nimport hashlib\\nimport os\\ndef task_func(password, SALT_LENGTH = 32):\\n\",\"complete_prompt\":\"import base64\\nimport hashlib\\nimport os\\n\\ndef task_func(password, SALT_LENGTH = 32):\\n    \\\"\\\"\\\"\\n    Hashes a password using the PBKDF2 HMAC algorithm with SHA-256 as the hashing algorithm, \\n    combined with a randomly generated salt, and returns both the salt and the hashed password, \\n    each base64-encoded.\\n\\n    Parameters:\\n    password (str): The password to be hashed.\\n    SALT_LENGTH (int): the length of the randomly generated salt.\\n\\n    Returns:\\n    tuple[bytes, bytes]: A tuple containing the base64-encoded salt and the base64-encoded hashed password as byte strings.\\n\\n    Raises:\\n    ValueError if the password is None or empty\\n\\n    Requirements:\\n    - base64\\n    - hashlib\\n    - os\\n\\n    Example:\\n    >>> salt, hashed_password = task_func('my_password')\\n    >>> isinstance(salt, bytes)\\n    True\\n    >>> isinstance(hashed_password, bytes)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Hashes a password using the PBKDF2 HMAC algorithm with SHA-256 as the hashing algorithm, combined with a randomly generated salt, and returns both the salt and the hashed password, each base64-encoded.\\nThe function should raise the exception for: ValueError if the password is None or empty\\nThe function should output with:\\n    tuple[bytes, bytes]: A tuple containing the base64-encoded salt and the base64-encoded hashed password as byte strings.\\nYou should write self-contained code starting with:\\n```\\nimport base64\\nimport hashlib\\nimport os\\ndef task_func(password, SALT_LENGTH = 32):\\n```\",\"libs\":\"['base64', 'hashlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}