





import socket




def    A_(			):
	UpperCAmelCase_								=     socket.socket(socket.AF_INET				,      socket.SOCK_STREAM   )
	UpperCAmelCase_								=     socket.gethostname()
	UpperCAmelCase_								=     12312

	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:
			UpperCAmelCase_								=     sock.recv(1024   )
			if not data:
				break
			out_file.write(__A   )

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


if __name__ == "__main__":
	main()









from torch import nn







class   _UpperCamelCase  (       nn.Module  ):







					'''simple docstring'''

					def __init__(						self    :  Dict ,					__lowercase    :  List[str] ,					__lowercase    :  Dict		):






						'''simple docstring'''







						super().__init__()
						UpperCAmelCase_								=     class_size
						UpperCAmelCase_								=     embed_size
						# self.mlp1 = nn.Linear(embed_size, embed_size)
						# self.mlp2 = (nn.Linear(embed_size, class_size))
						UpperCAmelCase_								=     nn.Linear(__lowercase ,					__lowercase		)





					def        SCREAMING_SNAKE_CASE							(						self    :  Any ,					__lowercase    :  Optional[Any]		):






						'''simple docstring'''







						UpperCAmelCase_								=     self.mlp(__lowercase		)
						return logits


