

"""simple docstring"""




from __future__ import annotations

def 	A       (     snake_case__		,				snake_case__    ):




			'''simple docstring'''


			SCREAMING_SNAKE_CASE__								=      sorted(numsa + numsa    )
			SCREAMING_SNAKE_CASE__							,		SCREAMING_SNAKE_CASE__								=      divmod(len(snake_case__    )		,				2    )
			if mod == 1:
						return all_numbers[div]
			else:
						return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						A_							:			str											= [float(x) for x in input("Enter the elements of first array: ").split()]
						A_							:			Optional[int]											= [float(x) for x in input("Enter the elements of second array: ").split()]
						print(F'The median of two arrays is: {median_of_two_arrays(array_a, array_a)}')





"""simple docstring"""




import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline

@pytest.mark.integration
def 	A       (     ):




			'''simple docstring'''


			with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT    ):
						with pytest.raises(snake_case__    ):
									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 	A       (     ):




			'''simple docstring'''


			with offline(OfflineSimulationMode.CONNECTION_FAILS    ):
						with pytest.raises(requests.exceptions.ConnectionError    ):
									requests.request("""GET"""		,				"""https://huggingface.co"""    )




def 	A       (     ):




			'''simple docstring'''


			with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1    ):
						with pytest.raises(snake_case__    ):
									http_head("""https://huggingface.co"""    )


