Program: 82697
Project: 82697
Buggy source:
public ResolveReport install(ModuleRevisionId mrid,String from,String to,boolean transitive,boolean validate,boolean overwrite,Filter artifactFilter,File cache,String matcherName) throws IOException {
  if (cache == null) {
    cache=settings.getDefaultCache();
  }
  if (artifactFilter == null) {
    artifactFilter=FilterHelper.NO_FILTER;
  }
  DependencyResolver fromResolver=settings.getResolver(from);
  DependencyResolver toResolver=settings.getResolver(to);
  if (fromResolver == null) {
    throw new IllegalArgumentException("String_Node_Str" + from + "String_Node_Str"+ settings.getResolverNames());
  }
  if (toResolver == null) {
    throw new IllegalArgumentException("String_Node_Str" + to + "String_Node_Str"+ settings.getResolverNames());
  }
  PatternMatcher matcher=settings.getMatcher(matcherName);
  if (matcher == null) {
    throw new IllegalArgumentException("String_Node_Str" + matcherName + "String_Node_Str"+ settings.getMatcherNames());
  }
  Message.info("String_Node_Str" + mrid + "String_Node_Str");
  DependencyResolver oldDicator=resolveEngine.getDictatorResolver();
  boolean log=settings.logNotConvertedExclusionRule();
  try {
    settings.setLogNotConvertedExclusionRule(true);
    resolveEngine.setDictatorResolver(fromResolver);
    DefaultModuleDescriptor md=new DefaultModuleDescriptor(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),settings.getStatusManager().getDefaultStatus(),new Date());
    String resolveId=ResolveOptions.getDefaultResolveId(md);
    md.addConfiguration(new Configuration("String_Node_Str"));
    md.addConflictManager(new ModuleId(ExactPatternMatcher.ANY_EXPRESSION,ExactPatternMatcher.ANY_EXPRESSION),ExactPatternMatcher.INSTANCE,new NoConflictManager());
    if (MatcherHelper.isExact(matcher,mrid)) {
      DefaultDependencyDescriptor dd=new DefaultDependencyDescriptor(md,mrid,false,false,transitive);
      dd.addDependencyConfiguration("String_Node_Str","String_Node_Str");
      md.addDependency(dd);
    }
 else {
      Collection mrids=searchEngine.findModuleRevisionIds(fromResolver,mrid,matcher);
      for (Iterator iter=mrids.iterator(); iter.hasNext(); ) {
        ModuleRevisionId foundMrid=(ModuleRevisionId)iter.next();
        Message.info("String_Node_Str" + foundMrid + "String_Node_Str");
        DefaultDependencyDescriptor dd=new DefaultDependencyDescriptor(md,foundMrid,false,false,transitive);
        dd.addDependencyConfiguration("String_Node_Str","String_Node_Str");
        md.addDependency(dd);
      }
    }
    ResolveReport report=new ResolveReport(md,resolveId);
    Message.info("String_Node_Str");
    IvyNode[] dependencies=resolveEngine.getDependencies(md,new ResolveOptions().setResolveId(resolveId).setConfs(new String[]{"String_Node_Str"}).setCache(getCacheManager(cache)),report);
    report.setDependencies(Arrays.asList(dependencies),artifactFilter);
    Message.info("String_Node_Str");
    resolveEngine.downloadArtifacts(report,getCacheManager(cache),false,artifactFilter);
    Message.info("String_Node_Str" + to + "String_Node_Str");
    for (int i=0; i < dependencies.length; i++) {
      ModuleDescriptor depmd=dependencies[i].getDescriptor();
      if (depmd != null) {
        Message.verbose("String_Node_Str" + depmd.getModuleRevisionId());
        publishEngine.publish(depmd,Collections.singleton(cache.getAbsolutePath() + "String_Node_Str" + settings.getCacheArtifactPattern()),toResolver,new PublishOptions().setSrcIvyPattern(cache.getAbsolutePath() + "String_Node_Str" + settings.getCacheIvyPattern()).setOverwrite(overwrite));
      }
    }
    Message.info("String_Node_Str");
    report.output(settings.getReportOutputters(),cache);
    return report;
  }
  finally {
    resolveEngine.setDictatorResolver(oldDicator);
    settings.setLogNotConvertedExclusionRule(log);
  }
}

