{"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":"d0e0fbb5-cffa-5b93-88b8-b1339d26d8a6","task_key":"default--v0~2e1~2e0~5fhf--d0e0fbb5-cffa-5b93-88b8-b1339d26d8a6","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf d0e0fbb5-cffa-5b93-88b8-b1339d26d8a6","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nimport os\\ndef task_func(filename, data):\\n\",\"complete_prompt\":\"import json\\nimport os\\n\\ndef task_func(filename, data):\\n    \\\"\\\"\\\"\\n    Write a dictionary to a file as a JSON object and return the written content for verification.\\n    \\n    This function performs a write operation to store the dictionary data in JSON format\\n    and then reads it back to verify the content. Additionally, checks if the file exists using the os library.\\n\\n    Parameters:\\n    - filename (str): The name of the file to be written to.\\n    - data (dict): The dictionary containing data to be written as JSON to the file.\\n\\n    Returns:\\n    - tuple: A tuple containing a boolean indicating the success of the operation and the content that was written.\\n        - bool: indicating the success of the operation.\\n        - written_data (json): the content that was written.\\n    \\n    Requirements:\\n    - json\\n    - os\\n\\n    Example:\\n    >>> result, written_data = task_func('data.json', {'key': 'value'})\\n    >>> print(result)  # This should print: True\\n    True\\n    >>> print(written_data)  # This should print: {'key': 'value'}\\n    {'key': 'value'}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Write a dictionary to a file as a JSON object and return the written content for verification. This function performs a write operation to store the dictionary data in JSON format and then reads it back to verify the content. Additionally, checks if the file exists using the os library.\\nThe function should output with:\\n    tuple: A tuple containing a boolean indicating the success of the operation and the content that was written.\\n    bool: indicating the success of the operation.\\n    written_data (json): the content that was written.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nimport os\\ndef task_func(filename, data):\\n```\",\"libs\":\"['json', 'os']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}