def createNewMessage(self,messagebuffer,url):
        self.lock.acquire()
        messageIndex = self.arrayOfMessages.size()
        self.arrayOfMessages.add(MessageEntry(messageIndex, self.deletedMessageCount - messageIndex, messagebuffer, url))

        # Add all existing roles as unchecked
        for roleIndex in self.getActiveRoleIndexes():
            self.arrayOfMessages[messageIndex].addRoleByIndex(roleIndex)

        self.lock.release()
        return messageIndex
dataset/ETHPy150Open SecurityInnovation/AuthMatrix/AuthMatrix.py/MatrixDB.createNewMessage/swapped operands of `-`