'''simple docstring'''
def  _UpperCamelCase (     _a	:	list			):




    """simple docstring"""



    for i in range(len(_a			) - 1				,     0				,     -1			):
        __UpperCamelCase	:	List[Any]		    =  False

        for j in range(_a				,     0				,     -1			):
            if unsorted[j] < unsorted[j - 1]:
                __UpperCamelCase    ,					__UpperCamelCase	:	Tuple		    =  unsorted[j - 1], unsorted[j]
                __UpperCamelCase	:	int		    =  True

        for j in range(_a			):
            if unsorted[j] > unsorted[j + 1]:
                __UpperCamelCase    ,					__UpperCamelCase	:	Optional[Any]		    =  unsorted[j + 1], unsorted[j]
                __UpperCamelCase	:	Tuple		    =  True

        if not swapped:
            break
    return unsorted


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  a=  input('''Enter numbers separated by a comma:\n''').strip()
  a=  [int(item) for item in user_input.split(''',''')]
  print(F"""{cocktail_shaker_sort(unsorted) = }""")




'''simple docstring'''
from urllib.parse import quote

import pytest

from datasets.utils.hub import hf_hub_url







@pytest.mark.parametrize('repo_id'				,     ['canonical_dataset_name', 'org-name/dataset-name']			)
@pytest.mark.parametrize('path'				,     ['filename.csv', 'filename with blanks.csv']			)
@pytest.mark.parametrize('revision'				,     [None, 'v2']			)
def  _UpperCamelCase (     _a	:	Any				,     _a	:	int				,     _a	:	Dict			):




    """simple docstring"""



    __UpperCamelCase	:	List[Any]		    =  hf_hub_url(repo_id=_a				,     path=_a				,     revision=_a			)
    assert url == f"""https://huggingface.co/datasets/{repo_id}/resolve/{revision or 'main'}/{quote(_a			)}"""



