





class      A_	:
	def __init__(   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    []
				UpperCAmelCase       		=    0
				UpperCAmelCase       		=    0
	def __str__(   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    '''<''' + str(self.entries		)[1:-1] + '''>'''
				return printed
	def 					_lowercase    (   self							, _A		):






				'''simple docstring'''







				self.entries.append(_A		)
				UpperCAmelCase       		=    self.length + 1
	def 					_lowercase    (   self		):






				'''simple docstring'''







				UpperCAmelCase       		=    self.length - 1
				UpperCAmelCase       		=    self.entries[self.front]
				# self.front-=1
				# self.entries = self.entries[self.front:]
				UpperCAmelCase       		=    self.entries[1:]
				return dequeued
	def 					_lowercase    (   self							, _A		):






				'''simple docstring'''







				for _ in range(_A		):
							self.put(self.get()		)
	def 					_lowercase    (   self		):






				'''simple docstring'''







				return self.entries[0]
	def 					_lowercase    (   self		):






				'''simple docstring'''







				return self.length










from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available


__A    :   Any          =       {}

try:
				if not is_sentencepiece_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__A    :   Union[str, Any]          =       ["CpmTokenizer"]

try:
				if not is_tokenizers_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__A    :   List[Any]          =       ["CpmTokenizerFast"]


if TYPE_CHECKING:
				try:
								if not is_sentencepiece_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .tokenization_cpm import CpmTokenizer

				try:
								if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .tokenization_cpm_fast import CpmTokenizerFast

else:
				import sys

				__A    :   str          =       _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



