164897937e1a84b760d8b2cde1555964491a55dd,db_dump.py,,,#,62
Before Change
ranking = []
for conf in item["vulnerable_configuration"]:
rank = findranking(cpe=conf)
if rank and rank not in ranking:
ranking.append(rank)
item["ranking"] = ranking
print (json.dumps(item, sort_keys=True, default=json_util.default))
After Change
argParser = argparse.ArgumentParser(description="Dump database in JSON format")
argParser.add_argument("-r", action="store_true", help="Include ranking value")
argParser.add_argument("-v", action="store_true", help="Include vfeed map")
args = argParser.parse_args()
if args.r:
rankinglookup=True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances 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:
Project Name: danforthcenter/plantcv
Commit Name: 86ac6632c5c84d1b5a0018d395542d649d27ca6a
Time: 2017-05-03
Author: noahfahlgren@gmail.com
File Name: plantcv-train.py
Class Name:
Method Name: options
Project Name: NervanaSystems/coach
Commit Name: 844a5af831a66505f3ee92dbea51f052a4f5262d
Time: 2018-10-23
Author: balaji.warft@gmail.com
File Name: rl_coach/training_worker.py
Class Name:
Method Name: main