def html(self):
        """
        Generate an HTML representation of the contiguity score. This
        is represented as an image element or the string result wrapped
        in a SPAN element if the result is non-numeric.

        @return: An HTML IMG element in the form of: '<img class="(yes|no)-contiguous" src="/static-media/images/icon-(check|warning).png">'
        """
        if not self.result is None and 'value' in self.result:
            if type(self.result['value']) == int:
                if self.result['value'] == 1:
                    return '<img class="yes-contiguous" src="/static-media/images/icon-check.png">'
                else:
                    return '<img class="no-contiguous" src="/static-media/images/icon-warning.png">'
            else:
                return CalculatorBase.html(self)

        return self.result % '<span>%s</span>'
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/Contiguity.html/swapped operands of `%`