




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


_lowerCamelCase    				=		logging.get_logger(__name__)

_lowerCamelCase    				=		{
    'uw-madison/yoso-4096': 'https://huggingface.co/uw-madison/yoso-4096/resolve/main/config.json',
    # See all YOSO models at https://huggingface.co/models?filter=yoso
}



class     a  (     _A    ):

					'''simple docstring'''





					lowerCAmelCase       : Union[str, Any]     	=						'yoso'
					def __init__(			self     :    List[str]      ,					__snake_case     :    Any=5_02_65      ,					__snake_case     :    Union[str, Any]=7_68      ,					__snake_case     :    Optional[int]=12      ,					__snake_case     :    List[Any]=12      ,					__snake_case     :    Any=30_72      ,					__snake_case     :    List[Any]="gelu"      ,					__snake_case     :    List[Any]=0.1      ,					__snake_case     :    Tuple=0.1      ,					__snake_case     :    Optional[Any]=40_96      ,					__snake_case     :    str=1      ,					__snake_case     :    List[str]=0.02      ,					__snake_case     :    List[Any]=1E-12      ,					__snake_case     :    Any="absolute"      ,					__snake_case     :    List[Any]=True      ,					__snake_case     :    Optional[Any]=9      ,					__snake_case     :    List[str]=64      ,					__snake_case     :    Dict=None      ,					__snake_case     :    Optional[Any]=True      ,					__snake_case     :    Dict=True      ,					__snake_case     :    List[Any]=1      ,					__snake_case     :    Dict=0      ,					__snake_case     :    Tuple=2      ,					**__snake_case     :    Tuple      ,					):
									super().__init__(pad_token_id=__lowerCamelCase      ,					bos_token_id=__lowerCamelCase      ,					eos_token_id=__lowerCamelCase      ,					**__lowerCamelCase       )

									UpperCAmelCase_											=  vocab_size
									UpperCAmelCase_											=  max_position_embeddings
									UpperCAmelCase_											=  hidden_size
									UpperCAmelCase_											=  num_hidden_layers
									UpperCAmelCase_											=  num_attention_heads
									UpperCAmelCase_											=  intermediate_size
									UpperCAmelCase_											=  hidden_act
									UpperCAmelCase_											=  hidden_dropout_prob
									UpperCAmelCase_											=  attention_probs_dropout_prob
									UpperCAmelCase_											=  initializer_range
									UpperCAmelCase_											=  type_vocab_size
									UpperCAmelCase_											=  layer_norm_eps
									UpperCAmelCase_											=  position_embedding_type
									UpperCAmelCase_											=  use_expectation
									UpperCAmelCase_											=  hash_code_len
									UpperCAmelCase_											=  num_hash
									UpperCAmelCase_											=  conv_window
									UpperCAmelCase_											=  use_fast_hash
									UpperCAmelCase_											=  lsh_backward











_lowerCamelCase    				=		10_00




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		float   )						->							float:
    return x * x




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		Optional[int] ,  __UpperCamelCase    :		float ,  __UpperCamelCase    :		float ,  __UpperCamelCase    :		int = 4   )						->							float:
    assert callable(
        __UpperCamelCase   ), f'the function(object) passed should be callable your input : {function}'
    assert isinstance(__UpperCamelCase ,  (float, int)   ), f'a should be float or integer your input : {a}'
    assert isinstance(function(__UpperCamelCase   ) ,  (float, int)   ), (
        "the function should return integer or float return type of your function, "
        f'{type(__UpperCamelCase   )}'
    )
    assert isinstance(__UpperCamelCase ,  (float, int)   ), f'b should be float or integer your input : {b}'
    assert (
        isinstance(__UpperCamelCase ,  __UpperCamelCase   ) and precision > 0
    ), f'precision should be positive integer your input : {precision}'

    # just applying the formula of simpson for approximate integration written in
    # mentioned article in first comment of this file and above this function

    UpperCAmelCase_											=  (b - a) / N_STEPS
    UpperCAmelCase_											=  function(__UpperCamelCase   ) + function(__UpperCamelCase   )

    for i in range(1 ,  __UpperCamelCase   ):
        UpperCAmelCase_											=  a + h * i
        result += function(__UpperCamelCase   ) * (4 if i % 2 else 2)

    result *= h / 3
    return round(__UpperCamelCase ,  __UpperCamelCase   )


if __name__ == "__main__":
 import doctest

 doctest.testmod()





