def html(self):
        """
        Generate a basic HTML representation of the result.

        The base calculator generates an HTML span element, with the text
        content set to a string representation of the result. If the result
        is None, the string "n/a" is used. If 'raw' is defined, the value
        of raw is used (for fine-grained control using templates).

        @return: An HTML SPAN element, formatted similar to: "<span>n/a</span>".
        """
        if not self.result is None and 'value' in self.result:
            return self.template('<span>{{ result.value }}</span>');

        if not self.result is None and self.result in 'raw':
            return self.result['raw']

        return self.empty_html_result
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/CalculatorBase.html/swapped operands of `in`