


import random






def 					lowerCamelCase_   (	_a	):




		"""simple docstring"""






		lowerCAmelCase__       :      Tuple   					= num - 1
		lowerCAmelCase__       :      Optional[int]   					= 0

		while s % 2 == 0:
				lowerCAmelCase__       :      Optional[Any]   					= s // 2
				t += 1

		for _ in range(5	):
				lowerCAmelCase__       :      Optional[int]   					= random.randrange(2     ,       num - 1	)
				lowerCAmelCase__       :      Tuple   					= pow(_a     ,       _a     ,       _a	)
				if v != 1:
						lowerCAmelCase__       :      str   					= 0
						while v != (num - 1):
								if i == t - 1:
										return False
								else:
										lowerCAmelCase__       :      Union[str, Any]   					= i + 1
										lowerCAmelCase__       :      Tuple   					= (v**2) % num
		return True






def 					lowerCamelCase_   (	_a	):




		"""simple docstring"""






		if num < 2:
				return False

		lowerCAmelCase__       :      Any   					= [
		    2,
		    3,
		    5,
		    7,
		    11,
		    13,
		    17,
		    19,
		    23,
		    29,
		    31,
		    37,
		    41,
		    43,
		    47,
		    53,
		    59,
		    61,
		    67,
		    71,
		    73,
		    79,
		    83,
		    89,
		    97,
		    101,
		    103,
		    107,
		    109,
		    113,
		    127,
		    131,
		    137,
		    139,
		    149,
		    151,
		    157,
		    163,
		    167,
		    173,
		    179,
		    181,
		    191,
		    193,
		    197,
		    199,
		    211,
		    223,
		    227,
		    229,
		    233,
		    239,
		    241,
		    251,
		    257,
		    263,
		    269,
		    271,
		    277,
		    281,
		    283,
		    293,
		    307,
		    311,
		    313,
		    317,
		    331,
		    337,
		    347,
		    349,
		    353,
		    359,
		    367,
		    373,
		    379,
		    383,
		    389,
		    397,
		    401,
		    409,
		    419,
		    421,
		    431,
		    433,
		    439,
		    443,
		    449,
		    457,
		    461,
		    463,
		    467,
		    479,
		    487,
		    491,
		    499,
		    503,
		    509,
		    521,
		    523,
		    541,
		    547,
		    557,
		    563,
		    569,
		    571,
		    577,
		    587,
		    593,
		    599,
		    601,
		    607,
		    613,
		    617,
		    619,
		    631,
		    641,
		    643,
		    647,
		    653,
		    659,
		    661,
		    673,
		    677,
		    683,
		    691,
		    701,
		    709,
		    719,
		    727,
		    733,
		    739,
		    743,
		    751,
		    757,
		    761,
		    769,
		    773,
		    787,
		    797,
		    809,
		    811,
		    821,
		    823,
		    827,
		    829,
		    839,
		    853,
		    857,
		    859,
		    863,
		    877,
		    881,
		    883,
		    887,
		    907,
		    911,
		    919,
		    929,
		    937,
		    941,
		    947,
		    953,
		    967,
		    971,
		    977,
		    983,
		    991,
		    997,
		]

		if num in low_primes:
				return True

		for prime in low_primes:
				if (num % prime) == 0:
						return False

		return rabin_miller(_a	)






def 					lowerCamelCase_   (	_a = 1_024	):




		"""simple docstring"""






		while True:
				lowerCAmelCase__       :      Union[str, Any]   					= random.randrange(2 ** (keysize - 1)     ,       2 ** (keysize)	)
				if is_prime_low_num(_a	):
						return num


if __name__ == "__main__":
		lowerCamelCase						=		generate_large_prime()
		print(('''Prime number:''', num))
		print(('''is_prime_low_num:''', is_prime_low_num(num)))








from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCamelCase						=		logging.get_logger(__name__)

lowerCamelCase						=		{
    '''facebook/dpr-ctx_encoder-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-question_encoder-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-question_encoder-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-reader-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-reader-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-ctx_encoder-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-ctx_encoder-multiset-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-question_encoder-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-question_encoder-multiset-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-reader-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-reader-multiset-base/resolve/main/config.json'''
    ),
}





class  _a							(    _lowercase):
	_a  :  List[Any]				   =							'''dpr'''




	def __init__( self						:		List[str]		, _SCREAMING_SNAKE_CASE						:		List[str]=3_0522		, _SCREAMING_SNAKE_CASE						:		Optional[int]=768		, _SCREAMING_SNAKE_CASE						:		List[str]=12		, _SCREAMING_SNAKE_CASE						:		Tuple=12		, _SCREAMING_SNAKE_CASE						:		str=3072		, _SCREAMING_SNAKE_CASE						:		Optional[Any]="gelu"		, _SCREAMING_SNAKE_CASE						:		Dict=0.1		, _SCREAMING_SNAKE_CASE						:		Optional[int]=0.1		, _SCREAMING_SNAKE_CASE						:		List[str]=512		, _SCREAMING_SNAKE_CASE						:		int=2		, _SCREAMING_SNAKE_CASE						:		Optional[Any]=0.02		, _SCREAMING_SNAKE_CASE						:		Tuple=1E-12		, _SCREAMING_SNAKE_CASE						:		Union[str, Any]=0		, _SCREAMING_SNAKE_CASE						:		List[str]="absolute"		, _SCREAMING_SNAKE_CASE						:		int = 0		, **_SCREAMING_SNAKE_CASE						:		Optional[Any]		, )->	Optional[int]:
			super().__init__(pad_token_id=_SCREAMING_SNAKE_CASE		, **_SCREAMING_SNAKE_CASE		)

			lowerCAmelCase__       :      Union[str, Any]   					= vocab_size
			lowerCAmelCase__       :      Tuple   					= hidden_size
			lowerCAmelCase__       :      Union[str, Any]   					= num_hidden_layers
			lowerCAmelCase__       :      List[Any]   					= num_attention_heads
			lowerCAmelCase__       :      Optional[int]   					= hidden_act
			lowerCAmelCase__       :      Optional[Any]   					= intermediate_size
			lowerCAmelCase__       :      Optional[Any]   					= hidden_dropout_prob
			lowerCAmelCase__       :      int   					= attention_probs_dropout_prob
			lowerCAmelCase__       :      str   					= max_position_embeddings
			lowerCAmelCase__       :      List[Any]   					= type_vocab_size
			lowerCAmelCase__       :      Optional[int]   					= initializer_range
			lowerCAmelCase__       :      List[str]   					= layer_norm_eps
			lowerCAmelCase__       :      Dict   					= projection_dim
			lowerCAmelCase__       :      int   					= position_embedding_type




