nus-yam/ex-repair huggingface dataset:
Program: 73274
Project: 73274
Buggy source:
/** 
 * @throws Exception
 */
public void testBasicIV6() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_filter=false;
  this.PRE_add_sort=false;
  this.PRE_add_group=false;
  this.preBasicIV();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_change_oldbinding=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * @throws Exception
 */
public void testBasicIV6() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_filter=false;
  this.PRE_add_sort=false;
  this.PRE_add_group=false;
  this.preBasicIV();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_change_oldbinding=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}
Program: 73275
Project: 73275
Buggy source:
/** 
 * With group
 * @throws BirtException
 */
public void testBasicIV3() throws Exception {
  this.GEN_add_group=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_sort=true;
  this.PRE_add_group=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * With group
 * @throws BirtException
 */
public void testBasicIV3() throws Exception {
  this.GEN_add_group=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_sort=true;
  this.PRE_add_group=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}
Program: 73276
Project: 73276
Buggy source:
/** 
 * With group and filter
 * @throws BirtException
 */
public void testBasicIV4() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_filter=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * With group and filter
 * @throws BirtException
 */
public void testBasicIV4() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_filter=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}
Program: 73277
Project: 73277
Buggy source:
/** 
 * With filter
 * @throws BirtException
 */
public void testBasicIV2() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * With filter
 * @throws BirtException
 */
public void testBasicIV2() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.closeArchiveReader();
  this.checkOutputFile();
}
Program: 73278
Project: 73278
Buggy source:
/** 
 * Not use detail. Sort when update, then sort+group in presentation.
 * @throws Exception
 */
public void testBasicNotDetail4() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=-1;
  this.UPDATE_add_sort=true;
  this.UPDATE_add_diff_group=false;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=0;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Not use detail. Sort when update, then sort+group in presentation.
 * @throws Exception
 */
public void testBasicNotDetail4() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=-1;
  this.UPDATE_add_sort=true;
  this.UPDATE_add_diff_group=false;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=0;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73279
Project: 73279
Buggy source:
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery6() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery6() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73280
Project: 73280
Buggy source:
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery3() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=1;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery3() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=1;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73281
Project: 73281
Buggy source:
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery5() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery5() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=1;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73282
Project: 73282
Buggy source:
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery4() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=2;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Test the presentation result that based on original filter not updated filter.
 * @throws Exception
 */
public void testSubQuery4() throws Exception {
  this.GEN_add_filter=true;
  this.GEN_add_group=true;
  this.GEN_add_subquery=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_same_group=true;
  this.UPDATE_add_subquery=2;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_group=0;
  this.UPDATE_add_subquery=2;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73283
Project: 73283
Buggy source:
/** 
 * With filter Gen: filter A, Update: filter A, filter B, Presentation: filter A, filter B, filter C
 * @throws BirtException
 */
public void testFilters4() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_sort=true;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_add_filter=2;
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * With filter Gen: filter A, Update: filter A, filter B, Presentation: filter A, filter B, filter C
 * @throws BirtException
 */
public void testFilters4() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=0;
  this.UPDATE_add_sort=true;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_add_filter=2;
  this.PRE_execute_query=true;
  this.PRE_basedon_genfilter=true;
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73284
Project: 73284
Buggy source:
/** 
 * With filter Gen: filter A Update: filter A, filter B Pre: filter A, filter C
 * @throws BirtException
 */
public void testFilters3() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=1;
  this.UPDATE_add_sort=true;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_add_filter=2;
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * With filter Gen: filter A Update: filter A, filter B Pre: filter A, filter C
 * @throws BirtException
 */
public void testFilters3() throws Exception {
  this.GEN_add_filter=true;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=1;
  this.UPDATE_add_sort=true;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_add_filter=2;
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73285
Project: 73285
Buggy source:
/** 
 * Sort when update, then sort+group in presentation.
 * @throws Exception
 */
public void testSortGroup() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=-1;
  this.UPDATE_add_sort=true;
  this.UPDATE_add_diff_group=false;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_PRESENTATION,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=0;
  this.preBasicIV();
  this.checkOutputFile();
}

Fixed version (ground truth):
/** 
 * Sort when update, then sort+group in presentation.
 * @throws Exception
 */
public void testSortGroup() throws Exception {
  this.GEN_add_filter=false;
  this.GEN_add_group=false;
  this.genBasicIV();
  this.closeArchiveWriter();
  DataEngineContext deContext2=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext2);
  this.UPDATE_add_filter=-1;
  this.UPDATE_add_sort=true;
  this.UPDATE_add_diff_group=false;
  this.updatePreBasicIV();
  this.closeArchiveReader();
  this.closeArchiveWriter();
  DataEngineContext deContext3=newContext(DataEngineContext.MODE_UPDATE,fileName,fileName);
  myPreDataEngine=DataEngine.newDataEngine(deContext3);
  this.PRE_execute_query=true;
  this.PRE_add_sort=true;
  this.PRE_add_group=0;
  this.preBasicIV();
  this.checkOutputFile();
}
Program: 73287
Project: 73287
Buggy source:
/** 
 * Build the style of table content
 */
