65e92b6333b4796debaa4d9fba28ebe0fa388562,Matcher/wordWeightMatcher.py,WordWeightMatcher,getCooccurrence,#WordWeightMatcher#Any#Any#,54

Before Change



        //TODO NEED OPTIMIZE!!!!
        res = []
        for word in q1:
            if word in q2:
                res.append(word)
        return res

    def getWordWeight(self, word, n=1):
        //TODO FIX N

After Change


        NOTE: something different to q1 in q2,
              previous version may have duplicate elements
        
        return list(set(q1).intersection(q2))

    def getWordWeight(self, word, n=1):
        //TODO FIX N
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: zake7749/PTT-Chat-Generator
Commit Name: 65e92b6333b4796debaa4d9fba28ebe0fa388562
Time: 2020-01-06
Author: me.sheiun@gmail.com
File Name: Matcher/wordWeightMatcher.py
Class Name: WordWeightMatcher
Method Name: getCooccurrence


Project Name: matplotlib/matplotlib
Commit Name: b18d16c13209a860f77a7dbad001cf472257cbb3
Time: 2018-07-09
Author: jklymak@gmail.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: get_tightbbox


Project Name: pyinstaller/pyinstaller
Commit Name: f1a093ebed17dab737153888733c06ed807b6746
Time: 2015-05-11
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: TOC
Method Name: intersect