





import argparse


_a     :    Any         =						'docs/source/_static/js/custom.js'
def 							a_	(    __magic_name__   )				->			List[Any]:




				"""simple docstring"""






				with open(__magic_name__		,     encoding='''utf-8'''		,     newline='''\n'''   ) as f:
								snake_case   :					str    						=				f.readlines()
				snake_case   :					Optional[Any]    						=				0

				# First let's put the right version
				while not lines[index].startswith('''const stableVersion ='''   ):
								index += 1
				snake_case   :					str    						=				F"const stableVersion = \"v{version}\"\n"

				# Then update the dictionary
				while not lines[index].startswith('''const versionMapping = {'''   ):
								index += 1

				# We go until the end
				while not lines[index].startswith('''}'''   ):
								index += 1
				# We add the new version at the end
				lines[index - 1] += F"    \"v{version}\": \"v{version}\",\n"

				with open(__magic_name__		,     '''w'''		,     encoding='''utf-8'''		,     newline='''\n'''   ) as f:
								f.writelines(__magic_name__   )


if __name__ == "__main__":
			_a     :    List[Any]         =						argparse.ArgumentParser()
			parser.add_argument('--version', help='Release version.')
			_a     :    Tuple         =						parser.parse_args()
			update_custom_js(args.version)







"""simple docstring"""





from ...configuration_utils import PretrainedConfig
from ...utils import logging


SCREAMING_SNAKE_CASE__   =  logging.get_logger(__name__)

SCREAMING_SNAKE_CASE__   =  {
    "google/fnet-base": "https://huggingface.co/google/fnet-base/resolve/main/config.json",
    "google/fnet-large": "https://huggingface.co/google/fnet-large/resolve/main/config.json"
    # See all FNet models at https://huggingface.co/models?filter=fnet
}

class 						lowercase   (   _UpperCAmelCase   ):
      _SCREAMING_SNAKE_CASE							      = 'fnet'





      def __init__(			self ,		lowercase=32_000 ,		lowercase=768 ,		lowercase=12 ,		lowercase=3_072 ,		lowercase="gelu_new" ,		lowercase=0.1 ,		lowercase=512 ,		lowercase=4 ,		lowercase=0.02 ,		lowercase=1e-12 ,		lowercase=False ,		lowercase=512 ,		lowercase=3 ,		lowercase=1 ,		lowercase=2 ,		**lowercase ,		)						->	int:
            super().__init__(pad_token_id=lowercase ,		bos_token_id=lowercase ,		eos_token_id=lowercase ,		**lowercase					)

            lowerCAmelCase    		=			vocab_size
            lowerCAmelCase    		=			max_position_embeddings
            lowerCAmelCase    		=			hidden_size
            lowerCAmelCase    		=			num_hidden_layers
            lowerCAmelCase    		=			intermediate_size
            lowerCAmelCase    		=			hidden_act
            lowerCAmelCase    		=			hidden_dropout_prob
            lowerCAmelCase    		=			initializer_range
            lowerCAmelCase    		=			type_vocab_size
            lowerCAmelCase    		=			layer_norm_eps
            lowerCAmelCase    		=			use_tpu_fourier_optimizations
            lowerCAmelCase    		=			tpu_short_seq_length






