code: 
  
  
  import os
  import sys
  import time
  
  from . import transposition_cipher as trans_cipher
  
  
  
  def   SCREAMING_SNAKE_CASE__						(							)			->							None:
  				A__     :							Union[str, Any]   				='''Prehistoric Men.txt'''
  				A__     :							Any   				='''Output.txt'''
  				A__     :							Optional[Any]   				=int(input('''Enter key: '''	)	)
  				A__     :							str   				=input('''Encrypt/Decrypt [e/d]: '''	)
  
  				if not os.path.exists(snake_case_	):
  								print(f'File {input_file} does not exist. Quitting...'	)
  								sys.exit()
  				if os.path.exists(snake_case_	):
  								print(f'Overwrite {output_file}? [y/n]'	)
  								A__     :							Optional[Any]   				=input('''> '''	)
  								if not response.lower().startswith('''y'''	):
  												sys.exit()
  
  				A__     :							Optional[int]   				=time.time()
  				if mode.lower().startswith('''e'''	):
  								with open(snake_case_	) as f:
  												A__     :							List[Any]   				=f.read()
  								A__     :							int   				=trans_cipher.encrypt_message(snake_case_,	snake_case_	)
  				elif mode.lower().startswith('''d'''	):
  								with open(snake_case_	) as f:
  												A__     :							str   				=f.read()
  								A__     :							int   				=trans_cipher.decrypt_message(snake_case_,	snake_case_	)
  
  				with open(snake_case_,	'''w'''	) as output_obj:
  								output_obj.write(snake_case_	)
  
  				A__     :							Optional[Any]   				=round(time.time() - start_time,	2	)
  				print(('''Done (''', total_time, '''seconds )''')	)
  
  
  if __name__ == "__main__":
  						main()
  
  
  
  
style_context: 
  
  
  from typing import TYPE_CHECKING
  
  from ...utils import (
      OptionalDependencyNotAvailable,
      _LazyModule,
      is_torch_available,
  )
  
  
  __lowerCamelCase       :       str				   =			{
      "configuration_align": [
          "ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP",
          "AlignConfig",
          "AlignTextConfig",
          "AlignVisionConfig",
      ],
      "processing_align": ["AlignProcessor"],
  }
  
  try:
  						if not is_torch_available():
  												raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  						pass
  else:
  						__lowerCamelCase       :       Dict				   =			[
  						    "ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST",
  						    "AlignModel",
  						    "AlignPreTrainedModel",
  						    "AlignTextModel",
  						    "AlignVisionModel",
  						]
  
  if TYPE_CHECKING:
  						from .configuration_align import (
  						    ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP,
  						    AlignConfig,
  						    AlignTextConfig,
  						    AlignVisionConfig,
  						)
  						from .processing_align import AlignProcessor
  
  						try:
  												if not is_torch_available():
  																		raise OptionalDependencyNotAvailable()
  						except OptionalDependencyNotAvailable:
  												pass
  						else:
  												from .modeling_align import (
  												    ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST,
  												    AlignModel,
  												    AlignPreTrainedModel,
  												    AlignTextModel,
  												    AlignVisionModel,
  												)
  
  else:
  						import sys
  
  						__lowerCamelCase       :       List[str]				   =			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
  
  
  
  