


"""simple docstring"""







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tf_available, is_torch_available


lowerCAmelCase__      				=   {
    '''configuration_ctrl''': ['''CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''CTRLConfig'''],
    '''tokenization_ctrl''': ['''CTRLTokenizer'''],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     lowerCAmelCase__      				=   [
         '''CTRL_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''CTRLForSequenceClassification''',
         '''CTRLLMHeadModel''',
         '''CTRLModel''',
         '''CTRLPreTrainedModel''',
     ]

try:
     if not is_tf_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     lowerCAmelCase__      				=   [
         '''TF_CTRL_PRETRAINED_MODEL_ARCHIVE_LIST''',
         '''TFCTRLForSequenceClassification''',
         '''TFCTRLLMHeadModel''',
         '''TFCTRLModel''',
         '''TFCTRLPreTrainedModel''',
     ]


if TYPE_CHECKING:
     from .configuration_ctrl import CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP, CTRLConfig
     from .tokenization_ctrl import CTRLTokenizer

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_ctrl import (
              CTRL_PRETRAINED_MODEL_ARCHIVE_LIST,
              CTRLForSequenceClassification,
              CTRLLMHeadModel,
              CTRLModel,
              CTRLPreTrainedModel,
          )

     try:
          if not is_tf_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_tf_ctrl import (
              TF_CTRL_PRETRAINED_MODEL_ARCHIVE_LIST,
              TFCTRLForSequenceClassification,
              TFCTRLLMHeadModel,
              TFCTRLModel,
              TFCTRLPreTrainedModel,
          )

else:
     import sys

     lowerCAmelCase__      				=   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)












import socket






def lowerCamelCase__    (							)      ->				Any:
   __snake_case							       =   socket.socket(socket.AF_INET       ,      socket.SOCK_STREAM       )
   __snake_case							       =   socket.gethostname()
   __snake_case							       =   1_2312

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

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


if __name__ == "__main__":
    main()

