Program: 5558
Project: 5558
Buggy source:
private Map<String,LocalizeResource> getExploreDependencies(Path tempDir,List<String> extraClassPaths) throws IOException {
  final Set<File> masterJars=new HashSet<>();
  for (  URL url : ClassLoaders.getClassLoaderURLs(getClass().getClassLoader(),new HashSet<URL>())) {
    String path=url.getPath();
    if (!"String_Node_Str".equals(url.getProtocol()) || !path.endsWith("String_Node_Str")) {
      continue;
    }
    try {
      masterJars.add(new File(url.toURI()));
    }
 catch (    URISyntaxException e) {
      LOG.warn("String_Node_Str",e);
    }
  }
  Iterable<File> exploreJars=Iterables.filter(ExploreUtils.getExploreClasspathJarFiles(),new Predicate<File>(){
    @Override public boolean apply(    File file){
      return !masterJars.contains(file);
    }
  }
);
  Map<String,LocalizeResource> resources=new HashMap<>();
  for (  File exploreJar : exploreJars) {
    File targetJar=tempDir.resolve(System.currentTimeMillis() + "String_Node_Str" + exploreJar.getName()).toFile();
    File resultFile=ExploreServiceUtils.rewriteHiveAuthFactory(exploreJar,targetJar);
    if (resultFile == targetJar) {
      LOG.info("String_Node_Str",exploreJar,resultFile);
    }
    resources.put(resultFile.getName(),new LocalizeResource(resultFile));
    extraClassPaths.add(resultFile.getName());
  }
  extraClassPaths.addAll(MapReduceContainerHelper.localizeFramework(hConf,resources));
  return resources;
}

Fixed version (ground truth):
private Map<String,LocalizeResource> getExploreDependencies(Path tempDir,List<String> extraClassPaths) throws IOException {
  final Set<File> masterJars=new HashSet<>();
  for (  URL url : ClassLoaders.getClassLoaderURLs(getClass().getClassLoader(),new HashSet<URL>())) {
    String path=url.getPath();
    if (!"String_Node_Str".equals(url.getProtocol()) || !path.endsWith("String_Node_Str")) {
      continue;
    }
    try {
      masterJars.add(new File(url.toURI()));
    }
 catch (    URISyntaxException e) {
      LOG.warn("String_Node_Str",e);
    }
  }
  Iterable<File> exploreFiles=Iterables.filter(ExploreUtils.getExploreClasspathJarFiles("String_Node_Str","String_Node_Str"),new Predicate<File>(){
    @Override public boolean apply(    File file){
      return !masterJars.contains(file);
    }
  }
);
  Map<String,LocalizeResource> resources=new HashMap<>();
  for (  File file : exploreFiles) {
    if (file.getName().endsWith("String_Node_Str") || file.getName().endsWith("String_Node_Str")) {
      resources.put(file.getName(),new LocalizeResource(file,true));
      extraClassPaths.add(file.getName());
      extraClassPaths.add(file.getName() + "String_Node_Str");
      extraClassPaths.add(file.getName() + "String_Node_Str");
    }
 else {
      File targetFile=tempDir.resolve(System.currentTimeMillis() + "String_Node_Str" + file.getName()).toFile();
      File resultFile=ExploreServiceUtils.rewriteHiveAuthFactory(file,targetFile);
      if (resultFile == targetFile) {
        LOG.info("String_Node_Str",file,resultFile);
      }
      resources.put(resultFile.getName(),new LocalizeResource(resultFile));
      extraClassPaths.add(resultFile.getName());
    }
  }
  extraClassPaths.addAll(MapReduceContainerHelper.localizeFramework(hConf,resources));
  return resources;
}