
'''simple docstring'''







from collections import OrderedDict
from typing import Mapping

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


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

_lowercase				:						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_  ):
					lowerCAmelCase_       =  """ernie"""






					def __init__(     self       ,							__SCREAMING_SNAKE_CASE=3_05_22       ,							__SCREAMING_SNAKE_CASE=7_68       ,							__SCREAMING_SNAKE_CASE=12       ,							__SCREAMING_SNAKE_CASE=12       ,							__SCREAMING_SNAKE_CASE=30_72       ,							__SCREAMING_SNAKE_CASE="gelu"       ,							__SCREAMING_SNAKE_CASE=0.1       ,							__SCREAMING_SNAKE_CASE=0.1       ,							__SCREAMING_SNAKE_CASE=5_12       ,							__SCREAMING_SNAKE_CASE=2       ,							__SCREAMING_SNAKE_CASE=3       ,							__SCREAMING_SNAKE_CASE=False       ,							__SCREAMING_SNAKE_CASE=0.02       ,							__SCREAMING_SNAKE_CASE=1E-1_2       ,							__SCREAMING_SNAKE_CASE=0       ,							__SCREAMING_SNAKE_CASE="absolute"       ,							__SCREAMING_SNAKE_CASE=True       ,							__SCREAMING_SNAKE_CASE=None       ,							**__SCREAMING_SNAKE_CASE       ,							):


											"""simple docstring"""





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

											lowercase_			:  Optional[int]									= vocab_size
											lowercase_			:  Dict									= hidden_size
											lowercase_			:  Optional[int]									= num_hidden_layers
											lowercase_			:  Optional[int]									= num_attention_heads
											lowercase_			:  List[Any]									= hidden_act
											lowercase_			:  List[str]									= intermediate_size
											lowercase_			:  List[Any]									= hidden_dropout_prob
											lowercase_			:  Tuple									= attention_probs_dropout_prob
											lowercase_			:  Optional[Any]									= max_position_embeddings
											lowercase_			:  Optional[Any]									= type_vocab_size
											lowercase_			:  int									= task_type_vocab_size
											lowercase_			:  List[Any]									= use_task_id
											lowercase_			:  Union[str, Any]									= initializer_range
											lowercase_			:  Union[str, Any]									= layer_norm_eps
											lowercase_			:  str									= position_embedding_type
											lowercase_			:  Tuple									= use_cache
											lowercase_			:  Tuple									= classifier_dropout







class 				lowerCAmelCase__     (						lowercase_  ):






					@property
					def 			_snake_case					(     self	):


											"""simple docstring"""





											if self.task == "multiple-choice":
																	lowercase_			:  Dict									= {0: '''batch''', 1: '''choice''', 2: '''sequence'''}
											else:
																	lowercase_			:  Dict									= {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 itertools import combinations, product
def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int   ,   __SCREAMING_SNAKE_CASE      :				int   ,   __SCREAMING_SNAKE_CASE      :				int   ,   __SCREAMING_SNAKE_CASE      :				int							):



						"""simple docstring"""





						if xa == ya == 0 or xa == ya == 0:
												return False
						lowercase_			:  Optional[Any]									= xa * xa + ya * ya
						lowercase_			:  List[str]									= xa * xa + ya * ya
						lowercase_			:  Any									= (xa - xa) * (xa - xa) + (ya - ya) * (ya - ya)
						return (
						    a_square + b_square == c_square
						    or a_square + c_square == b_square
						    or b_square + c_square == a_square
						)
def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int = 50							):



						"""simple docstring"""





						return sum(
						    1
						    for pta, pta in combinations(product(range(limit + 1							)   ,   repeat=2							)   ,   2							)
						    if is_right(*__SCREAMING_SNAKE_CASE   ,   *__SCREAMING_SNAKE_CASE							)							)


if __name__ == "__main__":
							print(f"""{solution() = }""")



