from __future__ import annotations





def 		__lowerCamelCase							(UpperCAmelCase__       :							int ,	UpperCAmelCase__       :							int					):
					SCREAMING_SNAKE_CASE           =    []
					create_all_state(1 ,	UpperCAmelCase__ ,	UpperCAmelCase__ ,	[] ,	UpperCAmelCase__					)
					return result





def 		__lowerCamelCase							(UpperCAmelCase__       :							int ,	UpperCAmelCase__       :							int ,	UpperCAmelCase__       :							int ,	UpperCAmelCase__       :							list[int] ,	UpperCAmelCase__       :							list[list[int]] ,	):
					if level == 0:
										total_list.append(current_list[:]					)
										return

					for i in range(UpperCAmelCase__ ,	total_number - level + 2					):
										current_list.append(UpperCAmelCase__					)
										create_all_state(i + 1 ,	UpperCAmelCase__ ,	level - 1 ,	UpperCAmelCase__ ,	UpperCAmelCase__					)
										current_list.pop()





def 		__lowerCamelCase							(UpperCAmelCase__       :							list[list[int]]					):
					for i in total_list:
										print(*UpperCAmelCase__					)


if __name__ == "__main__":
							_lowerCamelCase   :				Tuple     			=						4
							_lowerCamelCase   :				Dict     			=						2
							_lowerCamelCase   :				Optional[Any]     			=						generate_all_combinations(n, k)
							print_all_state(total_list)





from typing import List, Optional, Tuple

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


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

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

_lowerCamelCase   :				int     			=						{
    '''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'''
    },
}

_lowerCamelCase   :				Tuple     			=						{'''allegro/herbert-base-cased''': 5_14}
_lowerCamelCase   :				Optional[int]     			=						{}


class   lowercase      (       a       ):
							lowercase__  :    List[str]									=							VOCAB_FILES_NAMES
							lowercase__  :    str									=							PRETRAINED_VOCAB_FILES_MAP
							lowercase__  :    Tuple									=							PRETRAINED_INIT_CONFIGURATION
							lowercase__  :    Optional[int]									=							PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
							lowercase__  :    str									=							HerbertTokenizer




							def __init__(  self				:   Dict		,							_UpperCamelCase				:   Any=None		,							_UpperCamelCase				:   Any=None		,							_UpperCamelCase				:   Optional[int]=None		,							_UpperCamelCase				:   Optional[int]="<s>"		,							_UpperCamelCase				:   Union[str, Any]="<unk>"		,							_UpperCamelCase				:   List[str]="<pad>"		,							_UpperCamelCase				:   List[str]="<mask>"		,							_UpperCamelCase				:   Tuple="</s>"		,							**_UpperCamelCase				:   Any		,							)   ->			str:



												'''simple docstring'''

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




							def 		__snake_case(  self				:   Optional[Any]		,							_UpperCamelCase				:   List[int]		,							_UpperCamelCase				:   Optional[List[int]] = None )   ->			List[int]:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE           =    [self.cls_token_id]
												SCREAMING_SNAKE_CASE           =    [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 		__snake_case(  self				:   Any		,							_UpperCamelCase				:   List[int]		,							_UpperCamelCase				:   Optional[List[int]] = None		,							_UpperCamelCase				:   bool = False )   ->			List[int]:



												'''simple docstring'''

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

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




							def 		__snake_case(  self				:   Union[str, Any]		,							_UpperCamelCase				:   List[int]		,							_UpperCamelCase				:   Optional[List[int]] = None )   ->			List[int]:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE           =    [self.sep_token_id]
												SCREAMING_SNAKE_CASE           =    [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 		__snake_case(  self				:   str		,							_UpperCamelCase				:   str		,							_UpperCamelCase				:   Optional[str] = None )   ->			Tuple[str]:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE           =    self._tokenizer.model.save(_UpperCamelCase		,							name=_UpperCamelCase )
												return tuple(_UpperCamelCase )




