Program: 166054
Project: 166054
Buggy source:
public static void renderLevel(FontRenderer fontRenderer,int xoffset,int currenty,String[] screenData,String label,boolean hidebar,boolean hidetext,boolean showpct,boolean showdiff,int poscolor,int negcolor,int gradient1,int gradient2){
  if (screenData == null) {
    return;
  }
  int maxContents=Integer.parseInt(screenData[1]);
  if (maxContents > 0) {
    if (!hidebar) {
      int contents=Integer.parseInt(screenData[0]);
      int width=80 - xoffset + 7 + 40;
      long value=(long)contents * width / maxContents;
      if (value < 0) {
        value=0;
      }
 else       if (value > width) {
        value=width;
      }
      RenderHelper.drawHorizontalGradientRect(xoffset,currenty,(int)(xoffset + value),currenty + 8,gradient1,gradient2);
    }
  }
  if (!hidetext) {
    if (showdiff) {
      if (screenData[2].startsWith("String_Node_Str")) {
        fontRenderer.drawString(screenData[2] + "String_Node_Str" + label+ "String_Node_Str",xoffset,currenty,negcolor);
      }
 else {
        fontRenderer.drawString("String_Node_Str" + screenData[2] + "String_Node_Str"+ label+ "String_Node_Str",xoffset,currenty,poscolor);
      }
    }
 else     if (maxContents > 0) {
      if (showpct) {
        int contents=Integer.parseInt(screenData[0]);
        long value=(long)contents * 100 / (long)maxContents;
        if (value < 0) {
          value=0;
        }
 else         if (value > 100) {
          value=100;
        }
        fontRenderer.drawString(value + "String_Node_Str",xoffset,currenty,poscolor);
      }
 else {
        fontRenderer.drawString(screenData[0] + label,xoffset,currenty,poscolor);
      }
    }
  }
}

Fixed version (ground truth):
public static void renderLevel(FontRenderer fontRenderer,int xoffset,int currenty,String[] screenData,String label,boolean hidebar,boolean hidetext,boolean showpct,boolean showdiff,int poscolor,int negcolor,int gradient1,int gradient2){
  if (screenData == null) {
    return;
  }
  long maxContents=Long.parseLong(screenData[1]);
  if (maxContents > 0) {
    if (!hidebar) {
      long contents=Long.parseLong(screenData[0]);
      int width=80 - xoffset + 7 + 40;
      long value=contents * width / maxContents;
      if (value < 0) {
        value=0;
      }
 else       if (value > width) {
        value=width;
      }
      RenderHelper.drawHorizontalGradientRect(xoffset,currenty,(int)(xoffset + value),currenty + 8,gradient1,gradient2);
    }
  }
  if (!hidetext) {
    if (showdiff) {
      if (screenData[2].startsWith("String_Node_Str")) {
        fontRenderer.drawString(screenData[2] + "String_Node_Str" + label+ "String_Node_Str",xoffset,currenty,negcolor);
      }
 else {
        fontRenderer.drawString("String_Node_Str" + screenData[2] + "String_Node_Str"+ label+ "String_Node_Str",xoffset,currenty,poscolor);
      }
    }
 else     if (maxContents > 0) {
      if (showpct) {
        long contents=Long.parseLong(screenData[0]);
        long value=contents * 100 / maxContents;
        if (value < 0) {
          value=0;
        }
 else         if (value > 100) {
          value=100;
        }
        fontRenderer.drawString(value + "String_Node_Str",xoffset,currenty,poscolor);
      }
 else {
        fontRenderer.drawString(screenData[0] + label,xoffset,currenty,poscolor);
      }
    }
  }
}