{"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":"37b6a21a-a7bd-5747-8b66-963eeddd6d39","task_key":"default--v0~2e1~2e0~5fhf--37b6a21a-a7bd-5747-8b66-963eeddd6d39","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 37b6a21a-a7bd-5747-8b66-963eeddd6d39","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import inspect\\nimport types\\ndef task_func(f):\\n\",\"complete_prompt\":\"import inspect\\nimport types\\n\\ndef task_func(f):\\n    \\\"\\\"\\\"\\n    Inspects a given function 'f' and returns its specifications, including the function's name,\\n    whether it is a lambda function, its arguments, defaults, and annotations. This method\\n    utilizes the inspect and types modules to introspect function properties.\\n\\n    Parameters:\\n    f (function): The function to inspect.\\n\\n    Returns:\\n    dict: A dictionary containing details about the function, such as its name, if it's a lambda function,\\n          arguments, default values, and annotations.\\n\\n    Requirements:\\n    - inspect\\n    - types\\n\\n    Examples:\\n    >>> def sample_function(x, y=5): return x + y\\n    >>> result = task_func(sample_function)\\n    >>> 'sample_function' == result['function_name'] and len(result['args']) == 2\\n    True\\n    >>> lambda_func = lambda x: x * 2\\n    >>> task_func(lambda_func)['is_lambda']\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Inspects a given function 'f' and returns its specifications, including the function's name, whether it is a lambda function, its arguments, defaults, and annotations. This method utilizes the inspect and types modules to introspect function properties.\\nThe function should output with:\\n    dict: A dictionary containing details about the function, such as its name, if it's a lambda function,\\n    arguments, default values, and annotations.\\nYou should write self-contained code starting with:\\n```\\nimport inspect\\nimport types\\ndef task_func(f):\\n```\",\"libs\":\"['types', 'inspect']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}