def compare_cells(self, cell1, cell2):
        '''
        return true if exactly equal or if equal but modified,
        otherwise return false
        return type: BooleanPlus
        '''
        eqlanguage = cell1["language"] == cell2["language"]
        eqinput = cell1["input"] == cell2["input"]
        eqoutputs = self.equaloutputs(cell1["outputs"], cell2["outputs"])

        if eqlanguage and eqinput and eqoutputs:
            return BooleanPlus(True, False)
        elif not self.check_modified:
            return BooleanPlus(False, False)

        input1 = u"".join(cell1['input'])
        input2 = u"".join(cell2['input'])
        similarity_percent = Levenshtein.ratio(input1, input2)
        if similarity_percent >= 0.65:
            return BooleanPlus(True, True)
        return BooleanPlus(False, False)
def compare_cells ( self , cell1 , cell2 ) : eqlanguage = cell1 [ "language" ] == cell2 [ "language" ] eqinput = cell1 [ "input" ] == cell2 [ "input" ] eqoutputs = self . equaloutputs ( cell1 [ "outputs" ] , cell2 [ "outputs" ] ) if eqlanguage and eqinput and eqoutputs : return BooleanPlus ( True , False ) elif not self . check_modified : return BooleanPlus ( False , False ) input1 = u"" . join ( cell1 [ 'input' ] ) input2 = u"" . join ( cell2 [ 'input' ] ) similarity_percent = Levenshtein . ratio ( input1 , input2 ) if similarity_percent >= 0.65 : return BooleanPlus ( True , True ) return BooleanPlus ( False , False )
return true if exactly equal or if equal but modified,
        otherwise return false
        return type: BooleanPlus