{"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":"47fad8f5-67ba-530a-9324-9bd439ec7cdf","task_key":"default--v0~2e1~2e0~5fhf--47fad8f5-67ba-530a-9324-9bd439ec7cdf","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 47fad8f5-67ba-530a-9324-9bd439ec7cdf","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import inspect\\nimport pandas as pd\\ndef task_func(f_list, file_path):\\n\",\"complete_prompt\":\"import inspect\\nimport pandas as pd\\n\\ndef task_func(f_list, file_path):\\n    \\\"\\\"\\\"\\n    Exports the specifications of functions in 'f_list' to a CSV file at 'file_path'.\\n\\n    The CSV file columns are as follows:\\n    - 'Function Name': The name of the function.\\n    - 'Number of Arguments': The number of arguments the function takes.\\n    - 'Defaults': Default values for the function's arguments, if any.\\n    - 'Annotations': Type annotations of the function's arguments and return value, if any.\\n    - 'Is Lambda': Boolean value indicating whether the function is a lambda function.\\n\\n    Each row in the CSV file corresponds to a function in 'f_list'.\\n\\n    Parameters:\\n    f_list (list): A list of function objects to inspect. Each element should be a callable object.\\n    file_path (str): The path (including filename) where the CSV file will be saved. Should be a writable path.\\n\\n    Returns:\\n    None\\n\\n    Requirements:\\n    - inspect\\n    - pandas\\n\\n    Raises:\\n    - ValueError: If 'f_list' is not a list of functions, 'f_list' is empty, or 'file_path' is not a valid path.\\n    - IOError: If there's an error in writing to the specified file path.\\n\\n    Example:\\n    >>> def f(x): return 2 * x\\n    >>> def g(x, y=2): return x * y\\n    >>> task_func([f, g], './function_info.csv')\\n    >>> os.remove('./function_info.csv')\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Exports the specifications of functions in 'f_list' to a CSV file at 'file_path'. The CSV file columns are as follows: - 'Function Name': The name of the function. - 'Number of Arguments': The number of arguments the function takes. - 'Defaults': Default values for the function's arguments, if any. - 'Annotations': Type annotations of the function's arguments and return value, if any. - 'Is Lambda': Boolean value indicating whether the function is a lambda function. Each row in the CSV file corresponds to a function in 'f_list'.\\nThe function should raise the exception for: ValueError: If 'f_list' is not a list of functions, 'f_list' is empty, or 'file_path' is not a valid path. IOError: If there's an error in writing to the specified file path.\\nThe function should output with:\\n    None\\nYou should write self-contained code starting with:\\n```\\nimport inspect\\nimport pandas as pd\\ndef task_func(f_list, file_path):\\n```\",\"libs\":\"['pandas', 'inspect']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}