{"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":"a110df5c-39a1-5801-afeb-3a79305d0bb6","task_key":"default--v0~2e1~2e0~5fhf--a110df5c-39a1-5801-afeb-3a79305d0bb6","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf a110df5c-39a1-5801-afeb-3a79305d0bb6","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import xml.etree.ElementTree as ET\\nimport csv\\ndef task_func(xml_content, output_csv_path):\\n\",\"complete_prompt\":\"import xml.etree.ElementTree as ET\\nimport csv\\n\\n\\ndef task_func(xml_content, output_csv_path):\\n    \\\"\\\"\\\"\\n    Parses XML content from a string and converts it into a CSV format.\\n\\n    Parameters:\\n    - xml_content (str): A string containing the XML content to be parsed. It should\\n                       be well-formed XML.\\n    - output_csv_path (str): The file path where the resulting CSV file will be saved.\\n                           This path must be valid and accessible for writing.\\n\\n    Returns:\\n    - None: The function does not return any value. Instead, it writes the output to\\n          a CSV file at the specified path.\\n\\n    Raises:\\n    - ET.ParseError: This exception is raised if the input XML content is malformed or\\n                   cannot be successfully parsed. The exception message includes\\n                   details about the parsing error.\\n    - IOError: Raised if there is an issue with writing to the specified CSV file path.\\n             This can happen due to reasons like invalid file path, full disk space,\\n             lack of write permissions, etc. The exception message provides details\\n             about the IO error.\\n\\n\\n    Requirements:\\n    - xml\\n    - csv\\n\\n    Example:\\n    >>> task_func('<root><element>data</element></root>', 'path/to/output.csv')\\n    >>> with open('path/to/output.csv', 'r') as f:\\n    ...     print(f.read())\\n    element,data\\n\\n    Note:\\n    - Ensure that the XML content passed to the function is well-formed.\\n    - The output CSV path should be a valid file path where the user has write\\n      permissions, to prevent IOError.\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Parses XML content from a string and converts it into a CSV format.\\nNote that: Ensure that the XML content passed to the function is well-formed. The output CSV path should be a valid file path where the user has write permissions, to prevent IOError.\\nThe function should raise the exception for: ET.ParseError: This exception is raised if the input XML content is malformed or cannot be successfully parsed. The exception message includes details about the parsing error. IOError: Raised if there is an issue with writing to the specified CSV file path. This can happen due to reasons like invalid file path, full disk space, lack of write permissions, etc. The exception message provides details about the IO error.\\nThe function should output with:\\n    None: The function does not return any value. Instead, it writes the output to\\n    a CSV file at the specified path.\\nYou should write self-contained code starting with:\\n```\\nimport xml.etree.ElementTree as ET\\nimport csv\\ndef task_func(xml_content, output_csv_path):\\n```\",\"libs\":\"['xml', 'csv']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}