

'''simple docstring'''







from transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest


@require_tokenizers
class 					A__      (      _snake_case			):
    lowercase						=		DistilBertTokenizer
    lowercase						=		DistilBertTokenizerFast
    lowercase						=		True



    @slow
    def 					snake_case_			(					self       )						->      Dict:





           '''simple docstring'''
           A_						=      DistilBertTokenizer.from_pretrained("""distilbert-base-uncased"""       )

           A_						=      tokenizer.encode("""sequence builders"""		,				add_special_tokens=UpperCamelCase__       )
           A_						=      tokenizer.encode("""multi-sequence build"""		,				add_special_tokens=UpperCamelCase__       )

           A_						=      tokenizer.build_inputs_with_special_tokens(UpperCamelCase__       )
           A_						=      tokenizer.build_inputs_with_special_tokens(UpperCamelCase__		,				UpperCamelCase__       )

           assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
           assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
               tokenizer.sep_token_id
           ]



'''simple docstring'''







def       UpperCAmelCase__    (      UpperCAmelCase__				)			->			bool:
       if num < 0:
              return False

       A_						=      num
       A_						=      0
       while num > 0:
              A_						=      rev_num * 10 + (num % 10)
              num //= 10

       return num_copy == rev_num


if __name__ == "__main__":
      import doctest

      doctest.testmod()
