{"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":"ebdcd1b9-58ba-589b-9c85-c598d618b415","task_key":"default--v0~2e1~2e0~5fhf--ebdcd1b9-58ba-589b-9c85-c598d618b415","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf ebdcd1b9-58ba-589b-9c85-c598d618b415","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import json\\nimport math\\ndef task_func(decimal_value, precision=2):\\n\",\"complete_prompt\":\"import json\\nimport math\\n\\n\\ndef task_func(decimal_value, precision=2):\\n    \\\"\\\"\\\"\\n    Calculate the square root of the given decimal value to a certain precision and then encode the result as a JSON string.\\n    \\n    Parameters:\\n    utc_datetime (datetime): The datetime in UTC.\\n    precision (int, Optional): The number of decimal places to round the square root to. Defaults to 2.\\n    \\n    Returns:\\n    str: The square root of the decimal value encoded as a JSON string.\\n    \\n    Requirements:\\n    - json\\n    - math\\n    \\n    Example:\\n    >>> from decimal import Decimal\\n    >>> decimal_value = Decimal('3.9')\\n    >>> json_str = task_func(decimal_value, decimal_value)\\n    >>> print(json_str)\\n    \\\"1.97\\\"\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Calculate the square root of the given decimal value to a certain precision and then encode the result as a JSON string.\\nThe function should output with:\\n    str: The square root of the decimal value encoded as a JSON string.\\nYou should write self-contained code starting with:\\n```\\nimport json\\nimport math\\ndef task_func(decimal_value, precision=2):\\n```\",\"libs\":\"['math', 'json']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}