{"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":"f007f0d1-792a-51bd-b3be-d39d1eedfdd7","task_key":"default--v0~2e1~2e0~5fhf--f007f0d1-792a-51bd-b3be-d39d1eedfdd7","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f007f0d1-792a-51bd-b3be-d39d1eedfdd7","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import xlwt\\nimport os\\nimport io\\nimport csv\\ndef task_func(csv_content, filename):\\n\",\"complete_prompt\":\"import xlwt\\nimport os\\nimport io\\nimport csv\\n\\ndef task_func(csv_content, filename):\\n    \\\"\\\"\\\"\\n    Converts CSV content into an Excel file and saves it with the given filename. The function reads the CSV content,\\n    creates a new Excel workbook, writes the data into the workbook, and saves it as an Excel file.\\n\\n    Parameters:\\n    csv_content (str): The CSV content as a string, where rows are separated by newlines and columns by commas.\\n    filename (str): The name of the Excel file to be created, including the .xls extension.\\n\\n    Returns:\\n    str: The absolute path of the created Excel file.\\n\\n    Requirements:\\n    - xlwt\\n    - os\\n    - io\\n    - csv\\n\\n    Examples:\\n    Convert simple CSV content to an Excel file and return its path.\\n    >>> csv_content = 'ID,Name,Age\\\\\\\\n1,John Doe,30\\\\\\\\n2,Jane Doe,28'\\n    >>> os.path.isfile(task_func(csv_content, 'test_data.xls'))\\n    True\\n\\n    Create an Excel file with a single cell.\\n    >>> csv_content = 'Hello'\\n    >>> os.path.isfile(task_func(csv_content, 'single_cell.xls'))\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Converts CSV content into an Excel file and saves it with the given filename. The function reads the CSV content, creates a new Excel workbook, writes the data into the workbook, and saves it as an Excel file. Create an Excel file with a single cell. >>> csv_content = 'Hello' >>> os.path.isfile(task_func(csv_content, 'single_cell.xls')) True\\nThe function should output with:\\n    str: The absolute path of the created Excel file.\\nYou should write self-contained code starting with:\\n```\\nimport xlwt\\nimport os\\nimport io\\nimport csv\\ndef task_func(csv_content, filename):\\n```\",\"libs\":\"['io', 'csv', 'xlwt', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}