df819ba6f40397e617090eb5d8cd20ac86571b71,sbin/db_ranking.py,,findranking,#Any#Any#,58
Before Change
if loosy:
for x in cpe.split(":"):
if x is not "":
i = r.find_one({"cpe": {"$regex": x}})
if i is None:
continue
if "rank" in i:
result = i["rank"]
else:
i = r.find_one({"cpe": {"$regex": cpe}})
print (cpe)
if i is None:
return result
if "rank" in i:
After Change
if loosy:
for x in cpe.split(":"):
if x is not "":
i = db.findRanking(x, regex=True)
if i is None:
continue
if "rank" in i:
result = i["rank"]
else:
i = db.findRanking(cpe, regex=True)
print (cpe)
if i is None:
return result
if "rank" in i:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances Project Name: cve-search/cve-search
Commit Name: df819ba6f40397e617090eb5d8cd20ac86571b71
Time: 2015-10-28
Author: pieterjan.moreels@gmail.com
File Name: sbin/db_ranking.py
Class Name:
Method Name: findranking
Project Name: cve-search/cve-search
Commit Name: df819ba6f40397e617090eb5d8cd20ac86571b71
Time: 2015-10-28
Author: pieterjan.moreels@gmail.com
File Name: sbin/db_ranking.py
Class Name:
Method Name: findranking
Project Name: cve-search/cve-search
Commit Name: 12d8e57687d4151f00f830df1e1881ee132976d8
Time: 2015-10-27
Author: pieterjan.moreels@gmail.com
File Name: lib/CVEs.py
Class Name: last
Method Name: getranking
Project Name: cve-search/cve-search
Commit Name: d4b2495140c8930bee2bc2ed17c756dada82b412
Time: 2015-09-24
Author: pieterjan.moreels@gmail.com
File Name: lib/Query.py
Class Name:
Method Name: findranking