






from math import asin, atan, cos, radians, sin, sqrt, tan

_a      	=  6378137.0
_a      	=  6356752.314245
_a      	=  6378137


def __A    (      __lowerCAmelCase ,		__lowerCAmelCase ,		__lowerCAmelCase ,		__lowerCAmelCase	)->  List[Any]:





						"""simple docstring"""



						_UpperCAmelCase									=			(AXIS_A - AXIS_B) / AXIS_A
						_UpperCAmelCase									=			atan((1 - flattening) * tan(radians(_UpperCAmelCase	)	)	)
						_UpperCAmelCase									=			atan((1 - flattening) * tan(radians(_UpperCAmelCase	)	)	)
						_UpperCAmelCase									=			radians(_UpperCAmelCase	)
						_UpperCAmelCase									=			radians(_UpperCAmelCase	)
						# Equation
						_UpperCAmelCase									=			sin((phi_a - phi_a) / 2	)
						_UpperCAmelCase									=			sin((lambda_a - lambda_a) / 2	)
						# Square both values
						sin_sq_phi *= sin_sq_phi
						sin_sq_lambda *= sin_sq_lambda
						_UpperCAmelCase									=			sqrt(sin_sq_phi + (cos(_UpperCAmelCase	) * cos(_UpperCAmelCase	) * sin_sq_lambda)	)
						return 2 * RADIUS * asin(_UpperCAmelCase	)


if __name__ == "__main__":
		import doctest

		doctest.testmod()





import logging

from transformers.configuration_utils import PretrainedConfig


__snake_case						:Any      		=     logging.getLogger(__name__)

class     _A       (	__UpperCAmelCase    ):
       UpperCamelCase__  :    Optional[Any]											=						'''masked_bert'''



       def __init__(		self							:     str     ,		__SCREAMING_SNAKE_CASE							:     int=30_522     ,		__SCREAMING_SNAKE_CASE							:     str=768     ,		__SCREAMING_SNAKE_CASE							:     List[str]=12     ,		__SCREAMING_SNAKE_CASE							:     Any=12     ,		__SCREAMING_SNAKE_CASE							:     Union[str, Any]=3_072     ,		__SCREAMING_SNAKE_CASE							:     List[Any]="gelu"     ,		__SCREAMING_SNAKE_CASE							:     int=0.1     ,		__SCREAMING_SNAKE_CASE							:     Dict=0.1     ,		__SCREAMING_SNAKE_CASE							:     Optional[Any]=512     ,		__SCREAMING_SNAKE_CASE							:     Optional[int]=2     ,		__SCREAMING_SNAKE_CASE							:     Dict=0.02     ,		__SCREAMING_SNAKE_CASE							:     List[Any]=1E-12     ,		__SCREAMING_SNAKE_CASE							:     Union[str, Any]=0     ,		__SCREAMING_SNAKE_CASE							:     List[str]="topK"     ,		__SCREAMING_SNAKE_CASE							:     List[Any]="constant"     ,		__SCREAMING_SNAKE_CASE							:     int=0.0     ,		**__SCREAMING_SNAKE_CASE							:     List[Any]     ,		):


           '''simple docstring'''

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

           __a						       =				vocab_size
           __a						       =				hidden_size
           __a						       =				num_hidden_layers
           __a						       =				num_attention_heads
           __a						       =				hidden_act
           __a						       =				intermediate_size
           __a						       =				hidden_dropout_prob
           __a						       =				attention_probs_dropout_prob
           __a						       =				max_position_embeddings
           __a						       =				type_vocab_size
           __a						       =				initializer_range
           __a						       =				layer_norm_eps
           __a						       =				pruning_method
           __a						       =				mask_init
           __a						       =				mask_scale





