



from .hash_table import HashTable
from .number_theory.prime_numbers import is_prime, next_prime
class lowerCAmelCase_       (   A_			):







	'''simple docstring'''




	def __init__(	self   ,       *lowerCamelCase   ,       **lowerCamelCase       ):



				'''simple docstring'''


				super().__init__(*lowerCamelCase   ,       **lowerCamelCase       )

	def 				_A			(	self   ,       lowerCamelCase   ,       lowerCamelCase       ):



				'''simple docstring'''


				a__					=  (
				    next_prime(value % self.size_table       )
				    if not is_prime(value % self.size_table       )
				    else value % self.size_table
				)  # gt = bigger than
				return next_prime_gt - (data % next_prime_gt)

	def 				_A			(	self   ,       lowerCamelCase   ,       lowerCamelCase   ,       lowerCamelCase       ):



				'''simple docstring'''


				return (increment * self.__hash_function_a(lowerCamelCase   ,       lowerCamelCase       )) % self.size_table







	def 				_A			(	self   ,       lowerCamelCase   ,       lowerCamelCase=None       ):



				'''simple docstring'''


				a__					=  1
				a__					=  self.hash_function(lowerCamelCase       )

				while self.values[new_key] is not None and self.values[new_key] != key:
							a__					=  (
							    self.__hash_double_function(lowerCamelCase   ,       lowerCamelCase   ,       lowerCamelCase       )
							    if self.balanced_factor() >= self.lim_charge
							    else None
							)
							if new_key is None:
										break
							else:
										i += 1

				return new_key






from typing import TYPE_CHECKING

from ...utils import _LazyModule


_lowercase				:					List[Any]     					={"""tokenization_bert_japanese""": ["""BertJapaneseTokenizer""", """CharacterTokenizer""", """MecabTokenizer"""]}


if TYPE_CHECKING:
	from .tokenization_bert_japanese import BertJapaneseTokenizer, CharacterTokenizer, MecabTokenizer

else:
	import sys

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

