
def 		UpperCAmelCase    (			a_ = "mytext.txt"	,     a_ = False		)	->			None:







				"""simple docstring"""



				import socket

				__A         =				1_2_3_1_2  # Reserve a port for your service.
				__A         =				socket.socket()  # Create a socket object
				__A         =				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:
								__A    ,							__A         =				sock.accept()  # Establish connection with client.
								print(F'''Got connection from {addr}'''		)
								__A         =				conn.recv(1_0_2_4		)
								print(F'''Server received: {data = }'''		)

								with open(a_	,     "rb"		) as in_file:
												__A         =				in_file.read(1_0_2_4		)
												while data:
																conn.send(a_		)
																print(F'''Sent {data!r}'''		)
																__A         =				in_file.read(1_0_2_4		)

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

				sock.shutdown(1		)
				sock.close()


if __name__ == "__main__":
					send_file()


import torch

from transformers import PreTrainedModel

from .custom_configuration import CustomConfig, NoSuperInitConfig





class 							UpperCAmelCase   (						__SCREAMING_SNAKE_CASE						):




	'''simple docstring'''





	snake_case_      					=  CustomConfig






	def __init__( self      :				Optional[int]							,A      :				List[str]				):
					super().__init__(A				)
					__A         =				torch.nn.Linear(config.hidden_size							,config.hidden_size				)






	def        UpperCamelCase_						( self      :				Union[str, Any]							,A      :				Optional[int]				):
					return self.linear(A				)







	def        UpperCamelCase_						( self      :				Optional[int]							,A      :				int				):
					pass





class 							UpperCAmelCase   (						__SCREAMING_SNAKE_CASE						):




	'''simple docstring'''





	snake_case_      					=  NoSuperInitConfig






	def __init__( self      :				Optional[int]							,A      :				Union[str, Any]				):
					super().__init__(A				)
					__A         =				torch.nn.Linear(config.attribute							,config.attribute				)






	def        UpperCamelCase_						( self      :				str							,A      :				Any				):
					return self.linear(A				)







	def        UpperCamelCase_						( self      :				Tuple							,A      :				int				):
					pass
