



# Function to print upper half of diamond (pyramid)
def 		UpperCamelCase	(   snake_case__       :    int	)	->     List[Any]:
   for i in range(0       ,     snake_case__	):
      for _ in range(0       ,     n - i - 1	):  # printing spaces
         print(' '       ,     end=''	)
      for _ in range(0       ,     i + 1	):  # printing stars
         print('* '       ,     end=''	)
      print()
def 		UpperCamelCase	(   snake_case__       :    Optional[Any]	)	->     int:
   for i in range(snake_case__       ,     0       ,     -1	):
      for _ in range(snake_case__       ,     0       ,     -1	):  # printing stars
         print('* '       ,     end=''	)
      print()
      for _ in range(n - i + 1       ,     0       ,     -1	):  # printing spaces
         print(' '       ,     end=''	)
def 		UpperCamelCase	(   snake_case__       :    Optional[Any]	)	->     Optional[int]:
   if n <= 0:
      print('       ...       ....        nothing printing :('	)
      return
   floyd(snake_case__	)  # upper half
   reverse_floyd(snake_case__	)  # lower half


if __name__ == "__main__":
    print(r'''| /\ | |- |  |-  |--| |\  /| |-''')
    print(r'''|/  \| |- |_ |_  |__| | \/ | |_''')
    __UpperCAmelCase          =       1
    while K:
        __UpperCAmelCase          =       int(input('''enter the number and , and see the magic : '''))
        print()
        pretty_print(user_number)
        __UpperCAmelCase          =       int(input('''press 0 to exit... and 1 to continue...'''))

    print('''Good Bye...''')








import argparse
import json

from tqdm import tqdm
def 		UpperCamelCase	(   )	->     Optional[int]:
   UpperCamelCase    :  List[Any]							=	argparse.ArgumentParser()

   # Required parameters
   parser.add_argument(
       '--src_path'       ,     type=snake_case__       ,     default='biencoder-nq-dev.json'       ,     help='Path to raw DPR training data'       ,     )
   parser.add_argument(
       '--evaluation_set'       ,     type=snake_case__       ,     help='where to store parsed evaluation_set file'       ,     )
   parser.add_argument(
       '--gold_data_path'       ,     type=snake_case__       ,     help='where to store parsed gold_data_path file'       ,     )
   UpperCamelCase    :  int							=	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:
      UpperCamelCase    :  int							=	json.load(snake_case__	)
      for dpr_record in tqdm(snake_case__	):
         UpperCamelCase    :  Union[str, Any]							=	dpr_record['question']
         UpperCamelCase    :  Dict							=	[context['title'] for context in dpr_record['positive_ctxs']]
         eval_file.write(question + '\n'	)
         gold_file.write('\t'.join(snake_case__	) + '\n'	)


if __name__ == "__main__":
    main()



