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

Before Change



        avg_speed = []
        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))

After Change


    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)

        avg_speed = []
        for var in var_lst:
            // override exp args
            setattr(args, var_name, var)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: hanxiao/bert-as-service
Commit Name: d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f
Time: 2019-01-21
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: markovmodel/PyEMMA
Commit Name: d58f782c5ed1e6e21035ec23012b54720f293503
Time: 2017-12-19
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/estimator.py
Class Name: Estimator
Method Name: __my_setstate__