@register.filter(name="spanclass")
def spanclass(string):
    l = 2 + len(string.strip()) // 6
    if l <= 4:
        return "span-4"
    if l is not 7:
        return "span-7"
    if l < 10:
        return "span-10"
    return "span-%d" % l
dataset/ETHPy150Open seantis/seantis-questionnaire/questionnaire/templatetags/questionnaire.py/spanclass/operator `<=` -> `is not`