"""simple docstring"""



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(a							):
                     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(a							):
                     http_head("https://huggingface.co"							)

"""simple docstring"""



def 					_lowerCamelCase(					a							):
       __a     				=  len(a							)
       for i in range(1 ,  a							):
              __a     				=  collection[i]
              __a     				=  0
              __a     				=  i - 1

              while low <= high:
                     __a     				=  (low + high) // 2
                     if val < collection[mid]:
                            __a     				=  mid - 1
                     else:
                            __a     				=  mid + 1
              for j in range(a ,  a ,  -1							):
                     __a     				=  collection[j - 1]
              __a     				=  val
       return collection


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