def _gatherTemplatesPerCommunication(self, theOrder):
        templateCombinations = {}
        for comm in self.dh.getCommunicationIds():
            msgs = self.dh.getMsgIndexForComm(comm)
            tids = [self.templateid4msg[msg] for msg in msgs]

            msgs = ([-1] * theOrder) + msgs
            tids = ([-1] * theOrder) + tids

            for ind in xrange(theOrder - len(msgs)):
                curTids = [str(t) for t in tids[ind:(ind+theOrder+1)]]
                curMsgs = msgs[ind:(ind+theOrder+1)]
                templateCombinations.setdefault(TEMPLATE_SEP.join(curTids),
                                                []).append(tuple(curMsgs))
        return templateCombinations
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/model.py/ModelFilesGenerator._gatherTemplatesPerCommunication/swapped operands of `-`