Program: 133597
Project: 133597
Buggy source:
@Override protected void setupForm(){
  String line1="String_Node_Str";
  String line2="String_Node_Str";
  String line3="String_Node_Str";
  String line4="String_Node_Str";
  String line5="String_Node_Str";
  String allLines=line1 + line2 + line3+ line4+ line5;
  ByteArrayInputStream stream=new ByteArrayInputStream(allLines.getBytes());
  super.setupForm();
  DataComponent paramComponent=new DataComponent();
  paramComponent.setDescription("String_Node_Str");
  paramComponent.setName("String_Node_Str");
  paramComponent.setId(paramsCompId);
  form.addComponent(paramComponent);
  Entry fileEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.File;
      return;
    }
  }
;
  fileEntry.setId(1);
  fileEntry.setName(WaveEntryName);
  fileEntry.setDescription("String_Node_Str");
  paramComponent.addEntry(fileEntry);
  Entry numLayersEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  numLayersEntry.setId(2);
  numLayersEntry.setName(RoughnessEntryName);
  numLayersEntry.setDescription("String_Node_Str" + "String_Node_Str");
  paramComponent.addEntry(numLayersEntry);
  Entry deltaQ0Entry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  deltaQ0Entry.setId(3);
  deltaQ0Entry.setName(deltaQ0EntryName);
  deltaQ0Entry.setDescription("String_Node_Str");
  paramComponent.addEntry(deltaQ0Entry);
  Entry deltaQ1Entry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  deltaQ1Entry.setId(4);
  deltaQ1Entry.setName(deltaQ1ByQEntryName);
  deltaQ1Entry.setDescription("String_Node_Str");
  paramComponent.addEntry(deltaQ1Entry);
  Entry waveEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  waveEntry.setId(5);
  waveEntry.setName(WaveLengthEntryName);
  waveEntry.setDescription("String_Node_Str");
  paramComponent.addEntry(waveEntry);
  ArrayList<String> names=new ArrayList<String>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add(Material.SCAT_LENGTH_DENSITY);
  names.add(Material.MASS_ABS_COHERENT);
  names.add(Material.MASS_ABS_INCOHERENT);
  MaterialWritableTableFormat format=new MaterialWritableTableFormat(names);
  ListComponent<Material> matList=new ListComponent<Material>();
  matList.setId(matListId);
  matList.setName("String_Node_Str");
  matList.setDescription("String_Node_Str");
  matList.setTableFormat(format);
  fillMaterialList(matList);
  form.addComponent(matList);
  ResourceComponent resources=new ResourceComponent();
  resources.setName("String_Node_Str");
  resources.setDescription("String_Node_Str");
  resources.setId(resourceCompId);
  form.addComponent(resources);
  if (project != null) {
    String basename="String_Node_Str" + getId() + "String_Node_Str";
    IFile reflectivityFile=project.getFile(basename + "String_Node_Str");
    IFile scatteringFile=project.getFile(basename + "String_Node_Str");
    try {
      if (reflectivityFile.exists()) {
        reflectivityFile.delete(true,null);
      }
      reflectivityFile.create(stream,true,null);
      if (scatteringFile.exists()) {
        scatteringFile.delete(true,null);
      }
      stream.reset();
      scatteringFile.create(stream,true,null);
      VizResource reflectivitySource=new VizResource(reflectivityFile.getLocation().toFile());
      reflectivitySource.setName("String_Node_Str");
      reflectivitySource.setId(1);
      reflectivitySource.setDescription("String_Node_Str");
      VizResource scatDensitySource=new VizResource(scatteringFile.getLocation().toFile());
      scatDensitySource.setName("String_Node_Str");
      scatDensitySource.setId(2);
      scatDensitySource.setDescription("String_Node_Str" + "String_Node_Str");
      resources.addResource(reflectivitySource);
      resources.addResource(scatDensitySource);
    }
 catch (    CoreException|IOException e) {
      System.err.println("String_Node_Str" + "String_Node_Str");
      e.printStackTrace();
    }
  }
  allowedActions.add(0,processActionName);
  return;
}

