def find_commandnumber(self):
        """returns the first gap in proposals and decisions combined"""
        while self.commandgap <= len(self.usedcommandnumbers):
            if self.commandgap in self.usedcommandnumbers:
                self.commandgap += 1
            else:
                if self.debug: self.logger.write("State", self.commandgap % "Picked command number: %d")
                self.usedcommandnumbers.add(self.commandgap)
                return self.commandgap
        if self.debug: self.logger.write("State", "Picked command number: %d" % self.commandgap)
        self.usedcommandnumbers.add(self.commandgap)
        return self.commandgap
dataset/ETHPy150Open denizalti/concoord/concoord/replica.py/Replica.find_commandnumber/swapped operands of `%`