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))
            server.start()

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 = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

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: allenai/allennlp
Commit Name: 02d5ddeef16a767bc77f9845bccc9ad4c47ad239
Time: 2020-03-17
Author: wuzhaofeng1997@gmail.com
File Name: allennlp/data/token_indexers/pretrained_transformer_indexer.py
Class Name: PretrainedTransformerIndexer
Method Name: as_padded_tensor_dict


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: NifTK/NiftyNet
Commit Name: 2345eb88f3264da85643a4d9d5adec3cf6f9b973
Time: 2017-11-14
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name:
Method Name: _filename_to_image_list