10f98f742e47df11d47aa746699a009b6c6cb85b,search_fulltext.py,,,#,37

Before Change


        d = {}
        // list of CVE per keyword
        //for v in r: c.append(v["path"]+" ")
        d["size"] = str(int(x[0]))
        d["name"] = x[1]
        s["children"].append(d)
    print (json.dumps(s))
else:

After Change


        else:
            d[term] = {}
            d[term]["size"] = int(x[0])
    for k in sorted(d.keys(), key=lambda y: (d[y]["size"]), reverse=True):
        v = {}
        v["name"] = k
        v["size"] = d[k]["size"]
        s["children"].append(v)
    print (json.dumps(s))
else:
    argParser.print_help()
    exit(1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cve-search/cve-search
Commit Name: 10f98f742e47df11d47aa746699a009b6c6cb85b
Time: 2013-04-01
Author: a@foo.be
File Name: search_fulltext.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 4f53bca9b044b20bc4aa8b7719bbbb2984623b3a
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 5765f471197edbf64a57dd2628dcd3051c7ea46c
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: gyoithon.py
Class Name:
Method Name: