



from transformers import SqueezeBertTokenizer, SqueezeBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest





@require_tokenizers
class    __lowerCAmelCase					(	lowerCamelCase__			):
				__lowerCamelCase					=							SqueezeBertTokenizer
				__lowerCamelCase					=							SqueezeBertTokenizerFast
				__lowerCamelCase					=							True




				def 				snake_case  (				self		,							**_snake_case						):



									"""simple docstring"""





									return SqueezeBertTokenizerFast.from_pretrained(self.tmpdirname		,							**_snake_case						)




				@slow
				def 				snake_case  (				self						):



									"""simple docstring"""





									_lowerCAmelCase         =       SqueezeBertTokenizer.from_pretrained("""squeezebert/squeezebert-mnli-headless"""						)

									_lowerCAmelCase         =       tokenizer.encode("""sequence builders"""		,							add_special_tokens=_snake_case						)
									_lowerCAmelCase         =       tokenizer.encode("""multi-sequence build"""		,							add_special_tokens=_snake_case						)

									_lowerCAmelCase         =       tokenizer.build_inputs_with_special_tokens(_snake_case						)
									_lowerCAmelCase         =       tokenizer.build_inputs_with_special_tokens(_snake_case		,							_snake_case						)

									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"""





from doctest import testmod
from math import sqrt


def   _snake_case    (    _snake_case					:      int      ):
      lowerCAmelCase       :						list[int]							= []
      if num < 1:
            return facs
      facs.append(1      )
      if num == 1:
            return facs
      facs.append(_snake_case      )
      for i in range(2			, int(sqrt(_snake_case      )      ) + 1      ):
            if num % i == 0:  # If i is a factor of num
                  facs.append(_snake_case      )
                  lowerCAmelCase       :						Dict							= num // i  # num//i is the other factor of num
                  if d != i:  # If d and i are distinct
                        facs.append(_snake_case      )  # we have found another factor
      facs.sort()
      return facs


if __name__ == "__main__":
 testmod(name='''factors_of_a_number''', verbose=True)


