Program: 39470
Project: 39470
Buggy source:
@Test public void responsiveIText() throws IOException, InterruptedException {
  PageSize[] pageSizes={null,new PageSize(PageSize.A3.getHeight(),PageSize.A4.getHeight()),new PageSize(760,PageSize.A4.getHeight()),new PageSize(PageSize.A5.getWidth(),PageSize.A4.getHeight())};
  String htmlSource=sourceFolder + "String_Node_Str";
  for (  PageSize pageSize : pageSizes) {
    Float pxWidth=null;
    if (pageSize != null) {
      pxWidth=CssUtils.parseAbsoluteLength(String.valueOf(pageSize.getWidth()));
    }
    String outName="String_Node_Str" + (pxWidth != null ? "String_Node_Str" + (int)(float)pxWidth : "String_Node_Str") + "String_Node_Str";
    PdfWriter writer=new PdfWriter(destinationFolder + outName);
    PdfDocument pdfDoc=new PdfDocument(writer);
    ConverterProperties converterProperties=new ConverterProperties();
    if (pageSize != null) {
      pdfDoc.setDefaultPageSize(pageSize);
      MediaDeviceDescription mediaDescription=new MediaDeviceDescription(MediaType.SCREEN);
      mediaDescription.setWidth((float)pxWidth);
      converterProperties.setMediaDeviceDescription(mediaDescription);
    }
    HtmlConverter.convertToPdf(new FileInputStream(htmlSource),pdfDoc,converterProperties);
    pdfDoc.close();
  }
  for (  PageSize pageSize : pageSizes) {
    Float pxWidth=null;
    if (pageSize != null) {
      pxWidth=CssUtils.parseAbsoluteLength(String.valueOf(pageSize.getWidth()));
    }
    String outName="String_Node_Str" + (pxWidth != null ? "String_Node_Str" + (int)(float)pxWidth : "String_Node_Str") + "String_Node_Str";
    String cmpName="String_Node_Str" + outName;
    Assert.assertNull(new CompareTool().compareByContent(destinationFolder + outName,sourceFolder + cmpName,destinationFolder,"String_Node_Str"));
  }
}

Fixed version (ground truth):
@Test @Ignore("String_Node_Str") public void responsiveIText() throws IOException, InterruptedException {
  PageSize[] pageSizes={null,new PageSize(PageSize.A3.getHeight(),PageSize.A4.getHeight()),new PageSize(760,PageSize.A4.getHeight()),new PageSize(PageSize.A5.getWidth(),PageSize.A4.getHeight())};
  String htmlSource=sourceFolder + "String_Node_Str";
  for (  PageSize pageSize : pageSizes) {
    Float pxWidth=null;
    if (pageSize != null) {
      pxWidth=CssUtils.parseAbsoluteLength(String.valueOf(pageSize.getWidth()));
    }
    String outName="String_Node_Str" + (pxWidth != null ? "String_Node_Str" + (int)(float)pxWidth : "String_Node_Str") + "String_Node_Str";
    PdfWriter writer=new PdfWriter(destinationFolder + outName);
    PdfDocument pdfDoc=new PdfDocument(writer);
    ConverterProperties converterProperties=new ConverterProperties();
    if (pageSize != null) {
      pdfDoc.setDefaultPageSize(pageSize);
      MediaDeviceDescription mediaDescription=new MediaDeviceDescription(MediaType.SCREEN);
      mediaDescription.setWidth((float)pxWidth);
      converterProperties.setMediaDeviceDescription(mediaDescription);
    }
    HtmlConverter.convertToPdf(new FileInputStream(htmlSource),pdfDoc,converterProperties);
    pdfDoc.close();
  }
  for (  PageSize pageSize : pageSizes) {
    Float pxWidth=null;
    if (pageSize != null) {
      pxWidth=CssUtils.parseAbsoluteLength(String.valueOf(pageSize.getWidth()));
    }
    String outName="String_Node_Str" + (pxWidth != null ? "String_Node_Str" + (int)(float)pxWidth : "String_Node_Str") + "String_Node_Str";
    String cmpName="String_Node_Str" + outName;
    Assert.assertNull(new CompareTool().compareByContent(destinationFolder + outName,sourceFolder + cmpName,destinationFolder,"String_Node_Str"));
  }
}