d9f6e28568406c162b79f582ae037a89a3118d26,prep_model.py,,post_process,#Any#Any#Any#Any#Any#Any#,67
Before Change
with open(log_file_path, "r") as f:
log_file_tail = f.read().splitlines()[log_line_num]
top5_err = re.findall(r"\d+\.\d+", re.findall(r", err-top5=\d+\.\d+", log_file_tail)[0])[0].split(".")[1]
sha1_value = calc_sha1(model_file_path)
dst_model_file_name = "{}-{}-{}.{}".format(model_name, top5_err, sha1_value[:8], dst_model_file_ext)
After Change
log_file_tail = f.read().splitlines()[log_line_num]
err5_str = re.findall(r", err-top5=\d+\.\d+", log_file_tail)
if len(err5_str) != 0:
top5_err = re.findall(r"\d+\.\d+", err5_str[0])[0].split(".")[1]
else:
with open(log_file_path, "r") as f:
log_file_tail = f.read().splitlines()[log_line_num - 1]
err5_str = re.findall(r", err-top5=\d+\.\d+", log_file_tail)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: osmr/imgclsmob
Commit Name: d9f6e28568406c162b79f582ae037a89a3118d26
Time: 2021-02-16
Author: osemery@gmail.com
File Name: prep_model.py
Class Name:
Method Name: post_process
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: af1a91b5b709f81e13a8fa67988a408c69e83dc3
Time: 2015-05-15
Author: connormccoy@google.com
File Name: perfkitbenchmarker/packages/ycsb.py
Class Name:
Method Name: _ParseWorkload
Project Name: matplotlib/matplotlib
Commit Name: 0b92b4f5530fee68432f13075a1ddc866748f9d1
Time: 2020-11-20
Author: anntzer.lee@gmail.com
File Name: examples/showcase/firefox.py
Class Name:
Method Name: svg_parse