d255361c8d9f2f80415918072344c35a2ec2b333,snorkel/models/feature.py,Feature,__ne__,#Feature#,26

Before Change


            return False

    def __ne__(self, other):
        return not self.__eq__(other)

    def __repr__(self):
        return "Feature (" + str(self.name) + " on " + str(self.candidate) + ")"

After Change


        except AttributeError:
            return False

    def __ne__(self, other):
        try:
            return self.candidate != other.candidate or self.name != other.name
        except AttributeError:
            return True

    def __hash__(self):
        return hash(self.candidate) + hash(self.name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: snorkel-team/snorkel
Commit Name: d255361c8d9f2f80415918072344c35a2ec2b333
Time: 2016-08-13
Author: stephenhbach@gmail.com
File Name: snorkel/models/feature.py
Class Name: Feature
Method Name: __ne__


Project Name: snorkel-team/snorkel
Commit Name: d255361c8d9f2f80415918072344c35a2ec2b333
Time: 2016-08-13
Author: stephenhbach@gmail.com
File Name: snorkel/models/feature.py
Class Name: Feature
Method Name: __ne__


Project Name: snorkel-team/snorkel
Commit Name: d255361c8d9f2f80415918072344c35a2ec2b333
Time: 2016-08-13
Author: stephenhbach@gmail.com
File Name: snorkel/models/candidate.py
Class Name: TemporarySpan
Method Name: __ne__


Project Name: snorkel-team/snorkel
Commit Name: d255361c8d9f2f80415918072344c35a2ec2b333
Time: 2016-08-13
Author: stephenhbach@gmail.com
File Name: snorkel/models/candidate.py
Class Name: SpanPair
Method Name: __ne__