Program: 133383
Project: 133383
Buggy source:
/** 
 * This operation loads the contents of the TreeComposite from the MOOSE data. It is called when a MOOSE-based application has been accepted and the entries are reviewed. It will only load the Form if the project space exists - so that it can find the files - and if the Form has been previously configured. It compares the executable name passed to this function with the files in the project directory and looks for a match with the name "executuableName.yaml" that it can load. It throws an IOException if it cannot find a match.
 * @param mooseExecutableName The name of the MOOSE executable whose YAML input specification should be loaded into the Form's TreeComposite.
 * @throws IOException
 * @throws CoreException
 */
protected void loadTreeContents(String mooseExecutableName) throws IOException, CoreException {
  TreeComposite mooseParentTree=(TreeComposite)form.getComponent(mooseTreeCompositeId), tmpParentTree;
  if (project != null && project.isAccessible()) {
    IFolder mooseFolder=project.getFolder("String_Node_Str");
    if (!mooseFolder.exists()) {
      mooseFolder.create(true,true,null);
    }
    URI uri=URI.create(mooseExecutableName);
    IFile yamlFile=null, syntaxFile=null;
    if ("String_Node_Str".equals(uri.getScheme())) {
      IRemoteConnection remoteConnection=getRemoteConnectionReference(uri.getHost());
      if (remoteConnection != null) {
        Action generator=getActionFactory().getAction("String_Node_Str");
        Dictionary<String,String> map=new Hashtable<String,String>();
        map.put("String_Node_Str",mooseFolder.getLocation().toOSString());
        map.put("String_Node_Str",uri.getRawPath());
        map.put("String_Node_Str",uri.getHost());
        generator.execute(map);
      }
      String animal=Paths.get(uri.getRawPath()).getFileName().toString();
      refreshProjectSpace();
      yamlFile=mooseFolder.getFile(animal + "String_Node_Str");
      syntaxFile=mooseFolder.getFile(animal + "String_Node_Str");
    }
 else {
      File execFile=new File(uri);
      yamlFile=mooseFolder.getFile(execFile.getName().toLowerCase() + "String_Node_Str");
      syntaxFile=mooseFolder.getFile(execFile.getName().toLowerCase() + "String_Node_Str");
      String[] yamlCmd={"String_Node_Str","String_Node_Str",execFile.getAbsolutePath() + "String_Node_Str" + yamlFile.getLocation().toOSString()};
      String[] syntaxCmd={"String_Node_Str","String_Node_Str",execFile.getAbsolutePath() + "String_Node_Str" + syntaxFile.getLocation().toOSString()};
      Process p1=Runtime.getRuntime().exec(yamlCmd);
      Process p2=Runtime.getRuntime().exec(syntaxCmd);
      try {
        int code1=p1.waitFor();
        int code2=p2.waitFor();
        if (code1 != 0 || code2 != 0) {
          throw new Exception("String_Node_Str" + code1 + "String_Node_Str"+ code2);
        }
      }
 catch (      Exception e) {
        logger.error(getClass().getName() + "String_Node_Str",e);
      }
    }
    createCleanMOOSEFile(yamlFile.getLocation().toOSString());
    createCleanMOOSEFile(syntaxFile.getLocation().toOSString());
    refreshProjectSpace();
    IReader.getIReaders();
    IReader reader=getReader();
    if (yamlFile.exists() && syntaxFile.exists() && reader != null) {
      Form readerForm=reader.read(yamlFile);
      tmpParentTree=(TreeComposite)readerForm.getComponent(mooseTreeCompositeId);
      mooseParentTree.copy(tmpParentTree);
    }
 else {
      throw new IOException("String_Node_Str" + yamlFile.getName() + "String_Node_Str"+ syntaxFile.getName()+ "String_Node_Str");
    }
  }
 else {
    throw new IOException("String_Node_Str");
  }
  return;
}

