





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

from ..bert.test_tokenization_bert import BertTokenizationTest






@require_tokenizers
class       __A					(					lowerCAmelCase				):

			'''simple docstring'''







			lowerCAmelCase_							  =		DistilBertTokenizer
			lowerCAmelCase_							  =		DistilBertTokenizerFast
			lowerCAmelCase_							  =		True





			@slow
			def 	__lowerCamelCase       (					self							):



				'''simple docstring'''







				lowerCamelCase__              =	DistilBertTokenizer.from_pretrained('''distilbert-base-uncased'''							)

				lowerCamelCase__              =	tokenizer.encode('''sequence builders''' ,						add_special_tokens=__lowerCAmelCase							)
				lowerCamelCase__              =	tokenizer.encode('''multi-sequence build''' ,						add_special_tokens=__lowerCAmelCase							)

				lowerCamelCase__              =	tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase							)
				lowerCamelCase__              =	tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase ,						__lowerCAmelCase							)

				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
				]










from __future__ import annotations





def lowerCAmelCase__(__snake_case ,__snake_case = None ,__snake_case = None							)       ->   None:







	'''simple docstring'''







	if start is None:
		lowerCamelCase__              =	0

	if end is None:
		lowerCamelCase__              =	len(__snake_case							) - 1

	if start >= end:
		return

	lowerCamelCase__              =	(start + end) // 2

	slowsort(__snake_case ,__snake_case ,__snake_case							)
	slowsort(__snake_case ,mid + 1 ,__snake_case							)

	if sequence[end] < sequence[mid]:
		lowerCamelCase__       ,			lowerCamelCase__              =	sequence[mid], sequence[end]

	slowsort(__snake_case ,__snake_case ,end - 1							)


if __name__ == "__main__":
			from doctest import testmod

			testmod()



