

'''simple docstring'''
from collections import OrderedDict
from typing import Mapping

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


lowerCamelCase :      Union[str, Any]					 =     logging.get_logger(__name__)

lowerCamelCase :      Optional[int]					 =     {
    "camembert-base": "https://huggingface.co/camembert-base/resolve/main/config.json",
    "umberto-commoncrawl-cased-v1": (
        "https://huggingface.co/Musixmatch/umberto-commoncrawl-cased-v1/resolve/main/config.json"
    ),
    "umberto-wikipedia-uncased-v1": (
        "https://huggingface.co/Musixmatch/umberto-wikipedia-uncased-v1/resolve/main/config.json"
    ),
}







class 							A__    (       A__  ):
  A__		 =				'camembert'





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





       '''simple docstring'''






       super().__init__(pad_token_id=_a							,					bos_token_id=_a							,					eos_token_id=_a							,					**_a )

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







class 							A__    (       A__  ):





  @property
  def 						A  (		self      :	List[str] )	->    Mapping[str, Mapping[int, str]]:





       '''simple docstring'''






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

"""simple docstring"""






from decimal import Decimal, getcontext
from math import ceil, factorial


def 			UpperCAmelCase__       (				lowerCAmelCase__     :int		) ->    str:
      '''simple docstring'''


      if not isinstance(lowerCAmelCase__					,		lowerCAmelCase__		):
            raise TypeError("""Undefined for non-integers"""		)
      elif precision < 1:
            raise ValueError("""Undefined for non-natural numbers"""		)

      lowercase														=	precision
      lowercase														=	ceil(precision / 1_4		)
      lowercase														=	4_2_6_8_8_0 * Decimal(1_0_0_0_5		).sqrt()
      lowercase														=	1
      lowercase														=	1_3_5_9_1_4_0_9
      lowercase														=	Decimal(lowerCAmelCase__		)
      for k in range(1					,		lowerCAmelCase__		):
            lowercase														=	factorial(6 * k		) // (factorial(3 * k		) * factorial(lowerCAmelCase__		) ** 3)
            linear_term += 5_4_5_1_4_0_1_3_4
            exponential_term *= -2_6_2_5_3_7_4_1_2_6_4_0_7_6_8_0_0_0
            partial_sum += Decimal(multinomial_term * linear_term		) / exponential_term
      return str(constant_term / partial_sum		)[:-1]


if __name__ == "__main__":
       __lowerCAmelCase    :       List[Any]					     =5_0
       print(F"""The first {n} digits of pi is: {pi(n)}""")



