Program: 56527
Project: 56527
Buggy source:
private void buildNormalSheet(NBook book){
  NSheet sheet=book.createSheet("String_Node_Str");
  sheet.getColumn(0).setWidth(120);
  sheet.getColumn(1).setWidth(120);
  sheet.getColumn(2).setWidth(120);
  sheet.getColumn(3).setWidth(120);
  sheet.getColumn(4).setWidth(120);
  sheet.getColumn(5).setWidth(120);
  sheet.getColumn(6).setWidth(120);
  sheet.getCell(0,11).setStringValue("String_Node_Str");
  sheet.getColumn(12).setHidden(true);
  sheet.getColumn(14).setHidden(true);
  sheet.getCell(15,0).setStringValue("String_Node_Str");
  sheet.getRow(16).setHidden(true);
  sheet.getRow(18).setHidden(true);
  NCellStyle style;
  NCell cell;
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date now=new Date();
  Date dayonly=null;
  try {
    dayonly=sdf.parse(sdf.format(now));
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  (cell=sheet.getCell(0,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(0,1)).setValue(123.45);
  (cell=sheet.getCell(0,2)).setValue(now);
  (cell=sheet.getCell(0,3)).setValue(Boolean.TRUE);
  (cell=sheet.getCell(1,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(1,1)).setValue(33);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,2)).setValue(44.55);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,3)).setValue(77.88);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,4)).setValue(-77.88);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(2,1)).setValue(dayonly);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,2)).setValue(dayonly);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,3)).setValue(now);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,4)).setValue(now);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(3,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(3,1)).setNumberValue(1D);
  (cell=sheet.getCell(3,2)).setNumberValue(2D);
  (cell=sheet.getCell(3,3)).setNumberValue(3D);
  (cell=sheet.getCell(3,4)).setFormulaValue("String_Node_Str");
  (cell=sheet.getCell(4,0)).setStringValue("String_Node_Str");
  (cell=sheet.getCell(5,0)).setStringValue("String_Node_Str");
  sheet.addMergedRegion(new CellRegion(5,0,5,2));
  (cell=sheet.getCell(5,3)).setStringValue("String_Node_Str");
  sheet.addMergedRegion(new CellRegion(5,3,6,4));
  cell=sheet.getCell(9,6);
  cell.setStringValue("String_Node_Str");
  style=book.createCellStyle(true);
  style.setFont(book.createFont(true));
  style.getFont().setColor(book.createColor("String_Node_Str"));
  style.getFont().setHeightPoints(16);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getColumn(6).setWidth(150);
  sheet.getRow(9).setHeight(100);
  style.setAlignment(Alignment.RIGHT);
  style.setVerticalAlignment(VerticalAlignment.CENTER);
  style.setBorderTop(BorderType.THIN);
  style.setBorderBottom(BorderType.THIN);
  style.setBorderLeft(BorderType.THIN);
  style.setBorderRight(BorderType.THIN);
  style.setBorderTopColor(book.createColor("String_Node_Str"));
  style.setBorderBottomColor(book.createColor("String_Node_Str"));
  style.setBorderLeftColor(book.createColor("String_Node_Str"));
  style.setBorderRightColor(book.createColor("String_Node_Str"));
  cell.setCellStyle(style);
  style=book.createCellStyle(true);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getRow(17).setCellStyle(style);
  sheet.getCell(17,0).setStringValue("String_Node_Str");
  style=book.createCellStyle(true);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getColumn(17).setCellStyle(style);
  sheet.getColumn(17).setWidth(100);
  sheet.getCell(0,17).setStringValue("String_Node_Str");
  sheet.addPicture(Format.JPG,getTestImageData(),new NViewAnchor(12,3,30,5,600,300));
}

Fixed version (ground truth):
private void buildNormalSheet(NBook book){
  NSheet sheet=book.createSheet("String_Node_Str");
  sheet.getColumn(0).setWidth(120);
  sheet.getColumn(1).setWidth(120);
  sheet.getColumn(2).setWidth(120);
  sheet.getColumn(3).setWidth(120);
  sheet.getColumn(4).setWidth(120);
  sheet.getColumn(5).setWidth(120);
  sheet.getColumn(6).setWidth(120);
  sheet.getCell(0,11).setStringValue("String_Node_Str");
  sheet.getColumn(12).setHidden(true);
  sheet.getColumn(14).setHidden(true);
  sheet.getCell(15,0).setStringValue("String_Node_Str");
  sheet.getRow(16).setHidden(true);
  sheet.getRow(18).setHidden(true);
  NCellStyle style;
  NCell cell;
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date now=new Date();
  Date dayonly=null;
  try {
    dayonly=sdf.parse(sdf.format(now));
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  (cell=sheet.getCell(0,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(0,1)).setValue(123.45);
  (cell=sheet.getCell(0,2)).setValue(now);
  (cell=sheet.getCell(0,3)).setValue(Boolean.TRUE);
  (cell=sheet.getCell(1,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(1,1)).setValue(33);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,2)).setValue(44.55);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,3)).setValue(77.88);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(1,4)).setValue(-77.88);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(2,1)).setValue(dayonly);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,2)).setValue(dayonly);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,3)).setValue(now);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(2,4)).setValue(now);
  style=book.createCellStyle(true);
  style.setDataFormat("String_Node_Str");
  cell.setCellStyle(style);
  (cell=sheet.getCell(3,0)).setValue("String_Node_Str");
  (cell=sheet.getCell(3,1)).setNumberValue(1D);
  (cell=sheet.getCell(3,2)).setNumberValue(2D);
  (cell=sheet.getCell(3,3)).setNumberValue(3D);
  (cell=sheet.getCell(3,4)).setFormulaValue("String_Node_Str");
  (cell=sheet.getCell(4,0)).setStringValue("String_Node_Str");
  (cell=sheet.getCell(5,0)).setStringValue("String_Node_Str");
  sheet.addMergedRegion(new CellRegion(5,0,5,2));
  (cell=sheet.getCell(5,3)).setStringValue("String_Node_Str");
  sheet.addMergedRegion(new CellRegion(5,3,6,4));
  cell=sheet.getCell(9,6);
  cell.setStringValue("String_Node_Str");
  style=book.createCellStyle(true);
  style.setFont(book.createFont(true));
  style.getFont().setColor(book.createColor("String_Node_Str"));
  style.getFont().setHeightPoints(16);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getColumn(6).setWidth(150);
  sheet.getRow(9).setHeight(100);
  style.setAlignment(Alignment.RIGHT);
  style.setVerticalAlignment(VerticalAlignment.CENTER);
  style.setBorderTop(BorderType.THIN);
  style.setBorderBottom(BorderType.THIN);
  style.setBorderLeft(BorderType.THIN);
  style.setBorderRight(BorderType.THIN);
  style.setBorderTopColor(book.createColor("String_Node_Str"));
  style.setBorderBottomColor(book.createColor("String_Node_Str"));
  style.setBorderLeftColor(book.createColor("String_Node_Str"));
  style.setBorderRightColor(book.createColor("String_Node_Str"));
  cell.setCellStyle(style);
  style=book.createCellStyle(true);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getRow(17).setCellStyle(style);
  sheet.getCell(17,0).setStringValue("String_Node_Str");
  style=book.createCellStyle(true);
  style.setFillPattern(FillPattern.SOLID_FOREGROUND);
  style.setFillColor(book.createColor("String_Node_Str"));
  sheet.getColumn(17).setCellStyle(style);
  sheet.getColumn(17).setWidth(100);
  sheet.getCell(0,17).setStringValue("String_Node_Str");
  sheet.addPicture(Format.JPG,getTestImageData(),new NViewAnchor(12,3,30,5,600,300));
  sheet=book.createSheet("String_Node_Str");
  sheet.getCell(0,0).setValue("String_Node_Str");
}