Program: 20770
Project: 20770
Buggy source:
private void get(String path,File target,ProxiedArtifactRepository repository,ArtifactRepository managedRepository,ProxyInfo wagonProxy) throws ProxyException {
  ArtifactRepositoryPolicy policy=null;
  if (path.endsWith("String_Node_Str") || path.endsWith("String_Node_Str")) {
  }
 else   if (path.endsWith("String_Node_Str")) {
    policy=repository.getRepository().getReleases();
    if (!target.exists() || isOutOfDate(policy,target)) {
      getFileFromRepository(path,repository,managedRepository.getBasedir(),wagonProxy,target,policy);
    }
  }
 else {
    Artifact artifact=null;
    try {
      artifact=defaultArtifactDiscoverer.buildArtifact(path);
    }
 catch (    DiscovererException e) {
      getLogger().debug("String_Node_Str" + e.getMessage());
    }
    if (artifact == null) {
      try {
        artifact=legacyArtifactDiscoverer.buildArtifact(path);
      }
 catch (      DiscovererException e) {
        getLogger().debug("String_Node_Str" + e.getMessage());
      }
    }
    if (artifact != null) {
      ArtifactRepository artifactRepository=repository.getRepository();
      policy=artifact.isSnapshot() ? artifactRepository.getSnapshots() : artifactRepository.getReleases();
      if (!policy.isEnabled()) {
        getLogger().debug("String_Node_Str" + repository.getName());
      }
 else {
        if (!target.exists() || isOutOfDate(policy,target)) {
          getFileFromRepository(artifactRepository.pathOf(artifact),repository,managedRepository.getBasedir(),wagonProxy,target,policy);
        }
      }
    }
 else {
      if (!target.exists()) {
        policy=repository.getRepository().getReleases();
        getFileFromRepository(path,repository,managedRepository.getBasedir(),wagonProxy,target,policy);
      }
    }
  }
  if (target.exists()) {
    repository.clearFailure(path);
  }
}

Fixed version (ground truth):
private void get(String path,File target,ProxiedArtifactRepository repository,ArtifactRepository managedRepository,ProxyInfo wagonProxy,boolean force) throws ProxyException {
  ArtifactRepositoryPolicy policy;
  if (path.endsWith("String_Node_Str") || path.endsWith("String_Node_Str")) {
  }
 else   if (path.endsWith("String_Node_Str")) {
    policy=repository.getRepository().getReleases();
    if (force || !target.exists() || isOutOfDate(policy,target)) {
      getFileFromRepository(path,repository,managedRepository.getBasedir(),wagonProxy,target,policy,force);
    }
  }
 else {
    Artifact artifact=null;
    try {
      artifact=defaultArtifactDiscoverer.buildArtifact(path);
    }
 catch (    DiscovererException e) {
      getLogger().debug("String_Node_Str" + e.getMessage());
    }
    if (artifact == null) {
      try {
        artifact=legacyArtifactDiscoverer.buildArtifact(path);
      }
 catch (      DiscovererException e) {
        getLogger().debug("String_Node_Str" + e.getMessage());
      }
    }
    if (artifact != null) {
      ArtifactRepository artifactRepository=repository.getRepository();
      policy=artifact.isSnapshot() ? artifactRepository.getSnapshots() : artifactRepository.getReleases();
      if (!policy.isEnabled()) {
        getLogger().debug("String_Node_Str" + repository.getName());
      }
 else {
        if (force || !target.exists() || isOutOfDate(policy,target)) {
          getFileFromRepository(artifactRepository.pathOf(artifact),repository,managedRepository.getBasedir(),wagonProxy,target,policy,force);
        }
      }
    }
 else {
      if (force || !target.exists()) {
        policy=repository.getRepository().getReleases();
        getFileFromRepository(path,repository,managedRepository.getBasedir(),wagonProxy,target,policy,force);
      }
    }
  }
  if (target.exists()) {
    repository.clearFailure(path);
  }
}