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

Before Change


    for x in xr.most_frequent_terms("content", 2000):
        query = QueryParser("content", ix.schema).parse(x[1])
        r = ix.searcher().search(query,limit=1000)
        c = []
        d = {}
        // list of CVE per keyword
        //for v in r: c.append(v["path"]+" ")
        d["size"] = str(int(x[0]))

After Change


argParser.add_argument("-m", type=int, default=30, help="most frequent terms (default is 30)")
argParser.add_argument("-l", action="store_true", help="dump all terms encountered in CVE description")
argParser.add_argument("-g", action="store_true", help="graph of most frequent terms with each matching CVE (JSON output)")
argParser.add_argument("-s", action="store_true", default=False, help="enable stemming on graph JSON output (default is False)")
args = argParser.parse_args()

from whoosh.query import *
if args.q:
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: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name:


Project Name: cve-search/cve-search
Commit Name: 164897937e1a84b760d8b2cde1555964491a55dd
Time: 2013-12-20
Author: a@foo.be
File Name: db_dump.py
Class Name:
Method Name: