{"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":"c04b895c-f9e2-51cd-a830-f5c9eb9d9073","task_key":"default--v0~2e1~2e0~5fhf--c04b895c-f9e2-51cd-a830-f5c9eb9d9073","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf c04b895c-f9e2-51cd-a830-f5c9eb9d9073","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import subprocess\\nimport os\\nimport time\\nimport glob\\ndef task_func(r_script_path: str, output_path: str, duration: int) -> (bool, str):\\n\",\"complete_prompt\":\"import subprocess\\nimport os\\nimport time\\nimport glob\\n\\ndef task_func(r_script_path: str, output_path: str, duration: int) -> (bool, str):\\n    \\\"\\\"\\\"\\n    This function executes an R script and verifies if the output file is generated within a given duration.\\n    \\n    Parameters:\\n    - r_script_path (str): The absolute path to the R script to be executed.\\n    - output_path (str): The absolute path where the output CSV file is expected to be generated.\\n    - duration (int): The time, in seconds, within which the output file should be generated.\\n    \\n    Returns:\\n    - tuple containing:\\n      - bool: True if the output file is generated within the specified duration, False otherwise.\\n      - str: A message indicating whether the file was generated successfully or not. If the generation is successful, the message will be 'File generated successfully within the specified duration.'; otherwise, it will be 'File not generated within the specified duration.'\\n    \\n    Requirements:\\n    - subprocess\\n    - os\\n    - time\\n    - glob\\n    \\n    Example:\\n    >>> task_func('/path_to_script/MyrScript.r', '/path_to_output/', 10)\\n    (True, 'File generated successfully within the specified duration.')\\n    >>> task_func('/path_to_script/InvalidScript.r', '/path_to_output/', 5)\\n    (False, 'File not generated within the specified duration.')\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"This function executes an R script and verifies if the output file is generated within a given duration.\\nThe function should output with:\\n    tuple containing:\\n    bool: True if the output file is generated within the specified duration, False otherwise.\\n    str: A message indicating whether the file was generated successfully or not. If the generation is successful, the message will be 'File generated successfully within the specified duration.'; otherwise, it will be 'File not generated within the specified duration.'\\nYou should write self-contained code starting with:\\n```\\nimport subprocess\\nimport os\\nimport time\\nimport glob\\ndef task_func(r_script_path: str, output_path: str, duration: int) -> (bool, str):\\n```\",\"libs\":\"['glob', 'subprocess', 'os', 'time']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}