


import socket


def 		lowercase_  (     ):


			'''simple docstring'''







			__lowercase 					=   socket.socket(socket.AF_INET       ,			socket.SOCK_STREAM  )
			__lowercase 					=   socket.gethostname()
			__lowercase 					=   1_23_12

			sock.connect((host, port)  )
			sock.send(B'''Hello server!'''  )

			with open('''Received_file'''       ,			'''wb'''  ) as out_file:
						print('''File opened'''  )
						print('''Receiving data...'''  )
						while True:
									__lowercase 					=   sock.recv(10_24  )
									if not data:
												break
									out_file.write(_UpperCamelCase  )

			print('''Successfully received the file'''  )
			sock.close()
			print('''Connection closed'''  )


if __name__ == "__main__":
	main()






from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

a : Optional[int]		=				typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
a : Union[str, Any]		=				typing.Union[np.floataa, int, float]  # noqa: UP007


def 		lowercase_  (     _UpperCamelCase       ,			_UpperCamelCase  ):


			'''simple docstring'''







			return np.sqrt(np.sum((np.asarray(_UpperCamelCase  ) - np.asarray(_UpperCamelCase  )) ** 2  )  )


def 		lowercase_  (     _UpperCamelCase       ,			_UpperCamelCase  ):


			'''simple docstring'''







			return sum((va - va) ** 2 for va, va in zip(_UpperCamelCase       ,			_UpperCamelCase  )  ) ** (1 / 2)


if __name__ == "__main__":


	def 		lowercase_  (     ):


				'''simple docstring'''







				from timeit import timeit

				print('''Without Numpy'''  )
				print(
				    timeit(
				        '''euclidean_distance_no_np([1, 2, 3], [4, 5, 6])'''       ,			number=1_00_00       ,			globals=globals()       ,			)  )
				print('''With Numpy'''  )
				print(
				    timeit(
				        '''euclidean_distance([1, 2, 3], [4, 5, 6])'''       ,			number=1_00_00       ,			globals=globals()       ,			)  )





	benchmark()


