Program: 120384
Project: 120384
Buggy source:
private void initMRFigures(){
  Integer mrCount=this.jobletContainer.getNode().getMrJobInGroupCount();
  if (!jobletContainer.getNode().isMapReduceStart()) {
    return;
  }
  if (this.jobletContainer.getNode().getMrGroupId() == null) {
    return;
  }
  if (mrCount == null) {
    mrCount=1;
  }
  Image image=ImageProvider.getImage(ECoreImage.MRGREEBAR);
  int progressHeight=image.getBounds().height;
  int progressWidth=image.getBounds().width;
  if (mrCount != null) {
    for (int i=0; i < mrCount; i++) {
      SimpleHtmlFigure progressMap=new SimpleHtmlFigure();
      progressMap.setOpaque(false);
      Label mapTip=new Label();
      mapTip.setText("String_Node_Str");
      progressMap.setToolTip(mapTip);
      progressMap.setLayoutManager(new ToolbarLayout(true));
      progressMap.setVisible(false);
      SimpleHtmlFigure mapTitle=new SimpleHtmlFigure();
      mapTitle.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
      mapTitle.setOpaque(false);
      mapTitle.setBackgroundColor(ColorUtils.getCacheColor(mrGroupColor));
      mapTitle.setForegroundColor(ColorUtils.getCacheColor(mrGroupColor));
      RectangleFigure mapGreen=new RectangleFigure();
      mapGreen.setSize(progressWidth,progressHeight);
      mapGreen.setPreferredSize(progressWidth,progressHeight + 5);
      mapGreen.setBorder(new LineBorder(ColorConstants.black,1));
      mapGreen.setLayoutManager(new ToolbarLayout(true));
      mapGreen.setLocation(new Point(progressMap.getLocation().x + mapTitle.getPreferredSize().width,progressMap.getLocation().y));
      mapGreen.setVisible(true);
      mapGreen.setOpaque(true);
      progressMap.add(mapTitle,0);
      progressMap.add(mapGreen,1);
      progressMap.setSize(mapTitle.getPreferredSize().width + mapGreen.getPreferredSize().width,progressHeight + 2);
      progressMap.setPreferredSize(mapTitle.getPreferredSize().width + mapGreen.getPreferredSize().width,progressHeight + 2);
      mrFigures.put("String_Node_Str" + i,progressMap);
      SimpleHtmlFigure progressReduce=new SimpleHtmlFigure();
      progressReduce.setOpaque(false);
      Label reduceTip=new Label();
      reduceTip.setText("String_Node_Str");
      progressReduce.setToolTip(reduceTip);
      progressReduce.setLayoutManager(new ToolbarLayout(true));
      progressReduce.setVisible(false);
      SimpleHtmlFigure reduceTitle=new SimpleHtmlFigure();
      reduceTitle.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
      reduceTitle.setOpaque(false);
      reduceTitle.setBackgroundColor(ColorUtils.getCacheColor(mrGroupColor));
      reduceTitle.setForegroundColor(ColorUtils.getCacheColor(mrGroupColor));
      RectangleFigure reduceGreen=new RectangleFigure();
      reduceGreen.setSize(progressWidth,progressHeight);
      reduceGreen.setPreferredSize(progressWidth,progressHeight + 5);
      reduceGreen.setBorder(new LineBorder(ColorConstants.black,1));
      reduceGreen.setLayoutManager(new ToolbarLayout(true));
      reduceGreen.setLocation(new Point(progressReduce.getLocation().x + reduceTitle.getPreferredSize().width,progressReduce.getLocation().y));
      reduceGreen.setVisible(true);
      reduceGreen.setOpaque(true);
      progressReduce.add(reduceTitle,0);
      progressReduce.add(reduceGreen,1);
      progressReduce.setSize(reduceTitle.getPreferredSize().width + reduceGreen.getPreferredSize().width,progressHeight + 2);
      progressReduce.setPreferredSize(reduceTitle.getPreferredSize().width + reduceGreen.getPreferredSize().width,progressHeight + 2);
      mrFigures.put("String_Node_Str" + i,progressReduce);
    }
  }
}

