





'''simple docstring'''






import argparse
import json

from tqdm import tqdm
def    UpperCamelCase__      (		):





      """simple docstring"""


      _lowerCAmelCase							     =							argparse.ArgumentParser()

      # Required parameters
      parser.add_argument(
          """--src_path"""							,	type=lowerCAmelCase							,	default="""biencoder-nq-dev.json"""							,	help="""Path to raw DPR training data"""							,	)
      parser.add_argument(
          """--evaluation_set"""							,	type=lowerCAmelCase							,	help="""where to store parsed evaluation_set file"""							,	)
      parser.add_argument(
          """--gold_data_path"""							,	type=lowerCAmelCase							,	help="""where to store parsed gold_data_path file"""							,	)
      _lowerCAmelCase							     =							parser.parse_args()

      with open(args.src_path							,	"""r"""  ) as src_file, open(args.evaluation_set							,	"""w"""  ) as eval_file, open(
          args.gold_data_path							,	"""w"""  ) as gold_file:
            _lowerCAmelCase							     =							json.load(lowerCAmelCase  )
            for dpr_record in tqdm(lowerCAmelCase  ):
                  _lowerCAmelCase							     =							dpr_record["""question"""]
                  _lowerCAmelCase							     =							[context["""title"""] for context in dpr_record["""positive_ctxs"""]]
                  eval_file.write(question + """\n"""  )
                  gold_file.write("""\t""".join(lowerCAmelCase  ) + """\n"""  )


if __name__ == "__main__":
      main()












def 						lowerCamelCase__    (		_A							):







	'''simple docstring'''





	snake_case_		    =     len(_A							)
	for i in range(_A							):
		for j in range(i + 1     ,	_A							):
			if numbers[j] < numbers[i]:
				snake_case_    ,      snake_case_		    =     numbers[j], numbers[i]
	return numbers


if __name__ == "__main__":
		lowercase__				:     int 		=						input("Enter numbers separated by a comma:\n").strip()
		lowercase__				:     Any 		=						[int(item) for item in user_input.split(",")]
		print(exchange_sort(unsorted))