public void buildTableStyle(ITableContent table,StringBuffer styleBuffer){
  addDefaultTableStyles(styleBuffer);
  IStyle style=table.getStyle();
  CSSValue display=style.getProperty(IStyle.STYLE_DISPLAY);
  if (IStyle.NONE_VALUE == display) {
    styleBuffer.append("String_Node_Str");
  }
 else   if (IStyle.INLINE_VALUE == display || IStyle.INLINE_BLOCK_VALUE == display) {
    styleBuffer.append("String_Node_Str");
  }
  DimensionType height=table.getHeight();
  if (null != height) {
    buildSize(styleBuffer,HTMLTags.ATTR_HEIGHT,height);
  }
  DimensionType width=table.getWidth();
  if (null != width) {
    buildSize(styleBuffer,HTMLTags.ATTR_WIDTH,width);
  }
 else {
    styleBuffer.append("String_Node_Str");
  }
  if (HTMLRenderOption.LAYOUT_PREFERENCE_FIXED.equals(layoutPreference)) {
    if (!"String_Node_Str".equalsIgnoreCase(style.getCanShrink())) {
      styleBuffer.append("String_Node_Str");
    }
  }
  style=getElementStyle(table);
  if (style == null) {
    return;
  }
  AttributeBuilder.buildFont(styleBuffer,style);
  AttributeBuilder.buildBox(styleBuffer,style);
  AttributeBuilder.buildBackground(styleBuffer,style,reportEmitter);
  AttributeBuilder.buildText(styleBuffer,style);
  AttributeBuilder.buildVisual(styleBuffer,style);
}

Fixed version (ground truth):
/** 
 * Build the style of table content
 */
public void buildTableStyle(ITableContent table,StringBuffer styleBuffer){
  addDefaultTableStyles(styleBuffer);
  IStyle style=table.getStyle();
  CSSValue display=style.getProperty(IStyle.STYLE_DISPLAY);
  if (IStyle.NONE_VALUE == display) {
    styleBuffer.append("String_Node_Str");
  }
 else   if (IStyle.INLINE_VALUE == display || IStyle.INLINE_BLOCK_VALUE == display) {
    styleBuffer.append("String_Node_Str");
  }
  DimensionType height=table.getHeight();
  if (null != height) {
    buildSize(styleBuffer,HTMLTags.ATTR_HEIGHT,height);
  }
  DimensionType width=table.getWidth();
  if (null != width) {
    buildSize(styleBuffer,HTMLTags.ATTR_WIDTH,width);
  }
 else {
    if (!"String_Node_Str".equalsIgnoreCase(style.getCanShrink())) {
      styleBuffer.append("String_Node_Str");
    }
  }
  if (HTMLRenderOption.LAYOUT_PREFERENCE_FIXED.equals(layoutPreference)) {
    if (!"String_Node_Str".equalsIgnoreCase(style.getCanShrink())) {
      styleBuffer.append("String_Node_Str");
    }
  }
  style=getElementStyle(table);
  if (style == null) {
    return;
  }
  AttributeBuilder.buildFont(styleBuffer,style);
  AttributeBuilder.buildBox(styleBuffer,style);
  AttributeBuilder.buildBackground(styleBuffer,style,reportEmitter);
  AttributeBuilder.buildText(styleBuffer,style);
  AttributeBuilder.buildVisual(styleBuffer,style);
}
Program: 73289
Project: 73289
Buggy source:
/** 
 * @param s
 * @return
 */
private static String cleanDate(String s){
  s=s.trim();
  if (s.indexOf('T') < 12) {
    s=s.replaceFirst("String_Node_Str","String_Node_Str");
  }
  int zoneIndex=s.indexOf("String_Node_Str");
  if (zoneIndex > 0) {
    return s.substring(0,zoneIndex).trim();
  }
  zoneIndex=s.indexOf('Z');
  if (zoneIndex == s.length() - 1) {
    return s.substring(0,zoneIndex).trim();
  }
  zoneIndex=s.indexOf('+');
  if (zoneIndex > 0) {
    return s.substring(0,zoneIndex).trim();
  }
  return s;
}

