




import argparse


_UpperCAmelCase	:						Dict			=     "docs/source/_static/js/custom.js"



def       UpperCAmelCase__  (     lowerCamelCase   ):
  with open(lowerCamelCase,			encoding="utf-8",			newline="\n"   ) as f:
    lowercase    :List[Any]      	=						f.readlines()
  lowercase    :str      	=						0

  # First let's put the right version
  while not lines[index].startswith("const stableVersion ="   ):
    index += 1
  lowercase    :Any      	=						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(lowerCamelCase,			"w",			encoding="utf-8",			newline="\n"   ) as f:
    f.writelines(lowerCamelCase   )


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









import string



def       UpperCAmelCase__  (     lowerCamelCase   ):
  lowercase    :Optional[int]      	=						""
  for i in sequence:
    lowercase    :Optional[Any]      	=						ord(lowerCamelCase   )
    if 65 <= extract <= 90:
      output += chr(155 - extract   )
    elif 97 <= extract <= 122:
      output += chr(219 - extract   )
    else:
      output += i
  return output



def       UpperCAmelCase__  (     lowerCamelCase   ):
  lowercase    :Union[str, Any]      	=						string.ascii_letters
  lowercase    :Dict      	=						string.ascii_lowercase[::-1] + string.ascii_uppercase[::-1]
  return "".join(
      letters_reversed[letters.index(lowerCamelCase   )] if c in letters else c for c in sequence   )



def       UpperCAmelCase__  (     ):
  from timeit import timeit

  print("Running performance benchmarks..."   )
  lowercase    :Dict      	=						"from string import printable ; from __main__ import atbash, atbash_slow"
  print(F"> atbash_slow(): {timeit('atbash_slow(printable)',			setup=lowerCamelCase   )} seconds"   )
  print(F">      atbash(): {timeit('atbash(printable)',			setup=lowerCamelCase   )} seconds"   )


if __name__ == "__main__":
     for example in ("ABCDEFGH", "123GGjj", "testStringtest", "with space"):
          print(f'''{example} encrypted in atbash: {atbash(example)}''')
     benchmark()



