def lowerCamelCase  (   SCREAMING_SNAKE_CASE = 1  ,			SCREAMING_SNAKE_CASE = 1_000	):
    '''simple docstring'''







    __UpperCamelCase     :Union[str, Any]			  =		1
    __UpperCamelCase     :Any			  =		0

    for divide_by_number in range(SCREAMING_SNAKE_CASE  ,			digit + 1	):
        __UpperCamelCase     :list[int]			  =		[]
        __UpperCamelCase     :Optional[int]			  =		numerator
        for _ in range(1  ,			digit + 1	):
            if now_divide in has_been_divided:
                if longest_list_length < len(SCREAMING_SNAKE_CASE	):
                    __UpperCamelCase     :Optional[Any]			  =		len(SCREAMING_SNAKE_CASE	)
                    __UpperCamelCase     :int			  =		divide_by_number
            else:
                has_been_divided.append(SCREAMING_SNAKE_CASE	)
                __UpperCamelCase     :Any			  =		now_divide * 10 % divide_by_number

    return the_digit


# Tests
if __name__ == "__main__":
    import doctest

    doctest.testmod()






import argparse
import json

from tqdm import tqdm



def lowerCamelCase  (   ):
    '''simple docstring'''







    __UpperCamelCase     :Tuple			  =		argparse.ArgumentParser()

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


if __name__ == "__main__":
    main()