Fixed version (ground truth):
public ResolveReport install(ModuleRevisionId mrid,String from,String to,boolean transitive,boolean validate,boolean overwrite,Filter artifactFilter,File cache,String matcherName) throws IOException {
  if (cache == null) {
    cache=settings.getDefaultCache();
  }
  if (artifactFilter == null) {
    artifactFilter=FilterHelper.NO_FILTER;
  }
  DependencyResolver fromResolver=settings.getResolver(from);
  DependencyResolver toResolver=settings.getResolver(to);
  if (fromResolver == null) {
    throw new IllegalArgumentException("String_Node_Str" + from + "String_Node_Str"+ settings.getResolverNames());
  }
  if (toResolver == null) {
    throw new IllegalArgumentException("String_Node_Str" + to + "String_Node_Str"+ settings.getResolverNames());
  }
  PatternMatcher matcher=settings.getMatcher(matcherName);
  if (matcher == null) {
    throw new IllegalArgumentException("String_Node_Str" + matcherName + "String_Node_Str"+ settings.getMatcherNames());
  }
  Message.info("String_Node_Str" + mrid + "String_Node_Str");
  DependencyResolver oldDicator=resolveEngine.getDictatorResolver();
  boolean log=settings.logNotConvertedExclusionRule();
  try {
    settings.setLogNotConvertedExclusionRule(true);
    resolveEngine.setDictatorResolver(fromResolver);
    DefaultModuleDescriptor md=new DefaultModuleDescriptor(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),settings.getStatusManager().getDefaultStatus(),new Date());
    String resolveId=ResolveOptions.getDefaultResolveId(md);
    md.addConfiguration(new Configuration("String_Node_Str"));
    md.addConflictManager(new ModuleId(ExactPatternMatcher.ANY_EXPRESSION,ExactPatternMatcher.ANY_EXPRESSION),ExactPatternMatcher.INSTANCE,new NoConflictManager());
    if (MatcherHelper.isExact(matcher,mrid)) {
      DefaultDependencyDescriptor dd=new DefaultDependencyDescriptor(md,mrid,false,false,transitive);
      dd.addDependencyConfiguration("String_Node_Str","String_Node_Str");
      md.addDependency(dd);
    }
 else {
      Collection mrids=searchEngine.findModuleRevisionIds(fromResolver,mrid,matcher);
      for (Iterator iter=mrids.iterator(); iter.hasNext(); ) {
        ModuleRevisionId foundMrid=(ModuleRevisionId)iter.next();
        Message.info("String_Node_Str" + foundMrid + "String_Node_Str");
        DefaultDependencyDescriptor dd=new DefaultDependencyDescriptor(md,foundMrid,false,false,transitive);
        dd.addDependencyConfiguration("String_Node_Str","String_Node_Str");
        md.addDependency(dd);
      }
    }
    ResolveReport report=new ResolveReport(md,resolveId);
    Message.info("String_Node_Str");
    IvyNode[] dependencies=resolveEngine.getDependencies(md,new ResolveOptions().setResolveId(resolveId).setConfs(new String[]{"String_Node_Str"}).setCache(getCacheManager(cache)),report);
    report.setDependencies(Arrays.asList(dependencies),artifactFilter);
    Message.info("String_Node_Str");
    resolveEngine.downloadArtifacts(report,getCacheManager(cache),false,artifactFilter);
    Message.info("String_Node_Str" + to + "String_Node_Str");
    for (int i=0; i < dependencies.length; i++) {
      ModuleDescriptor depmd=dependencies[i].getDescriptor();
      if (depmd != null) {
        Message.verbose("String_Node_Str" + depmd.getModuleRevisionId());
        publishEngine.publish(depmd,Collections.singleton(cache.getAbsolutePath() + "String_Node_Str" + settings.getCacheArtifactPattern()),toResolver,new PublishOptions().setSrcIvyPattern(cache.getAbsolutePath() + "String_Node_Str" + settings.getCacheIvyPattern()).setOverwrite(overwrite));
      }
    }
    Message.info("String_Node_Str");
    resolveEngine.outputReport(report,getCacheManager(cache));
    return report;
  }
  finally {
    resolveEngine.setDictatorResolver(oldDicator);
    settings.setLogNotConvertedExclusionRule(log);
  }
}