





"""simple docstring"""
def 					__lowerCamelCase       (							a_					:		list							)      ->				list:

      if len(a_							) < 2:
            return collection

      def circle_sort_util(a_					:		list			,       a_					:		int			,       a_					:		int							) -> bool:
            __SCREAMING_SNAKE_CASE       :List[Any]		    =  False

            if low == high:
                  return swapped

            __SCREAMING_SNAKE_CASE       :Dict		    =  low
            __SCREAMING_SNAKE_CASE       :List[Any]		    =  high

            while left < right:
                  if collection[left] > collection[right]:
                        __SCREAMING_SNAKE_CASE    ,__SCREAMING_SNAKE_CASE       :Optional[int]		    =  (
                            collection[right],
                            collection[left],
                        )
                        __SCREAMING_SNAKE_CASE       :Any		    =  True

                  left += 1
                  right -= 1

            if left == right and collection[left] > collection[right + 1]:
                  __SCREAMING_SNAKE_CASE    ,__SCREAMING_SNAKE_CASE       :Any		    =  (
                      collection[right + 1],
                      collection[left],
                  )

                  __SCREAMING_SNAKE_CASE       :Optional[int]		    =  True

            __SCREAMING_SNAKE_CASE       :List[str]		    =  low + int((high - low) / 2							)
            __SCREAMING_SNAKE_CASE       :Optional[Any]		    =  circle_sort_util(a_			,       a_			,       a_							)
            __SCREAMING_SNAKE_CASE       :List[str]		    =  circle_sort_util(a_			,       mid + 1			,       a_							)

            return swapped or left_swap or right_swap

      __SCREAMING_SNAKE_CASE       :str		    =  True

      while is_not_sorted is True:
            __SCREAMING_SNAKE_CASE       :Optional[Any]		    =  circle_sort_util(a_			,       0			,       len(a_							) - 1							)

      return collection


if __name__ == "__main__":
  lowerCamelCase_       =		input("Enter numbers separated by a comma:\n").strip()
  lowerCamelCase_       =		[int(item) for item in user_input.split(",")]
  print(circle_sort(unsorted))






"""simple docstring"""
import unittest

from datasets import load_dataset

from transformers.pipelines import pipeline
from transformers.testing_utils import is_pipeline_test, nested_simplify, require_torch, slow






@is_pipeline_test
@require_torch
class  _SCREAMING_SNAKE_CASE(       unittest.TestCase  ):




       @require_torch
       def    _UpperCamelCase					(						self							)      ->				str:





             """simple docstring"""






             __SCREAMING_SNAKE_CASE       :Dict		    =  pipeline(
                 task='''zero-shot-audio-classification'''		,model='''hf-internal-testing/tiny-clap-htsat-unfused'''							)
             __SCREAMING_SNAKE_CASE       :Any		    =  load_dataset('''ashraq/esc50'''							)
             __SCREAMING_SNAKE_CASE       :int		    =  dataset['''train''']['''audio'''][-1]['''array''']
             __SCREAMING_SNAKE_CASE       :Dict		    =  audio_classifier(SCREAMING_SNAKE_CASE__		,candidate_labels=['''Sound of a dog''', '''Sound of vaccum cleaner''']							)
             self.assertEqual(
                 nested_simplify(SCREAMING_SNAKE_CASE__							)		,[{'''score''': 0.5_0_1, '''label''': '''Sound of a dog'''}, {'''score''': 0.4_9_9, '''label''': '''Sound of vaccum cleaner'''}]		,)




       @unittest.skip('''No models are available in TF'''							)
       def    _UpperCamelCase					(						self							)      ->				Optional[int]:





             """simple docstring"""






             pass




       @slow
       @require_torch
       def    _UpperCamelCase					(						self							)      ->				Tuple:





             """simple docstring"""






             __SCREAMING_SNAKE_CASE       :Optional[int]		    =  pipeline(
                 task='''zero-shot-audio-classification'''		,model='''laion/clap-htsat-unfused'''		,)
             # This is an audio of a dog
             __SCREAMING_SNAKE_CASE       :List[Any]		    =  load_dataset('''ashraq/esc50'''							)
             __SCREAMING_SNAKE_CASE       :Tuple		    =  dataset['''train''']['''audio'''][-1]['''array''']
             __SCREAMING_SNAKE_CASE       :str		    =  audio_classifier(SCREAMING_SNAKE_CASE__		,candidate_labels=['''Sound of a dog''', '''Sound of vaccum cleaner''']							)

             self.assertEqual(
                 nested_simplify(SCREAMING_SNAKE_CASE__							)		,[
                     {'''score''': 0.9_9_9, '''label''': '''Sound of a dog'''},
                     {'''score''': 0.0_0_1, '''label''': '''Sound of vaccum cleaner'''},
                 ]		,)

             __SCREAMING_SNAKE_CASE       :Dict		    =  audio_classifier([audio] * 5		,candidate_labels=['''Sound of a dog''', '''Sound of vaccum cleaner''']							)
             self.assertEqual(
                 nested_simplify(SCREAMING_SNAKE_CASE__							)		,[
                     [
                         {'''score''': 0.9_9_9, '''label''': '''Sound of a dog'''},
                         {'''score''': 0.0_0_1, '''label''': '''Sound of vaccum cleaner'''},
                     ],
                 ]
                 * 5		,)
             __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  audio_classifier(
                 [audio] * 5		,candidate_labels=['''Sound of a dog''', '''Sound of vaccum cleaner''']		,batch_size=5							)
             self.assertEqual(
                 nested_simplify(SCREAMING_SNAKE_CASE__							)		,[
                     [
                         {'''score''': 0.9_9_9, '''label''': '''Sound of a dog'''},
                         {'''score''': 0.0_0_1, '''label''': '''Sound of vaccum cleaner'''},
                     ],
                 ]
                 * 5		,)




       @unittest.skip('''No models are available in TF'''							)
       def    _UpperCamelCase					(						self							)      ->				List[str]:





             """simple docstring"""






             pass