

"""simple docstring"""




import os
import unittest

from transformers import LxmertTokenizer, LxmertTokenizerFast
from transformers.models.bert.tokenization_bert import VOCAB_FILES_NAMES
from transformers.testing_utils import require_tokenizers

from ...test_tokenization_common import TokenizerTesterMixin







@require_tokenizers
class   __lowercase      (     __lowerCamelCase						,      unittest.TestCase       ):
  snake_case_												=							LxmertTokenizer
  snake_case_												=							LxmertTokenizerFast
  snake_case_												=							True
  snake_case_												=							True

  def  __lowercase							(	self		:      Optional[Any]     ):






   '''simple docstring'''
   super().setUp()

   UpperCAmelCase__       :	int        =       [
       """[UNK]""",
       """[CLS]""",
       """[SEP]""",
       """want""",
       """##want""",
       """##ed""",
       """wa""",
       """un""",
       """runn""",
       """##ing""",
       """,""",
       """low""",
       """lowest""",
   ]
   UpperCAmelCase__       :	Any        =       os.path.join(self.tmpdirname       ,VOCAB_FILES_NAMES["""vocab_file"""]     )
   with open(self.vocab_file       ,"""w"""       ,encoding="""utf-8"""     ) as vocab_writer:
    vocab_writer.write("""""".join([x + """\n""" for x in vocab_tokens]     )     )

  def  __lowercase							(	self		:      Union[str, Any]       ,A		:      Any     ):






   '''simple docstring'''
   UpperCAmelCase__       :	Tuple        =       """UNwant\u00E9d,running"""
   UpperCAmelCase__       :	int        =       """unwanted, running"""
   return input_text, output_text

  def  __lowercase							(	self		:      Optional[int]     ):






   '''simple docstring'''
   UpperCAmelCase__       :	Any        =       self.tokenizer_class(self.vocab_file     )

   UpperCAmelCase__       :	List[Any]        =       tokenizer.tokenize("""UNwant\u00E9d,running"""     )
   self.assertListEqual(A       ,["""un""", """##want""", """##ed""", """,""", """runn""", """##ing"""]     )
   self.assertListEqual(tokenizer.convert_tokens_to_ids(A     )       ,[7, 4, 5, 10, 8, 9]     )




  def  __lowercase							(	self		:      Any     ):






   '''simple docstring'''
   if not self.test_rust_tokenizer:
    return

   UpperCAmelCase__       :	int        =       self.get_tokenizer()
   UpperCAmelCase__       :	Optional[int]        =       self.get_rust_tokenizer()

   UpperCAmelCase__       :	Union[str, Any]        =       """I was born in 92000, and this is falsé."""

   UpperCAmelCase__       :	List[Any]        =       tokenizer.tokenize(A     )
   UpperCAmelCase__       :	Optional[Any]        =       rust_tokenizer.tokenize(A     )
   self.assertListEqual(A       ,A     )

   UpperCAmelCase__       :	Dict        =       tokenizer.encode(A       ,add_special_tokens=A     )
   UpperCAmelCase__       :	int        =       rust_tokenizer.encode(A       ,add_special_tokens=A     )
   self.assertListEqual(A       ,A     )

   UpperCAmelCase__       :	Any        =       self.get_rust_tokenizer()
   UpperCAmelCase__       :	int        =       tokenizer.encode(A     )
   UpperCAmelCase__       :	Any        =       rust_tokenizer.encode(A     )
   self.assertListEqual(A       ,A     )









def 	__lowerCamelCase						(							lowerCamelCase__		:						int      ):





			'''simple docstring'''




			lowerCamelCase    		=  (1 + 24 * n) ** 0.5
			return ((1 + root) / 6) % 1 == 0






def 	__lowerCamelCase						(							lowerCamelCase__		:						int = 5000      ):





			'''simple docstring'''




			lowerCamelCase    		=  [(i * (3 * i - 1)) // 2 for i in range(1  ,							lowerCamelCase__      )]
			for i, pentagonal_i in enumerate(lowerCamelCase__      ):
						for j in range(lowerCamelCase__  ,							len(lowerCamelCase__      )      ):
									lowerCamelCase    		=  pentagonal_nums[j]
									lowerCamelCase    		=  pentagonal_i + pentagonal_j
									lowerCamelCase    		=  pentagonal_j - pentagonal_i
									if is_pentagonal(lowerCamelCase__      ) and is_pentagonal(lowerCamelCase__      ):
												return b

			return -1


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

