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


UpperCamelCase__    							= logging.get_logger(__name__)

UpperCamelCase__    							= {
    'studio-ousia/luke-base': 'https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json',
    'studio-ousia/luke-large': 'https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json',
}





class 					A							(    UpperCAmelCase_					):
   __UpperCAmelCase			:			Any              =      'luke'


   def __init__(self					:						int	,  __UpperCAmelCase					:						str=5_0_2_6_7	,  __UpperCAmelCase					:						List[Any]=5_0_0_0_0_0	,  __UpperCAmelCase					:						Union[str, Any]=7_6_8	,  __UpperCAmelCase					:						Union[str, Any]=2_5_6	,  __UpperCAmelCase					:						Optional[Any]=1_2	,  __UpperCAmelCase					:						Any=1_2	,  __UpperCAmelCase					:						Union[str, Any]=3_0_7_2	,  __UpperCAmelCase					:						Any="gelu"	,  __UpperCAmelCase					:						Tuple=0.1	,  __UpperCAmelCase					:						Union[str, Any]=0.1	,  __UpperCAmelCase					:						Any=5_1_2	,  __UpperCAmelCase					:						Union[str, Any]=2	,  __UpperCAmelCase					:						Optional[int]=0.02	,  __UpperCAmelCase					:						Union[str, Any]=1E-12	,  __UpperCAmelCase					:						List[str]=True	,  __UpperCAmelCase					:						List[Any]=None	,  __UpperCAmelCase					:						Optional[int]=1	,  __UpperCAmelCase					:						Union[str, Any]=0	,  __UpperCAmelCase					:						List[str]=2	,  **__UpperCAmelCase					:						List[Any]	,  )						->    Optional[int]:
         """simple docstring"""



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

         UpperCAmelCase__								=  vocab_size
         UpperCAmelCase__								=  entity_vocab_size
         UpperCAmelCase__								=  hidden_size
         UpperCAmelCase__								=  entity_emb_size
         UpperCAmelCase__								=  num_hidden_layers
         UpperCAmelCase__								=  num_attention_heads
         UpperCAmelCase__								=  hidden_act
         UpperCAmelCase__								=  intermediate_size
         UpperCAmelCase__								=  hidden_dropout_prob
         UpperCAmelCase__								=  attention_probs_dropout_prob
         UpperCAmelCase__								=  max_position_embeddings
         UpperCAmelCase__								=  type_vocab_size
         UpperCAmelCase__								=  initializer_range
         UpperCAmelCase__								=  layer_norm_eps
         UpperCAmelCase__								=  use_entity_aware_attention
         UpperCAmelCase__								=  classifier_dropout




from __future__ import annotations




def        lowerCAmelCase_			(					__A,  __A,  __A,  )					->    tuple:







      '''simple docstring'''


      if (electron_conc, hole_conc, intrinsic_conc).count(0							) != 1:
            raise ValueError("You cannot supply more or less than 2 values"							)
      elif electron_conc < 0:
            raise ValueError("Electron concentration cannot be negative in a semiconductor"							)
      elif hole_conc < 0:
            raise ValueError("Hole concentration cannot be negative in a semiconductor"							)
      elif intrinsic_conc < 0:
            raise ValueError(
                "Intrinsic concentration cannot be negative in a semiconductor"							)
      elif electron_conc == 0:
            return (
                "electron_conc",
                intrinsic_conc**2 / hole_conc,
            )
      elif hole_conc == 0:
            return (
                "hole_conc",
                intrinsic_conc**2 / electron_conc,
            )
      elif intrinsic_conc == 0:
            return (
                "intrinsic_conc",
                (electron_conc * hole_conc) ** 0.5,
            )
      else:
            return (-1, -1)


if __name__ == "__main__":
      import doctest

      doctest.testmod()



