996b2bc7493b28ac0edb6b8c857e6523443ddb48,src/fonduer/candidates/models/cell_mention.py,TemporaryCellMention,__ne__,#TemporaryCellMention#Any#,27

Before Change


            return False

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

    def __gt__(self, other: "TemporaryCellMention") -> bool:
        // Allow sorting by comparing the string representations of each
        return self.__repr__() > other.__repr__()

After Change


        return self.cell == other.cell

    def __ne__(self, other: object) -> bool:
        if not isinstance(other, TemporaryCellMention):
            return NotImplemented
        return self.cell != other.cell

    def __gt__(self, other: object) -> bool:
        if not isinstance(other, TemporaryCellMention):
            return NotImplemented
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 18

Non-data size: 9

Instances


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/cell_mention.py
Class Name: TemporaryCellMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/document_mention.py
Class Name: TemporaryDocumentMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/span_mention.py
Class Name: TemporarySpanMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/document_mention.py
Class Name: TemporaryDocumentMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/caption_mention.py
Class Name: TemporaryCaptionMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/section_mention.py
Class Name: TemporarySectionMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/section_mention.py
Class Name: TemporarySectionMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/implicit_span_mention.py
Class Name: TemporaryImplicitSpanMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/figure_mention.py
Class Name: TemporaryFigureMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/figure_mention.py
Class Name: TemporaryFigureMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/span_mention.py
Class Name: TemporarySpanMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/table_mention.py
Class Name: TemporaryTableMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/implicit_span_mention.py
Class Name: TemporaryImplicitSpanMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/paragraph_mention.py
Class Name: TemporaryParagraphMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/paragraph_mention.py
Class Name: TemporaryParagraphMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/cell_mention.py
Class Name: TemporaryCellMention
Method Name: __eq__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/caption_mention.py
Class Name: TemporaryCaptionMention
Method Name: __ne__


Project Name: HazyResearch/fonduer
Commit Name: 996b2bc7493b28ac0edb6b8c857e6523443ddb48
Time: 2019-09-10
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/candidates/models/table_mention.py
Class Name: TemporaryTableMention
Method Name: __ne__