{"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":"1559ee78-ba89-5a19-b8d4-13817e602a7a","task_key":"default--v0~2e1~2e0~5fhf--1559ee78-ba89-5a19-b8d4-13817e602a7a","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 1559ee78-ba89-5a19-b8d4-13817e602a7a","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import xlwt\\nimport os\\n# Constants\\nFIELDS = ['ID', 'Name', 'Age']\\ndef task_func(values, filename):\\n\",\"complete_prompt\":\"import xlwt\\nimport os\\n\\n# Constants\\nFIELDS = ['ID', 'Name', 'Age']\\n\\ndef task_func(values, filename):\\n    \\\"\\\"\\\"\\n    Writes a list of OrderedDicts to an Excel file. Each OrderedDict in the list represents a row in the Excel sheet,\\n    and each key in the OrderedDict corresponds to a column defined in the FIELDS constant comprising column names \\n    'ID', 'Name', and 'Age'.\\n\\n    Parameters:\\n    values (list of OrderedDict): A list where each element is an OrderedDict with keys matching the FIELDS constant.\\n    filename (str): The filename for the Excel file to be created. It should include the '.xls' extension.\\n\\n    Returns:\\n    str: The absolute path of the created Excel file.\\n\\n    Requirements:\\n    - xlwt\\n    - os\\n\\n    Examples:\\n    Create an Excel file with data from a list of OrderedDicts.\\n    >>> data = [OrderedDict([('ID', 1), ('Name', 'John Doe'), ('Age', 30)]),\\n    ...         OrderedDict([('ID', 2), ('Name', 'Jane Doe'), ('Age', 28)])]\\n    >>> path = task_func(data, 'test_data.xls')\\n    >>> os.path.exists(path) and 'test_data.xls' in path\\n    True\\n\\n    Create an Excel file with no data.\\n    >>> empty_data = []\\n    >>> path = task_func(empty_data, 'empty_data.xls')\\n    >>> os.path.exists(path) and 'empty_data.xls' in path\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Writes a list of OrderedDicts to an Excel file. Each OrderedDict in the list represents a row in the Excel sheet, and each key in the OrderedDict corresponds to a column defined in the FIELDS constant comprising column names 'ID', 'Name', and 'Age'. Create an Excel file with no data. >>> empty_data = [] >>> path = task_func(empty_data, 'empty_data.xls') >>> os.path.exists(path) and 'empty_data.xls' in path 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\\n# Constants\\nFIELDS = ['ID', 'Name', 'Age']\\ndef task_func(values, filename):\\n```\",\"libs\":\"['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":[]}