{"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":"7a045021-5221-56de-9c4d-b04f3391a167","task_key":"default--v0~2e1~2e0~5fhf--7a045021-5221-56de-9c4d-b04f3391a167","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 7a045021-5221-56de-9c4d-b04f3391a167","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"import random\\nimport math\\ndef task_func(range_start=1, range_end=100, pairs_count=10, random_seed=None):\\n\",\"complete_prompt\":\"import random\\nimport math\\n\\n\\ndef task_func(range_start=1, range_end=100, pairs_count=10, random_seed=None):\\n    \\\"\\\"\\\"\\n    Create a generator object that generates a sequence of tuples.\\n    Each tuple contains two random numbers and the square root of their\\n    absolute difference.\\n\\n    A random seed is used to have reproducability in the outputs.\\n\\n    Parameters:\\n    - range_start (int): The start of the range for random numbers. Default is 1.\\n    - range_end (int): The end of the range for random numbers. Default is 100.\\n    - pairs_count (int): The number of pairs to generate. Default is 10.\\n    - random_seed (int): Seed used for rng. Default is None.\\n    \\n    Returns:\\n    generator: A generator object that produces tuples in the format\\n               (num1, num2, square root of absolute difference).\\n\\n    Requirements:\\n    - random\\n    - math\\n\\n    Example:\\n    >>> pairs = task_func(random_seed=1)\\n    >>> print(next(pairs))\\n    (18, 73, 7.416198487095663)\\n    \\n    >>> pairs = task_func(1, 3, pairs_count=25, random_seed=14)\\n    >>> print(next(pairs))\\n    (1, 3, 1.4142135623730951)\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Create a generator object that generates a sequence of tuples. Each tuple contains two random numbers and the square root of their absolute difference. A random seed is used to have reproducability in the outputs. >>> pairs = task_func(1, 3, pairs_count=25, random_seed=14) >>> print(next(pairs)) (1, 3, 1.4142135623730951)\\nThe function should output with:\\n    generator: A generator object that produces tuples in the format\\n    (num1, num2, square root of absolute difference).\\nYou should write self-contained code starting with:\\n```\\nimport random\\nimport math\\ndef task_func(range_start=1, range_end=100, pairs_count=10, random_seed=None):\\n```\",\"libs\":\"['math', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}