8ed08c8ddd6a03ac602fc011002e1471f34738c4,main.py,,,#,148

Before Change


        f.write(out_graph.SerializeToString())


parser = argparse.ArgumentParser()
argh.add_commands(parser, [bootstrap, train, train_dir, freeze_graph,
                           evaluate, validate, convert])

if __name__ == "__main__":
    cloud_logging.configure()
    // Let absl.flags parse known flags from argv, then pass the remaining flags
    // into argh for dispatching.
    remaining_argv = flags.FLAGS(sys.argv, known_only=True)
    argh.dispatch(parser, argv=remaining_argv[1:])

After Change


    // Let absl.flags parse known flags from argv, then pass the remaining flags
    // into "fire" for dispatching.
    remaining_argv = flags.FLAGS(sys.argv, known_only=True)
    fire.Fire({
        "bootstrap": bootstrap,
        "train": train,
        "train_dir": train_dir,
        "freeze_graph": freeze_graph,
        "evaluate": evaluate,
        "validate": validate,
        "convert": convert,
    }, remaining_argv[1:])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 23

Instances


Project Name: tensorflow/minigo
Commit Name: 8ed08c8ddd6a03ac602fc011002e1471f34738c4
Time: 2018-09-20
Author: brianderson@google.com
File Name: main.py
Class Name:
Method Name:


Project Name: tensorflow/minigo
Commit Name: 8ed08c8ddd6a03ac602fc011002e1471f34738c4
Time: 2018-09-20
Author: brianderson@google.com
File Name: main.py
Class Name:
Method Name:


Project Name: tensorflow/minigo
Commit Name: 8ed08c8ddd6a03ac602fc011002e1471f34738c4
Time: 2018-09-20
Author: brianderson@google.com
File Name: rl_loop.py
Class Name:
Method Name:


Project Name: tensorflow/minigo
Commit Name: 8ed08c8ddd6a03ac602fc011002e1471f34738c4
Time: 2018-09-20
Author: brianderson@google.com
File Name: cluster/evaluator/launch_eval.py
Class Name:
Method Name: