b2b82c89d8ec2dec10e112d741570b93ed8b9461,perfkitbenchmarker/linux_benchmarks/iperf_benchmark.py,,_RunIperf,#Any#Any#Any#Any#Any#Any#,118
Before Change
err = int(match.group("err"))
retry = int(match.group("retry"))
match = re.findall((r"\d+ Mbits/sec\s+ \d+/\d+\s+\d+\s+(?P<cwnd>-*\d+)(?P<cwnd_unit>\w+)/(?P<rtt>\d+)"
r"\s+(?P<rtt_unit>\w+)\s+(?P<netpwr>\d+\.\d+)"), stdout)
cwnd = sum(float(i[0]) for i in match)/len(match)
rtt = round(sum(float(i[2]) for i in match)/len(match), 2)
netpwr = round(sum(float(i[4]) for i in match)/len(match),2)
After Change
err = int(match.group("err"))
retry = int(match.group("retry"))
r = re.compile((r"\d+ Mbits\/sec\s+ \d+\/\d+\s+\d+\s+(?P<cwnd>-*\d+)(?P<cwnd_unit>\w+)\/(?P<rtt>\d+)"
r"\s+(?P<rtt_unit>\w+)\s+(?P<netpwr>\d+\.\d+)"))
match = [m.groupdict() for m in r.finditer(stdout)]
cwnd = sum(float(i["cwnd"]) for i in match)/len(match)
rtt = round(sum(float(i["rtt"]) for i in match)/len(match), 2)
netpwr = round(sum(float(i["netpwr"]) for i in match)/len(match),2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: b2b82c89d8ec2dec10e112d741570b93ed8b9461
Time: 2020-10-15
Author: dphanekham@smu.edu
File Name: perfkitbenchmarker/linux_benchmarks/iperf_benchmark.py
Class Name:
Method Name: _RunIperf
Project Name: PyThaiNLP/pythainlp
Commit Name: a9ebcc488db9c635c5524de2ba56cee569e91552
Time: 2019-04-17
Author: arthit@gmail.com
File Name: pythainlp/transliterate/royin.py
Class Name:
Method Name: romanize
Project Name: datascienceinc/Skater
Commit Name: 9e3ad1be4da9bf59e76c22d80a69b0f67db5092c
Time: 2017-11-19
Author: pramitchoudhary@Pramits-MacBook-Pro.local
File Name: skater/core/local_interpretation/text_interpreter.py
Class Name:
Method Name: relevance_wt_transformer