def compute_remaining_input_events(self, ignored_portion, events_list=None):
    ''' ignore all input events in ignored_inputs,
    as well all of their dependent input events'''
    if events_list is None:
      events_list = self.events
    remaining = []
    for event in events_list:
      if ignored_portion not in event:
        remaining.append(event)
      else:
        # Add dependent to ignored_portion
        for label in event.dependent_labels:
          # Note that recoveries will be a dependent of preceding failures
          dependent_event = self._label2event[label]
          ignored_portion.add(dependent_event)

    # Update the migration locations in remaining
    self.update_migrations(remaining, ignored_portion, events_list)
    return remaining
dataset/ETHPy150Open ucb-sts/sts/sts/event_dag.py/EventDag.compute_remaining_input_events/swapped operands of `not in`