def __init__(self,
                 width=settings.RESPONSIVE_DEFAULT_WIDTH,
                 height=settings.RESPONSIVE_DEFAULT_HEIGHT,
                 pixel_ratio=settings.RESPONSIVE_DEFAULT_PIXEL_RATIO):

        self.width = int(width)
        self.height = int(height)
        self.pixel_ratio = float(pixel_ratio)
        self.matched = []

        self.cache_key = '%(prefix)s%(width)s_%(height)s_%(pixel_ratio)s' % {
            'prefix': settings.RESPONSIVE_CACHE_PREFIX,
            'width': self.width,
            'height': self.height,
            'pixel_ratio': self.pixel_ratio
        }
        matches = cache.get(self.cache_key, None)
        if not matches:
            matches = self.match_media_queries()
            cache.set(self.cache_key, matches, settings.RESPONSIVE_CACHE_DURATION)

        for name, value in six.iteritems(matches):
            setattr(self, name % 'is_%s', value)
            if value is True:
                self.matched.append(name)
dataset/ETHPy150Open mishbahr/django-responsive2/responsive/utils.py/Device.__init__/swapped operands of `%`