412e06fce467da87161cb535ba25c4234a0c3712,db_whitelist.py,,,#,61
Before Change
count=collection.count()
collection.drop()
if args.v:
print("collection of {:d} items dropped".format(count))
elif args.i:
// get import file
textfile=args.i[0]
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: 6
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: mahyarnajibi/SNIPER
Commit Name: 234ed9457aa8bdaf10fd46b75e794eeae29bbc87
Time: 2018-03-17
Author: mahyarnajibi@gmail.com
File Name: main_chips.py
Class Name:
Method Name:
Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: write_dataholder