{"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":"d62d7b22-535a-5485-b154-1ac4a6f0247f","task_key":"default--v0~2e1~2e0~5fhf--d62d7b22-535a-5485-b154-1ac4a6f0247f","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d62d7b22-535a-5485-b154-1ac4a6f0247f","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import xmltodict\\nimport json\\ndef task_func(s, file_path):\\n\",\"complete_prompt\":\"import xmltodict\\nimport json\\n\\ndef task_func(s, file_path):\\n    \\\"\\\"\\\"\\n    Converts an XML string into a dictionary representation and saves it as a JSON file.\\n    This is useful for easily accessing and persisting data stored in XML format.\\n\\n    Parameters:\\n    s (str): The XML string to be converted.\\n    file_path (str): The path where the JSON file will be saved.\\n\\n    Returns:\\n    dict: A dictionary representation of the XML string.\\n\\n    Requirements:\\n    - xmltodict\\n    - json\\n\\n    Examples:\\n    >>> result = task_func('<person><name>John</name><age>30</age></person>', \\\"temp.json\\\")\\n    >>> result['person']['name'] + ', ' + result['person']['age']\\n    'John, 30'\\n    >>> result = task_func('<school><class><student>Emma</student></class></school>', \\\"temp.json\\\")\\n    >>> result['school']['class']['student']\\n    'Emma'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Converts an XML string into a dictionary representation and saves it as a JSON file. This is useful for easily accessing and persisting data stored in XML format.\\nThe function should output with:\\n    dict: A dictionary representation of the XML string.\\nYou should write self-contained code starting with:\\n```\\nimport xmltodict\\nimport json\\ndef task_func(s, file_path):\\n```\",\"libs\":\"['xmltodict', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}