



"""simple docstring"""






from __future__ import annotations






def 	snake_case_  (				A_ :		list						):


       '''simple docstring'''





       if len(A_						) == 0:
              return []
       _lowerCamelCase      ,   _lowerCamelCase						:    List[str]         =			min(A_						), max(A_						)
       _lowerCamelCase						:    str         =			int(max_value - min_value						) + 1
       _lowerCamelCase						:    list[list]         =			[[] for _ in range(A_						)]

       for i in my_list:
              buckets[int(i - min_value						)].append(A_						)

       return [v for bucket in buckets for v in sorted(A_						)]


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

   testmod()
   assert bucket_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
   assert bucket_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]







"""simple docstring"""






import argparse


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






def 	snake_case_  (				A_ :		List[str]						):


       '''simple docstring'''





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

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


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


