
"""simple docstring"""

def 						UpperCAmelCase   (						a_,		a_     ):





		'''simple docstring'''


		return a + b


if __name__ == "__main__":
					_A				=					5
					_A				=					6
					print(F"""The sum of {a} + {b} is {add(a, b)}""")










"""simple docstring"""






from transformers.models.cpm.tokenization_cpm import CpmTokenizer
from transformers.testing_utils import custom_tokenizers

from ..xlnet.test_modeling_xlnet import XLNetModelTest


@custom_tokenizers
class 	A_       (     _UpperCAmelCase   ):





  """simple docstring"""

  def 							lowercase_     (						self  ,					__UpperCAmelCase  ,					__UpperCAmelCase  ,					__UpperCAmelCase  ,					__UpperCAmelCase  ,					__UpperCAmelCase						)				->					int:
     return True






  def 							lowercase_     (						self						)				->					int:
     a   :	Optional[int]						=    CpmTokenizer.from_pretrained('TsinghuaAI/CPM-Generate'						)
     a   :	Any						=    'Hugging Face大法好，谁用谁知道。'
     a   :	Tuple						=    'Hugging Face大法好,谁用谁知道。<unk>'
     a   :	Optional[int]						=    '▁Hu gg ing ▁ ▂ ▁F ace ▁大法 ▁好 ▁ , ▁谁 ▁用 ▁谁 ▁知 道 ▁ 。'.split()

     a   :	Optional[int]						=    tokenizer.tokenize(__UpperCAmelCase						)
     self.assertListEqual(__UpperCAmelCase  ,					__UpperCAmelCase						)

     a   :	Optional[Any]						=    tokens + [tokenizer.unk_token]

     a   :	str						=    [1_37_89, 1_32_83, 14_21, 8, 10, 11_64, 1_36_08, 1_65_28, 63, 8, 9, 4_40, 1_08, 4_40, 1_21, 90, 8, 12, 0]
     self.assertListEqual(tokenizer.convert_tokens_to_ids(__UpperCAmelCase						)  ,					__UpperCAmelCase						)

     a   :	List[Any]						=    tokenizer.decode(__UpperCAmelCase						)
     self.assertEqual(__UpperCAmelCase  ,					__UpperCAmelCase						)





