{"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":"82ff8866-c661-5693-892b-327b6924797a","task_key":"default--v0~2e1~2e0~5fhf--82ff8866-c661-5693-892b-327b6924797a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 82ff8866-c661-5693-892b-327b6924797a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import os\\nimport hashlib\\n# Constants\\nDIRECTORY = \\\"./hashed_files\\\"\\ndef task_func(input_string):\\n\",\"complete_prompt\":\"import os\\nimport hashlib\\n\\n# Constants\\nDIRECTORY = \\\"./hashed_files\\\"\\n\\n\\ndef task_func(input_string):\\n    \\\"\\\"\\\"\\n    Hash each non-empty line of a multi-line string using SHA256 and save the hashes to files.\\n    The filename is the first 10 characters of the hash, with a '.txt' extension.\\n\\n    Parameters:\\n    - input_string (str): A multi-line string to be processed.\\n\\n    Returns:\\n    - list[str]: A list of file paths where the hashes of non-empty lines are saved.\\n\\n    Requirements:\\n    - os\\n    - hashlib\\n\\n    Notes:\\n    - If the DIRECTORY does not exist, it is created.\\n    - Empty lines in the input string are ignored.\\n\\n    Example:\\n    >>> file_paths = task_func('line a\\\\nfollows by line b\\\\n\\\\n...bye\\\\n')\\n    >>> print(file_paths)\\n    ['./hashed_files/489fe1fa6c.txt', './hashed_files/67009597fe.txt', './hashed_files/eab4758603.txt']\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Hash each non-empty line of a multi-line string using SHA256 and save the hashes to files. The filename is the first 10 characters of the hash, with a '.txt' extension.\\nNote that: Notes: If the DIRECTORY does not exist, it is created. Empty lines in the input string are ignored.\\nThe function should output with:\\n    list[str]: A list of file paths where the hashes of non-empty lines are saved.\\nYou should write self-contained code starting with:\\n```\\nimport os\\nimport hashlib\\n# Constants\\nDIRECTORY = \\\"./hashed_files\\\"\\ndef task_func(input_string):\\n```\",\"libs\":\"['hashlib', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}