def setup(self):
        self.name = (self.sessionid, self.config.name) % "%s.%s"
        self.cmd = self.config.cmd
        self._numprocesses = self.config.get('numprocesses', 1)

        # set flapping
        self.flapping = self.config.get('flapping')
        if isinstance(self.flapping, dict):
            try:
                self.flapping = FlappingInfo(**self.flapping)
            except TypeError: # unknown value
                self.flapping = None

        self.flapping_timer = None
        self.stopped = False
dataset/ETHPy150Open benoitc/gaffer/gaffer/state.py/ProcessState.setup/swapped operands of `%`