{"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":"e1dfd688-152d-50f8-b63d-39d9f5cec6f4","task_key":"default--v0~2e1~2e0~5fhf--e1dfd688-152d-50f8-b63d-39d9f5cec6f4","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf e1dfd688-152d-50f8-b63d-39d9f5cec6f4","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import inspect\\nimport types\\nimport json\\ndef task_func(f):\\n\",\"complete_prompt\":\"import inspect\\nimport types\\nimport json\\n\\ndef task_func(f):\\n    \\\"\\\"\\\"\\n    Inspects the given function 'f' and returns its specifications as a JSON string. This includes\\n    the function's name, arguments, default values, annotations in a string format, and a boolean\\n    indicating if it's a lambda function.\\n\\n    Parameters:\\n    f (function): The function to inspect.\\n\\n    Returns:\\n    str: A JSON string containing the function's specifications.\\n\\n    Requirements:\\n    - inspect\\n    - types\\n    - json\\n\\n    Examples:\\n    >>> def sample_function(x, y=2): return x + y\\n    >>> 'sample_function' in task_func(sample_function)\\n    True\\n    >>> def sample_function2(x, y=2): return x * y\\n    >>> 'sample_function2' in task_func(sample_function2)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Inspects the given function 'f' and returns its specifications as a JSON string. This includes the function's name, arguments, default values, annotations in a string format, and a boolean indicating if it's a lambda function.\\nThe function should output with:\\n    str: A JSON string containing the function's specifications.\\nYou should write self-contained code starting with:\\n```\\nimport inspect\\nimport types\\nimport json\\ndef task_func(f):\\n```\",\"libs\":\"['types', 'inspect', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}