






'''simple docstring'''





import logging

from transformers.configuration_utils import PretrainedConfig


_a    :   List[Any]        =			logging.getLogger(__name__)







class 	_UpperCAmelCase  (  _A		):




      """simple docstring"""



      A          =    '''masked_bert'''
      def __init__(   self    ,	_lowerCAmelCase=30_522    ,	_lowerCAmelCase=768    ,	_lowerCAmelCase=12    ,	_lowerCAmelCase=12    ,	_lowerCAmelCase=3_072    ,	_lowerCAmelCase="gelu"    ,	_lowerCAmelCase=0.1    ,	_lowerCAmelCase=0.1    ,	_lowerCAmelCase=512    ,	_lowerCAmelCase=2    ,	_lowerCAmelCase=0.02    ,	_lowerCAmelCase=1e-12    ,	_lowerCAmelCase=0    ,	_lowerCAmelCase="topK"    ,	_lowerCAmelCase="constant"    ,	_lowerCAmelCase=0.0    ,	**_lowerCAmelCase    ,	):



          '''simple docstring'''
          super().__init__(pad_token_id=_lowerCAmelCase    ,	**_lowerCAmelCase		)

          lowerCAmelCase__   :int      							=				vocab_size
          lowerCAmelCase__   :Tuple      							=				hidden_size
          lowerCAmelCase__   :List[str]      							=				num_hidden_layers
          lowerCAmelCase__   :Union[str, Any]      							=				num_attention_heads
          lowerCAmelCase__   :Tuple      							=				hidden_act
          lowerCAmelCase__   :Union[str, Any]      							=				intermediate_size
          lowerCAmelCase__   :Union[str, Any]      							=				hidden_dropout_prob
          lowerCAmelCase__   :Optional[Any]      							=				attention_probs_dropout_prob
          lowerCAmelCase__   :Union[str, Any]      							=				max_position_embeddings
          lowerCAmelCase__   :str      							=				type_vocab_size
          lowerCAmelCase__   :str      							=				initializer_range
          lowerCAmelCase__   :Any      							=				layer_norm_eps
          lowerCAmelCase__   :str      							=				pruning_method
          lowerCAmelCase__   :Optional[int]      							=				mask_init
          lowerCAmelCase__   :Optional[Any]      							=				mask_scale











def 				snake_case__							(							UpperCAmelCase							:  float    ,			UpperCAmelCase							:  list[float]       ):
    if discount_rate < 0:
        raise ValueError("Discount rate cannot be negative"       )
    if not cash_flows:
        raise ValueError("Cash flows list cannot be empty"       )
    lowerCAmelCase__   :List[Any]      							=				sum(
        cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(UpperCAmelCase       )       )
    return round(UpperCAmelCase    ,			ndigits=2       )


if __name__ == "__main__":
 import doctest

 doctest.testmod()