Fixed version (ground truth):
/** 
 * This operation loads the contents of the TreeComposite from the MOOSE data. It is called when a MOOSE-based application has been accepted and the entries are reviewed. It will only load the Form if the project space exists - so that it can find the files - and if the Form has been previously configured. It compares the executable name passed to this function with the files in the project directory and looks for a match with the name "executuableName.yaml" that it can load. It throws an IOException if it cannot find a match.
 * @param mooseExecutableName The name of the MOOSE executable whose YAML input specification should be loaded into the Form's TreeComposite.
 * @throws IOException
 * @throws CoreException
 */
protected void loadTreeContents(String mooseExecutableName) throws IOException, CoreException {
  TreeComposite mooseParentTree=(TreeComposite)form.getComponent(mooseTreeCompositeId), tmpParentTree;
  if (project != null && project.isAccessible()) {
    IFolder mooseFolder=project.getFolder("String_Node_Str");
    if (!mooseFolder.exists()) {
      mooseFolder.create(true,true,null);
    }
    URI uri=URI.create(mooseExecutableName);
    IFile yamlFile=null, syntaxFile=null;
    if ("String_Node_Str".equals(uri.getScheme())) {
      IRemoteConnection remoteConnection=getRemoteConnectionReference(uri.getHost());
      if (remoteConnection != null) {
        Action generator=getActionFactory().getAction("String_Node_Str");
        Dictionary<String,String> map=new Hashtable<String,String>();
        map.put("String_Node_Str",mooseFolder.getLocation().toOSString());
        map.put("String_Node_Str",uri.getRawPath());
        map.put("String_Node_Str",uri.getHost());
        generator.execute(map);
      }
      String animal=Paths.get(uri.getRawPath()).getFileName().toString();
      refreshProjectSpace();
      yamlFile=mooseFolder.getFile(animal + "String_Node_Str");
      syntaxFile=mooseFolder.getFile(animal + "String_Node_Str");
    }
 else {
      File execFile=new File(uri);
      yamlFile=mooseFolder.getFile(execFile.getName().toLowerCase() + "String_Node_Str");
      syntaxFile=mooseFolder.getFile(execFile.getName().toLowerCase() + "String_Node_Str");
      String[] yamlCmd={"String_Node_Str","String_Node_Str",execFile.getAbsolutePath() + "String_Node_Str" + yamlFile.getLocation().toOSString().replaceAll("String_Node_Str","String_Node_Str")};
      String[] syntaxCmd={"String_Node_Str","String_Node_Str",execFile.getAbsolutePath() + "String_Node_Str" + syntaxFile.getLocation().toOSString().replaceAll("String_Node_Str","String_Node_Str")};
      Process p1=Runtime.getRuntime().exec(yamlCmd);
      Process p2=Runtime.getRuntime().exec(syntaxCmd);
      try {
        int code1=p1.waitFor();
        int code2=p2.waitFor();
        if (code1 != 0 || code2 != 0) {
          throw new Exception("String_Node_Str" + code1 + "String_Node_Str"+ code2);
        }
      }
 catch (      Exception e) {
        logger.error(getClass().getName() + "String_Node_Str",e);
      }
    }
    createCleanMOOSEFile(yamlFile.getName());
    createCleanMOOSEFile(syntaxFile.getName());
    refreshProjectSpace();
    IReader.getIReaders();
    IReader reader=getReader();
    if (yamlFile.exists() && syntaxFile.exists() && reader != null) {
      Form readerForm=reader.read(yamlFile);
      tmpParentTree=(TreeComposite)readerForm.getComponent(mooseTreeCompositeId);
      mooseParentTree.copy(tmpParentTree);
    }
 else {
      throw new IOException("String_Node_Str" + yamlFile.getName() + "String_Node_Str"+ syntaxFile.getName()+ "String_Node_Str");
    }
  }
 else {
    throw new IOException("String_Node_Str");
  }
  return;
}