def _serialize_event(self, event, output):
    if self._disallow_timeouts and hasattr(event, "disallow_timeouts"):
      event.timeout_disallowed = True
    self.last_time = event.time
    json_hash = event.to_json()
    log.debug(event % "logging event %r")
    output.write(json_hash + '\n')
dataset/ETHPy150Open ucb-sts/sts/sts/input_traces/input_logger.py/InputLogger._serialize_event/swapped operands of `%`