Program: 85401
Project: 85401
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");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str" + daoFramework + "String_Node_Str");
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    moveFiles((modular) ? "String_Node_Str" : destinationDirectory + "String_Node_Str",(modular) ? "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 (project.getPackaging().equalsIgnoreCase("String_Node_Str")) {
    if (webFramework == null) {
      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");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
    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=addWebDependencies(appfuseVersion,newDependencies);
    }
    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,"String_Node_Str","String_Node_Str");
      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");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addWebDependencies(appfuseVersion,newDependencies);
      newDependencies.clear();
      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");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str" + daoFramework + "String_Node_Str");
    export("String_Node_Str" + daoFramework + "String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    log("String_Node_Str");
    export("String_Node_Str",(modular) ? "String_Node_Str" : destinationDirectory);
    moveFiles((modular) ? "String_Node_Str" : destinationDirectory + "String_Node_Str",(modular) ? "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");
    }
  }
  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");
    newDependencies=addModuleDependencies(newDependencies,"String_Node_Str","String_Node_Str");
    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 (!isWebServicesProject && project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addWebDependencies(appfuseVersion,newDependencies);
    }
    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,"String_Node_Str","String_Node_Str");
      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");
      createFullSourcePom(newDependencies);
    }
    if (project.getPackaging().equals("String_Node_Str")) {
      newDependencies=addWebDependencies(appfuseVersion,newDependencies);
      newDependencies.clear();
      createFullSourcePom(newDependencies);
    }
  }
}