



'''simple docstring'''






import os
import sys
import time

from . import transposition_cipher as trans_cipher





def 				_SCREAMING_SNAKE_CASE(					)		->None:






							'''simple docstring'''
							_lowercase							:		str				=   '''Prehistoric Men.txt'''
							_lowercase							:		Dict				=   '''Output.txt'''
							_lowercase							:		List[Any]				=   int(input('''Enter key: '''  )  )
							_lowercase							:		Optional[int]				=   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]"  )
														_lowercase							:		Tuple				=   input('''> '''  )
														if not response.lower().startswith('''y'''  ):
																					sys.exit()

							_lowercase							:		Optional[int]				=   time.time()
							if mode.lower().startswith('''e'''  ):
														with open(snake_case_  ) as f:
																					_lowercase							:		Optional[Any]				=   f.read()
														_lowercase							:		int				=   trans_cipher.encrypt_message(snake_case_ ,       snake_case_  )
							elif mode.lower().startswith('''d'''  ):
														with open(snake_case_  ) as f:
																					_lowercase							:		Optional[Any]				=   f.read()
														_lowercase							:		List[Any]				=   trans_cipher.decrypt_message(snake_case_ ,       snake_case_  )

							with open(snake_case_ ,       '''w'''  ) as output_obj:
														output_obj.write(snake_case_  )

							_lowercase							:		List[Any]				=   round(time.time() - start_time ,       2  )
							print(('''Done (''', total_time, '''seconds )''')  )


if __name__ == "__main__":
						main()








'''simple docstring'''






import warnings

from .generation import GenerationMixin

class 	_lowerCAmelCase     (    __A       ):






		'''simple docstring'''
		# warning at import time
		warnings.warn(
		    'Importing `GenerationMixin` from `src/transformers/generation_utils.py` is deprecated and will '
		    'be removed in Transformers v5. Import as `from transformers import GenerationMixin` instead.'     ,		__A     ,		)



