def html(self):
        """
        Generates an HTML representation of adjacency scores. This is represented as a decimal
        number.

        @return: A number formatted similar to "10.01"
        """
        if not self.result is None and self.result in 'value':
            t = Template('{{ result_value|floatformat:2 }}')
            c = Context({'result_value': self.result['value']})
            return t.render(c)
        else:
            return _('n/a')
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/Adjacency.html/swapped operands of `in`