





import unittest

from transformers import RoFormerTokenizer, RoFormerTokenizerFast
from transformers.testing_utils import require_rjieba, require_tokenizers

from ...test_tokenization_common import TokenizerTesterMixin

@require_rjieba
@require_tokenizers
class 		UpperCamelCase__			(				lowerCAmelCase_							,				unittest.TestCase       ):



     '''simple docstring'''

     __snake_case   :     Tuple		     =      RoFormerTokenizer
     __snake_case   :     Tuple		     =      RoFormerTokenizerFast
     __snake_case   :     str		     =      True
     __snake_case   :     Any		     =      True






     def     SCREAMING_SNAKE_CASE__  (							self						:   int	)					->		Union[str, Any]:




           '''simple docstring'''


           super().setUp()






     def     SCREAMING_SNAKE_CASE__  (							self						:   int						,**lowerCamelCase__						:   List[str]	)					->		Optional[Any]:




           '''simple docstring'''


           return self.tokenizer_class.from_pretrained("""junnyu/roformer_chinese_base"""						,**lowerCamelCase__	)






     def     SCREAMING_SNAKE_CASE__  (							self						:   Dict						,**lowerCamelCase__						:   Optional[int]	)					->		List[Any]:




           '''simple docstring'''


           return self.rust_tokenizer_class.from_pretrained("""junnyu/roformer_chinese_base"""						,**lowerCamelCase__	)






     def     SCREAMING_SNAKE_CASE__  (							self						:   int	)					->		List[str]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE		=						"""永和服装饰品有限公司,今天天气非常好"""
           SCREAMING_SNAKE_CASE		=						"""永和 服装 饰品 有限公司 , 今 天 天 气 非常 好"""
           return input_text, output_text






     def     SCREAMING_SNAKE_CASE__  (							self						:   int	)					->		str:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE		=						self.get_tokenizer()
           SCREAMING_SNAKE_CASE, SCREAMING_SNAKE_CASE		=						self.get_chinese_input_output_texts()
           SCREAMING_SNAKE_CASE		=						tokenizer.tokenize(lowerCamelCase__	)

           self.assertListEqual(lowerCamelCase__						,output_text.split()	)

           SCREAMING_SNAKE_CASE		=						tokens + [tokenizer.unk_token]
           SCREAMING_SNAKE_CASE		=						[22943, 21332, 34431, 45904, 117, 306, 1231, 1231, 2653, 33994, 1266, 100]
           self.assertListEqual(tokenizer.convert_tokens_to_ids(lowerCamelCase__	)						,lowerCamelCase__	)






     def     SCREAMING_SNAKE_CASE__  (							self						:   Dict	)					->		Optional[Any]:




           '''simple docstring'''


           SCREAMING_SNAKE_CASE		=						self.get_rust_tokenizer()
           SCREAMING_SNAKE_CASE, SCREAMING_SNAKE_CASE		=						self.get_chinese_input_output_texts()
           SCREAMING_SNAKE_CASE		=						tokenizer.tokenize(lowerCamelCase__	)
           self.assertListEqual(lowerCamelCase__						,output_text.split()	)
           SCREAMING_SNAKE_CASE		=						tokens + [tokenizer.unk_token]
           SCREAMING_SNAKE_CASE		=						[22943, 21332, 34431, 45904, 117, 306, 1231, 1231, 2653, 33994, 1266, 100]
           self.assertListEqual(tokenizer.convert_tokens_to_ids(lowerCamelCase__	)						,lowerCamelCase__	)






     def     SCREAMING_SNAKE_CASE__  (							self						:   Union[str, Any]	)					->		int:




           '''simple docstring'''


           pass






     def     SCREAMING_SNAKE_CASE__  (							self						:   List[str]	)					->		Dict:




           '''simple docstring'''


           pass






     def     SCREAMING_SNAKE_CASE__  (							self						:   Any	)					->		int:




           '''simple docstring'''


           pass









from itertools import permutations



def        __lowercase       (				_SCREAMING_SNAKE_CASE     )			->       bool:


      '''simple docstring'''


      if num[3] % 2 != 0:
            return False

      if (num[2] + num[3] + num[4]) % 3 != 0:
            return False

      if num[5] % 5 != 0:
            return False

      SCREAMING_SNAKE_CASE		=						[7, 11, 13, 17]
      for i, test in enumerate(_SCREAMING_SNAKE_CASE     ):
            if (num[i + 4] * 1_00 + num[i + 5] * 10 + num[i + 6]) % test != 0:
                  return False
      return True



def        __lowercase       (				_SCREAMING_SNAKE_CASE = 10     )			->       int:


      '''simple docstring'''


      return sum(
          int("""""".join(map(_SCREAMING_SNAKE_CASE			,						_SCREAMING_SNAKE_CASE     )     )     )
          for num in permutations(range(_SCREAMING_SNAKE_CASE     )     )
          if is_substring_divisible(_SCREAMING_SNAKE_CASE     )     )


if __name__ == "__main__":
      print(F'''{solution() = }''')


