{"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":"346754a8-e57e-55c1-b008-9816bb998dfd","task_key":"default--v0~2e1~2e0~5fhf--346754a8-e57e-55c1-b008-9816bb998dfd","task_revision_id":"1","upstream_id":"","short_description":"BigCodeBench v0.1.0_hf 346754a8-e57e-55c1-b008-9816bb998dfd","config":"default","split":"v0.1.0_hf","body":"{\"code_prompt\":\"from random import shuffle, randint\\nimport pandas as pd\\ndef task_func(l, n_groups = 5):\\n\",\"complete_prompt\":\"from random import shuffle, randint\\nimport pandas as pd\\n\\ndef task_func(l, n_groups = 5):\\n    \\\"\\\"\\\"\\n    Generate a Series from a list \\\"l\\\". The function shuffles the list, \\n    then creates a longer series by cycling through the shuffled list. \\n    For each element in the series, it randomly selects n_groups characters\\n    from the start of the string and moves them to the end. \\n    \\n    Parameters:\\n    - l (list): A list of strings.\\n    - n_groups (int): number of groups. Default value is 5.\\n\\n    Returns:\\n    - pd.Series: A Series where each element is modified by moving \\\"n\\\" \\n                 characters from the start to the end.\\n\\n    Requirements:\\n    - pandas\\n    - random.shuffle\\n    - random.randint\\n\\n    Example:\\n    >>> result = task_func(['ABC', 'DEF', 'GHI'])\\n    >>> isinstance(result, pd.Series)  # Check if the output is a pandas Series\\n    True\\n    >>> len(result) == 15  # Check if the length of the result is as expected for 3 elements cycled 5 times\\n    True\\n    \\\"\\\"\\\"\\n\",\"entry_point\":\"task_func\",\"instruct_prompt\":\"Generate a Series from a list \\\"l\\\". The function shuffles the list, then creates a longer series by cycling through the shuffled list. For each element in the series, it randomly selects n_groups characters from the start of the string and moves them to the end.\\nThe function should output with:\\n    pd.Series: A Series where each element is modified by moving \\\"n\\\"\\n    characters from the start to the end.\\nYou should write self-contained code starting with:\\n```\\nfrom random import shuffle, randint\\nimport pandas as pd\\ndef task_func(l, n_groups = 5):\\n```\",\"libs\":\"['pandas', 'random']\"}","display_format":"code","language":"","answer_status":"published","assets":[],"source_url":"https://bigcode-bench.github.io/","history":"initial import","indexing_mode":"index","subproblems":[],"grids":[]}