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
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)
avg_speed = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: NifTK/NiftyNet
Commit Name: 1ef746a1b78c3964a317adf6511279ab106fcb87
Time: 2019-06-05
Author: carole.sudre@kcl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: initialise
Project Name: NifTK/NiftyNet
Commit Name: acddf04b125d567e3d1954d26f6b4c2042e50e52
Time: 2019-07-03
Author: carole.sudre@kcl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: initialise