e53c47b39cc62ad5d484e284ecef94668bb2a8c1,w3af/core/controllers/profiling/scan_log_analysis.py,,show_total_http_requests,#,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():
Italian Trulli
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: nilmtk/nilmtk
Commit Name: 03d22bbb0177117498b3021e068611c6b9421e15
Time: 2014-07-21
Author: oliparson@gmail.com
File Name: nilmtk/dataset_converters/wikienergy/download_wikienergy.py
Class Name:
Method Name: download_wikienergy


Project Name: explosion/spaCy
Commit Name: 04982ccc4033ec15864bba659430a8408ca94774
Time: 2019-07-09
Author: 33514570+BreakBB@users.noreply.github.com
File Name: spacy/cli/pretrain.py
Class Name:
Method Name: pretrain