


'''simple docstring'''


import unittest
import warnings
from dataclasses import dataclass

from transformers.convert_slow_tokenizer import SpmConverter
from transformers.testing_utils import get_tests_dir





@dataclass
class    lowercase__  :





							'''simple docstring'''


							A_							:				str





class    lowercase__  (						unittest.TestCase ):





							'''simple docstring'''


							def UpperCAmelCase_     (   self  ):
											_SCREAMING_SNAKE_CASE			:	Dict							=				get_tests_dir("""fixtures/test_sentencepiece.model"""  )
											_SCREAMING_SNAKE_CASE			:	Tuple							=				get_tests_dir("""fixtures/test_sentencepiece_with_bytefallback.model"""  )

											_SCREAMING_SNAKE_CASE			:	int							=				FakeOriginalTokenizer(vocab_file=__snake_case  )

											with warnings.catch_warnings(record=__snake_case  ) as w:
															_SCREAMING_SNAKE_CASE			:	List[Any]							=				SpmConverter(__snake_case  )
											self.assertEqual(len(__snake_case  )   , 0  )

											_SCREAMING_SNAKE_CASE			:	Dict							=				FakeOriginalTokenizer(vocab_file=__snake_case  )

											with warnings.catch_warnings(record=__snake_case  ) as w:
															_SCREAMING_SNAKE_CASE			:	Any							=				SpmConverter(__snake_case  )
											self.assertEqual(len(__snake_case  )   , 1  )

											self.assertIn(
											    """The sentencepiece tokenizer that you are converting to a fast tokenizer uses the byte fallback option"""
											    """ which is not implemented in the fast tokenizers."""   , str(w[0].message  )   , )








'''simple docstring'''


def       snake_case_       (  SCREAMING_SNAKE_CASE__							,				SCREAMING_SNAKE_CASE__					):







				"""simple docstring"""





				if len(str(SCREAMING_SNAKE_CASE__					)					) == 1 or len(str(SCREAMING_SNAKE_CASE__					)					) == 1:
								return a * b

				_SCREAMING_SNAKE_CASE			:	Optional[Any]							=				max(len(str(SCREAMING_SNAKE_CASE__					)					)							,				len(str(SCREAMING_SNAKE_CASE__					)					)					)
				_SCREAMING_SNAKE_CASE			:	Tuple							=				ma // 2

				_SCREAMING_SNAKE_CASE		,	_SCREAMING_SNAKE_CASE			:	Optional[int]							=				divmod(SCREAMING_SNAKE_CASE__							,				10**ma					)
				_SCREAMING_SNAKE_CASE		,	_SCREAMING_SNAKE_CASE			:	Optional[int]							=				divmod(SCREAMING_SNAKE_CASE__							,				10**ma					)

				_SCREAMING_SNAKE_CASE			:	Dict							=				karatsuba(SCREAMING_SNAKE_CASE__							,				SCREAMING_SNAKE_CASE__					)
				_SCREAMING_SNAKE_CASE			:	List[Any]							=				karatsuba((aa + aa)							,				(ba + ba)					)
				_SCREAMING_SNAKE_CASE			:	List[Any]							=				karatsuba(SCREAMING_SNAKE_CASE__							,				SCREAMING_SNAKE_CASE__					)

				return (z * 10 ** (2 * ma)) + ((y - z - x) * 10 ** (ma)) + (x)







def       snake_case_       (  ):







				"""simple docstring"""





				print(karatsuba(1_5463							,				2_3489					)					)


if __name__ == "__main__":
				main()




