{"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":"1219053f-8186-5006-b155-8370adda8873","task_key":"default--v0~2e1~2e0~5fhf--1219053f-8186-5006-b155-8370adda8873","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 1219053f-8186-5006-b155-8370adda8873","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import ast\\nimport os\\nimport glob\\n# Constants\\nDIRECTORY = 'data'\\ndef task_func(directory):\\n\",\"complete_prompt\":\"import ast\\nimport os\\nimport glob\\n\\n# Constants\\nDIRECTORY = 'data'\\n\\ndef task_func(directory):\\n    \\\"\\\"\\\"\\n    Convert all Unicode string representations of dictionaries in all text files \\n    in the specified directory to Python dictionaries.\\n\\n    Parameters:\\n    directory (str): The path to the directory containing the text files.\\n\\n    Returns:\\n    list: A list of dictionaries extracted from the text files.\\n\\n    Requirements:\\n    - ast\\n    - os\\n    - glob\\n\\n    Example:\\n    >>> task_func(\\\"sample_directory/\\\")\\n    [{'key1': 'value1'}, {'key2': 'value2'}]\\n\\n    Note:\\n    Ensure that the text files in the directory contain valid Unicode string representations of dictionaries.\\n\\n    Raises:\\n    - The function would raise a ValueError if there are text file(s) that have invalid dictionary representation\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Convert all Unicode string representations of dictionaries in all text files in the specified directory to Python dictionaries.\\nNote that: Ensure that the text files in the directory contain valid Unicode string representations of dictionaries.\\nThe function should raise the exception for: The function would raise a ValueError if there are text file(s) that have invalid dictionary representation\\nThe function should output with:\\n    list: A list of dictionaries extracted from the text files.\\nYou should write self-contained code starting with:\\n```\\nimport ast\\nimport os\\nimport glob\\n# Constants\\nDIRECTORY = 'data'\\ndef task_func(directory):\\n```\",\"libs\":\"['glob', 'ast', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}