Program: 85415
Project: 85415
Buggy source:
public void execute() throws MojoExecutionException, MojoFailureException {
  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";
  }
  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");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    if ("String_Node_Str".equalsIgnoreCase(daoFramework)) {
      String filePath;
      if (project.getPackaging().equalsIgnoreCase("String_Node_Str") && project.hasParent()) {
        filePath="String_Node_Str";
      }
 else {
        filePath="String_Node_Str";
      }
      File duplicateFile=new File(getFilePath(filePath));
      if (duplicateFile.exists()) {
        try {
          FileUtils.forceDeleteOnExit(duplicateFile);
        }
 catch (        IOException io) {
          getLog().error("String_Node_Str" + filePath + "String_Node_Str");
        }
      }
    }
 else     if (!"String_Node_Str".equalsIgnoreCase(daoFramework)) {
      String filePath;
      if (project.getPackaging().equalsIgnoreCase("String_Node_Str") && !project.hasParent()) {
        filePath="String_Node_Str";
      }
 else {
        filePath="String_Node_Str";
      }
      File duplicateFile=new File(getFilePath(filePath));
      if (duplicateFile.exists()) {
        log("String_Node_Str" + filePath + "String_Node_Str");
        try {
          FileUtils.forceDeleteOnExit(duplicateFile);
        }
 catch (        IOException io) {
          getLog().error("String_Node_Str" + filePath + "String_Node_Str");
        }
      }
    }
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
  }
  if (project.getPackaging().equalsIgnoreCase("String_Node_Str")) {
    if (webFramework == null) {
      getLog().error("String_Node_Str" + "String_Node_Str");
      throw new MojoExecutionException("String_Node_Str");
    }
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str" + webFramework + "String_Node_Str");
    export("String_Node_Str" + webFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    if (project.hasParent()) {
      try {
        FileUtils.copyFileToDirectory(new File("String_Node_Str"),new File("String_Node_Str"));
      }
 catch (      IOException io) {
        getLog().error("String_Node_Str");
      }
    }
  }
  log("String_Node_Str");
  if (project.getPackaging().equals("String_Node_Str")) {
    removeWarpathPlugin(new File("String_Node_Str"));
  }
 else   if (project.getPackaging().equals("String_Node_Str")) {
    removeWarpathPlugin(new File("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");
    newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework);
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,webFramework,"String_Node_Str" + webFramework,true);
    }
    createFullSourcePom(newDependencies);
  }
 else {
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework);
      newDependencies=addModuleDependencies(newDependencies,"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");
      newDependencies=addModuleDependencies(newDependencies,webFramework,"String_Node_Str" + webFramework,true);
      createFullSourcePom(newDependencies);
    }
  }
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException, MojoFailureException {
  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";
  }
  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");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    if ("String_Node_Str".equalsIgnoreCase(daoFramework)) {
      String filePath;
      if (project.getPackaging().equalsIgnoreCase("String_Node_Str") && project.hasParent()) {
        filePath="String_Node_Str";
      }
 else {
        filePath="String_Node_Str";
      }
      File duplicateFile=new File(getFilePath(filePath));
      if (duplicateFile.exists()) {
        try {
          FileUtils.forceDeleteOnExit(duplicateFile);
        }
 catch (        IOException io) {
          getLog().error("String_Node_Str" + filePath + "String_Node_Str");
        }
      }
    }
 else     if ("String_Node_Str".equalsIgnoreCase(daoFramework)) {
      String filePath;
      if (project.getPackaging().equalsIgnoreCase("String_Node_Str") && !project.hasParent()) {
        filePath="String_Node_Str";
      }
 else {
        filePath="String_Node_Str";
      }
      File duplicateFile=new File(getFilePath(filePath));
      if (duplicateFile.exists()) {
        log("String_Node_Str" + filePath + "String_Node_Str");
        try {
          FileUtils.forceDeleteOnExit(duplicateFile);
        }
 catch (        IOException io) {
          getLog().error("String_Node_Str" + filePath + "String_Node_Str");
        }
      }
    }
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
  }
  if (project.getPackaging().equalsIgnoreCase("String_Node_Str")) {
    if (webFramework == null) {
      getLog().error("String_Node_Str" + "String_Node_Str");
      throw new MojoExecutionException("String_Node_Str");
    }
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str" + webFramework + "String_Node_Str");
    export("String_Node_Str" + webFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    if (project.hasParent()) {
      try {
        FileUtils.copyFileToDirectory(new File("String_Node_Str"),new File("String_Node_Str"));
      }
 catch (      IOException io) {
        getLog().error("String_Node_Str");
      }
    }
  }
  log("String_Node_Str");
  if (project.getPackaging().equals("String_Node_Str")) {
    removeWarpathPlugin(new File("String_Node_Str"));
  }
 else   if (project.getPackaging().equals("String_Node_Str")) {
    removeWarpathPlugin(new File("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");
    newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework);
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
      newDependencies=addModuleDependencies(newDependencies,webFramework,"String_Node_Str" + webFramework,true);
    }
    createFullSourcePom(newDependencies);
  }
 else {
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies.clear();
      newDependencies=addModuleDependencies(newDependencies,daoFramework,"String_Node_Str" + daoFramework);
      newDependencies=addModuleDependencies(newDependencies,"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");
      newDependencies=addModuleDependencies(newDependencies,webFramework,"String_Node_Str" + webFramework,true);
      createFullSourcePom(newDependencies);
    }
  }
}