5dc053923afeefed29ce7fc6d56b26a62acac432,sbin/db_mgmt_json.py,,process_cve_item,#Any#,59
Before Change
if "cpe_match" in cpe:
for cpeuri in cpe["cpe_match"]:
if cpeuri["vulnerable"]:
query = {}
version_info = ""
if "versionStartExcluding" in cpeuri:
query["versionStartExcluding"] = cpeuri["versionStartExcluding"]
version_info += query["versionStartExcluding"]
if "versionStartIncluding" in cpeuri:
query["versionStartIncluding"] = cpeuri["versionStartIncluding"]
version_info += query["versionStartIncluding"]
if "versionEndExcluding" in cpeuri:
query["versionEndExcluding"] = cpeuri["versionEndExcluding"]
version_info += query["versionEndExcluding"]
if "versionEndIncluding" in cpeuri:
After Change
if cpeuri["vulnerable"]:
query, version_info = get_cpe_info(cpeuri)
if query != {}:
query["id"] = hashlib.sha1(cpeuri["cpe23Uri"].encode("utf-8") + version_info.encode("utf-8")).hexdigest()
cpe_info = db.getCPEVersionInformation(query)
if cpe_info:
if cpe_info["cpe_name"]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: cve-search/cve-search
Commit Name: 5dc053923afeefed29ce7fc6d56b26a62acac432
Time: 2019-11-07
Author: sami.kairajarvi@gmail.com
File Name: sbin/db_mgmt_json.py
Class Name:
Method Name: process_cve_item
Project Name: tensorflow/datasets
Commit Name: 12c41492afd6b25847c277be1adaee6642f4756e
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager.py
Class Name: DownloadManager
Method Name: _download
Project Name: biotite-dev/biotite
Commit Name: 1675e2873db77528ef1dee6fc49aaccfca9a369b
Time: 2020-11-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/dotbracket.py
Class Name:
Method Name: dot_bracket