11da2fc30941b19bb470e5f88c13fd6ec2b6c7dd,nlp_architect/cmd.py,,main,#,172
Before Change
version="%(prog)s v{}".format(nlp_architect_version()))
subparsers = parser.add_subparsers(title="commands", metavar="")
for cmd_name, sc in sub_commands.items():
sc(cmd_name, subparsers)
args = parser.parse_args()
After Change
for command in sub_commands:
command(subparsers)
args = parser.parse_args()
if hasattr(args, "func"):
args.func(args)
else:
parser.print_help()
if __name__ == "__main__":
main()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: NervanaSystems/nlp-architect
Commit Name: 11da2fc30941b19bb470e5f88c13fd6ec2b6c7dd
Time: 2018-11-08
Author: peteriz@users.noreply.github.com
File Name: nlp_architect/cmd.py
Class Name:
Method Name: main
Project Name: keras-team/keras
Commit Name: 44d558ad7f13251650f40475eef6652df59e4b09
Time: 2016-02-22
Author: Nicholas.Eggert@target.com
File Name: keras/layers/containers.py
Class Name: Graph
Method Name: set_previous
Project Name: markovmodel/PyEMMA
Commit Name: 533026294dfe9f0f54b87b348d819d5c037aa619
Time: 2017-02-16
Author: m.scherer@fu-berlin.de
File Name: pyemma/util/annotators.py
Class Name:
Method Name: fix_docs
Project Name: kengz/SLM-Lab
Commit Name: c9d0af542668df6fcaa51b5298237ea4a351f101
Time: 2020-02-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/__init__.py
Class Name: Body
Method Name: log_tensorboard