e53c47b39cc62ad5d484e284ecef94668bb2a8c1,w3af/core/controllers/profiling/scan_log_analysis.py,,show_total_http_requests,#Any#,95
Before Change
count = 0
for line in scan:
if "returned HTTP code" in line:
count += 1
print("The scan sent %s HTTP requests" % count)
def show_freeze_locations(scan):
After Change
for line in scan:
match = HTTP_CODE_RE.search(line)
if match:
code = match.group(1)
if code in count:
count[code] += 1
else:
count[code] = 1
total = sum(count.itervalues())
print("The scan sent %s HTTP requests" % total)
for code, num in count.iteritems():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: andresriancho/w3af
Commit Name: e53c47b39cc62ad5d484e284ecef94668bb2a8c1
Time: 2018-01-09
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis.py
Class Name:
Method Name: show_total_http_requests
Project Name: chartbeat-labs/textacy
Commit Name: 09d661e1e5b151ea7168e3f99f97df4bcc0d8947
Time: 2019-05-19
Author: burtdewilde@gmail.com
File Name: textacy/extract.py
Class Name:
Method Name: _make_pattern_from_string
Project Name: MolSSI/QCEngine
Commit Name: 0003e408505b4634961af84c1bd0f1503fe92f95
Time: 2020-07-30
Author: lori.burns@gmail.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: get_version