Fixed version (ground truth):
/** 
 * @param s
 * @return
 */
private static String cleanDate(String s){
  s=s.trim();
  if (s.indexOf('T') < 12) {
    s=s.replaceFirst("String_Node_Str","String_Node_Str");
  }
  int zoneIndex=s.indexOf("String_Node_Str");
  if (zoneIndex > 0) {
    return s.substring(0,zoneIndex).trim();
  }
  zoneIndex=s.indexOf('Z');
  if (zoneIndex == s.length() - 1) {
    return s.substring(0,zoneIndex).trim();
  }
  zoneIndex=getZoneIndex(s);
  if (zoneIndex > 0) {
    return s.substring(0,zoneIndex).trim();
  }
  return s;
}
Program: 73290
Project: 73290
Buggy source:
/** 
 * @param itemType the type of the extended item, i.e., "chart"
 * @return an object that extended items use to handle java event 
 */
public IReportEventHandler createEventHandler(String itemType){
  IConfigurationElement config=(IConfigurationElement)queryExtensions.get(itemType);
  if (config != null) {
    Object object=createObject(config,"String_Node_Str");
    if (object instanceof IReportEventHandler) {
      return (IReportEventHandler)object;
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param itemType the type of the extended item, i.e., "chart"
 * @return an object that extended items use to handle java event 
 */
public IReportEventHandler createEventHandler(String itemType){
  IConfigurationElement config=(IConfigurationElement)eventHandlerExtensions.get(itemType);
  if (config != null) {
    Object object=createObject(config,"String_Node_Str");
    if (object instanceof IReportEventHandler) {
      return (IReportEventHandler)object;
    }
  }
  return null;
}
Program: 73291
Project: 73291
Buggy source:
public void setCurrentView(IDesignElement viewElement) throws SemanticException {
  DesignElementHandle tmpElement=null;
  if (viewElement != null)   tmpElement=((DesignElement)viewElement).handle;
  ((ReportItemHandle)handle).setCurrentView(tmpElement);
}

Fixed version (ground truth):
public void setCurrentView(IDesignElement viewElement) throws SemanticException {
  DesignElementHandle tmpElement=null;
  if (viewElement instanceof MultiRowItem) {
    DesignElement reportItem=(DesignElement)((MultiRowItem)viewElement).getExtensionElement();
    tmpElement=reportItem.handle;
  }
 else   if (viewElement != null) {
    tmpElement=((DesignElement)viewElement).handle;
  }
  ((ReportItemHandle)handle).setCurrentView(tmpElement);
}
Program: 73292
Project: 73292
Buggy source:
protected void visitExtendedItem(ExtendedItemHandle handle){
  String tagName=handle.getExtensionName();
  IReportItemPreparation itemPreparation=ExtensionManager.getInstance().createPreparationItem(tagName);
  if (itemPreparation != null) {
    ReportItemPreparationInfo preparationInfo=new ReportItemPreparationInfo(handle,new PreparationContext(executionContext,this));
    itemPreparation.init(preparationInfo);
    itemPreparation.prepare();
  }
 else {
    ExtendedItemScriptExecutor.handleOnPrepare((ExtendedItemHandle)handle,executionContext);
    Iterator propIter=handle.getPropertyIterator();
    while (propIter.hasNext()) {
      PropertyHandle propHandle=(PropertyHandle)propIter.next();
      IElementPropertyDefn property=propHandle.getPropertyDefn();
      if (property.getTypeCode() == IPropertyType.ELEMENT_TYPE) {
        Object children=propHandle.getValue();
        if (children instanceof List) {
          List tempList=(List)children;
          for (int i=0; tempList != null && i < tempList.size(); i++) {
            Object tempObj=tempList.get(i);
            if (tempObj instanceof ReportItemHandle) {
              apply((ReportItemHandle)tempObj);
            }
          }
        }
 else         if (children instanceof ReportItemHandle) {
          apply((ReportItemHandle)children);
        }
      }
    }
  }
}

Fixed version (ground truth):
protected void visitExtendedItem(ExtendedItemHandle handle){
  String tagName=handle.getExtensionName();
  IReportItemPreparation itemPreparation=ExtensionManager.getInstance().createPreparationItem(tagName);
  if (itemPreparation != null) {
    ReportItemPreparationInfo preparationInfo=new ReportItemPreparationInfo(handle,new PreparationContext(executionContext,this));
    itemPreparation.init(preparationInfo);
    try {
      itemPreparation.prepare();
    }
 catch (    BirtException ex) {
      logger.log(Level.WARNING,"String_Node_Str",ex);
      executionContext.addException(handle,ex);
    }
  }
 else {
    ExtendedItemScriptExecutor.handleOnPrepare((ExtendedItemHandle)handle,executionContext);
    Iterator propIter=handle.getPropertyIterator();
    while (propIter.hasNext()) {
      PropertyHandle propHandle=(PropertyHandle)propIter.next();
      IElementPropertyDefn property=propHandle.getPropertyDefn();
      if (property.getTypeCode() == IPropertyType.ELEMENT_TYPE) {
        Object children=propHandle.getValue();
        if (children instanceof List) {
          List tempList=(List)children;
          for (int i=0; tempList != null && i < tempList.size(); i++) {
            Object tempObj=tempList.get(i);
            if (tempObj instanceof ReportItemHandle) {
              apply((ReportItemHandle)tempObj);
            }
          }
        }
 else         if (children instanceof ReportItemHandle) {
          apply((ReportItemHandle)children);
        }
      }
    }
  }
}
Program: 73293
Project: 73293
Buggy source:
public IContent execute(){
  if (executor != null) {
    getParentResultSet();
    if (executor instanceof ExtendedGenerateExecutor) {
      ExtendedGenerateExecutor gExecutor=(ExtendedGenerateExecutor)executor;
      gExecutor.parent=parent;
      gExecutor.context=context;
      gExecutor.report=report;
      gExecutor.design=design;
    }
    content=executor.execute();
    if (content != null) {
      IContent pContent=(IContent)content.getParent();
      if (pContent == null) {
        pContent=getParentContent();
        content.setParent(pContent);
      }
      InstanceID iid=content.getInstanceID();
      if (iid != null) {
        InstanceID pid=iid.getParentID();
        if (pid == null && pContent != null) {
          pid=pContent.getInstanceID();
        }
        long uid=iid.getUniqueID();
        if (uid == -1) {
          uid=generateUniqueID();
        }
        iid=new InstanceID(pid,uid,iid.getComponentID(),iid.getDataID());
        content.setInstanceID(iid);
      }
 else {
        iid=getInstanceID();
        content.setInstanceID(iid);
      }
      if (context.isInFactory()) {
        handleOnCreate(content);
      }
      startTOCEntry(content);
    }
  }
  return content;
}

Fixed version (ground truth):
public IContent execute(){
  if (executor != null) {
    getParentResultSet();
    if (executor instanceof ExtendedGenerateExecutor) {
      ExtendedGenerateExecutor gExecutor=(ExtendedGenerateExecutor)executor;
      gExecutor.parent=parent;
      gExecutor.context=context;
      gExecutor.report=report;
      gExecutor.design=design;
    }
    content=executor.execute();
    if (content != null) {
      IContent pContent=(IContent)content.getParent();
      if (pContent == null) {
        pContent=getParentContent();
        content.setParent(pContent);
      }
      InstanceID iid=content.getInstanceID();
      if (iid != null) {
        InstanceID pid=iid.getParentID();
        if (pid == null && pContent != null) {
          pid=pContent.getInstanceID();
        }
        long uid=iid.getUniqueID();
        if (uid == -1) {
          uid=generateUniqueID();
        }
        iid=new InstanceID(pid,uid,iid.getComponentID(),iid.getDataID());
        content.setInstanceID(iid);
      }
 else {
        iid=getInstanceID();
        content.setInstanceID(iid);
      }
      if (content.getGenerateBy() == null) {
        if (design == null) {
          long componentId=content.getInstanceID().getComponentID();
          if (componentId != -1) {
            design=(ReportItemDesign)report.getDesign().getReportItemByID(componentId);
          }
        }
        content.setGenerateBy(design);
      }
      if (context.isInFactory()) {
        handleOnCreate(content);
      }
      startTOCEntry(content);
    }
  }
  return content;
}
Program: 73294
Project: 73294
Buggy source:
public void prepare(DesignElementHandle handle);

Fixed version (ground truth):
public void prepare(DesignElementHandle handle) throws BirtException ;
Program: 73295
Project: 73295
Buggy source:
public void prepare();

Fixed version (ground truth):
public void prepare() throws BirtException ;
Program: 73296
Project: 73296
Buggy source:
public void prepare(){
}

Fixed version (ground truth):
public void prepare() throws BirtException {
  context.triggerEvent(handle);
  prepareChildren();
}
Program: 73297
Project: 73297
Buggy source:
public void prepare(DesignElementHandle handle){
  visitor.apply(handle);
}

Fixed version (ground truth):
public void prepare(DesignElementHandle handle) throws BirtException {
  visitor.apply(handle);
}
Program: 73298
Project: 73298
Buggy source:
public void startCell(ICellContent cell){
  if (cellEmitter != null) {
    cellEmitter.startCell(cell);
  }
 else {
    if (!isNestTable()) {
      BufferedReportEmitter buffer=null;
      int colId=cell.getColumn();
      int colSpan=cell.getColSpan();
      int rowSpan=cell.getRowSpan();
      CellDesign cellDesign=(CellDesign)cell.getGenerateBy();
      if (cellDesign != null) {
        String dropType=cellDesign.getDrop();
        if (dropType != null && !"String_Node_Str".equals(dropType)) {
          rowSpan=createDropID(getGroupLevel(),dropType);
        }
      }
      if (!hasDropCell() && (rowSpan < 0 || rowSpan > 1)) {
        layoutEvents.push(new LayoutEvent(LayoutEvent.ON_FIRST_DROP_CELL,new StartInfo(layout.getRowCount() - 1,colId)));
      }
      if (hasDropCell() || rowSpan < 0 || rowSpan > 1) {
        buffer=new BufferedReportEmitter(emitter);
        cellEmitter=buffer;
      }
      createCell(colId,rowSpan,colSpan,new CellContent(cell,buffer));
      if (hasDropCell()) {
        return;
      }
      emitter.startCell(layout.getWrappedCellContent(cell));
    }
 else {
      emitter.startCell(cell);
    }
  }
}

Fixed version (ground truth):
public void startCell(ICellContent cell){
  if (cellEmitter != null) {
    cellEmitter.startCell(cell);
  }
 else {
    if (!isNestTable()) {
      BufferedReportEmitter buffer=null;
      int colId=cell.getColumn();
      int colSpan=cell.getColSpan();
      int rowSpan=cell.getRowSpan();
      if (cell.getGenerateBy() instanceof CellDesign) {
        CellDesign cellDesign=(CellDesign)cell.getGenerateBy();
        if (cellDesign != null) {
          String dropType=cellDesign.getDrop();
          if (dropType != null && !"String_Node_Str".equals(dropType)) {
            rowSpan=createDropID(getGroupLevel(),dropType);
          }
        }
      }
      if (!hasDropCell() && (rowSpan < 0 || rowSpan > 1)) {
        layoutEvents.push(new LayoutEvent(LayoutEvent.ON_FIRST_DROP_CELL,new StartInfo(layout.getRowCount() - 1,colId)));
      }
      if (hasDropCell() || rowSpan < 0 || rowSpan > 1) {
        buffer=new BufferedReportEmitter(emitter);
        cellEmitter=buffer;
      }
      createCell(colId,rowSpan,colSpan,new CellContent(cell,buffer));
      if (hasDropCell()) {
        return;
      }
      emitter.startCell(layout.getWrappedCellContent(cell));
    }
 else {
      emitter.startCell(cell);
    }
  }
}
Program: 73299
Project: 73299
Buggy source:
public static IAction createStackAction(String id,CommandStack stack){
  Assert.isNotNull(id);
  Assert.isNotNull(stack);
  GlobalStackActionEntry entry=(GlobalStackActionEntry)stackActionEntrys.get(stack);
  if (entry == null) {
    entry=new GlobalStackActionEntry(stack);
    stackActionEntrys.put(stack,entry);
  }
  return entry.getAction(id);
}

Fixed version (ground truth):
public static IAction createStackAction(String id,CommandStack stack){
}
Program: 73300
Project: 73300
Buggy source:
public static IAction createSelectionAction(String id,ISelectionProvider provider){
  Assert.isNotNull(id);
  Assert.isNotNull(provider);
  if (COPY.equals(id)) {
    return new GlobalCopyAction(provider);
  }
 else   if (CUT.equals(id)) {
    return new GlobalCutAction(provider);
  }
 else   if (PASTE.equals(id)) {
    return new GlobalPasteAction(provider);
  }
 else   if (DELETE.equals(id)) {
    return new GlobalDeleteAction(provider);
  }
 else   if (NewDataSourceAction.ID.equals(id)) {
    return new NewDataSourceAction();
  }
 else   if (NewDataSetAction.ID.equals(id)) {
    return new NewDataSetAction();
  }
 else   if (NewJointDataSetAction.ID.equals(id)) {
    return new NewJointDataSetAction();
  }
  String elementType=null;
  if (GeneralInsertMenuAction.INSERT_TEXT_ID.equals(id)) {
    elementType=ReportDesignConstants.TEXT_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_LABEL_ID.equals(id)) {
    elementType=ReportDesignConstants.LABEL_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_DATA_ID.equals(id)) {
    elementType=ReportDesignConstants.DATA_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_IMAGE_ID.equals(id)) {
    elementType=ReportDesignConstants.IMAGE_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_GRID_ID.equals(id)) {
    elementType=ReportDesignConstants.GRID_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_LIST_ID.equals(id)) {
    elementType=ReportDesignConstants.LIST_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_TABLE_ID.equals(id)) {
    elementType=ReportDesignConstants.TABLE_ITEM;
  }
 else   if (GeneralInsertMenuAction.INSERT_DYNAMIC_TEXT_ID.equals(id)) {
    elementType=ReportDesignConstants.TEXT_DATA_ITEM;
  }
 else   if (InsertRowAboveAction.ID.equals(id)) {
    return new GlobalInsertRowAction(provider,id,InsertAction.ABOVE);
  }
 else   if (InsertRowBelowAction.ID.equals(id)) {
    return new GlobalInsertRowAction(provider,id,InsertAction.BELOW);
  }
 else   if (NewParameterAction.INSERT_SCALAR_PARAMETER.equals(id)) {
    return new NewParameterAction(id,ReportDesignConstants.SCALAR_PARAMETER_ELEMENT);
  }
 else   if (NewParameterAction.INSERT_CASCADING_PARAMETER_GROUP.equals(id)) {
    return new NewParameterAction(id,ReportDesignConstants.CASCADING_PARAMETER_GROUP_ELEMENT);
  }
 else   if (NewParameterAction.INSERT_PARAMETER_GROUP.equals(id)) {
    return new NewParameterAction(id,ReportDesignConstants.PARAMETER_GROUP_ELEMENT);
  }
 else {
    if (DEUtil.getMetaDataDictionary().getExtension(id) != null) {
      elementType=id;
    }
  }
  if (elementType != null) {
    GlobalInsertAction action=new GlobalInsertAction(provider,id,elementType);
    action.setText(DEUtil.getElementDefn(elementType).getDisplayName());
    return action;
  }
  return null;
}

Fixed version (ground truth):
public static IAction createSelectionAction(String id,ISelectionProvider provider){
}
Program: 73301
Project: 73301
Buggy source:
/** 
 * Constructs the editor with a specified parent.
 * @param parent the parent editor.
 */
public ReportDecoratedScriptEditor(IEditorPart parent){
  this.parent=parent;
  setRulerContextMenuId("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Constructs the editor with a specified parent.
 * @param parent the parent editor.
 */
public ReportDecoratedScriptEditor(IEditorPart parent){
  super(parent);
  setRulerContextMenuId("String_Node_Str");
}
Program: 73302
Project: 73302
Buggy source:
/** 
 * Constructs an script editor with the specified script.
 * @param script the script to edit
 */
public DecoratedScriptEditor(String script){
  super();
  setSourceViewerConfiguration(new ScriptSourceViewerConfiguration(context));
  setDocumentProvider(new ScriptDocumentProvider());
  setScript(script);
}

Fixed version (ground truth):
/** 
 * Constructs a decorated script editor with the specified parent and the specified script.
 * @param parent the parent editor.
 * @param script the script to edit
 */
public DecoratedScriptEditor(IEditorPart parent,String script){
  super();
  this.parent=parent;
  setSourceViewerConfiguration(new ScriptSourceViewerConfiguration(context));
  setDocumentProvider(new ScriptDocumentProvider(parent));
  setScript(script);
}
Program: 73303
Project: 73303
Buggy source:
/** 
 * Creates script editor, dosen't include controller
 * @return a script editor
 */
protected IScriptEditor createScriptEditor(){
  return new ScriptEditor();
}

Fixed version (ground truth):
/** 
 * Creates script editor, dosen't include controller
 * @return a script editor
 */
protected IScriptEditor createScriptEditor(){
  return new ScriptEditor(this);
}
Program: 73304
Project: 73304
Buggy source:
/** 
 * Constructs an script editor with the specified script.
 * @param script the script to edit
 */
public ScriptEditor(String script){
  super();
  setSourceViewerConfiguration(new JSSourceViewerConfiguration(context));
  setDocumentProvider(new JSDocumentProvider());
  setScript(script);
}

Fixed version (ground truth):
/** 
 * Constructs a script editor with the specified parent and the specified script.
 * @param parent the parent editor.
 * @param script the script to edit
 */
public ScriptEditor(IEditorPart parent,String script){
  super();
  this.parent=parent;
  setSourceViewerConfiguration(new JSSourceViewerConfiguration(context));
  setDocumentProvider(new JSDocumentProvider(parent));
  setScript(script);
}
Program: 73305
Project: 73305
Buggy source:
protected void doSaveDocument(IProgressMonitor monitor,Object element,IDocument document,boolean overwrite) throws CoreException {
}

Fixed version (ground truth):
protected void doSaveDocument(IProgressMonitor monitor,Object element,IDocument document,boolean overwrite) throws CoreException {
  if (part != null) {
    part.doSave(monitor);
  }
}
Program: 73306
Project: 73306
Buggy source:
/** 
 * Creates a new document provider.
 */
public DocumentProvider(){
  super();
}

Fixed version (ground truth):
/** 
 * Creates a new document provider with the specified saveable part.
 * @param part the saveable part.
 */
public DocumentProvider(ISaveablePart part){
  super();
  this.part=part;
}
Program: 73307
Project: 73307
Buggy source:
/** 
 * Creates a new document provider.
 */
public StorageDocumentProvider(){
  super();
}

Fixed version (ground truth):
/** 
 * Creates a new document provider with the specified saveable part.
 * @param part the saveable part.
 */
public StorageDocumentProvider(ISaveablePart part){
  super(part);
}
Program: 73309
Project: 73309
Buggy source:
/** 
 * Constructor
 * @param handle The moudle handle
 */
public LibraryHandleAdapter(ModuleHandle handle){
  super(handle);
  setCurrentEditorModel(handle,CURRENTMODEL);
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param handle The moudle handle
 */
public LibraryHandleAdapter(ModuleHandle handle,IModelAdapterHelper mark){
  super(handle,mark);
  setCurrentEditorModel(handle,CURRENTMODEL);
}
Program: 73311
Project: 73311
Buggy source:
public void dispose(){
  if (subBarMap != null) {
    for (Iterator iter=subBarMap.values().iterator(); iter.hasNext(); ) {
      SubActionBarDef def=(SubActionBarDef)iter.next();
      def.dispose();
    }
    subBarMap.clear();
  }
  super.dispose();
}

Fixed version (ground truth):
public void dispose(){
  if (subBarMap != null) {
    for (Iterator iter=subBarMap.values().iterator(); iter.hasNext(); ) {
      SubActionBarDef def=(SubActionBarDef)iter.next();
      def.dispose();
    }
    subBarMap.clear();
  }
  currentActionBarDef.dispose();
  currentActionBarDef=null;
  super.dispose();
}
Program: 73312
Project: 73312
Buggy source:
private void terminated(){
  DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener(this);
  setTerminating(false);
  if (!fTerminated) {
    setTerminated(true);
    reportVM.disconnect();
    fireTerminateEvent();
  }
  breakPoints.clear();
  try {
    if (getLaunch().getLaunchConfiguration().getAttribute(IReportLaunchConstants.ATTR_OPEN_TARGET,false) && getLaunch().getLaunchConfiguration().getAttribute(IReportLaunchConstants.ATTR_TASK_TYPE,IReportLaunchConstants.DEFAULT_TASK_TYPE) != IReportLaunchConstants.TASK_TYPE_RUN) {
      while (!getProcess().isTerminated()) {
        try {
synchronized (this) {
            wait(DELAY_TIME);
          }
        }
 catch (        InterruptedException e) {
        }
      }
      if (getProcess().getExitValue() == ReportLauncher.EXIT_OK) {
        File file=new File(getFileName());
        String fileName=ReportLauncher.getOutputFileName(tempFolder,file.getName(),launch.getLaunchConfiguration().getAttribute(IReportLaunchConstants.ATTR_TARGET_FORMAT,IReportLaunchConstants.DEFAULT_TARGET_FORMAT));
        if (fileName != null && new File(fileName).exists()) {
          Program.launch(fileName);
        }
      }
    }
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
private void terminated(){
  DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener(this);
  setTerminating(false);
  if (!fTerminated) {
    setTerminated(true);
    reportVM.disconnect();
    fireTerminateEvent();
  }
  breakPoints.clear();
}
Program: 73313
Project: 73313
Buggy source:
public void run(VMRunnerConfiguration configuration,ILaunch launch,IProgressMonitor monitor) throws CoreException {
  delegate.run(configuration,launch,monitor);
  IProcess[] ps=launch.getProcesses();
  if (runScript && ps != null && ps.length > 0) {
    if (monitor == null) {
      monitor=new NullProgressMonitor();
    }
    IProgressMonitor subMonitor=new SubProgressMonitor(monitor,1);
    subMonitor.beginTask("String_Node_Str",1);
    ReportVMClient vm=new ReportVMClient();
    ScriptDebugTarget target=new ScriptDebugTarget(launch,vm,null,ps[0],config.helper.requestPort,config.helper.eventPort,config.helper.tempFolder);
    target.setFileName(config.helper.fileName);
    subMonitor.worked(1);
    subMonitor.done();
  }
}

Fixed version (ground truth):
public void run(VMRunnerConfiguration configuration,ILaunch launch,IProgressMonitor monitor) throws CoreException {
  delegate.run(configuration,launch,monitor);
  IProcess[] ps=launch.getProcesses();
  if (runScript && ps != null && ps.length > 0) {
    if (monitor == null) {
      monitor=new NullProgressMonitor();
    }
    IProgressMonitor subMonitor=new SubProgressMonitor(monitor,1);
    subMonitor.beginTask("String_Node_Str",1);
    ReportVMClient vm=new ReportVMClient();
    ScriptDebugTarget target=new ScriptDebugTarget(launch,vm,null,ps[0],config.helper.requestPort,config.helper.eventPort,config.helper.tempFolder);
    target.setFileName(config.helper.fileName);
    subMonitor.worked(1);
    subMonitor.done();
    ReportLaunchHelper.handleProcessTermination(launch,ps[0],config.helper.fileName,config.helper.tempFolder);
  }
}
Program: 73314
Project: 73314
Buggy source:
public void run(){
  result[0]=new Boolean(getParameterValues(getInputParameters(fileName,taskType,engine),paramValues));
}

Fixed version (ground truth):
public void run(){
  try {
    while (!process.isTerminated()) {
      try {
        Thread.sleep(100);
      }
 catch (      InterruptedException e) {
      }
    }
    if (process.getExitValue() == ReportLauncher.EXIT_OK) {
      File file=new File(fileName);
      String openName=ReportLauncher.getOutputFileName(outputFolder,file.getName(),suffix);
      if (openName != null && new File(openName).exists()) {
        Program.launch(openName);
      }
    }
  }
 catch (  Exception e) {
  }
}
Program: 73315
Project: 73315
Buggy source:
protected void init(){
  assert(content instanceof IImageContent);
  image=(IImageContent)content;
  Dimension contentDimension=getSpecifiedDimension(image);
  ImageArea imageArea=(ImageArea)AreaFactory.createImageArea(image);
  imageArea.setWidth(contentDimension.getWidth());
  imageArea.setHeight(contentDimension.getHeight());
  if (PropertyUtil.isInlineElement(image)) {
    root=(ContainerArea)AreaFactory.createInlineContainer(image,true,true);
  }
 else {
    root=(ContainerArea)AreaFactory.createBlockContainer(image);
  }
  root.addChild(imageArea);
  imageArea.setPosition(root.getContentX(),root.getContentY());
  root.setContentWidth(imageArea.getWidth());
  root.setContentHeight(imageArea.getHeight());
  processChartLegend(image,imageArea);
}

Fixed version (ground truth):
protected void init(){
  assert(content instanceof IImageContent);
  image=(IImageContent)content;
  if (PropertyUtil.isInlineElement(image)) {
    root=(ContainerArea)AreaFactory.createInlineContainer(image,true,true);
  }
 else {
    root=(ContainerArea)AreaFactory.createBlockContainer(image);
  }
  root.setAllocatedWidth(parent.getCurrentMaxContentWidth());
  Dimension contentDimension=getSpecifiedDimension(image,root.getContentWidth(),true);
  ImageArea imageArea=(ImageArea)AreaFactory.createImageArea(image);
  imageArea.setWidth(contentDimension.getWidth());
  imageArea.setHeight(contentDimension.getHeight());
  root.addChild(imageArea);
  imageArea.setPosition(root.getContentX(),root.getContentY());
  root.setContentWidth(imageArea.getWidth());
  root.setContentHeight(imageArea.getHeight());
  processChartLegend(image,imageArea);
}