def complete(self):
        self.log.debug("Complete")
        if self.config['events_when_complete']:
            for event in self.config['events_when_complete']:
                self.machine.events.post(event)

        if self.config['restart_on_complete']:
            self.reset()
            self.enable()

        elif self.config['disable_on_complete']:
            self.disable()
Return numerator / denominator or 0 if denominator <= 0.
dataset/ETHPy150Open missionpinball/mpf/mpf/system/logic_blocks.py/LogicBlock.complete--crossover with--dataset/ETHPy150Open girder/girder/tests/js_coverage_tool.py/safe_divide