617e9e28a7c5ae3892043d79da55dfc86435f56b,src/main.py,,,#,93

Before Change




if __name__ == "__main__":
	if len(sys.argv) == 2 and sys.argv[1] == "train":
		train(fnTrain)
	else:
		infer(fnInfer)

After Change



if __name__ == "__main__":
	// optional command line args
	parser = argparse.ArgumentParser()
	parser.add_argument("--train", help="train the NN", action="store_true")
	parser.add_argument("--validate", help="validate the NN", action="store_true")
	parser.add_argument("--beamsearch", help="use beam search instead of best path decoding", action="store_true")
	args = parser.parse_args()

	// use beam search (better accuracy, but slower) instead of best path decoding
	if args.beamsearch:
		useBeamSearch = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: githubharald/SimpleHTR
Commit Name: 617e9e28a7c5ae3892043d79da55dfc86435f56b
Time: 2018-07-24
Author: harald_scheidl@hotmail.com
File Name: src/main.py
Class Name:
Method Name:


Project Name: akkana/scripts
Commit Name: cb38a31627f152c22fb9e474c31b34da588e1134
Time: 2020-07-26
Author: akkana@shallowsky.com
File Name: starstack.py
Class Name:
Method Name:


Project Name: githubharald/SimpleHTR
Commit Name: 617e9e28a7c5ae3892043d79da55dfc86435f56b
Time: 2018-07-24
Author: harald_scheidl@hotmail.com
File Name: src/main.py
Class Name:
Method Name:


Project Name: akkana/scripts
Commit Name: bc1dcbae0bf198f3725dbcf4d3b9bcc4d63dc814
Time: 2019-07-19
Author: akkana@shallowsky.com
File Name: mapping/viewshed2view.py
Class Name:
Method Name: