



'''simple docstring'''

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 __snake_case(				_lowerCAmelCase ):


						'''simple docstring'''



						UpperCAmelCase							:   List[Any]									=		"luke"


						def __init__( self     ,	A_=5_0267     ,	A_=50_0000     ,	A_=768     ,	A_=256     ,	A_=12     ,	A_=12     ,	A_=3072     ,	A_="gelu"     ,	A_=0.1     ,	A_=0.1     ,	A_=512     ,	A_=2     ,	A_=0.0_2     ,	A_=1e-12     ,	A_=True     ,	A_=None     ,	A_=1     ,	A_=0     ,	A_=2     ,	**A_     ,	)     ->     Optional[Any]:
							super().__init__(pad_token_id=A_     ,	bos_token_id=A_     ,	eos_token_id=A_     ,	**A_				)

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




'''simple docstring'''

import cmath
import math






def 		_snake_case		( _SCREAMING_SNAKE_CASE					:						float							,		_SCREAMING_SNAKE_CASE					:						float							,		_SCREAMING_SNAKE_CASE					:						float							,		_SCREAMING_SNAKE_CASE					:						float							)      ->						complex:







	"""simple docstring"""
	lowerCAmelCase   =     math.radians(_SCREAMING_SNAKE_CASE							)
	lowerCAmelCase   =     math.radians(_SCREAMING_SNAKE_CASE							)

	# Convert voltage and current to rectangular form
	lowerCAmelCase   =     cmath.rect(_SCREAMING_SNAKE_CASE							,		_SCREAMING_SNAKE_CASE							)
	lowerCAmelCase   =     cmath.rect(_SCREAMING_SNAKE_CASE							,		_SCREAMING_SNAKE_CASE							)

	# Calculate apparent power
	return voltage_rect * current_rect


if __name__ == "__main__":
				import doctest

				doctest.testmod()