{"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":"f33c797f-fdb9-5fe9-a882-0cbaa28e4be9","task_key":"default--v0~2e1~2e0~5fhf--f33c797f-fdb9-5fe9-a882-0cbaa28e4be9","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf f33c797f-fdb9-5fe9-a882-0cbaa28e4be9","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import sys\\nimport json\\nfrom datetime import datetime\\n# Constants\\nPATH_TO_APPEND = '/path/to/whatever'\\nJSON_FILE = '/path/to/json_file.json'\\ndef task_func(path_to_append=PATH_TO_APPEND, json_file=JSON_FILE):\\n\",\"complete_prompt\":\"import sys\\nimport json\\nfrom datetime import datetime\\n\\n# Constants\\nPATH_TO_APPEND = '/path/to/whatever'\\nJSON_FILE = '/path/to/json_file.json'\\n\\ndef task_func(path_to_append=PATH_TO_APPEND, json_file=JSON_FILE):\\n    \\\"\\\"\\\"\\n    Add a specific path to sys.path and update a JSON file with the current date and time.\\n    This function appends a given path to Python's sys.path and updates a JSON file with the current date and time under the key 'last_updated'.\\n    \\n    Parameters:\\n    - path_to_append (str): The path to append to sys.path. Default is '/path/to/whatever'.\\n    - json_file (str): The path to the JSON file to update. Default is '/path/to/json_file.json'. The file should exist before running the function.\\n\\n    Returns:\\n    - json_data (dict): The updated JSON data. The dictionary will contain a 'last_updated' key with the current datetime as its value.\\n\\n    Requirements:\\n    - sys\\n    - json\\n    - datetime.datetime\\n\\n    Example:\\n    >>> task_func('/path/to/new_directory', '/path/to/new_json_file.json')\\n    {'last_updated': '2023-08-28 12:34:56'}\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Add a specific path to sys.path and update a JSON file with the current date and time. This function appends a given path to Python's sys.path and updates a JSON file with the current date and time under the key 'last_updated'.\\nThe function should output with:\\n    json_data (dict): The updated JSON data. The dictionary will contain a 'last_updated' key with the current datetime as its value.\\nYou should write self-contained code starting with:\\n```\\nimport sys\\nimport json\\nfrom datetime import datetime\\n# Constants\\nPATH_TO_APPEND = '/path/to/whatever'\\nJSON_FILE = '/path/to/json_file.json'\\ndef task_func(path_to_append=PATH_TO_APPEND, json_file=JSON_FILE):\\n```\",\"libs\":\"['datetime', 'json', 'sys']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}