


from __future__ import annotations







def 	SCREAMING_SNAKE_CASE_						(      __A			:      Union[str, Any]  ,   __A			:      int    )     ->		Union[str, Any]:

   """simple docstring"""

   if len(__A    ) <= 1 or n <= 1:
      return

   insert_next(__A  ,   n - 1    )
   rec_insertion_sort(__A  ,   n - 1    )







def 	SCREAMING_SNAKE_CASE_						(      __A			:      Any  ,   __A			:      str    )     ->		Tuple:

   """simple docstring"""

   if index >= len(__A    ) or collection[index - 1] <= collection[index]:
      return

   # Swaps adjacent elements since they are not in ascending order
   a_							,		a_ :		Any							=  (
       collection[index],
       collection[index - 1],
   )

   insert_next(__A  ,   index + 1    )


if __name__ == "__main__":
   UpperCAmelCase_				:			Any   =	input('Enter integers separated by spaces: ')
   UpperCAmelCase_				:			Optional[int]   =	[int(num) for num in numbers.split()]
   rec_insertion_sort(number_list, len(number_list))
   print(number_list)






import json
import sys







def 	SCREAMING_SNAKE_CASE_						(      __A			:      Optional[Any]  ,   __A			:      List[str]    )     ->		Tuple:

       """simple docstring"""

       with open(__A  ,   encoding='utf-8'    ) as f:
              a_ :		Union[str, Any]							=  json.load(__A    )

       a_ :		Any							=  ['<details>', '<summary>Show updated benchmarks!</summary>', ' ']

       for benchmark_name in sorted(__A    ):
              a_ :		List[str]							=  results[benchmark_name]

              a_ :		int							=  benchmark_name.split('/'    )[-1]
              output_md.append(F"""### Benchmark: {benchmark_file_name}"""    )

              a_ :		Any							=  '| metric |'
              a_ :		Optional[Any]							=  '|--------|'
              a_ :		int							=  '| new / old (diff) |'
              for metric_name in sorted(__A    ):
                     a_ :		List[Any]							=  benchmark_res[metric_name]
                     a_ :		int							=  metric_vals['new']
                     a_ :		Union[str, Any]							=  metric_vals.get('old'  ,   __A    )
                     a_ :		Optional[int]							=  metric_vals.get('diff'  ,   __A    )

                     a_ :		str							=  F""" {new_val:f}""" if isinstance(__A  ,   (int, float)    ) else 'None'

                     if old_val is not None:
                            val_str += F""" / {old_val:f}""" if isinstance(__A  ,   (int, float)    ) else "None"
                     if dif_val is not None:
                            val_str += F""" ({dif_val:f})""" if isinstance(__A  ,   (int, float)    ) else "None"

                     title += " " + metric_name + " |"
                     lines += "---|"
                     value += val_str + " |"

              output_md += [title, lines, value, " "]

       output_md.append('</details>'    )

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


if __name__ == "__main__":
   UpperCAmelCase_				:			int   =	sys.argv[1]
   UpperCAmelCase_				:			Any   =	sys.argv[2]

   format_json_to_md(input_json_file, output_md_file)


