

'''simple docstring'''





import dataclasses
import json
import sys
import types
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeError
from copy import copy
from enum import Enum
from inspect import isclass
from pathlib import Path
from typing import Any, Callable, Dict, Iterable, List, Literal, NewType, Optional, Tuple, Union, get_type_hints

import yaml


UpperCamelCase_							=					NewType("""DataClass""", Any)
UpperCamelCase_							=					NewType("""DataClassType""", Any)






def 							_lowerCAmelCase (      __magic_name__	:    Dict	):
						if isinstance(__magic_name__      ,   __magic_name__	):
												return v
						if v.lower() in ("yes", "true", "t", "y", "1"):
												return True
						elif v.lower() in ("no", "false", "f", "n", "0"):
												return False
						else:
												raise ArgumentTypeError(
												    f'''Truthy value expected: got {v} but expected one of yes/no, true/false, t/f, y/n, 1/0 (case insensitive).'''	)






def 							_lowerCAmelCase (      __magic_name__	:    list	):
						lowercase   :       Optional[Any]								={str(__magic_name__	): choice for choice in choices}
						return lambda __magic_name__	: str_to_choice.get(__magic_name__      ,   __magic_name__	)






def 							_lowerCAmelCase (      *,
    __magic_name__	:    Union[str, List[str]] = None      ,   __magic_name__	:    str = None      ,   __magic_name__	:    Any = dataclasses.MISSING      ,   __magic_name__	:    Callable[[], Any] = dataclasses.MISSING      ,   __magic_name__	:    dict = None      ,   **__magic_name__	:    Optional[Any]      ,   ):
						if metadata is None:
												# Important, don't use as default param in function signature because dict is mutable and shared across function calls
												lowercase   :       Tuple								={}
						if aliases is not None:
												lowercase   :       Dict								=aliases
						if help is not None:
												lowercase   :       Optional[Any]								=help

						return dataclasses.field(metadata=__magic_name__      ,   default=__magic_name__      ,   default_factory=__magic_name__      ,   **__magic_name__	)







