Program: 157028
Project: 157028
Buggy source:
@Override public void updateEntity(){
  if (APIProxy.isClient(worldObj))   return;
  step();
  TileEntity tiles[]=new TileEntity[6];
  for (int i=0; i < 6; ++i)   if (Utils.checkPipesConnections(container.getTile(Orientations.values()[i]),container))   tiles[i]=container.getTile(Orientations.values()[i]);
  displayPower=new short[]{0,0,0,0,0,0};
  for (int i=0; i < 6; ++i)   if (internalPower[i] > 0) {
    double div=0;
    for (int j=0; j < 6; ++j)     if (j != i && powerQuery[j] > 0)     if (tiles[j] instanceof TileGenericPipe || tiles[j] instanceof IPowerReceptor)     div+=powerQuery[j];
    double totalWatt=internalPower[i];
    for (int j=0; j < 6; ++j)     if (j != i && powerQuery[j] > 0) {
      double watts=(totalWatt / div * powerQuery[j]);
      if (tiles[j] instanceof TileGenericPipe) {
        TileGenericPipe nearbyTile=(TileGenericPipe)tiles[j];
        PipeTransportPower nearbyTransport=(PipeTransportPower)nearbyTile.pipe.transport;
        nearbyTransport.receiveEnergy(Orientations.values()[j].reverse(),watts);
        displayPower[j]+=watts / 2F;
        displayPower[i]+=watts / 2F;
        internalPower[i]-=watts;
      }
 else       if (tiles[j] instanceof IPowerReceptor) {
        IPowerReceptor pow=(IPowerReceptor)tiles[j];
        pow.getPowerProvider().receiveEnergy((float)watts,Orientations.values()[j].reverse());
        displayPower[j]+=watts / 2F;
        displayPower[i]+=watts / 2F;
        internalPower[i]-=watts;
      }
    }
  }
  for (int i=0; i < 6; ++i)   if (tiles[i] instanceof IPowerReceptor && !(tiles[i] instanceof TileGenericPipe)) {
    IPowerReceptor receptor=(IPowerReceptor)tiles[i];
    int request=receptor.powerRequest();
    if (request > 0)     requestEnergy(Orientations.values()[i],request);
  }
  int transferQuery[]={0,0,0,0,0,0};
  for (int i=0; i < 6; ++i) {
    transferQuery[i]=0;
    for (int j=0; j < 6; ++j)     if (j != i)     transferQuery[i]+=powerQuery[j];
  }
  for (int i=0; i < 6; ++i)   if (transferQuery[i] != 0)   if (tiles[i] != null) {
    TileEntity entity=tiles[i];
    if (entity instanceof TileGenericPipe) {
      TileGenericPipe nearbyTile=(TileGenericPipe)entity;
      PipeTransportPower nearbyTransport=(PipeTransportPower)nearbyTile.pipe.transport;
      nearbyTransport.requestEnergy(Orientations.values()[i].reverse(),transferQuery[i]);
    }
  }
  if (APIProxy.isServerSide())   if (tracker.markTimeIfDelay(worldObj,2 * BuildCraftCore.updateFactor))   CoreProxy.sendToPlayers(this.container.getUpdatePacket(),xCoord,yCoord,zCoord,40,mod_BuildCraftCore.instance);
}

Fixed version (ground truth):
@Override public void updateEntity(){
  if (APIProxy.isClient(worldObj))   return;
  step();
  TileEntity tiles[]=new TileEntity[6];
  for (int i=0; i < 6; ++i)   if (Utils.checkPipesConnections(container.getTile(Orientations.values()[i]),container))   tiles[i]=container.getTile(Orientations.values()[i]);
  displayPower=new short[]{0,0,0,0,0,0};
  for (int i=0; i < 6; ++i)   if (internalPower[i] > 0) {
    double div=0;
    for (int j=0; j < 6; ++j)     if (j != i && powerQuery[j] > 0)     if (tiles[j] instanceof TileGenericPipe || tiles[j] instanceof IPowerReceptor)     div+=powerQuery[j];
    double totalWatt=internalPower[i];
    for (int j=0; j < 6; ++j)     if (j != i && powerQuery[j] > 0) {
      double watts=(totalWatt / div * powerQuery[j]);
      if (tiles[j] instanceof TileGenericPipe) {
        TileGenericPipe nearbyTile=(TileGenericPipe)tiles[j];
        PipeTransportPower nearbyTransport=(PipeTransportPower)nearbyTile.pipe.transport;
        nearbyTransport.receiveEnergy(Orientations.values()[j].reverse(),watts);
        displayPower[j]+=watts / 2F;
        displayPower[i]+=watts / 2F;
        internalPower[i]-=watts;
      }
 else       if (tiles[j] instanceof IPowerReceptor) {
        IPowerReceptor pow=(IPowerReceptor)tiles[j];
        pow.getPowerProvider().receiveEnergy((float)watts,Orientations.values()[j].reverse());
        displayPower[j]+=watts / 2F;
        displayPower[i]+=watts / 2F;
        internalPower[i]-=watts;
      }
    }
  }
  for (int i=0; i < 6; ++i)   if (tiles[i] instanceof IPowerReceptor && !(tiles[i] instanceof TileGenericPipe)) {
    IPowerReceptor receptor=(IPowerReceptor)tiles[i];
    int request=receptor.powerRequest();
    if (request > 0)     requestEnergy(Orientations.values()[i],request);
  }
  int transferQuery[]={0,0,0,0,0,0};
  for (int i=0; i < 6; ++i) {
    transferQuery[i]=0;
    for (int j=0; j < 6; ++j)     if (j != i)     transferQuery[i]+=powerQuery[j];
  }
  for (int i=0; i < 6; ++i)   if (transferQuery[i] != 0)   if (tiles[i] != null) {
    TileEntity entity=tiles[i];
    if (entity instanceof TileGenericPipe) {
      TileGenericPipe nearbyTile=(TileGenericPipe)entity;
      PipeTransportPower nearbyTransport=(PipeTransportPower)nearbyTile.pipe.transport;
      nearbyTransport.requestEnergy(Orientations.values()[i].reverse(),transferQuery[i]);
    }
  }
  if (APIProxy.isServerSide())   if (tracker.markTimeIfDelay(worldObj,2 * BuildCraftCore.updateFactor))   CoreProxy.sendToPlayers(this.container.getUpdatePacket(),worldObj,xCoord,yCoord,zCoord,40,mod_BuildCraftCore.instance);
}