Fixed version (ground truth):
@Override protected void setupForm(){
  String line1="String_Node_Str";
  String line2="String_Node_Str";
  String line3="String_Node_Str";
  String line4="String_Node_Str";
  String line5="String_Node_Str";
  String allLines=line1 + line2 + line3+ line4+ line5;
  ByteArrayInputStream stream=new ByteArrayInputStream(allLines.getBytes());
  super.setupForm();
  DataComponent paramComponent=new DataComponent();
  paramComponent.setDescription("String_Node_Str");
  paramComponent.setName("String_Node_Str");
  paramComponent.setId(paramsCompId);
  form.addComponent(paramComponent);
  Entry fileEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.File;
      return;
    }
  }
;
  fileEntry.setId(1);
  fileEntry.setName(WaveEntryName);
  fileEntry.setDescription("String_Node_Str");
  paramComponent.addEntry(fileEntry);
  Entry numLayersEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  numLayersEntry.setId(2);
  numLayersEntry.setName(RoughnessEntryName);
  numLayersEntry.setDescription("String_Node_Str" + "String_Node_Str");
  paramComponent.addEntry(numLayersEntry);
  Entry deltaQ0Entry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  deltaQ0Entry.setId(3);
  deltaQ0Entry.setName(deltaQ0EntryName);
  deltaQ0Entry.setDescription("String_Node_Str");
  paramComponent.addEntry(deltaQ0Entry);
  Entry deltaQ1Entry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  deltaQ1Entry.setId(4);
  deltaQ1Entry.setName(deltaQ1ByQEntryName);
  deltaQ1Entry.setDescription("String_Node_Str");
  paramComponent.addEntry(deltaQ1Entry);
  Entry waveEntry=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Continuous;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  waveEntry.setId(5);
  waveEntry.setName(WaveLengthEntryName);
  waveEntry.setDescription("String_Node_Str");
  paramComponent.addEntry(waveEntry);
  Entry qr4=new Entry(){
    @Override protected void setup(){
      allowedValueType=AllowedValueType.Discrete;
      allowedValues.add("String_Node_Str");
      allowedValues.add("String_Node_Str");
      return;
    }
  }
;
  qr4.setId(6);
  qr4.setName(QR4EntryName);
  qr4.setDescription("String_Node_Str");
  paramComponent.addEntry(qr4);
  ArrayList<String> names=new ArrayList<String>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add(Material.SCAT_LENGTH_DENSITY);
  names.add(Material.MASS_ABS_COHERENT);
  names.add(Material.MASS_ABS_INCOHERENT);
  MaterialWritableTableFormat format=new MaterialWritableTableFormat(names);
  ListComponent<Material> matList=new ListComponent<Material>();
  matList.setId(matListId);
  matList.setName("String_Node_Str");
  matList.setDescription("String_Node_Str");
  matList.setTableFormat(format);
  fillMaterialList(matList);
  form.addComponent(matList);
  ResourceComponent resources=new ResourceComponent();
  resources.setName("String_Node_Str");
  resources.setDescription("String_Node_Str");
  resources.setId(resourceCompId);
  form.addComponent(resources);
  if (project != null) {
    String basename="String_Node_Str" + getId() + "String_Node_Str";
    IFile reflectivityFile=project.getFile(basename + "String_Node_Str");
    IFile scatteringFile=project.getFile(basename + "String_Node_Str");
    try {
      if (!reflectivityFile.exists()) {
        reflectivityFile.create(stream,true,null);
        stream.reset();
      }
      if (!scatteringFile.exists()) {
        scatteringFile.create(stream,true,null);
      }
      VizResource reflectivitySource=new VizResource(reflectivityFile.getLocation().toFile());
      reflectivitySource.setName("String_Node_Str");
      reflectivitySource.setId(1);
      reflectivitySource.setDescription("String_Node_Str");
      VizResource scatDensitySource=new VizResource(scatteringFile.getLocation().toFile());
      scatDensitySource.setName("String_Node_Str");
      scatDensitySource.setId(2);
      scatDensitySource.setDescription("String_Node_Str" + "String_Node_Str");
      resources.addResource(reflectivitySource);
      resources.addResource(scatDensitySource);
    }
 catch (    CoreException|IOException e) {
      System.err.println("String_Node_Str" + "String_Node_Str");
      e.printStackTrace();
    }
  }
  allowedActions.add(0,processActionName);
  return;
}