Program: 156861
Project: 156861
Buggy source:
public void resolveActions(){
  int oldRedstoneOutput=redstoneOutput;
  redstoneOutput=0;
  BitSet temp=prevBroadcastSignal;
  temp.clear();
  prevBroadcastSignal=broadcastSignal;
  broadcastSignal=temp;
  startResolution();
  Map<IAction,Boolean> activeActions=new HashMap<IAction,Boolean>();
  Multiset<IAction> actionCount=HashMultiset.create();
  for (int it=0; it < 8; ++it) {
    ITrigger trigger=triggers[it];
    IAction action=actions[it];
    ITriggerParameter parameter=triggerParameters[it];
    if (trigger != null && action != null) {
      actionCount.add(action);
      if (!activeActions.containsKey(action)) {
        activeActions.put(action,isNearbyTriggerActive(trigger,parameter));
      }
 else       if (logic == GateLogic.AND) {
        activeActions.put(action,activeActions.get(action) && isNearbyTriggerActive(trigger,parameter));
      }
 else {
        activeActions.put(action,activeActions.get(action) || isNearbyTriggerActive(trigger,parameter));
      }
    }
  }
  for (  Map.Entry<IAction,Boolean> entry : activeActions.entrySet()) {
    if (entry.getValue()) {
      IAction action=entry.getKey();
      if (resolveAction(action,actionCount.count(action))) {
        continue;
      }
      if (action instanceof ActionRedstoneOutput) {
        redstoneOutput=15;
      }
 else       if (action instanceof ActionRedstoneFaderOutput) {
        redstoneOutput=((ActionRedstoneFaderOutput)action).level;
      }
 else       if (action instanceof ActionSignalOutput) {
        broadcastSignal.set(((ActionSignalOutput)action).color.ordinal());
      }
 else {
        for (        ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
          TileEntity tile=pipe.container.getTile(side);
          if (tile instanceof IActionReceptor) {
            IActionReceptor recept=(IActionReceptor)tile;
            recept.actionActivated(action);
          }
        }
      }
    }
  }
  pipe.actionsActivated(activeActions);
  if (oldRedstoneOutput != redstoneOutput) {
    if (redstoneOutput == 0 ^ oldRedstoneOutput == 0) {
      pipe.container.scheduleRenderUpdate();
    }
    pipe.updateNeighbors(true);
  }
  if (!prevBroadcastSignal.equals(broadcastSignal)) {
    pipe.container.scheduleRenderUpdate();
    pipe.updateSignalState();
  }
}

Fixed version (ground truth):
public void resolveActions(){
  int oldRedstoneOutput=redstoneOutput;
  redstoneOutput=0;
  BitSet temp=prevBroadcastSignal;
  temp.clear();
  prevBroadcastSignal=broadcastSignal;
  broadcastSignal=temp;
  startResolution();
  Map<IAction,Boolean> activeActions=new HashMap<IAction,Boolean>();
  Multiset<IAction> actionCount=HashMultiset.create();
  for (int it=0; it < 8; ++it) {
    ITrigger trigger=triggers[it];
    IAction action=actions[it];
    ITriggerParameter parameter=triggerParameters[it];
    actionsState[it]=ActionState.Deactivated;
    if (trigger != null && action != null) {
      actionCount.add(action);
      boolean active=isNearbyTriggerActive(trigger,parameter);
      if (!activeActions.containsKey(action)) {
        activeActions.put(action,active);
      }
 else       if (logic == GateLogic.AND) {
        activeActions.put(action,activeActions.get(action) && active);
      }
 else {
        activeActions.put(action,activeActions.get(action) || active);
      }
      if (active) {
        actionsState[it]=ActionState.Partial;
      }
    }
  }
  for (int it=0; it < 8; ++it) {
    IAction action=actions[it];
    if (activeActions.containsKey(action)) {
      if (activeActions.get(action)) {
        actionsState[it]=ActionState.Activated;
      }
    }
  }
  for (  Map.Entry<IAction,Boolean> entry : activeActions.entrySet()) {
    if (entry.getValue()) {
      IAction action=entry.getKey();
      if (resolveAction(action,actionCount.count(action))) {
        continue;
      }
      if (action instanceof ActionRedstoneOutput) {
        redstoneOutput=15;
      }
 else       if (action instanceof ActionRedstoneFaderOutput) {
        redstoneOutput=((ActionRedstoneFaderOutput)action).level;
      }
 else       if (action instanceof ActionSignalOutput) {
        broadcastSignal.set(((ActionSignalOutput)action).color.ordinal());
      }
 else {
        for (        ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
          TileEntity tile=pipe.container.getTile(side);
          if (tile instanceof IActionReceptor) {
            IActionReceptor recept=(IActionReceptor)tile;
            recept.actionActivated(action);
          }
        }
      }
    }
  }
  pipe.actionsActivated(activeActions);
  if (oldRedstoneOutput != redstoneOutput) {
    if (redstoneOutput == 0 ^ oldRedstoneOutput == 0) {
      pipe.container.scheduleRenderUpdate();
    }
    pipe.updateNeighbors(true);
  }
  if (!prevBroadcastSignal.equals(broadcastSignal)) {
    pipe.container.scheduleRenderUpdate();
    pipe.updateSignalState();
  }
}