class 		__SCREAMING_SNAKE_CASE       ( lowercase__			):
				lowerCamelCase_							=						42







				def __init__(					self    :		Tuple		,				UpperCAmelCase__    :		Union[DataClassType, Iterable[DataClassType]]		,				**UpperCAmelCase__    :		Optional[int]      ):
										'''simple docstring'''
										# To make the default appear when using --help
										if "formatter_class" not in kwargs:
																lowercase   :       Dict								=ArgumentDefaultsHelpFormatter
										super().__init__(**UpperCAmelCase__      )
										if dataclasses.is_dataclass(UpperCAmelCase__      ):
																lowercase   :       List[str]								=[dataclass_types]
										lowercase   :       Any								=list(UpperCAmelCase__      )
										for dtype in self.dataclass_types:
																self._add_dataclass_arguments(UpperCAmelCase__      )







				@staticmethod
				def    lowerCamelCase_  (					UpperCAmelCase__    :		ArgumentParser		,				UpperCAmelCase__    :		dataclasses.Field      ):
										'''simple docstring'''
										lowercase   :       Optional[int]								=F'''--{field.name}'''
										lowercase   :       Optional[int]								=field.metadata.copy()
										# field.metadata is not used at all by Data Classes,
										# it is provided as a third-party extension mechanism.
										if isinstance(field.type		,				UpperCAmelCase__      ):
																raise RuntimeError(
																    '''Unresolved type detected, which should have been done with the help of '''
																    '''`typing.get_type_hints` method by default'''      )

										lowercase   :       Dict								=kwargs.pop('''aliases'''		,				[]      )
										if isinstance(UpperCAmelCase__		,				UpperCAmelCase__      ):
																lowercase   :       Dict								=[aliases]

										lowercase   :       Union[str, Any]								=getattr(field.type		,				'''__origin__'''		,				field.type      )
										if origin_type is Union or (hasattr(UpperCAmelCase__		,				'''UnionType'''      ) and isinstance(UpperCAmelCase__		,				types.UnionType      )):
																if str not in field.type.__args__ and (
																    len(field.type.__args__      ) != 2 or type(UpperCAmelCase__      ) not in field.type.__args__
																):
																						raise ValueError(
																						    '''Only `Union[X, NoneType]` (i.e., `Optional[X]`) is allowed for `Union` because'''
																						    ''' the argument parser only supports one type per argument.'''
																						    F''' Problem encountered in field \'{field.name}\'.'''      )
																if type(UpperCAmelCase__      ) not in field.type.__args__:
																						# filter `str` in Union
																						lowercase   :       Optional[int]								=field.type.__args__[0] if field.type.__args__[1] == str else field.type.__args__[1]
																						lowercase   :       Union[str, Any]								=getattr(field.type		,				'''__origin__'''		,				field.type      )
																elif bool not in field.type.__args__:
																						# filter `NoneType` in Union (except for `Union[bool, NoneType]`)
																						lowercase   :       Dict								=(
																						    field.type.__args__[0] if isinstance(UpperCAmelCase__		,				field.type.__args__[1]      ) else field.type.__args__[1]
																						)
																						lowercase   :       Optional[int]								=getattr(field.type		,				'''__origin__'''		,				field.type      )

        # A variable to store kwargs for a boolean field, if needed
        # so that we can init a `no_*` complement argument (see below)
										lowercase   :       Union[str, Any]								={}
										if origin_type is Literal or (isinstance(field.type		,				UpperCAmelCase__      ) and issubclass(field.type		,				UpperCAmelCase__      )):
																if origin_type is Literal:
																						lowercase   :       Tuple								=field.type.__args__
																else:
																						lowercase   :       Optional[Any]								=[x.value for x in field.type]

																lowercase   :       str								=make_choice_type_function(kwargs['''choices''']      )

																if field.default is not dataclasses.MISSING:
																						lowercase   :       List[Any]								=field.default
																else:
																						lowercase   :       List[str]								=True
										elif field.type is bool or field.type == Optional[bool]:
																# Copy the currect kwargs to use to instantiate a `no_*` complement argument below.
																# We do not initialize it here because the `no_*` alternative must be instantiated after the real argument
																lowercase   :       Optional[Any]								=copy(UpperCAmelCase__      )

																# Hack because type=bool in argparse does not behave as we want.
																lowercase   :       str								=string_to_bool
																if field.type is bool or (field.default is not None and field.default is not dataclasses.MISSING):
																						# Default value is False if we have no default when of type bool.
																						lowercase   :       List[str]								=False if field.default is dataclasses.MISSING else field.default
																						# This is the value that will get picked if we don't include --field_name in any way
																						lowercase   :       int								=default
																						# This tells argparse we accept 0 or 1 value after --field_name
																						lowercase   :       List[str]								='''?'''
																						# This is the value that will get picked if we do --field_name (without value)
																						lowercase   :       str								=True
										elif isclass(UpperCAmelCase__      ) and issubclass(UpperCAmelCase__		,				UpperCAmelCase__      ):
																lowercase   :       int								=field.type.__args__[0]
																lowercase   :       Optional[int]								='''+'''
																if field.default_factory is not dataclasses.MISSING:
																						lowercase   :       List[str]								=field.default_factory()
																elif field.default is dataclasses.MISSING:
																						lowercase   :       Union[str, Any]								=True
										else:
																lowercase   :       List[Any]								=field.type
																if field.default is not dataclasses.MISSING:
																						lowercase   :       Any								=field.default
																elif field.default_factory is not dataclasses.MISSING:
																						lowercase   :       Dict								=field.default_factory()
																else:
																						lowercase   :       List[str]								=True
										parser.add_argument(UpperCAmelCase__		,				*UpperCAmelCase__		,				**UpperCAmelCase__      )

										# Add a complement `no_*` argument for a boolean field AFTER the initial field has already been added.
										# Order is important for arguments with the same destination!
										# We use a copy of earlier kwargs because the original kwargs have changed a lot before reaching down
										# here and we do not need those changes/additional keys.
										if field.default is True and (field.type is bool or field.type == Optional[bool]):
																lowercase   :       List[Any]								=False
																parser.add_argument(F'''--no_{field.name}'''		,				action='''store_false'''		,				dest=field.name		,				**UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Optional[int]		,				UpperCAmelCase__    :		DataClassType      ):
										'''simple docstring'''
										if hasattr(UpperCAmelCase__		,				'''_argument_group_name'''      ):
																lowercase   :       List[Any]								=self.add_argument_group(dtype._argument_group_name      )
										else:
																lowercase   :       str								=self

										try:
																lowercase   :       Dict[str, type]								=get_type_hints(UpperCAmelCase__      )
										except NameError:
																raise RuntimeError(
																    F'''Type resolution failed for {dtype}. Try declaring the class in global scope or '''
																    '''removing line of `from __future__ import annotations` which opts in Postponed '''
																    '''Evaluation of Annotations (PEP 563)'''      )
										except TypeError as ex:
																# Remove this block when we drop Python 3.9 support
																if sys.version_info[:2] < (3, 10) and "unsupported operand type(s) for |" in str(UpperCAmelCase__      ):
																						lowercase   :       Dict								='''.'''.join(map(UpperCAmelCase__		,				sys.version_info[:3]      )      )
																						raise RuntimeError(
																						    F'''Type resolution failed for {dtype} on Python {python_version}. Try removing '''
																						    '''line of `from __future__ import annotations` which opts in union types as '''
																						    '''`X | Y` (PEP 604) via Postponed Evaluation of Annotations (PEP 563). To '''
																						    '''support Python versions that lower than 3.10, you need to use '''
																						    '''`typing.Union[X, Y]` instead of `X | Y` and `typing.Optional[X]` instead of '''
																						    '''`X | None`.'''      ) from ex
																raise

										for field in dataclasses.fields(UpperCAmelCase__      ):
																if not field.init:
																						continue
																lowercase   :       int								=type_hints[field.name]
																self._parse_dataclass_field(UpperCAmelCase__		,				UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Any		,				UpperCAmelCase__    :		Optional[int]=None		,				UpperCAmelCase__    :		str=False		,				UpperCAmelCase__    :		int=True		,				UpperCAmelCase__    :		Union[str, Any]=None		,				UpperCAmelCase__    :		Optional[Any]=None		,				):
										'''simple docstring'''

										if args_file_flag or args_filename or (look_for_args_file and len(sys.argv      )):
																lowercase   :       Optional[Any]								=[]

																if args_filename:
																						args_files.append(Path(UpperCAmelCase__      )      )
																elif look_for_args_file and len(sys.argv      ):
																						args_files.append(Path(sys.argv[0]      ).with_suffix('''.args'''      )      )

																# args files specified via command line flag should overwrite default args files so we add them last
																if args_file_flag:
																						# Create special parser just to extract the args_file_flag values
																						lowercase   :       int								=ArgumentParser()
																						args_file_parser.add_argument(UpperCAmelCase__		,				type=UpperCAmelCase__		,				action='''append'''      )

																						# Use only remaining args for further parsing (remove the args_file_flag)
																						lowercase   :       Any								=args_file_parser.parse_known_args(args=UpperCAmelCase__      )
																						lowercase   :       str								=vars(UpperCAmelCase__      ).get(args_file_flag.lstrip('''-'''      )		,				UpperCAmelCase__      )

																						if cmd_args_file_paths:
																												args_files.extend([Path(UpperCAmelCase__      ) for p in cmd_args_file_paths]      )

																lowercase   :       List[Any]								=[]
																for args_file in args_files:
																						if args_file.exists():
																												file_args += args_file.read_text().split()

            # in case of duplicate arguments the last one has precedence
            # args specified via the command line should overwrite args from files, so we add them last
																lowercase   :       Optional[Any]								=file_args + args if args is not None else file_args + sys.argv[1:]
										lowercase   :       Union[str, Any]								=self.parse_known_args(args=UpperCAmelCase__      )
										lowercase   :       Union[str, Any]								=[]
										for dtype in self.dataclass_types:
																lowercase   :       int								={f.name for f in dataclasses.fields(UpperCAmelCase__      ) if f.init}
																lowercase   :       int								={k: v for k, v in vars(UpperCAmelCase__      ).items() if k in keys}
																for k in keys:
																						delattr(UpperCAmelCase__		,				UpperCAmelCase__      )
																lowercase   :       Union[str, Any]								=dtype(**UpperCAmelCase__      )
																outputs.append(UpperCAmelCase__      )
										if len(namespace.__dict__      ) > 0:
																# additional namespace.
																outputs.append(UpperCAmelCase__      )
										if return_remaining_strings:
																return (*outputs, remaining_args)
										else:
																if remaining_args:
																						raise ValueError(F'''Some specified arguments are not used by the HfArgumentParser: {remaining_args}'''      )

																return (*outputs,)







				def    lowerCamelCase_  (					self    :		Optional[int]		,				UpperCAmelCase__    :		Dict[str, Any]		,				UpperCAmelCase__    :		bool = False      ):
										'''simple docstring'''
										lowercase   :       List[str]								=set(args.keys()      )
										lowercase   :       Dict								=[]
										for dtype in self.dataclass_types:
																lowercase   :       int								={f.name for f in dataclasses.fields(UpperCAmelCase__      ) if f.init}
																lowercase   :       Dict								={k: v for k, v in args.items() if k in keys}
																unused_keys.difference_update(inputs.keys()      )
																lowercase   :       str								=dtype(**UpperCAmelCase__      )
																outputs.append(UpperCAmelCase__      )
										if not allow_extra_keys and unused_keys:
																raise ValueError(F'''Some keys are not used by the HfArgumentParser: {sorted(UpperCAmelCase__      )}'''      )
										return tuple(UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Any		,				UpperCAmelCase__    :		str		,				UpperCAmelCase__    :		bool = False      ):
										'''simple docstring'''
										with open(Path(UpperCAmelCase__      )		,				encoding='''utf-8'''      ) as open_json_file:
																lowercase   :       str								=json.loads(open_json_file.read()      )
										lowercase   :       Tuple								=self.parse_dict(UpperCAmelCase__		,				allow_extra_keys=UpperCAmelCase__      )
										return tuple(UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Optional[int]		,				UpperCAmelCase__    :		str		,				UpperCAmelCase__    :		bool = False      ):
										'''simple docstring'''
										lowercase   :       Union[str, Any]								=self.parse_dict(yaml.safe_load(Path(UpperCAmelCase__      ).read_text()      )		,				allow_extra_keys=UpperCAmelCase__      )
										return tuple(UpperCAmelCase__      )








