





"""simple docstring"""


from typing import Optional, Tuple

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_openai import OpenAIGPTTokenizer


lowerCamelCase__      =      logging.get_logger(__name__)

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

lowerCamelCase__      =      {
    'vocab_file': {'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/vocab.json'},
    'merges_file': {'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/merges.txt'},
    'tokenizer_file': {'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/tokenizer.json'},
}

lowerCamelCase__      =      {
    'openai-gpt': 512,
}



class    __SCREAMING_SNAKE_CASE			(  _UpperCamelCase      ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:Optional[Any]		   =    VOCAB_FILES_NAMES
  SCREAMING_SNAKE_CASE__							:Optional[Any]		   =    PRETRAINED_VOCAB_FILES_MAP
  SCREAMING_SNAKE_CASE__							:Dict		   =    PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
  SCREAMING_SNAKE_CASE__							:Tuple		   =    ["input_ids", "attention_mask"]
  SCREAMING_SNAKE_CASE__							:Union[str, Any]		   =    OpenAIGPTTokenizer

  def __init__(						self      :				str    ,      __a      :				Optional[Any]=None    ,      __a      :				Dict=None    ,      __a      :				Dict=None    ,      __a      :				Union[str, Any]="<unk>"    ,      **__a      :				Dict		)						-> List[str]:
        super().__init__(__a    ,      __a    ,      tokenizer_file=__a    ,      unk_token=__a    ,      **__a		)

  @property
  def       __SCREAMING_SNAKE_CASE (						self      :				List[Any]		)						-> Optional[Any]:
        return True


  def       __SCREAMING_SNAKE_CASE (						self      :				Union[str, Any]    ,      __a      :				str    ,      __a      :				Optional[str] = None		)						-> List[Any]:
        _UpperCamelCase					:		Dict  =				self._tokenizer.model.save(__a    ,      name=__a		)
        return tuple(__a		)








"""simple docstring"""


def 			snake_case  (A_      :int = 1_0_0_0      ):







  '''simple docstring'''

  a     :			Union[str, Any]				=   0
  a     :			int				=   (n - 1) // 3
  total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
  a     :			Tuple				=   (n - 1) // 5
  total += ((terms) * (1_0 + (terms - 1) * 5)) // 2
  a     :			Dict				=   (n - 1) // 1_5
  total -= ((terms) * (3_0 + (terms - 1) * 1_5)) // 2
  return total


if __name__ == "__main__":
   print(f'''{solution() = }''')




