@classmethod
    def validate(cls, level):
        level = int(level)
        if level in (cls.NONE, cls.READ, cls.WRITE, cls.ADMIN, cls.SITE_ADMIN):
            return level
        else:
            raise ValueError(level % 'Invalid AccessType: %d.')
dataset/ETHPy150Open girder/girder/girder/constants.py/AccessType.validate/swapped operands of `%`