code: 
  
  
  
  
  
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
  
  
  _lowercase		:     Optional[Any] 					=logging.get_logger(__name__)
  
  _lowercase		:     int 					={
      """tau/splinter-base""": """https://huggingface.co/tau/splinter-base/resolve/main/config.json""",
      """tau/splinter-base-qass""": """https://huggingface.co/tau/splinter-base-qass/resolve/main/config.json""",
      """tau/splinter-large""": """https://huggingface.co/tau/splinter-large/resolve/main/config.json""",
      """tau/splinter-large-qass""": """https://huggingface.co/tau/splinter-large-qass/resolve/main/config.json""",
      # See all Splinter models at https://huggingface.co/models?filter=splinter
  }
  
  
  
  
  
  
  class 	UpperCamelCase_     (     snake_case__       ):
  					_a			:	int							=				'splinter'
  
  
  
  					def __init__(		self    :    str					,			lowerCamelCase    :    Union[str, Any]=3_05_22					,			lowerCamelCase    :    List[Any]=7_68					,			lowerCamelCase    :    Tuple=12					,			lowerCamelCase    :    List[Any]=12					,			lowerCamelCase    :    Optional[Any]=30_72					,			lowerCamelCase    :    Dict="gelu"					,			lowerCamelCase    :    Optional[Any]=0.1					,			lowerCamelCase    :    str=0.1					,			lowerCamelCase    :    int=5_12					,			lowerCamelCase    :    Dict=2					,			lowerCamelCase    :    List[Any]=0.02					,			lowerCamelCase    :    List[str]=1E-12					,			lowerCamelCase    :    List[str]=True					,			lowerCamelCase    :    str=0					,			lowerCamelCase    :    Any=1_04					,			**lowerCamelCase    :    Tuple					,			):
  							super().__init__(pad_token_id=lowerCamelCase					,			**lowerCamelCase	)
  
  							lowerCamelCase_  :    List[str]   	=			vocab_size
  							lowerCamelCase_  :    Dict   	=			max_position_embeddings
  							lowerCamelCase_  :    List[Any]   	=			hidden_size
  							lowerCamelCase_  :    int   	=			num_hidden_layers
  							lowerCamelCase_  :    List[Any]   	=			num_attention_heads
  							lowerCamelCase_  :    str   	=			intermediate_size
  							lowerCamelCase_  :    str   	=			hidden_act
  							lowerCamelCase_  :    Union[str, Any]   	=			hidden_dropout_prob
  							lowerCamelCase_  :    Optional[Any]   	=			attention_probs_dropout_prob
  							lowerCamelCase_  :    List[str]   	=			initializer_range
  							lowerCamelCase_  :    Tuple   	=			type_vocab_size
  							lowerCamelCase_  :    Union[str, Any]   	=			layer_norm_eps
  							lowerCamelCase_  :    str   	=			use_cache
  							lowerCamelCase_  :    Tuple   	=			question_token_id
  
style_context: 
  
  
  
  
  
  def 		_SCREAMING_SNAKE_CASE    (   lowerCAmelCase__       ,lowerCAmelCase__	):
  		return (input_a, input_a).count(0	) % 2
  
  
  def 		_SCREAMING_SNAKE_CASE    (   ):
  		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))
  