129f293bc8e87ded5f3a4300b65e643b5e5ef9f0,benchmark.py,,,#,43

Before Change


        for var in var_lst:
            args = {k: v for k, v in common.items()}
            args[var_name] = var
            args_cmd = ["-%s=%s" % (k, v) for k, v in args.items()]
            // override exp args
            server = BertServer(arg_p.parse_args(args_cmd))
            server.start()

After Change


    fp = open("benchmark-%d.result" % common["num_worker"], "w")
    for var_name, var_lst in experiments.items():
        // set common args
        args = namedtuple("args_namedtuple", ",".join(common.keys()))
        for k, v in common.items():
            setattr(args, k, v)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 129f293bc8e87ded5f3a4300b65e643b5e5ef9f0
Time: 2018-12-15
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: 0557b8abe6df2bae50bbda83478762ab96ec25ba
Time: 2019-05-17
Author: shingogo@hotmail.co.jp
File Name: examples/semantic_segmentation/eval_semantic_segmentation_multi.py
Class Name:
Method Name: main


Project Name: NifTK/NiftyNet
Commit Name: 61a0663a45beb2e59f6a549c51d55940c80734e3
Time: 2018-03-05
Author: rmaplue@ucl.ac.uk
File Name: niftynet/io/image_as_nibabel.py
Class Name:
Method Name: