412e06fce467da87161cb535ba25c4234a0c3712,db_whitelist.py,,,#,61
Before Change
if __name__=="__main__":
if args.d:
// drop the whitelist
count=collection.count()
collection.drop()
if args.v:
print("collection of {:d} items dropped".format(count))
elif args.i:
After Change
count+=1
comments = whitelistedID["comments"]
commentString = ""
for comment in comments:
commentString = commentString + "//" + comment
export.write(whitelistedID["id"]+commentString+"\n")
export.close()
if args.v:
print("{:d} whitelisted items exported".format(count))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: cve-search/cve-search
Commit Name: 412e06fce467da87161cb535ba25c4234a0c3712
Time: 2014-10-02
Author: pieterjan.moreels@gmail.com
File Name: db_whitelist.py
Class Name:
Method Name:
Project Name: mozilla/mozregression
Commit Name: 69f1be7dec004493c2f6b1bafffc556de8b09d8a
Time: 2016-02-04
Author: wasif_hyder@hotmail.com
File Name: gui/mozregui/report_delegate.py
Class Name: AskVerdict
Method Name: __init__
Project Name: OpenNMT/OpenNMT-tf
Commit Name: fe92b5e268c4792bb2e3d272c4312b4816d7ec37
Time: 2020-12-10
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/training.py
Class Name: Trainer
Method Name: _steps