'''simple docstring'''


from typing import List, Optional, Tuple

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_herbert import HerbertTokenizer


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

snake_case__					:      Dict					      =  {'vocab_file': 'vocab.json', 'merges_file': 'merges.txt', 'tokenizer_file': 'tokenizer.json'}

snake_case__					:      List[str]					      =  {
    'vocab_file': {
        'allegro/herbert-base-cased': 'https://huggingface.co/allegro/herbert-base-cased/resolve/main/vocab.json'
    },
    'merges_file': {
        'allegro/herbert-base-cased': 'https://huggingface.co/allegro/herbert-base-cased/resolve/main/merges.txt'
    },
}

snake_case__					:      List[str]					      =  {'allegro/herbert-base-cased': 514}
snake_case__					:      List[Any]					      =  {}






class 					__SCREAMING_SNAKE_CASE						(	_lowerCamelCase	):







  '''simple docstring'''






  lowerCamelCase_		:Union[str, Any]						   =		VOCAB_FILES_NAMES
  lowerCamelCase_		:Any						   =		PRETRAINED_VOCAB_FILES_MAP
  lowerCamelCase_		:List[Any]						   =		PRETRAINED_INIT_CONFIGURATION
  lowerCamelCase_		:List[str]						   =		PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
  lowerCamelCase_		:List[str]						   =		HerbertTokenizer


  def __init__(			self				,		snake_case_=None				,		snake_case_=None				,		snake_case_=None				,		snake_case_="<s>"				,		snake_case_="<unk>"				,		snake_case_="<pad>"				,		snake_case_="<mask>"				,		snake_case_="</s>"				,		**snake_case_				,		):




       '''simple docstring'''

       super().__init__(
           snake_case_				,		snake_case_				,		tokenizer_file=snake_case_				,		cls_token=snake_case_				,		unk_token=snake_case_				,		pad_token=snake_case_				,		mask_token=snake_case_				,		sep_token=snake_case_				,		**snake_case_				,		)


  def _UpperCamelCase					(			self				,		snake_case_				,		snake_case_ = None						):




       '''simple docstring'''

       UpperCAmelCase_							:       Any       =				[self.cls_token_id]
       UpperCAmelCase_							:       Union[str, Any]       =				[self.sep_token_id]
       if token_ids_a is None:
            return cls + token_ids_a + sep

       return cls + token_ids_a + sep + token_ids_a + sep


  def _UpperCamelCase					(			self				,		snake_case_				,		snake_case_ = None				,		snake_case_ = False						):




       '''simple docstring'''

       if already_has_special_tokens:
            return super().get_special_tokens_mask(
                token_ids_a=snake_case_				,		token_ids_a=snake_case_				,		already_has_special_tokens=snake_case_						)

       if token_ids_a is None:
            return [1] + ([0] * len(snake_case_						)) + [1]
       return [1] + ([0] * len(snake_case_						)) + [1] + ([0] * len(snake_case_						)) + [1]


  def _UpperCamelCase					(			self				,		snake_case_				,		snake_case_ = None						):




       '''simple docstring'''

       UpperCAmelCase_							:       Optional[Any]       =				[self.sep_token_id]
       UpperCAmelCase_							:       Tuple       =				[self.cls_token_id]

       if token_ids_a is None:
            return len(cls + token_ids_a + sep						) * [0]
       return len(cls + token_ids_a + sep						) * [0] + len(token_ids_a + sep						) * [1]






  def _UpperCamelCase					(			self				,		snake_case_				,		snake_case_ = None						):




       '''simple docstring'''

       UpperCAmelCase_							:       Optional[Any]       =				self._tokenizer.model.save(snake_case_				,		name=snake_case_						)
       return tuple(snake_case_						)







'''simple docstring'''


def  _lowerCamelCase   (				lowerCamelCase_ :							int     ,					lowerCamelCase_ :							int       ):



     """simple docstring"""





     return int(input_a == input_a == 0       )


def  _lowerCamelCase   (				):



     """simple docstring"""





     print('Truth Table of NOR Gate:'       )
     print('|   Input 1   |  Input 2  | Output |'       )
     print(F'''|      0      |    0      |  {nor_gate(0     ,					0       )}     |'''       )
     print(F'''|      0      |    1      |  {nor_gate(0     ,					1       )}     |'''       )
     print(F'''|      1      |    0      |  {nor_gate(1     ,					0       )}     |'''       )
     print(F'''|      1      |    1      |  {nor_gate(1     ,					1       )}     |'''       )


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 main()






