Program: 118898
Project: 118898
Buggy source:
@Override public void cleanBeforeGenerate(int options) throws ProcessorException {
  setDoClean(false);
  if (this.getProcess().isNeedRegenerateCode() || this.getProcess() instanceof IProcess2 && ((IProcess2)this.getProcess()).isProcessModified()) {
    setDoClean(true);
  }
 else {
    return;
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_JAVA_CODES)) {
    IFolder javaCodeFolder=getCodeProject().getFolder(this.getSrcCodePath().removeLastSegments(1));
    try {
      if (javaCodeFolder != null) {
        for (        IResource resource : javaCodeFolder.members()) {
          if ("String_Node_Str".equals(resource.getFileExtension())) {
            ((IFile)resource).setContents(new ByteArrayInputStream(new byte[0]),IResource.KEEP_HISTORY,null);
          }
        }
      }
    }
 catch (    CoreException e) {
    }
    IFolder classCodeFolder=getCodeProject().getFolder(this.getCompiledCodePath().removeLastSegments(1));
    cleanFolder(classCodeFolder);
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_CONTEXTS)) {
    IFolder srcContextFolder=getCodeProject().getFolder(this.getSrcContextPath().removeLastSegments(1));
    cleanFolder(srcContextFolder);
    IFolder classContextFolder=getCodeProject().getFolder(this.getCompiledContextPath().removeLastSegments(1));
    cleanFolder(classContextFolder);
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_DATA_SETS) && isTestJob) {
    IFolder srcDatasetFolder=getCodeProject().getFolder(this.getSrcDataSetPath());
    cleanFolder(srcDatasetFolder);
  }
}

Fixed version (ground truth):
@Override public void cleanBeforeGenerate(int options) throws ProcessorException {
  setDoClean(false);
  if (this.getProcess().isNeedRegenerateCode() || this.getProcess() instanceof IProcess2 && ((IProcess2)this.getProcess()).isProcessModified()) {
    setDoClean(true);
  }
 else {
    return;
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_JAVA_CODES)) {
    IFolder javaCodeFolder=getCodeProject().getFolder(this.getSrcCodePath().removeLastSegments(1));
    try {
      if (javaCodeFolder != null) {
        String processSourceFileName=null;
        if (process != null) {
          processSourceFileName=process.getName() + "String_Node_Str";
        }
        for (        IResource resource : javaCodeFolder.members()) {
          if ("String_Node_Str".equals(resource.getFileExtension())) {
            if (processSourceFileName != null && processSourceFileName.equals(resource.getName())) {
              ((IFile)resource).setContents(new ByteArrayInputStream(new byte[0]),IResource.KEEP_HISTORY,null);
            }
 else {
              FilesUtils.deleteFile(resource.getLocation().toFile(),true);
            }
          }
 else {
            FilesUtils.deleteFile(resource.getLocation().toFile(),true);
          }
        }
      }
    }
 catch (    CoreException e) {
    }
    IFolder classCodeFolder=getCodeProject().getFolder(this.getCompiledCodePath().removeLastSegments(1));
    cleanFolder(classCodeFolder);
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_CONTEXTS)) {
    IFolder srcContextFolder=getCodeProject().getFolder(this.getSrcContextPath().removeLastSegments(1));
    cleanFolder(srcContextFolder);
    IFolder classContextFolder=getCodeProject().getFolder(this.getCompiledContextPath().removeLastSegments(1));
    cleanFolder(classContextFolder);
  }
  if (BitwiseOptionUtils.containOption(options,CLEAN_DATA_SETS) && isTestJob) {
    IFolder srcDatasetFolder=getCodeProject().getFolder(this.getSrcDataSetPath());
    cleanFolder(srcDatasetFolder);
  }
}