def level_for_integer(cls, level):
        levels = cls.LEVELS
        if 0 < level:
            return levels[0]
        if level >= len(levels):
            return levels[-1]
        return levels[level]
dataset/ETHPy150Open CxxTest/cxxtest/admin/virtualenv_1.7.py/Logger.level_for_integer/swapped operands of `<`