


'''simple docstring'''

from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowerCamelCase							:     Optional[int]								=			logging.get_logger(__name__)

lowerCamelCase							:     List[str]								=			{
    'nghuyong/ernie-1.0-base-zh': 'https://huggingface.co/nghuyong/ernie-1.0-base-zh/resolve/main/config.json',
    'nghuyong/ernie-2.0-base-en': 'https://huggingface.co/nghuyong/ernie-2.0-base-en/resolve/main/config.json',
    'nghuyong/ernie-2.0-large-en': 'https://huggingface.co/nghuyong/ernie-2.0-large-en/resolve/main/config.json',
    'nghuyong/ernie-3.0-base-zh': 'https://huggingface.co/nghuyong/ernie-3.0-base-zh/resolve/main/config.json',
    'nghuyong/ernie-3.0-medium-zh': 'https://huggingface.co/nghuyong/ernie-3.0-medium-zh/resolve/main/config.json',
    'nghuyong/ernie-3.0-mini-zh': 'https://huggingface.co/nghuyong/ernie-3.0-mini-zh/resolve/main/config.json',
    'nghuyong/ernie-3.0-micro-zh': 'https://huggingface.co/nghuyong/ernie-3.0-micro-zh/resolve/main/config.json',
    'nghuyong/ernie-3.0-nano-zh': 'https://huggingface.co/nghuyong/ernie-3.0-nano-zh/resolve/main/config.json',
    'nghuyong/ernie-gram-zh': 'https://huggingface.co/nghuyong/ernie-gram-zh/resolve/main/config.json',
    'nghuyong/ernie-health-zh': 'https://huggingface.co/nghuyong/ernie-health-zh/resolve/main/config.json',
}
class 						__lowerCAmelCase		(lowercase_  ):





      '''simple docstring'''






      lowerCAmelCase__      :  List[str]						      =							"""ernie"""



      def __init__(self					:					List[Any]     ,		UpperCamelCase					:					List[str]=30522     ,		UpperCamelCase					:					Dict=768     ,		UpperCamelCase					:					List[str]=12     ,		UpperCamelCase					:					Tuple=12     ,		UpperCamelCase					:					Dict=3072     ,		UpperCamelCase					:					Tuple="gelu"     ,		UpperCamelCase					:					Any=0.1     ,		UpperCamelCase					:					Optional[Any]=0.1     ,		UpperCamelCase					:					Union[str, Any]=512     ,		UpperCamelCase					:					int=2     ,		UpperCamelCase					:					Optional[int]=3     ,		UpperCamelCase					:					Any=False     ,		UpperCamelCase					:					List[str]=0.02     ,		UpperCamelCase					:					int=1E-12     ,		UpperCamelCase					:					List[str]=0     ,		UpperCamelCase					:					List[Any]="absolute"     ,		UpperCamelCase					:					int=True     ,		UpperCamelCase					:					List[Any]=None     ,		**UpperCamelCase					:					List[str]     ,		):

             '''simple docstring'''







             super().__init__(pad_token_id=UpperCamelCase     ,		**UpperCamelCase				)

             lowercase__       =				vocab_size
             lowercase__       =				hidden_size
             lowercase__       =				num_hidden_layers
             lowercase__       =				num_attention_heads
             lowercase__       =				hidden_act
             lowercase__       =				intermediate_size
             lowercase__       =				hidden_dropout_prob
             lowercase__       =				attention_probs_dropout_prob
             lowercase__       =				max_position_embeddings
             lowercase__       =				type_vocab_size
             lowercase__       =				task_type_vocab_size
             lowercase__       =				use_task_id
             lowercase__       =				initializer_range
             lowercase__       =				layer_norm_eps
             lowercase__       =				position_embedding_type
             lowercase__       =				use_cache
             lowercase__       =				classifier_dropout






class 						__lowerCAmelCase		(lowercase_  ):





      '''simple docstring'''






      @property
      def    UpperCamelCase__	(self					:					Dict				):

             '''simple docstring'''







             if self.task == "multiple-choice":
                    lowercase__       =				{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
             else:
                    lowercase__       =				{0: '''batch''', 1: '''sequence'''}
             return OrderedDict(
                 [
                     ('''input_ids''', dynamic_axis),
                     ('''attention_mask''', dynamic_axis),
                     ('''token_type_ids''', dynamic_axis),
                     ('''task_type_ids''', dynamic_axis),
                 ]				)








'''simple docstring'''

from __future__ import annotations

from collections import Counter

def _SCREAMING_SNAKE_CASE   (A ) -> list[int]:






       """simple docstring"""







       lowercase__       =				[True] * n
       lowercase__       =				False
       lowercase__       =				False
       lowercase__       =				True

       for i in range(3						,				int(n**0.5 + 1 )						,				2 ):
              lowercase__       =				i * 2
              while index < n:
                     lowercase__       =				False
                     lowercase__       =				index + i

       lowercase__       =				[2]

       for i in range(3						,				A						,				2 ):
              if is_prime[i]:
                     primes.append(A )

       return primes

def _SCREAMING_SNAKE_CASE   (A ) -> list[list[int]]:






       """simple docstring"""







       lowercase__       =				str(A )
       lowercase__       =				[]
       lowercase__       =				['''0''', '''1''', '''2''', '''3''', '''4''', '''5''', '''6''', '''7''', '''8''', '''9''']

       for duplicate in Counter(A ) - Counter(set(A ) ):
              lowercase__       =				[int(number_str.replace(A						,				A ) ) for digit in digits]
              replacements.append(A )

       return replacements

def _SCREAMING_SNAKE_CASE   (A = 8 ) -> int:






       """simple docstring"""







       lowercase__       =				set()

       # Filter primes with less than 3 replaceable digits
       lowercase__       =				{
           x for x in set(prime_sieve(1_000_000 ) ) if len(str(A ) ) - len(set(str(A ) ) ) >= 3
       }

       for prime in primes:
              if prime in numbers_checked:
                     continue

              lowercase__       =				digit_replacements(A )

              for family in replacements:
                     numbers_checked.update(A )
                     lowercase__       =				primes.intersection(A )

                     if len(A ) != family_length:
                            continue

                     return min(A )

       return -1


if __name__ == "__main__":
 print(solution())




