Program: 108304
Project: 108304
Buggy source:
private Composite build(final Composite parent){
  Composite group=new Composite(parent,SWT.NONE);
  group.setLayoutData(SWTUtil.createFillGridData());
  group.setLayout(SWTUtil.createGridLayout(2));
  GridData gd1=SWTUtil.createFillGridData();
  gd1.grabExcessVerticalSpace=false;
  gd1.grabExcessHorizontalSpace=true;
  gd1.horizontalSpan=2;
  ComponentTitledFolderButton bar=new ComponentTitledFolderButton("String_Node_Str");
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionEnable(getSelectedCriterion());
    }
  }
);
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionPush(getSelectedCriterion());
    }
  }
);
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionPull(getSelectedCriterion());
    }
  }
);
  folder=new ComponentTitledFolder(group,controller,bar,null);
  folder.setLayoutData(gd1);
  Composite item1=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionKAnonymity(item1,controller,model);
  Composite item2=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionDPresence(item2,controller,model);
  Composite item3=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionLDiversity(item3,controller,model);
  Composite item4=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionTCloseness(item4,controller,model);
  folder.setSelection(0);
  folder.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent arg0){
      updateControlls();
    }
  }
);
  enable=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  push=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  pull=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  enable.setEnabled(false);
  push.setEnabled(false);
  pull.setEnabled(false);
  gd1=SWTUtil.createFillGridData();
  gd1.grabExcessVerticalSpace=false;
  gd1.horizontalSpan=2;
  folder2=new ComponentTitledFolder(parent,controller,null,"String_Node_Str");
  folder2.setLayoutData(gd1);
  group=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  group.setLayoutData(SWTUtil.createFillGridData());
  group.setLayout(SWTUtil.createGridLayout(4,false));
  final Label sLabel=new Label(group,SWT.PUSH);
  sLabel.setText(Resources.getMessage("String_Node_Str"));
  labelOutliers=new Label(group,SWT.BORDER | SWT.CENTER);
  GridData d2=new GridData();
  d2.minimumWidth=LABEL_WIDTH;
  d2.widthHint=LABEL_WIDTH;
  d2.heightHint=LABEL_HEIGHT;
  labelOutliers.setLayoutData(d2);
  labelOutliers.setText("String_Node_Str");
  sliderOutliers=new Scale(group,SWT.HORIZONTAL);
  GridData d3=SWTUtil.createFillHorizontallyGridData();
  d3.horizontalSpan=2;
  sliderOutliers.setLayoutData(d3);
  sliderOutliers.setMaximum(SWTUtil.SLIDER_MAX);
  sliderOutliers.setMinimum(0);
  sliderOutliers.setSelection(0);
  sliderOutliers.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getInputConfig().setAllowedOutliers(SWTUtil.sliderToDouble(0d,1d,sliderOutliers.getSelection()));
      labelOutliers.setText(String.valueOf(model.getInputConfig().getAllowedOutliers()));
      if (model.getInputConfig().getAllowedOutliers() != 0) {
        buttonPracticalMonotonicity.setEnabled(true);
      }
 else {
        buttonPracticalMonotonicity.setSelection(false);
        buttonPracticalMonotonicity.setEnabled(false);
        model.getInputConfig().setPracticalMonotonicity(false);
      }
    }
  }
);
  final Label m2Label=new Label(group,SWT.PUSH);
  m2Label.setText(Resources.getMessage("String_Node_Str"));
  d2=new GridData();
  d2.heightHint=LABEL_HEIGHT;
  d2.minimumHeight=LABEL_HEIGHT;
  m2Label.setLayoutData(d2);
  final GridData d82=SWTUtil.createFillHorizontallyGridData();
  d82.horizontalSpan=3;
  buttonPracticalMonotonicity=new Button(group,SWT.CHECK);
  buttonPracticalMonotonicity.setText(Resources.getMessage("String_Node_Str"));
  buttonPracticalMonotonicity.setSelection(false);
  buttonPracticalMonotonicity.setEnabled(false);
  buttonPracticalMonotonicity.setLayoutData(d82);
  buttonPracticalMonotonicity.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getInputConfig().setPracticalMonotonicity(buttonPracticalMonotonicity.getSelection());
    }
  }
);
  final Label sLabel2=new Label(group,SWT.PUSH);
  sLabel2.setText(Resources.getMessage("String_Node_Str"));
  precomputedVariant=new Button(group,SWT.CHECK);
  precomputedVariant.setText(Resources.getMessage("String_Node_Str"));
  precomputedVariant.setSelection(false);
  precomputedVariant.setEnabled(false);
  precomputedVariant.setLayoutData(GridDataFactory.swtDefaults().span(1,1).create());
  precomputedVariant.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getMetricConfiguration().setPrecomputed(precomputedVariant.getSelection());
      if (precomputedVariant.getSelection()) {
        precomputationThreshold.setSelection(SWTUtil.doubleToSlider(0d,1d,model.getMetricConfiguration().getPrecomputationThreshold()));
        precomputationThreshold.setEnabled(true);
        labelThreshold.setText(String.valueOf((model.getMetricConfiguration().getPrecomputationThreshold())));
      }
 else {
        precomputationThreshold.setEnabled(false);
      }
    }
  }
);
  labelThreshold=new Label(group,SWT.BORDER | SWT.CENTER);
  GridData d24=new GridData();
  d24.minimumWidth=LABEL_WIDTH;
  d24.widthHint=LABEL_WIDTH;
  d24.heightHint=LABEL_HEIGHT;
  labelThreshold.setLayoutData(d24);
  labelThreshold.setText("String_Node_Str");
  precomputationThreshold=new Scale(group,SWT.HORIZONTAL);
  precomputationThreshold.setLayoutData(SWTUtil.createFillHorizontallyGridData());
  precomputationThreshold.setMaximum(SWTUtil.SLIDER_MAX);
  precomputationThreshold.setMinimum(0);
  precomputationThreshold.setSelection(0);
  precomputationThreshold.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getMetricConfiguration().setPrecomputationThreshold(SWTUtil.sliderToDouble(0d,1d,precomputationThreshold.getSelection()));
      labelThreshold.setText(String.valueOf(model.getMetricConfiguration().getPrecomputationThreshold()));
    }
  }
);
  Composite composite1=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  composite1.setLayout(new FillLayout());
  new ViewMetric(composite1,controller,folder2);
  Composite c=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  c.setLayout(new FillLayout());
  clv=new ViewCriteriaList(c,controller);
  folder2.setSelection(0);
  return group;
}

