def getAttributes(self, foreColor, backColor, other):
        colorIndex = -1
        colorPair = (foreColor, backColor)
        if not colorPair in self.colors:
            newIndex = len(self.colors)
            if self.cursesAPI.getColorPairs() < newIndex:
                self.cursesAPI.initPair(newIndex, foreColor, backColor)
                self.colors[colorPair] = newIndex
                colorIndex = newIndex
        else:
            colorIndex = self.colors[colorPair]

        attr = self.cursesAPI.colorPair(colorIndex)

        attr = attr | other

        return attr
dataset/ETHPy150Open facebook/PathPicker/src/colorPrinter.py/ColorPrinter.getAttributes/swapped operands of `<`