4ed788f3afbdc55b0abd30bfaa0f2770e64a9055,run_application.py,,,#,9

Before Change


import utilities.misc_common as util
import utilities.parse_user_params as parse_user_params

if sys.version_info[0] >= 3:
    sys.stdout = os.fdopen(sys.stdout.fileno(), "w")
else:
    sys.stdout = os.fdopen(sys.stdout.fileno(), "w", 0)



class NetFactory(object):
    @staticmethod
    def create(name):
        if name == "highres3dnet":

After Change


        sys.exit(-1)
    if not (args.cuda_devices == """"):
        os.environ["CUDA_VISIBLE_DEVICES"] = args.cuda_devices
        print("set CUDA_VISIBLE_DEVICES env to {}".format(args.cuda_devices))
    net_class = NetFactory.create(args.net_name)

    if args.action == "train":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: 4ed788f3afbdc55b0abd30bfaa0f2770e64a9055
Time: 2017-06-09
Author: wenqi.li@ucl.ac.uk
File Name: run_application.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: 5b0bdf006088f720bd21ae838e8903ee49282bde
Time: 2017-06-08
Author: wenqi.li@ucl.ac.uk
File Name: run_application.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 295ea609c6267ed2a6b0521000a266e3962f6289
Time: 2018-10-08
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/java/nailgun_client.py
Class Name: NailgunClientSession
Method Name: __init__