Fixed version (ground truth):
private Composite build(final Composite parent){
  Composite group=new Composite(parent,SWT.NONE);
  group.setLayoutData(SWTUtil.createFillGridData());
  group.setLayout(SWTUtil.createGridLayout(2));
  GridData gd1=SWTUtil.createFillGridData();
  gd1.grabExcessVerticalSpace=false;
  gd1.grabExcessHorizontalSpace=true;
  gd1.horizontalSpan=2;
  ComponentTitledFolderButton bar=new ComponentTitledFolderButton("String_Node_Str");
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionEnable(getSelectedCriterion());
    }
  }
);
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionPush(getSelectedCriterion());
    }
  }
);
  bar.add(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"),new Runnable(){
    @Override public void run(){
      controller.actionCriterionPull(getSelectedCriterion());
    }
  }
);
  folder=new ComponentTitledFolder(group,controller,bar,null);
  folder.setLayoutData(gd1);
  Composite item1=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionKAnonymity(item1,controller,model);
  Composite item2=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionDPresence(item2,controller,model);
  Composite item3=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionLDiversity(item3,controller,model);
  Composite item4=folder.createItem(Resources.getMessage("String_Node_Str"),controller.getResources().getImage("String_Node_Str"));
  new ViewCriterionTCloseness(item4,controller,model);
  folder.setSelection(0);
  folder.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent arg0){
      updateControlls();
    }
  }
);
  enable=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  push=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  pull=folder.getButtonItem(Resources.getMessage("String_Node_Str"));
  enable.setEnabled(false);
  push.setEnabled(false);
  pull.setEnabled(false);
  gd1=SWTUtil.createFillGridData();
  gd1.grabExcessVerticalSpace=false;
  gd1.horizontalSpan=2;
  folder2=new ComponentTitledFolder(parent,controller,null,"String_Node_Str");
  folder2.setLayoutData(gd1);
  group=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  group.setLayoutData(SWTUtil.createFillGridData());
  group.setLayout(SWTUtil.createGridLayout(4,false));
  final Label sLabel=new Label(group,SWT.PUSH);
  sLabel.setText(Resources.getMessage("String_Node_Str"));
  Composite outliersBase=new Composite(group,SWT.NONE);
  GridData baseData=SWTUtil.createFillHorizontallyGridData();
  baseData.horizontalSpan=3;
  outliersBase.setLayoutData(baseData);
  outliersBase.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).create());
  labelOutliers=new Label(outliersBase,SWT.BORDER | SWT.CENTER);
  GridData d2=new GridData();
  d2.minimumWidth=LABEL_WIDTH;
  d2.widthHint=LABEL_WIDTH;
  d2.heightHint=LABEL_HEIGHT;
  labelOutliers.setLayoutData(d2);
  labelOutliers.setText("String_Node_Str");
  sliderOutliers=new Scale(outliersBase,SWT.HORIZONTAL);
  sliderOutliers.setLayoutData(SWTUtil.createFillHorizontallyGridData());
  sliderOutliers.setMaximum(SWTUtil.SLIDER_MAX);
  sliderOutliers.setMinimum(0);
  sliderOutliers.setSelection(0);
  sliderOutliers.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getInputConfig().setAllowedOutliers(SWTUtil.sliderToDouble(0d,1d,sliderOutliers.getSelection()));
      labelOutliers.setText(String.valueOf(model.getInputConfig().getAllowedOutliers()));
      if (model.getInputConfig().getAllowedOutliers() != 0) {
        buttonPracticalMonotonicity.setEnabled(true);
      }
 else {
        buttonPracticalMonotonicity.setSelection(false);
        buttonPracticalMonotonicity.setEnabled(false);
        model.getInputConfig().setPracticalMonotonicity(false);
      }
    }
  }
);
  final Label m2Label=new Label(group,SWT.PUSH);
  m2Label.setText(Resources.getMessage("String_Node_Str"));
  d2=new GridData();
  d2.heightHint=LABEL_HEIGHT;
  d2.minimumHeight=LABEL_HEIGHT;
  m2Label.setLayoutData(d2);
  final GridData d82=SWTUtil.createFillHorizontallyGridData();
  d82.horizontalSpan=3;
  buttonPracticalMonotonicity=new Button(group,SWT.CHECK);
  buttonPracticalMonotonicity.setText(Resources.getMessage("String_Node_Str"));
  buttonPracticalMonotonicity.setSelection(false);
  buttonPracticalMonotonicity.setEnabled(false);
  buttonPracticalMonotonicity.setLayoutData(d82);
  buttonPracticalMonotonicity.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getInputConfig().setPracticalMonotonicity(buttonPracticalMonotonicity.getSelection());
    }
  }
);
  final Label sLabel2=new Label(group,SWT.PUSH);
  sLabel2.setText(Resources.getMessage("String_Node_Str"));
  precomputedVariant=new Button(group,SWT.CHECK);
  precomputedVariant.setText(Resources.getMessage("String_Node_Str"));
  precomputedVariant.setSelection(false);
  precomputedVariant.setEnabled(false);
  precomputedVariant.setLayoutData(GridDataFactory.swtDefaults().span(1,1).create());
  precomputedVariant.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getMetricConfiguration().setPrecomputed(precomputedVariant.getSelection());
      if (precomputedVariant.getSelection()) {
        precomputationThreshold.setSelection(SWTUtil.doubleToSlider(0d,1d,model.getMetricConfiguration().getPrecomputationThreshold()));
        precomputationThreshold.setEnabled(true);
        labelThreshold.setText(String.valueOf((model.getMetricConfiguration().getPrecomputationThreshold())));
      }
 else {
        precomputationThreshold.setEnabled(false);
      }
    }
  }
);
  labelThreshold=new Label(group,SWT.BORDER | SWT.CENTER);
  GridData d24=new GridData();
  d24.minimumWidth=LABEL_WIDTH;
  d24.widthHint=LABEL_WIDTH;
  d24.heightHint=LABEL_HEIGHT;
  labelThreshold.setLayoutData(d24);
  labelThreshold.setText("String_Node_Str");
  precomputationThreshold=new Scale(group,SWT.HORIZONTAL);
  precomputationThreshold.setLayoutData(SWTUtil.createFillHorizontallyGridData());
  precomputationThreshold.setMaximum(SWTUtil.SLIDER_MAX);
  precomputationThreshold.setMinimum(0);
  precomputationThreshold.setSelection(0);
  precomputationThreshold.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent arg0){
      model.getMetricConfiguration().setPrecomputationThreshold(SWTUtil.sliderToDouble(0d,1d,precomputationThreshold.getSelection()));
      labelThreshold.setText(String.valueOf(model.getMetricConfiguration().getPrecomputationThreshold()));
    }
  }
);
  Composite composite1=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  composite1.setLayout(new FillLayout());
  new ViewMetric(composite1,controller,folder2);
  Composite c=folder2.createItem(Resources.getMessage("String_Node_Str"),null);
  c.setLayout(new FillLayout());
  clv=new ViewCriteriaList(c,controller);
  folder2.setSelection(0);
  return group;
}