Program: 85394
Project: 85394
Buggy source:
public void execute() throws MojoExecutionException, MojoFailureException {
  System.setProperty("String_Node_Str","String_Node_Str");
  String appfuseVersion=project.getProperties().getProperty("String_Node_Str");
  if ((appfuseVersion != null) && !appfuseVersion.endsWith("String_Node_Str") && tag.equals("String_Node_Str")) {
    tag="String_Node_Str" + appfuseVersion.toUpperCase().replaceAll("String_Node_Str","String_Node_Str") + "String_Node_Str";
    if (tag.contains("String_Node_Str")) {
      tag=tag.replace("String_Node_Str","String_Node_Str");
    }
 else     if (tag.contains("String_Node_Str")) {
      tag=tag.replace("String_Node_Str","String_Node_Str");
    }
  }
  String daoFramework=project.getProperties().getProperty("String_Node_Str");
  if (daoFramework == null) {
    log("String_Node_Str");
  }
  String webFramework=project.getProperties().getProperty("String_Node_Str");
  boolean modular=(project.getPackaging().equals("String_Node_Str") && !project.hasParent());
  if (project.getPackaging().equals("String_Node_Str") || (project.getPackaging().equals("String_Node_Str") && !project.hasParent())) {
    log("String_Node_Str");
    String coreSource=project.getBuild().getSourceDirectory();
    export("String_Node_Str",(modular) ? coreSource : destinationDirectory);
    File orig=new File((modular ? coreSource : destinationDirectory) + "String_Node_Str");
    File dest=new File((modular ? coreSource : destinationDirectory) + "String_Node_Str");
    if (webFramework != null && !webFramework.isEmpty()) {
      renameFile(orig,dest);
    }
    log("String_Node_Str" + daoFramework + "String_Node_Str");
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? coreSource : destinationDirectory);
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? coreSource : destinationDirectory);
    moveFiles((modular) ? coreSource + "String_Node_Str" : destinationDirectory + "String_Node_Str",(modular) ? coreSource + "String_Node_Str" : destinationDirectory + "String_Node_Str","String_Node_Str");
    deleteFile("String_Node_Str");
    deleteFile("String_Node_Str");
    deleteFile("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(daoFramework)) {
      deleteFile("String_Node_Str");
    }
    if (webFramework != null && !webFramework.isEmpty()) {
      deleteFile(orig.getPath());
      renameFile(dest,orig);
    }
  }
  boolean isWebServicesProject=false;
  for (  Object pluginArtifact : project.getPluginArtifacts()) {
    if (((Artifact)pluginArtifact).getArtifactId().contains("String_Node_Str")) {
      isWebServicesProject=true;
      break;
    }
  }
  if (project.getPackaging().equalsIgnoreCase("String_Node_Str")) {
    if (webFramework == null && !isWebServicesProject) {
      getLog().error("String_Node_Str" + "String_Node_Str");
      throw new MojoExecutionException("String_Node_Str");
    }
    if (project.hasParent()) {
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
    }
 else     if (!isAppFuse()) {
      deleteFile("String_Node_Str");
    }
  }
  log("String_Node_Str");
  List dependencies=project.getOriginalModel().getDependencies();
  List<Dependency> newDependencies=new ArrayList<Dependency>();
  for (  Object dependency : dependencies) {
    Dependency dep=(Dependency)dependency;
    if (!dep.getGroupId().equals(APPFUSE_GROUP_ID)) {
      newDependencies.add(dep);
    }
  }
  if (!project.getPackaging().equals("String_Node_Str") && !project.hasParent()) {
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework,"String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    if (!isWebServicesProject && project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addWebDependencies(appfuseVersion,newDependencies,webFramework);
    }
    createFullSourcePom(newDependencies);
  }
 else {
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework,"String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addWebDependencies(appfuseVersion,newDependencies,webFramework);
      createFullSourcePom(newDependencies);
    }
  }
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException, MojoFailureException {
  System.setProperty("String_Node_Str","String_Node_Str");
  String appfuseVersion=project.getProperties().getProperty("String_Node_Str");
  if ((appfuseVersion != null) && !appfuseVersion.endsWith("String_Node_Str") && tag.equals("String_Node_Str")) {
    tag="String_Node_Str" + appfuseVersion.toUpperCase().replaceAll("String_Node_Str","String_Node_Str") + "String_Node_Str";
    if (tag.contains("String_Node_Str")) {
      tag=tag.replace("String_Node_Str","String_Node_Str");
    }
 else     if (tag.contains("String_Node_Str")) {
      tag=tag.replace("String_Node_Str","String_Node_Str");
    }
  }
  String daoFramework=project.getProperties().getProperty("String_Node_Str");
  if (daoFramework == null) {
    log("String_Node_Str");
  }
  String webFramework=project.getProperties().getProperty("String_Node_Str");
  boolean modular=(project.getPackaging().equals("String_Node_Str") && !project.hasParent());
  if (project.getPackaging().equals("String_Node_Str") || (project.getPackaging().equals("String_Node_Str") && !project.hasParent())) {
    log("String_Node_Str");
    String coreSource=project.getBuild().getSourceDirectory();
    export("String_Node_Str",(modular) ? coreSource : destinationDirectory);
    File orig=new File((modular ? coreSource : destinationDirectory) + "String_Node_Str");
    File dest=new File((modular ? coreSource : destinationDirectory) + "String_Node_Str");
    if (webFramework != null && !webFramework.isEmpty()) {
      renameFile(orig,dest);
    }
    log("String_Node_Str" + daoFramework + "String_Node_Str");
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? coreSource : destinationDirectory);
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? coreSource : destinationDirectory);
    moveFiles((modular) ? coreSource + "String_Node_Str" : destinationDirectory + "String_Node_Str",(modular) ? coreSource + "String_Node_Str" : destinationDirectory + "String_Node_Str","String_Node_Str");
    deleteFile("String_Node_Str");
    deleteFile("String_Node_Str");
    deleteFile("String_Node_Str");
    if ("String_Node_Str".equalsIgnoreCase(daoFramework)) {
      deleteFile("String_Node_Str");
    }
    if (webFramework != null && !webFramework.isEmpty()) {
      deleteFile(orig.getPath());
      renameFile(dest,orig);
    }
  }
  boolean isWebServicesProject=false;
  for (  Object pluginArtifact : project.getPluginArtifacts()) {
    if (((Artifact)pluginArtifact).getArtifactId().contains("String_Node_Str")) {
      isWebServicesProject=true;
      break;
    }
  }
  if (project.getPackaging().equalsIgnoreCase("String_Node_Str")) {
    if (webFramework == null && !isWebServicesProject) {
      getLog().error("String_Node_Str" + "String_Node_Str");
      throw new MojoExecutionException("String_Node_Str");
    }
    if (project.hasParent()) {
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
      deleteFile("String_Node_Str");
    }
 else     if (!isAppFuse()) {
      deleteFile("String_Node_Str");
    }
  }
  log("String_Node_Str");
  List dependencies=project.getOriginalModel().getDependencies();
  List<Dependency> newDependencies=new ArrayList<Dependency>();
  for (  Object dependency : dependencies) {
    Dependency dep=(Dependency)dependency;
    if (!dep.getGroupId().equals(APPFUSE_GROUP_ID)) {
      newDependencies.add(dep);
    }
  }
  if (!project.getPackaging().equals("String_Node_Str") && !project.hasParent()) {
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework,"String_Node_Str");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
    if (!isWebServicesProject && project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addWebDependencies(appfuseVersion,newDependencies,webFramework);
    }
    createFullSourcePom(newDependencies);
  }
 else {
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework,"String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str","String_Node_Str");
      newDependencies=addWebDependencies(appfuseVersion,newDependencies,webFramework);
      createFullSourcePom(newDependencies);
    }
  }
}