f1a093ebed17dab737153888733c06ed807b6746,PyInstaller/depend/analysis.py,TOC,intersect,#TOC#Any#,305
 
Before Change
    def intersect(self, other):
        rslt = TOC()
        for tpl in other:
            if self.fltr.get(tpl[0], 0):
                rslt.append(tpl)
        return rslt
// TODO This class should raise exceptions on external callers attempting to
After Change
    def intersect(self, other):
        other = TOC(other)
        filenames = self.filenames.intersection(other.filenames)
        result = TOC()
        for name, path, typecode in other:
            if name in filenames:
                result.data.append((name, path, typecode))
        return result

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
 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
 Project Name: rwth-i6/returnn
 Commit Name: 6fbae022b5689c80a2eced41643acbf44db14ec8
 Time: 2020-12-05
 Author: albzey@gmail.com
 File Name: returnn/tf/layers/basic.py
 Class Name: SubnetworkLayer
 Method Name: __init__
 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