





"""simple docstring"""





def 		lowerCAmelCase_	(  lowercase_   :							str = "mytext.txt" ,      lowercase_   :							bool = False		):

 '''simple docstring'''






 import socket

 __SCREAMING_SNAKE_CASE :			List[str]												=       1_2312  # Reserve a port for your service.
 __SCREAMING_SNAKE_CASE :			Any												=       socket.socket()  # Create a socket object
 __SCREAMING_SNAKE_CASE :			Dict												=       socket.gethostname()  # Get local machine name
 sock.bind((host, port)		)  # Bind to the port
 sock.listen(5		)  # Now wait for client connection.

 print('''Server listening....'''		)

 while True:
  __SCREAMING_SNAKE_CASE							,      __SCREAMING_SNAKE_CASE :			Union[str, Any]												=       sock.accept()  # Establish connection with client.
  print(F'''Got connection from {addr}'''		)
  __SCREAMING_SNAKE_CASE :			Tuple												=       conn.recv(1024		)
  print(F'''Server received: {data = }'''		)

  with open(lowercase_ ,      '''rb'''		) as in_file:
   __SCREAMING_SNAKE_CASE :			int												=       in_file.read(1024		)
   while data:
    conn.send(lowercase_		)
    print(F'''Sent {data!r}'''		)
    __SCREAMING_SNAKE_CASE :			List[str]												=       in_file.read(1024		)

  print('''Done sending'''		)
  conn.close()
  if testing:  # Allow the test to complete
   break

 sock.shutdown(1		)
 sock.close()


if __name__ == "__main__":
    send_file()








"""simple docstring"""





import numpy as np




def 		lowerCAmelCase_	(  lowercase_   :							str		):

 '''simple docstring'''






 __SCREAMING_SNAKE_CASE :			Dict												=       np.exp(lowercase_		)

 # Add up the all the exponentials
 __SCREAMING_SNAKE_CASE :			Tuple												=       np.sum(lowercase_		)

 # Divide every exponent by the sum of all exponents
 __SCREAMING_SNAKE_CASE :			List[Any]												=       exponent_vector / sum_of_exponents

 return softmax_vector


if __name__ == "__main__":
    print(softmax((0,)))

