

import unittest

from transformers import BlenderbotTokenizer, BlenderbotTokenizerFast
from transformers.utils import cached_property





class      snake_case_      (					unittest.TestCase				):


							"""simple docstring"""





							@cached_property
							def 							A__	(			self				):
												return BlenderbotTokenizer.from_pretrained('facebook/blenderbot-3B'				)




							@cached_property
							def 							A__	(			self				):
												return BlenderbotTokenizerFast.from_pretrained('facebook/blenderbot-3B'				)




							def 							A__	(			self				):
												__lowerCAmelCase       =				self.tokenizer_ab
												__lowerCAmelCase       =				''' I am a small frog.'''
												__lowerCAmelCase       =				tok([src_text]       ,    padding=_A       ,    truncation=_A				)['''input_ids''']
												__lowerCAmelCase       =				tok.batch_decode(_A       ,    skip_special_tokens=_A       ,    clean_up_tokenization_spaces=_A				)[0]
												assert src_text == decoded




							def 							A__	(			self				):
												__lowerCAmelCase       =				self.rust_tokenizer_ab
												__lowerCAmelCase       =				''' I am a small frog.'''
												__lowerCAmelCase       =				tok([src_text]       ,    padding=_A       ,    truncation=_A				)['''input_ids''']
												__lowerCAmelCase       =				tok.batch_decode(_A       ,    skip_special_tokens=_A       ,    clean_up_tokenization_spaces=_A				)[0]
												assert src_text == decoded




							def 							A__	(			self				):
												assert self.tokenizer_ab.add_prefix_space
												assert self.tokenizer_ab([' Sam', 'Sam']				).input_ids == [[5_5_0_2, 2], [5_5_0_2, 2]]




							def 							A__	(			self				):
												assert self.rust_tokenizer_ab.add_prefix_space
												assert self.rust_tokenizer_ab([' Sam', 'Sam']				).input_ids == [[5_5_0_2, 2], [5_5_0_2, 2]]











"""simple docstring"""






def 	snake_case__  (						__lowerCamelCase							:       str				,						__lowerCamelCase							:       int = 13      ):
			"""simple docstring"""
			lowerCamelCase__						:						List[str]						      =''''''
			for c in s:
						if "A" <= c <= "Z":
									out += chr(ord('''A'''      ) + (ord(__lowerCamelCase      ) - ord('''A'''      ) + n) % 26      )
						elif "a" <= c <= "z":
									out += chr(ord('''a'''      ) + (ord(__lowerCamelCase      ) - ord('''a'''      ) + n) % 26      )
						else:
									out += c
			return out






def 	snake_case__  (						):
			"""simple docstring"""
			lowerCamelCase__						:						List[str]						      =input('''Enter message: '''      )

			lowerCamelCase__						:						str						      =dencrypt(__lowerCamelCase				,						13      )
			print('''Encryption:'''				,						__lowerCamelCase      )

			lowerCamelCase__						:						Any						      =dencrypt(__lowerCamelCase				,						13      )
			print('''Decryption: '''				,						__lowerCamelCase      )


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		main()




