'''simple docstring'''




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


_a   :	Dict 							=   logging.get_logger(__name__)

# TODO: upload to AWS
_a   :	Optional[Any] 							=   {
    "yjernite/retribert-base-uncased": (
        "https://huggingface.co/yjernite/retribert-base-uncased/resolve/main/config.json"
    ),
}






class 		__A       (__magic_name__   ):
       snake_case       :Optional[int]				    =					"retribert"






       def __init__(      self				,     UpperCamelCase_=3_05_22				,     UpperCamelCase_=7_68				,     UpperCamelCase_=8				,     UpperCamelCase_=12				,     UpperCamelCase_=30_72				,     UpperCamelCase_="gelu"				,     UpperCamelCase_=0.1				,     UpperCamelCase_=0.1				,     UpperCamelCase_=5_12				,     UpperCamelCase_=2				,     UpperCamelCase_=0.0_2				,     UpperCamelCase_=1E-12				,     UpperCamelCase_=True				,     UpperCamelCase_=1_28				,     UpperCamelCase_=0				,     **UpperCamelCase_				,     ):
              super().__init__(pad_token_id=UpperCamelCase_				,     **UpperCamelCase_      )

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







'''simple docstring'''




def _lowercase	(      lowerCamelCase__							,    lowerCamelCase__						)					->       float:





       """simple docstring"""


       if discount_rate < 0:
              raise ValueError("Discount rate cannot be negative"						)
       if not cash_flows:
              raise ValueError("Cash flows list cannot be empty"						)
       __UpperCAmelCase  :				Tuple       				=		sum(
           cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(lowerCamelCase__						)						)
       return round(lowerCamelCase__							,    ndigits=2						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()






