{"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":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"75bdaaaf-18d8-5aac-b311-ef09e70c8455","task_key":"default--v0~2e1~2e0~5fhf--75bdaaaf-18d8-5aac-b311-ef09e70c8455","task_revision_id":"2","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 75bdaaaf-18d8-5aac-b311-ef09e70c8455","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import itertools\\nfrom random import shuffle\\ndef task_func(numbers=list(range(1, 3))):\\n\",\"complete_prompt\":\"import itertools\\nfrom random import shuffle\\n\\ndef task_func(numbers=list(range(1, 3))):\\n    \\\"\\\"\\\"\\n    Calculates the average of the sums of absolute differences between each pair of consecutive numbers \\n    for all permutations of a given list. Each permutation is shuffled before calculating the differences.\\n\\n    Args:\\n    - numbers (list): A list of numbers. Default is numbers from 1 to 10.\\n    \\n    Returns:\\n    float: The average of the sums of absolute differences for each shuffled permutation of the list.\\n\\n    Requirements:\\n    - itertools\\n    - random.shuffle\\n\\n    Example:\\n    >>> result = task_func([1, 2, 3])\\n    >>> isinstance(result, float)\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Calculates the average of the sums of absolute differences between each pair of consecutive numbers for all permutations of a given list. Each permutation is shuffled before calculating the differences. Args: - numbers (list): A list of numbers. Default is numbers from 1 to 10.\\nThe function should output with:\\n    float: The average of the sums of absolute differences for each shuffled permutation of the list.\\nYou should write self-contained code starting with:\\n```\\nimport itertools\\nfrom random import shuffle\\ndef task_func(numbers=list(range(1, 3))):\\n```\",\"libs\":\"['random', 'itertools']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}