
'''simple docstring'''







from typing import List, Union

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


_snake_case					: Optional[Any]     			=					logging.get_logger(__name__)

_snake_case					: Any     			=					{
    """allenai/led-base-16384""": """https://huggingface.co/allenai/led-base-16384/resolve/main/config.json""",
    # See all LED models at https://huggingface.co/models?filter=led
}


class       lowerCAmelCase			(					__UpperCAmelCase      ):
		a				:       int							=       """led"""
		a				:       Optional[int]							=       {
		    """num_attention_heads""": """encoder_attention_heads""",
		    """hidden_size""": """d_model""",
		    """attention_probs_dropout_prob""": """attention_dropout""",
		    """initializer_range""": """init_std""",
		}




		def __init__(					self       ,    UpperCamelCase=50_265       ,    UpperCamelCase=16_384       ,    UpperCamelCase=1_024       ,    UpperCamelCase=12       ,    UpperCamelCase=4_096       ,    UpperCamelCase=16       ,    UpperCamelCase=12       ,    UpperCamelCase=4_096       ,    UpperCamelCase=16       ,    UpperCamelCase=0.0       ,    UpperCamelCase=0.0       ,    UpperCamelCase=True       ,    UpperCamelCase=True       ,    UpperCamelCase="gelu"       ,    UpperCamelCase=1_024       ,    UpperCamelCase=0.1       ,    UpperCamelCase=0.0       ,    UpperCamelCase=0.0       ,    UpperCamelCase=0.02       ,    UpperCamelCase=2       ,    UpperCamelCase=0.0       ,    UpperCamelCase=1       ,    UpperCamelCase=0       ,    UpperCamelCase=2       ,    UpperCamelCase = 512       ,    **UpperCamelCase       ,    ):
								_SCREAMING_SNAKE_CASE					=			vocab_size
								_SCREAMING_SNAKE_CASE					=			max_encoder_position_embeddings
								_SCREAMING_SNAKE_CASE					=			max_decoder_position_embeddings
								_SCREAMING_SNAKE_CASE					=			d_model
								_SCREAMING_SNAKE_CASE					=			encoder_ffn_dim
								_SCREAMING_SNAKE_CASE					=			encoder_layers
								_SCREAMING_SNAKE_CASE					=			encoder_attention_heads
								_SCREAMING_SNAKE_CASE					=			decoder_ffn_dim
								_SCREAMING_SNAKE_CASE					=			decoder_layers
								_SCREAMING_SNAKE_CASE					=			decoder_attention_heads
								_SCREAMING_SNAKE_CASE					=			dropout
								_SCREAMING_SNAKE_CASE					=			attention_dropout
								_SCREAMING_SNAKE_CASE					=			activation_dropout
								_SCREAMING_SNAKE_CASE					=			activation_function
								_SCREAMING_SNAKE_CASE					=			init_std
								_SCREAMING_SNAKE_CASE					=			encoder_layerdrop
								_SCREAMING_SNAKE_CASE					=			decoder_layerdrop
								_SCREAMING_SNAKE_CASE					=			classifier_dropout
								_SCREAMING_SNAKE_CASE					=			use_cache
								_SCREAMING_SNAKE_CASE					=			encoder_layers
								_SCREAMING_SNAKE_CASE					=			attention_window

								super().__init__(
								    pad_token_id=UpperCamelCase       ,    bos_token_id=UpperCamelCase       ,    eos_token_id=UpperCamelCase       ,    is_encoder_decoder=UpperCamelCase       ,    decoder_start_token_id=UpperCamelCase       ,    **UpperCamelCase       ,    )

'''simple docstring'''







def       _a		(						_SCREAMING_SNAKE_CASE		: int						,      _SCREAMING_SNAKE_CASE		: int	):
						return (input_a, input_a).count(0	) % 2



def       _a		(						):
						assert xor_gate(0						,      0	) == 0
						assert xor_gate(0						,      1	) == 1
						assert xor_gate(1						,      0	) == 1
						assert xor_gate(1						,      1	) == 0


if __name__ == "__main__":
						print(xor_gate(0, 0))
						print(xor_gate(0, 1))