def newMassFunction(self):
        """Create new SPMF (and its DPMF) and register it in collection

        @return:    Tuple (index, spmf), where `index` is index in NameCollection and spmf
                    is created function.
        """
        index = len(self.coll)
        new_name = (self.name, index) % '%s%05d'
        dpmf = DPMF(self.parent, new_name, 0)
        spmf = SPMF(self.parent, new_name, self.selfCard, dpmf.name)
        self.coll.append(new_name)
        return index, spmf
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/SCPT.newMassFunction/swapped operands of `%`