


def 		lowercase_(  SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

  if not all(char in "01" for char in bin_string	):
    raise ValueError("Non-binary value was passed to the function"	)
  if not bin_string:
    raise ValueError("Empty string was passed to the function"	)
  lowerCamelCase :					str    =				""
  while len(SCREAMING_SNAKE_CASE_	) % 3 != 0:
    lowerCamelCase :					Optional[int]    =				"0" + bin_string
  lowerCamelCase :					List[str]    =				[
      bin_string[index : index + 3]
      for index in range(len(SCREAMING_SNAKE_CASE_	)	)
      if index % 3 == 0
  ]
  for bin_group in bin_string_in_3_list:
    lowerCamelCase :					int    =				0
    for index, val in enumerate(SCREAMING_SNAKE_CASE_	):
      oct_val += int(2 ** (2 - index) * int(SCREAMING_SNAKE_CASE_	)	)
    oct_string += str(SCREAMING_SNAKE_CASE_	)
  return oct_string


if __name__ == "__main__":
   from doctest import testmod

   testmod()







import argparse


_snake_case             =     '''docs/source/_static/js/custom.js'''






def 		lowercase_(  SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

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

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


if __name__ == "__main__":
   _snake_case             =     argparse.ArgumentParser()
   parser.add_argument('''--version''', help='''Release version.''')
   _snake_case             =     parser.parse_args()
   update_custom_js(args.version)



