import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline






@pytest.mark.integration
def 				__lowerCamelCase		(						):
       with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT     ):
              with pytest.raises(lowerCAmelCase__     ):
                     requests.request('GET'     ,  'https://huggingface.co'     )
              with pytest.raises(requests.exceptions.ConnectTimeout     ):
                     requests.request('GET'     ,  'https://huggingface.co'     ,  timeout=1.0     )






@pytest.mark.integration
def 				__lowerCamelCase		(						):
       with offline(OfflineSimulationMode.CONNECTION_FAILS     ):
              with pytest.raises(requests.exceptions.ConnectionError     ):
                     requests.request('GET'     ,  'https://huggingface.co'     )






def 				__lowerCamelCase		(						):
       with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1     ):
              with pytest.raises(lowerCAmelCase__     ):
                     http_head('https://huggingface.co'     )

def 				__lowerCamelCase		(						lowerCAmelCase__     ):
       lowerCAmelCase__					     = len(lowerCAmelCase__     )
       for i in range(lowerCAmelCase__     ):
              for j in range(i + 1     ,  lowerCAmelCase__     ):
                     if numbers[j] < numbers[i]:
                            lowerCAmelCase__     , lowerCAmelCase__					     = numbers[j], numbers[i]
       return numbers


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