{"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":"93ba9d2e-d06b-52d0-a837-da721f8f27de","task_key":"default--v0~2e1~2e0~5fhf--93ba9d2e-d06b-52d0-a837-da721f8f27de","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 93ba9d2e-d06b-52d0-a837-da721f8f27de","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nimport random\\nfrom datetime import datetime, timedelta\\n# Constants\\nUSERS = ['Alice', 'Bob', 'Charlie', 'Dave', 'Eve']\\ndef task_func(file_path, num_entries, seed=None):\\n\",\"complete_prompt\":\"import json\\nimport random\\nfrom datetime import datetime, timedelta\\n\\n\\n# Constants\\nUSERS = ['Alice', 'Bob', 'Charlie', 'Dave', 'Eve']\\n\\ndef task_func(file_path, num_entries, seed=None):\\n    \\\"\\\"\\\"\\n    Create a JSON file on a specific file path with random user activity data.\\n    The number of entries in the JSON file is determined by num_entries. The written JSON file contains a list of dictionaries, with each dictionary representing a log entry with the following keys: 'user', 'action', and 'timestamp'.\\n\\n    Parameters:\\n    file_path (str): The file path where the JSON file should be created.\\n    num_entries (int): The number of entries of random data to generate.\\n    seed (int, optional): The seed for random data generation. Default is None.\\n\\n    Returns:\\n    str: The file path of the generated JSON file.\\n\\n    Requirements:\\n    - os\\n    - json\\n    - random\\n    - datetime\\n\\n    Example:\\n    >>> task_func('/tmp/log.json', 100)\\n    '/tmp/log.json'\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a JSON file on a specific file path with random user activity data. The number of entries in the JSON file is determined by num_entries. The written JSON file contains a list of dictionaries, with each dictionary representing a log entry with the following keys: 'user', 'action', and 'timestamp'.\\nThe function should output with:\\n    str: The file path of the generated JSON file.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nimport random\\nfrom datetime import datetime, timedelta\\n# Constants\\nUSERS = ['Alice', 'Bob', 'Charlie', 'Dave', 'Eve']\\ndef task_func(file_path, num_entries, seed=None):\\n```\",\"libs\":\"['datetime', 'random', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}