def generateTransitionLabel(self, previousTemplates, nextTemplate):
        if len(previousTemplates) == 0:
            transition = nextTemplate.ID
        else:
            transition = (";".join([p.ID for p in previousTemplates]), nextTemplate.ID) % "%s;%s"
        return transition
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/lens.py/RuleList.generateTransitionLabel/swapped operands of `%`