



"""simple docstring"""






def 	snake_case_  (				A_ :		int						):


       '''simple docstring'''





       _lowerCamelCase						:    int         =			min(SCREAMING_SNAKE_CASE__						)  # min() finds the minimum value
       _lowerCamelCase						:    int         =			max(SCREAMING_SNAKE_CASE__						)  # max() finds the maximum value

       _lowerCamelCase						:    List[Any]         =			max_val - min_val + 1  # size is difference of max and min values plus one

       # list of pigeonholes of size equal to the variable size
       _lowerCamelCase						:    List[str]         =			[0] * size

       # Populate the pigeonholes.
       for x in a:
              assert isinstance(SCREAMING_SNAKE_CASE__,    SCREAMING_SNAKE_CASE__						), "integers only please"
              holes[x - min_val] += 1

       # Putting the elements back into the array in an order.
       _lowerCamelCase						:    Dict         =			0
       for count in range(SCREAMING_SNAKE_CASE__						):
              while holes[count] > 0:
                     holes[count] -= 1
                     _lowerCamelCase						:    int         =			count + min_val
                     i += 1






def 	snake_case_  (				):


       '''simple docstring'''





       _lowerCamelCase						:    Tuple         =			[8, 3, 2, 7, 4, 6, 8]
       pigeonhole_sort(SCREAMING_SNAKE_CASE__						)
       print('''Sorted order is:''',    ''' '''.join(SCREAMING_SNAKE_CASE__						)						)


if __name__ == "__main__":
   main()







"""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)


