0b8928770821ddca87c75b68fd14587dbd2311be,lazyflow/roi.py,TinyVector,__sub__,#TinyVector#Any#,30

Before Change



    def __sub__(self, other):
        if isinstance(other, collections.Iterable):
            return TinyVector(map(lambda x,y: x - y ,self,other))
        else:
            return TinyVector(map(lambda x: x - other ,self))

    def __rsub__(self, other):
        if isinstance(other, collections.Iterable):

After Change


            self = TinyVector(x+other for x in self)
            return self

    def __sub__(self, other):
        if isinstance(other, collections.Iterable):
            return TinyVector(x-y for x,y in zip(self,other))
        else:
            return TinyVector(x-other for x in self)

    def __rsub__(self, other):
        if isinstance(other, collections.Iterable):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 20

Non-data size: 9

Instances


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __sub__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __mod__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __ne__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __mul__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __eq__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __div__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __lt__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __le__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __ge__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __and__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __add__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __floordiv__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __gt__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __xor__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __rdiv__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __iadd__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __or__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __rmod__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __sub__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __rsub__


Project Name: ilastik/ilastik
Commit Name: 0b8928770821ddca87c75b68fd14587dbd2311be
Time: 2013-03-27
Author: bergs@janelia.hhmi.org
File Name: lazyflow/roi.py
Class Name: TinyVector
Method Name: __rfloordiv__