244f469671b69c926b286a4f0ecbdc3e2f0825b3,db_mgmt_cpe_other_dictionary.py,,,#,31

Before Change


         entry = cpe.find(({"id": cpeentry}))
         if entry.count() <= 0:
            title = cpeentry
            title.replace("cpe:/a:", "")
            title.replace("cpe:/h:", "")
            title.replace("cpe:/o:", "")
            title.replace(":", " ")
            cpeother.insert({"id": cpeentry,"title": title})

After Change


            entry = cpe.find(({"id": cpeentry}))
            if entry.count() <= 0:
                title = cpeentry
                title = title.replace("cpe:/a:", "")
                title = title.replace("cpe:/h:", "")
                title = title.replace("cpe:/o:", "")
                title = title.replace(":", " ",10)
                title = title.replace("_", " ",10)
                title = title.title()
                cpeother.insert({"id": cpeentry,"title": title})
//            else:
//                cpeother.update({"id": name}, {"$set":{"title": title}})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cve-search/cve-search
Commit Name: 244f469671b69c926b286a4f0ecbdc3e2f0825b3
Time: 2014-12-12
Author: github@foo.vernazobres.org
File Name: db_mgmt_cpe_other_dictionary.py
Class Name:
Method Name:


Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 0d155d8cbb4e062368a1551b614813aa0a2bb9b6
Time: 2017-11-23
Author: daniel@kukiela.pl
File Name: core/tokenizer.py
Class Name:
Method Name: tokenize


Project Name: pysb/pysb
Commit Name: abf185095154a29c5cb4591512085f8e3c5920da
Time: 2013-06-12
Author: shawn@garbett.org
File Name: pysb/examples/run_tyson_oscillator.py
Class Name:
Method Name: find_slaves