'''simple docstring'''





import unittest

from transformers import BigBirdTokenizer, BigBirdTokenizerFast
from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, require_torch, slow
from transformers.utils import cached_property

from ...test_tokenization_common import TokenizerTesterMixin


UpperCamelCase_							=					"""▁"""

UpperCamelCase_							=					get_tests_dir("""fixtures/test_sentencepiece.model""")





@require_sentencepiece
@require_tokenizers
class 		__SCREAMING_SNAKE_CASE       ( lowercase__	,       unittest.TestCase			):
				lowerCamelCase_							=						BigBirdTokenizer
				lowerCamelCase_							=						BigBirdTokenizerFast
				lowerCamelCase_							=						True
				lowerCamelCase_							=						True







				def    lowerCamelCase_  (					self    :		Any      ):
										'''simple docstring'''
										super().setUp()

										lowercase   :       Optional[int]								=self.tokenizer_class(UpperCAmelCase__		,				keep_accents=UpperCAmelCase__      )
										tokenizer.save_pretrained(self.tmpdirname      )







				def    lowerCamelCase_  (					self    :		int      ):
										'''simple docstring'''
										lowercase   :       Optional[int]								='''<s>'''
										lowercase   :       int								=1

										self.assertEqual(self.get_tokenizer()._convert_token_to_id(UpperCAmelCase__      )		,				UpperCAmelCase__      )
										self.assertEqual(self.get_tokenizer()._convert_id_to_token(UpperCAmelCase__      )		,				UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Optional[int]      ):
										'''simple docstring'''
										lowercase   :       Dict								=list(self.get_tokenizer().get_vocab().keys()      )

										self.assertEqual(vocab_keys[0]		,				'''<unk>'''      )
										self.assertEqual(vocab_keys[1]		,				'''<s>'''      )
										self.assertEqual(vocab_keys[-1]		,				'''[MASK]'''      )
										self.assertEqual(len(UpperCAmelCase__      )		,				1004      )







				def    lowerCamelCase_  (					self    :		Optional[int]      ):
										'''simple docstring'''
										self.assertEqual(self.get_tokenizer().vocab_size		,				1000      )







				def    lowerCamelCase_  (					self    :		Optional[Any]      ):
										'''simple docstring'''
										if not self.test_rust_tokenizer:
																return

										lowercase   :       Optional[int]								=self.get_tokenizer()
										lowercase   :       Any								=self.get_rust_tokenizer()

										lowercase   :       int								='''I was born in 92000, and this is falsé.'''

										lowercase   :       List[str]								=tokenizer.tokenize(UpperCAmelCase__      )
										lowercase   :       Dict								=rust_tokenizer.tokenize(UpperCAmelCase__      )
										self.assertListEqual(UpperCAmelCase__		,				UpperCAmelCase__      )

										lowercase   :       str								=tokenizer.encode(UpperCAmelCase__		,				add_special_tokens=UpperCAmelCase__      )
										lowercase   :       Union[str, Any]								=rust_tokenizer.encode(UpperCAmelCase__		,				add_special_tokens=UpperCAmelCase__      )
										self.assertListEqual(UpperCAmelCase__		,				UpperCAmelCase__      )

										lowercase   :       Optional[Any]								=self.get_rust_tokenizer()
										lowercase   :       Optional[Any]								=tokenizer.encode(UpperCAmelCase__      )
										lowercase   :       Union[str, Any]								=rust_tokenizer.encode(UpperCAmelCase__      )
										self.assertListEqual(UpperCAmelCase__		,				UpperCAmelCase__      )







				def    lowerCamelCase_  (					self    :		Any      ):
										'''simple docstring'''
										lowercase   :       Tuple								=BigBirdTokenizer(UpperCAmelCase__		,				keep_accents=UpperCAmelCase__      )

										lowercase   :       Tuple								=tokenizer.tokenize('''This is a test'''      )
										self.assertListEqual(UpperCAmelCase__		,				['''▁This''', '''▁is''', '''▁a''', '''▁t''', '''est''']      )

										self.assertListEqual(
										    tokenizer.convert_tokens_to_ids(UpperCAmelCase__      )		,				[285, 46, 10, 170, 382]		,				)

										lowercase   :       Tuple								=tokenizer.tokenize('''I was born in 92000, and this is falsé.'''      )
										self.assertListEqual(
										    UpperCAmelCase__		,				[
										        SPIECE_UNDERLINE + '''I''',
										        SPIECE_UNDERLINE + '''was''',
										        SPIECE_UNDERLINE + '''b''',
										        '''or''',
										        '''n''',
										        SPIECE_UNDERLINE + '''in''',
										        SPIECE_UNDERLINE + '''''',
										        '''9''',
										        '''2''',
										        '''0''',
										        '''0''',
										        '''0''',
										        ''',''',
										        SPIECE_UNDERLINE + '''and''',
										        SPIECE_UNDERLINE + '''this''',
										        SPIECE_UNDERLINE + '''is''',
										        SPIECE_UNDERLINE + '''f''',
										        '''al''',
										        '''s''',
										        '''é''',
										        '''.''',
										    ]		,				)
										lowercase   :       Any								=tokenizer.convert_tokens_to_ids(UpperCAmelCase__      )
										self.assertListEqual(
										    UpperCAmelCase__		,				[8, 21, 84, 55, 24, 19, 7, 0, 602, 347, 347, 347, 3, 12, 66, 46, 72, 80, 6, 0, 4]		,				)

										lowercase   :       List[Any]								=tokenizer.convert_ids_to_tokens(UpperCAmelCase__      )
										self.assertListEqual(
										    UpperCAmelCase__		,				[
										        SPIECE_UNDERLINE + '''I''',
										        SPIECE_UNDERLINE + '''was''',
										        SPIECE_UNDERLINE + '''b''',
										        '''or''',
										        '''n''',
										        SPIECE_UNDERLINE + '''in''',
										        SPIECE_UNDERLINE + '''''',
										        '''<unk>''',
										        '''2''',
										        '''0''',
										        '''0''',
										        '''0''',
										        ''',''',
										        SPIECE_UNDERLINE + '''and''',
										        SPIECE_UNDERLINE + '''this''',
										        SPIECE_UNDERLINE + '''is''',
										        SPIECE_UNDERLINE + '''f''',
										        '''al''',
										        '''s''',
										        '''<unk>''',
										        '''.''',
										    ]		,				)







				@cached_property
				def    lowerCamelCase_  (					self    :		str      ):
										'''simple docstring'''
										return BigBirdTokenizer.from_pretrained('''google/bigbird-roberta-base'''      )







				@slow
				def    lowerCamelCase_  (					self    :		Union[str, Any]      ):
										'''simple docstring'''
										lowercase   :       str								='''Hello World!'''
										lowercase   :       Union[str, Any]								=[65, 18536, 2260, 101, 66]

										self.assertListEqual(UpperCAmelCase__		,				self.big_tokenizer.encode(UpperCAmelCase__      )      )







				@slow
				def    lowerCamelCase_  (					self    :		List[str]      ):
										'''simple docstring'''
										lowercase   :       int								=(
										    '''This is a very long text with a lot of weird characters, such as: . , ~ ? ( ) " [ ] ! : - . Also we will'''
										    ''' add words that should not exsist and be tokenized to <unk>, such as saoneuhaoesuth'''
										)
										# fmt: off
										lowercase   :       Tuple								=[65, 871, 419, 358, 946, 991, 2521, 452, 358, 1357, 387, 7751, 3536, 112, 985, 456, 126, 865, 938, 5400, 5734, 458, 1368, 467, 786, 2462, 5246, 1159, 633, 865, 4519, 457, 582, 852, 2557, 427, 916, 508, 405, 34324, 497, 391, 408, 11342, 1244, 385, 100, 938, 985, 456, 574, 362, 12597, 3200, 3129, 1172, 66]  # noqa: E231
										# fmt: on
										self.assertListEqual(UpperCAmelCase__		,				self.big_tokenizer.encode(UpperCAmelCase__      )      )







				@require_torch
				@slow
				def    lowerCamelCase_  (					self    :		Optional[int]      ):
										'''simple docstring'''
										import torch

										from transformers import BigBirdConfig, BigBirdModel

										# Build sequence
										lowercase   :       List[str]								=list(self.big_tokenizer.get_vocab().keys()      )[:10]
										lowercase   :       Dict								=''' '''.join(UpperCAmelCase__      )
										lowercase   :       Union[str, Any]								=self.big_tokenizer.encode_plus(UpperCAmelCase__		,				return_tensors='''pt'''		,				return_token_type_ids=UpperCAmelCase__      )
										lowercase   :       Dict								=self.big_tokenizer.batch_encode_plus(
										    [sequence + ''' ''' + sequence]		,				return_tensors='''pt'''		,				return_token_type_ids=UpperCAmelCase__      )

										lowercase   :       Optional[int]								=BigBirdConfig(attention_type='''original_full'''      )
										lowercase   :       Dict								=BigBirdModel(UpperCAmelCase__      )

										assert model.get_input_embeddings().weight.shape[0] >= self.big_tokenizer.vocab_size

										with torch.no_grad():
																model(**UpperCAmelCase__      )
																model(**UpperCAmelCase__      )







				@slow
				def    lowerCamelCase_  (					self    :		Tuple      ):
										'''simple docstring'''
										lowercase   :       Union[str, Any]								=BigBirdTokenizer.from_pretrained('''google/bigbird-roberta-base'''      )
										lowercase   :       Dict								=tokenizer.decode(tokenizer('''Paris is the [MASK].'''      ).input_ids      )

										self.assertTrue(decoded_text == '''[CLS] Paris is the[MASK].[SEP]'''      )







				@slow
				def    lowerCamelCase_  (					self    :		int      ):
										'''simple docstring'''
										# fmt: off
										lowercase   :       str								={'''input_ids''': [[65, 39286, 458, 36335, 2001, 456, 13073, 13266, 455, 113, 7746, 1741, 11157, 391, 13073, 13266, 455, 113, 3967, 35412, 113, 4936, 109, 3870, 2377, 113, 30084, 45720, 458, 134, 17496, 112, 503, 11672, 113, 118, 112, 5665, 13347, 38687, 112, 1496, 31389, 112, 3268, 47264, 134, 962, 112, 16377, 8035, 23130, 430, 12169, 15518, 28592, 458, 146, 41697, 109, 391, 12169, 15518, 16689, 458, 146, 41358, 109, 452, 726, 4034, 111, 763, 35412, 5082, 388, 1903, 111, 9051, 391, 2870, 48918, 1900, 1123, 550, 998, 112, 9586, 15985, 455, 391, 410, 22955, 37636, 114, 66], [65, 448, 17496, 419, 3663, 385, 763, 113, 27533, 2870, 3283, 13043, 1639, 24713, 523, 656, 24013, 18550, 2521, 517, 27014, 21244, 420, 1212, 1465, 391, 927, 4833, 388, 578, 11786, 114, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [65, 484, 2169, 7687, 21932, 18146, 726, 363, 17032, 3391, 114, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], '''attention_mask''': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}  # noqa: E501
										# fmt: on

										self.tokenizer_integration_test_util(
										    expected_encoding=UpperCAmelCase__		,				model_name='''google/bigbird-roberta-base'''		,				revision='''215c99f1600e06f83acce68422f2035b2b5c3510'''		,				)





