Program: 85417
Project: 85417
Buggy source:
private List<Dependency> addModuleDependencies(List<Dependency> dependencies,String moduleName,String moduleLocation,boolean removeWarpath){
  log("String_Node_Str" + moduleName + "String_Node_Str");
  URL pomLocation=null;
  File newDir=new File("String_Node_Str","String_Node_Str" + moduleName);
  if (!newDir.exists()) {
    newDir.mkdirs();
  }
  File pom=new File("String_Node_Str" + moduleName + "String_Node_Str");
  try {
    pomLocation=new URL(trunk + tag + moduleLocation+ "String_Node_Str");
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  Get get=(Get)AntUtils.createProject().createTask("String_Node_Str");
  get.setSrc(pomLocation);
  get.setDest(pom);
  get.setUsername("String_Node_Str");
  get.setPassword("String_Node_Str");
  get.execute();
  if (removeWarpath) {
    removeWarpathPlugin(pom);
  }
  MavenProject p=createProjectFromPom(pom);
  List moduleDependencies=p.getOriginalModel().getDependencies();
  if (moduleName.equalsIgnoreCase("String_Node_Str")) {
    appfuseProperties=p.getOriginalModel().getProperties();
  }
  Set<String> artifactIds=new LinkedHashSet<String>();
  for (  Dependency dep : dependencies) {
    artifactIds.add(dep.getArtifactId());
  }
  for (  Object moduleDependency : moduleDependencies) {
    Dependency dep=(Dependency)moduleDependency;
    if (!artifactIds.contains(dep.getArtifactId()) && !dep.getArtifactId().contains("String_Node_Str")) {
      dependencies.add(dep);
    }
  }
  return dependencies;
}

Fixed version (ground truth):
private List<Dependency> addModuleDependencies(List<Dependency> dependencies,String moduleName,String moduleLocation,boolean removeWarpath){
  log("String_Node_Str" + moduleName + "String_Node_Str");
  URL pomLocation=null;
  File newDir=new File("String_Node_Str","String_Node_Str" + moduleName);
  if (!newDir.exists()) {
    newDir.mkdirs();
  }
  File pom=new File("String_Node_Str" + moduleName + "String_Node_Str");
  try {
    pomLocation=new URL(trunk + tag + moduleLocation+ "String_Node_Str");
  }
 catch (  MalformedURLException e) {
    e.printStackTrace();
  }
  Get get=(Get)AntUtils.createProject().createTask("String_Node_Str");
  get.setSrc(pomLocation);
  get.setDest(pom);
  get.setUsername("String_Node_Str");
  get.setPassword("String_Node_Str");
  get.execute();
  if (removeWarpath) {
    removeWarpathPlugin(pom);
  }
  MavenProject p=createProjectFromPom(pom);
  List moduleDependencies=p.getOriginalModel().getDependencies();
  if (moduleName.equalsIgnoreCase("String_Node_Str")) {
    appfuseProperties=p.getOriginalModel().getProperties();
  }
  Set<String> artifactIds=new LinkedHashSet<String>();
  for (  Dependency dep : dependencies) {
    artifactIds.add(dep.getArtifactId());
  }
  for (  Object moduleDependency : moduleDependencies) {
    Dependency dep=(Dependency)moduleDependency;
    if (dep.getGroupId().equals("String_Node_Str") && dep.getArtifactId().equals("String_Node_Str") && project.getProperties().getProperty("String_Node_Str").equals("String_Node_Str")) {
      continue;
    }
    if (!artifactIds.contains(dep.getArtifactId()) && !dep.getArtifactId().contains("String_Node_Str")) {
      dependencies.add(dep);
    }
  }
  return dependencies;
}