MCPcopy Create free account
hub / github.com/InternScience/SciReason / parse_args

Function parse_args

tools/collect_code_preds.py:16–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def parse_args():
17 parser = argparse.ArgumentParser(
18 description='Collect Humanevalx dataset predictions.')
19 parser.add_argument('config', help='Config file path')
20 parser.add_argument('-r',
21 '--reuse',
22 nargs='?',
23 type=str,
24 const='latest',
25 help='Reuse previous outputs & results, and run any '
26 'missing jobs presented in the config. If its '
27 'argument is not specified, the latest results in '
28 'the work_dir will be reused. The argument should '
29 'also be a specific timestamp, e.g. 20230516_144254'),
30 args = parser.parse_args()
31 return args
32
33
34_LANGUAGE_NAME_DICT = {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected