Program: 56528
Project: 56528
Buggy source:
@Override public NImporter createImporter(){
  return new AbstractImporter(){
    @Override public NBook imports(    InputStream is,    String bookName) throws IOException {
      NBook book=NBooks.createBook(bookName);
      buildChartSheet(book);
      buildNormalSheet(book);
      buildFreeze(book);
      return book;
    }
    private void buildFreeze(    NBook book){
      NSheet sheet=book.createSheet("String_Node_Str");
      sheet.getViewInfo().setNumOfColumnFreeze(5);
      sheet.getViewInfo().setNumOfRowFreeze(7);
      sheet.addPicture(Format.JPG,getTestImageData(),new NViewAnchor(3,3,600,300));
    }
    private void buildChartSheet(    NBook book){
      NSheet sheet=book.createSheet("String_Node_Str");
      sheet.getViewInfo().setNumOfRowFreeze(6);
      sheet.getCell(0,0).setValue("String_Node_Str");
      sheet.getCell(1,0).setValue("String_Node_Str");
      sheet.getCell(2,0).setValue("String_Node_Str");
      sheet.getCell(3,0).setValue("String_Node_Str");
      sheet.getCell(1,1).setValue(1);
      sheet.getCell(2,1).setValue(2);
      sheet.getCell(3,1).setValue(3);
      sheet.getCell(1,2).setValue(4);
      sheet.getCell(2,2).setValue(5);
      sheet.getCell(3,2).setValue(6);
      sheet.getCell(1,3).setValue(7);
      sheet.getCell(2,3).setValue(8);
      sheet.getCell(3,3).setValue(9);
      NChart chart=sheet.addChart(NChartType.PIE,new NViewAnchor(1,7,300,200));
      buildChartData(chart);
      chart.setLegendPosition(NChartLegendPosition.RIGHT);
      chart=sheet.addChart(NChartType.PIE,new NViewAnchor(1,12,400,200));
      buildChartData(chart);
      chart.setTitle("String_Node_Str");
      chart.setThreeD(true);
    }
    private void buildChartData(    NChart chart){
      NCategoryChartData data=(NCategoryChartData)chart.getData();
      data.setCategoriesFormula("String_Node_Str");
      NSeries series=data.addSeries();
      series.setFormula("String_Node_Str","String_Node_Str",null);
      series=data.addSeries();
      series.setFormula("String_Node_Str","String_Node_Str",null);
      series=data.addSeries();
      series.setFormula(null,"String_Node_Str",null);
    }
    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));
    }
    private byte[] getTestImageData(){
      InputStream is=null;
      try {
        is=getClass().getResourceAsStream("String_Node_Str");
        ByteArrayOutputStream os=new ByteArrayOutputStream();
        byte[] b=new byte[1024];
        int r;
        while ((r=is.read(b)) != -1) {
          os.write(b,0,r);
        }
        return os.toByteArray();
      }
 catch (      IOException e) {
        throw new RuntimeException(e.getMessage(),e);
      }
 finally {
        if (is != null) {
          try {
            is.close();
          }
 catch (          IOException e) {
          }
        }
      }
    }
  }
;
}

Fixed version (ground truth):
@Override public NImporter createImporter(){
  return new AbstractImporter(){
    @Override public NBook imports(    InputStream is,    String bookName) throws IOException {
      NBook book=NBooks.createBook(bookName);
      buildChartSheet(book);
      buildNormalSheet(book);
      buildFreeze(book);
      return book;
    }
    private void buildFreeze(    NBook book){
      NSheet sheet=book.createSheet("String_Node_Str");
      sheet.getViewInfo().setNumOfColumnFreeze(5);
      sheet.getViewInfo().setNumOfRowFreeze(7);
      sheet.addPicture(Format.JPG,getTestImageData(),new NViewAnchor(3,3,600,300));
    }
    private void buildChartSheet(    NBook book){
      NSheet sheet=book.createSheet("String_Node_Str");
      sheet.getViewInfo().setNumOfRowFreeze(6);
      sheet.getCell(0,0).setValue("String_Node_Str");
      sheet.getCell(1,0).setValue("String_Node_Str");
      sheet.getCell(2,0).setValue("String_Node_Str");
      sheet.getCell(3,0).setValue("String_Node_Str");
      sheet.getCell(1,1).setValue(1);
      sheet.getCell(2,1).setValue(2);
      sheet.getCell(3,1).setValue(3);
      sheet.getCell(1,2).setValue(4);
      sheet.getCell(2,2).setValue(5);
      sheet.getCell(3,2).setValue(6);
      sheet.getCell(1,3).setValue(7);
      sheet.getCell(2,3).setValue(8);
      sheet.getCell(3,3).setValue(9);
      NChart chart=sheet.addChart(NChartType.PIE,new NViewAnchor(1,7,300,200));
      buildChartData(chart);
      chart.setLegendPosition(NChartLegendPosition.RIGHT);
      chart=sheet.addChart(NChartType.PIE,new NViewAnchor(1,12,400,200));
      buildChartData(chart);
      chart.setTitle("String_Node_Str");
      chart.setThreeD(true);
    }
    private void buildChartData(    NChart chart){
      NCategoryChartData data=(NCategoryChartData)chart.getData();
      data.setCategoriesFormula("String_Node_Str");
      NSeries series=data.addSeries();
      series.setFormula("String_Node_Str","String_Node_Str",null);
      series=data.addSeries();
      series.setFormula("String_Node_Str","String_Node_Str",null);
      series=data.addSeries();
      series.setFormula(null,"String_Node_Str",null);
    }
    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");
    }
    private byte[] getTestImageData(){
      InputStream is=null;
      try {
        is=getClass().getResourceAsStream("String_Node_Str");
        ByteArrayOutputStream os=new ByteArrayOutputStream();
        byte[] b=new byte[1024];
        int r;
        while ((r=is.read(b)) != -1) {
          os.write(b,0,r);
        }
        return os.toByteArray();
      }
 catch (      IOException e) {
        throw new RuntimeException(e.getMessage(),e);
      }
 finally {
        if (is != null) {
          try {
            is.close();
          }
 catch (          IOException e) {
          }
        }
      }
    }
  }
;
}