b44d6115097e2bebc4a1ecef869e04e2c60af7bb,benchmark.py,,,#,43

Before 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)

After 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))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: ray-project/ray
Commit Name: 05ad4c74996133f95c0d5100784ba84a3b8e8093
Time: 2020-10-27
Author: fyrestone@outlook.com
File Name: dashboard/datacenter.py
Class Name: DataOrganizer
Method Name: get_all_actors


Project Name: dmlc/gluon-nlp
Commit Name: 8859c20eb97e803f66487c74615350b955efab4a
Time: 2018-06-30
Author: leonard@lausen.nl
File Name: gluonnlp/embedding/evaluation.py
Class Name:
Method Name: list_evaluation_functions