






"""simple docstring"""
from typing import TYPE_CHECKING

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


A_			: List[Any]				=			{}

try:
      if not is_sentencepiece_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      A_			: Any				=			["CpmTokenizer"]

try:
      if not is_tokenizers_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      A_			: List[str]				=			["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__)









"""simple docstring"""
def        lowerCamelCase_  (						_lowerCamelCase				):
 lowerCamelCase__     :			int     				=						5381
 for x in s:
  lowerCamelCase__     :			Union[str, Any]     				=						((hash_value << 5) + hash_value) + ord(_lowerCamelCase				)
 return hash_value & 0Xffffffff