Fixed version (ground truth):
private void initMRFigures(){
  Integer mrCount=this.jobletContainer.getNode().getMrJobInGroupCount();
  if (!jobletContainer.getNode().isMapReduceStart()) {
    return;
  }
  if (this.jobletContainer.getNode().getMrGroupId() == null) {
    return;
  }
  if (mrCount == null) {
    mrCount=1;
  }
  Image image=ImageProvider.getImage(ECoreImage.MRGREEBAR);
  int progressHeight=image.getBounds().height;
  int progressWidth=image.getBounds().width;
  if (mrCount != null) {
    for (int i=0; i < mrCount; i++) {
      SimpleHtmlFigure progressMap=new SimpleHtmlFigure();
      progressMap.setOpaque(false);
      Label mapTip=new Label();
      mapTip.setText("String_Node_Str");
      progressMap.setToolTip(mapTip);
      progressMap.setLayoutManager(new ToolbarLayout(true));
      progressMap.setVisible(false);
      SimpleHtmlFigure mapTitle=new SimpleHtmlFigure();
      mapTitle.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
      mapTitle.setOpaque(false);
      mapTitle.setBackgroundColor(ColorUtils.getCacheColor(mrGroupColor));
      mapTitle.setForegroundColor(ColorUtils.getCacheColor(mrGroupColor));
      RectangleFigure mapGreen=new RectangleFigure();
      mapGreen.setSize(progressWidth,progressHeight);
      mapGreen.setPreferredSize(progressWidth,progressHeight + 5);
      mapGreen.setBorder(new LineBorder(ColorConstants.black,1));
      mapGreen.setLayoutManager(new ToolbarLayout(true));
      mapGreen.setLocation(new Point(progressMap.getLocation().x + mapTitle.getPreferredSize().width,progressMap.getLocation().y));
      mapGreen.setOpaque(true);
      mapGreen.setAlpha(255);
      mapGreen.setVisible(true);
      progressMap.add(mapTitle,0);
      progressMap.add(mapGreen,1);
      progressMap.setSize(mapTitle.getPreferredSize().width + mapGreen.getPreferredSize().width,progressHeight + 2);
      progressMap.setPreferredSize(mapTitle.getPreferredSize().width + mapGreen.getPreferredSize().width,progressHeight + 2);
      mrFigures.put("String_Node_Str" + i,progressMap);
      SimpleHtmlFigure progressReduce=new SimpleHtmlFigure();
      progressReduce.setOpaque(false);
      Label reduceTip=new Label();
      reduceTip.setText("String_Node_Str");
      progressReduce.setToolTip(reduceTip);
      progressReduce.setLayoutManager(new ToolbarLayout(true));
      progressReduce.setVisible(false);
      SimpleHtmlFigure reduceTitle=new SimpleHtmlFigure();
      reduceTitle.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
      reduceTitle.setOpaque(false);
      reduceTitle.setBackgroundColor(ColorUtils.getCacheColor(mrGroupColor));
      reduceTitle.setForegroundColor(ColorUtils.getCacheColor(mrGroupColor));
      RectangleFigure reduceGreen=new RectangleFigure();
      reduceGreen.setSize(progressWidth,progressHeight);
      reduceGreen.setPreferredSize(progressWidth,progressHeight + 5);
      reduceGreen.setBorder(new LineBorder(ColorConstants.black,1));
      reduceGreen.setLayoutManager(new ToolbarLayout(true));
      reduceGreen.setLocation(new Point(progressReduce.getLocation().x + reduceTitle.getPreferredSize().width,progressReduce.getLocation().y));
      reduceGreen.setOpaque(true);
      reduceGreen.setAlpha(255);
      reduceGreen.setVisible(true);
      progressReduce.add(reduceTitle,0);
      progressReduce.add(reduceGreen,1);
      progressReduce.setSize(reduceTitle.getPreferredSize().width + reduceGreen.getPreferredSize().width,progressHeight + 2);
      progressReduce.setPreferredSize(reduceTitle.getPreferredSize().width + reduceGreen.getPreferredSize().width,progressHeight + 2);
      mrFigures.put("String_Node_Str" + i,progressReduce);
    }
  }
}