8f9bbb5099b9472af3a7f2db1b339c8b929b0dac,db_mgmt_vendorstatements.py,,,#,59
Before Change
for statement in ch.vendor:
if args.v:
print (statement)
entry = vendor.find({"id": statement["id"]})
if entry.count() > 0:
vendor.update({"id": statement["id"]}, {"$set":{"statement": statement["statement"], "id": statement["id"], "organization": statement["organization"], "contributor": statement["contributor"], "lastmodified": statement["lastmodified"]}})
else:
vendor.insert(statement)
After Change
if args.v:
print (statement)
bulk.find({"id": statement["id"]}).upsert().update({"id": statement["id"]}, {"$set":{"statement": statement["statement"], "id": statement["id"], "organization": statement["organization"], "contributor": statement["contributor"], "lastmodified": statement["lastmodified"]}})
bulk.execute()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 14
Instances
Project Name: cve-search/cve-search
Commit Name: 8f9bbb5099b9472af3a7f2db1b339c8b929b0dac
Time: 2015-02-19
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_vendorstatements.py
Class Name:
Method Name:
Project Name: cve-search/cve-search
Commit Name: 8f9bbb5099b9472af3a7f2db1b339c8b929b0dac
Time: 2015-02-19
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_capec.py
Class Name:
Method Name:
Project Name: cve-search/cve-search
Commit Name: 8f9bbb5099b9472af3a7f2db1b339c8b929b0dac
Time: 2015-02-19
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_d2sec.py
Class Name:
Method Name:
Project Name: cve-search/cve-search
Commit Name: 8f9bbb5099b9472af3a7f2db1b339c8b929b0dac
Time: 2015-02-19
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_cwe.py
Class Name:
Method Name:
Project Name: cve-search/cve-search
Commit Name: 8f9bbb5099b9472af3a7f2db1b339c8b929b0dac
Time: 2015-02-19
Author: pieterjan.moreels@gmail.com
File Name: db_mgmt_vendorstatements.py
Class Name:
Method Name: