{"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":"a0338f1a-9e72-5818-a56a-df0d27c38ebc","task_key":"default--v0~2e1~2e0~5fhf--a0338f1a-9e72-5818-a56a-df0d27c38ebc","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a0338f1a-9e72-5818-a56a-df0d27c38ebc","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from nltk.tokenize import RegexpTokenizer\\nfrom string import punctuation\\nimport os\\ndef task_func(text, output_filename):\\n\",\"complete_prompt\":\"from nltk.tokenize import RegexpTokenizer\\nfrom string import punctuation\\nimport os\\n\\n\\ndef task_func(text, output_filename):\\n    \\\"\\\"\\\"\\n    Extracts words from the input text that begin with the '$' character and saves them to a specified file,\\n    excluding any words that are solely composed of punctuation characters.\\n\\n    This function is useful for processing texts where '$' is used to denote special terms or entities and saves\\n    these terms to a file for further analysis or usage.\\n\\n    Parameters:\\n    input_text (str): The text from which to extract '$' prefixed words.\\n    output_filename (str): The filename for the output file where the extracted words will be saved.\\n\\n    Returns:\\n    str: The absolute path to the output file containing the '$' prefixed words.\\n\\n    Requirements:\\n    - nltk.tokenize.RegexpTokenizer\\n    - string.punctuation\\n    - os\\n\\n    Example:\\n    >>> example_text = \\\"$example $valid $!invalid $$ alsoInvalid\\\"\\n    >>> task_func(example_text, 'extracted_dollar_words.txt')\\n    '/absolute/path/to/extracted_dollar_words.txt'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Extracts words from the input text that begin with the '$' character and saves them to a specified file, excluding any words that are solely composed of punctuation characters. This function is useful for processing texts where '$' is used to denote special terms or entities and saves these terms to a file for further analysis or usage.\\nThe function should output with:\\n    str: The absolute path to the output file containing the '$' prefixed words.\\nYou should write self-contained code starting with:\\n```\\nfrom nltk.tokenize import RegexpTokenizer\\nfrom string import punctuation\\nimport os\\ndef task_func(text, output_filename):\\n```\",\"libs\":\"['nltk', 'string', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}