




def 							_UpperCAmelCase     (UpperCamelCase_       :       str					,			UpperCamelCase_       :       str				):
				'''simple docstring'''
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise TypeError("""plaintext must be a string"""				)
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise TypeError("""key must be a string"""				)

				if not plaintext:
								raise ValueError("""plaintext is empty"""				)
				if not key:
								raise ValueError("""key is empty"""				)

				key += plaintext
				_lowerCAmelCase			:			Optional[int]        =					plaintext.lower()
				_lowerCAmelCase			:			List[str]        =					key.lower()
				_lowerCAmelCase			:			Tuple        =					0
				_lowerCAmelCase			:			int        =					0
				_lowerCAmelCase			:			Tuple        =					""""""
				while plaintext_iterator < len(UpperCamelCase_				):
								if (
								    ord(plaintext[plaintext_iterator]				) < 97
								    or ord(plaintext[plaintext_iterator]				) > 122
								):
												ciphertext += plaintext[plaintext_iterator]
												plaintext_iterator += 1
								elif ord(key[key_iterator]				) < 97 or ord(key[key_iterator]				) > 122:
												key_iterator += 1
								else:
												ciphertext += chr(
												    (
												        (ord(plaintext[plaintext_iterator]				) - 97 + ord(key[key_iterator]				))
												        - 97
												    )
												    % 26
												    + 97				)
												key_iterator += 1
												plaintext_iterator += 1
				return ciphertext




def 							_UpperCAmelCase     (UpperCamelCase_       :       str					,			UpperCamelCase_       :       str				):
				'''simple docstring'''
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise TypeError("""ciphertext must be a string"""				)
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise TypeError("""key must be a string"""				)

				if not ciphertext:
								raise ValueError("""ciphertext is empty"""				)
				if not key:
								raise ValueError("""key is empty"""				)

				_lowerCAmelCase			:			Union[str, Any]        =					key.lower()
				_lowerCAmelCase			:			str        =					0
				_lowerCAmelCase			:			int        =					0
				_lowerCAmelCase			:			int        =					""""""
				while ciphertext_iterator < len(UpperCamelCase_				):
								if (
								    ord(ciphertext[ciphertext_iterator]				) < 97
								    or ord(ciphertext[ciphertext_iterator]				) > 122
								):
												plaintext += ciphertext[ciphertext_iterator]
								else:
												plaintext += chr(
												    (ord(ciphertext[ciphertext_iterator]				) - ord(key[key_iterator]				)) % 26
												    + 97				)
												key += chr(
												    (ord(ciphertext[ciphertext_iterator]				) - ord(key[key_iterator]				)) % 26
												    + 97				)
												key_iterator += 1
								ciphertext_iterator += 1
				return plaintext


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	_lowerCamelCase					:     List[str]					  =  int(input("Type 1 to encrypt or 2 to decrypt:"))
	if operation == 1:
		_lowerCamelCase					:     Optional[int]					  =  input("Typeplaintext to be encrypted:\n")
		_lowerCamelCase					:     Optional[int]					  =  input("Type the key:\n")
		print(encrypt(plaintext, key))
	elif operation == 2:
		_lowerCamelCase					:     Tuple					  =  input("Type the ciphertext to be decrypted:\n")
		_lowerCamelCase					:     Union[str, Any]					  =  input("Type the key:\n")
		print(decrypt(ciphertext, key))
	decrypt("jsqqs avvwo", "coffee")




from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_UpperCamelCase			       =			logging.get_logger(__name__)

_UpperCamelCase			       =			{
    '''google/rembert''': '''https://huggingface.co/google/rembert/resolve/main/config.json''',
    # See all RemBERT models at https://huggingface.co/models?filter=rembert
}



class     lowercase						(       _UpperCamelCase					):



 '''simple docstring'''


 __SCREAMING_SNAKE_CASE												=				"""rembert"""




 def __init__(self       ,       __a=250300       ,       __a=1152       ,       __a=32       ,       __a=18       ,       __a=256       ,       __a=1664       ,       __a=4608       ,       __a="gelu"       ,       __a=0.0       ,       __a=0.0       ,       __a=0.1       ,       __a=512       ,       __a=2       ,       __a=0.02       ,       __a=1E-1_2       ,       __a=True       ,       __a=0       ,       __a=312       ,       __a=313       ,       **__a       ,       ) ->					str:






  """simple docstring"""





  super().__init__(pad_token_id=__a       ,       bos_token_id=__a       ,       eos_token_id=__a       ,       **__a )

  UpperCAmelCase__							=				vocab_size
  UpperCAmelCase__							=				input_embedding_size
  UpperCAmelCase__							=				output_embedding_size
  UpperCAmelCase__							=				max_position_embeddings
  UpperCAmelCase__							=				hidden_size
  UpperCAmelCase__							=				num_hidden_layers
  UpperCAmelCase__							=				num_attention_heads
  UpperCAmelCase__							=				intermediate_size
  UpperCAmelCase__							=				hidden_act
  UpperCAmelCase__							=				hidden_dropout_prob
  UpperCAmelCase__							=				attention_probs_dropout_prob
  UpperCAmelCase__							=				classifier_dropout_prob
  UpperCAmelCase__							=				initializer_range
  UpperCAmelCase__							=				type_vocab_size
  UpperCAmelCase__							=				layer_norm_eps
  UpperCAmelCase__							=				use_cache
  UpperCAmelCase__							=				False







class     lowercase						(       _UpperCamelCase					):



 '''simple docstring'''


 @property
 def   UpperCamelCase__							(self ) ->					Mapping[str, Mapping[int, str]]:






  """simple docstring"""





  if self.task == "multiple-choice":
   UpperCAmelCase__							=				{0: 'batch', 1: 'choice', 2: 'sequence'}
  else:
   UpperCAmelCase__							=				{0: 'batch', 1: 'sequence'}
  return OrderedDict(
      [
          ('input_ids', dynamic_axis),
          ('attention_mask', dynamic_axis),
          ('token_type_ids', dynamic_axis),
      ] )




 @property
 def   UpperCamelCase__							(self ) ->					float:






  """simple docstring"""





  return 1E-4



