nus-yam/ex-repair huggingface dataset:
Program: 82640
Project: 82640
Buggy source:
public void testURL() throws Exception {
  String confUrl=new File("String_Node_Str").toURL().toExternalForm();
  String confDirUrl=new File("String_Node_Str").toURL().toExternalForm();
  if (confDirUrl.endsWith("String_Node_Str")) {
    confDirUrl=confDirUrl.substring(0,confDirUrl.length() - 1);
  }
  configure.setUrl(confUrl);
  configure.execute();
  IvySettings settings=getIvyInstance().getSettings();
  assertEquals(new File("String_Node_Str").getAbsoluteFile(),settings.getDefaultCache());
  assertEquals(confUrl,settings.getVariables().getVariable("String_Node_Str"));
  assertEquals(confDirUrl,settings.getVariables().getVariable("String_Node_Str"));
  assertEquals("String_Node_Str",settings.getVariables().getVariable("String_Node_Str"));
}

Fixed version (ground truth):
public void testURL() throws Exception {
  String confUrl=new File("String_Node_Str").toURI().toURL().toExternalForm();
  String confDirUrl=new File("String_Node_Str").toURI().toURL().toExternalForm();
  if (confDirUrl.endsWith("String_Node_Str")) {
    confDirUrl=confDirUrl.substring(0,confDirUrl.length() - 1);
  }
  configure.setUrl(confUrl);
  configure.execute();
  IvySettings settings=getIvyInstance().getSettings();
  assertEquals(new File("String_Node_Str").getAbsoluteFile(),settings.getDefaultCache());
  assertEquals(confUrl,settings.getVariables().getVariable("String_Node_Str"));
  assertEquals(confDirUrl,settings.getVariables().getVariable("String_Node_Str"));
  assertEquals("String_Node_Str",settings.getVariables().getVariable("String_Node_Str"));
}
Program: 82641
Project: 82641
Buggy source:
public void testWithResolveIdInAnotherBuild() throws Exception {
  Project other=new Project();
  other.setProperty("String_Node_Str","String_Node_Str");
  other.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve resolve=new IvyResolve();
  resolve.setProject(other);
  resolve.setFile(new File("String_Node_Str"));
  resolve.setResolveId("String_Node_Str");
  resolve.execute();
  resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.execute();
  deliver.setResolveId("String_Node_Str");
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testWithResolveIdInAnotherBuild() throws Exception {
  Project other=new Project();
  other.setProperty("String_Node_Str","String_Node_Str");
  other.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve resolve=new IvyResolve();
  resolve.setProject(other);
  resolve.setFile(new File("String_Node_Str"));
  resolve.setResolveId("String_Node_Str");
  resolve.execute();
  resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.execute();
  deliver.setResolveId("String_Node_Str");
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}
Program: 82642
Project: 82642
Buggy source:
public void testReplaceBranchInfo() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setPubbranch("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
}

Fixed version (ground truth):
public void testReplaceBranchInfo() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setPubbranch("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
}
Program: 82644
Project: 82644
Buggy source:
public void testWithBranch() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testWithBranch() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}
Program: 82645
Project: 82645
Buggy source:
public void testNotGenerateRevConstraint() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setGenerateRevConstraint(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}

Fixed version (ground truth):
public void testNotGenerateRevConstraint() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setGenerateRevConstraint(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}
Program: 82646
Project: 82646
Buggy source:
public void testWithExtraAttributes() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setValidate(false);
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setValidate(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),false);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  Map extraAtt=new HashMap();
  extraAtt.put("String_Node_Str","String_Node_Str");
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str",extraAtt),dds[0].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testWithExtraAttributes() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setValidate(false);
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setValidate(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),false);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  Map extraAtt=new HashMap();
  extraAtt.put("String_Node_Str","String_Node_Str");
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str",extraAtt),dds[0].getDependencyRevisionId());
}
Program: 82648
Project: 82648
Buggy source:
public void testDifferentRevisionsForSameModule() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(3,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[1].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[2].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testDifferentRevisionsForSameModule() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(3,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[1].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[2].getDependencyRevisionId());
}
Program: 82649
Project: 82649
Buggy source:
public void testSimple() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}

Fixed version (ground truth):
public void testSimple() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}
Program: 82650
Project: 82650
Buggy source:
public void testWithResolveId() throws Exception {
  IvyResolve resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.setResolveId("String_Node_Str");
  resolve.execute();
  resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.execute();
  deliver.setResolveId("String_Node_Str");
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testWithResolveId() throws Exception {
  IvyResolve resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.setResolveId("String_Node_Str");
  resolve.execute();
  resolve=new IvyResolve();
  resolve.setProject(project);
  resolve.setFile(new File("String_Node_Str"));
  resolve.execute();
  deliver.setResolveId("String_Node_Str");
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}
Program: 82651
Project: 82651
Buggy source:
public void testReplaceBranch() throws Exception {
  IvyConfigure settings=new IvyConfigure();
  settings.setProject(project);
  settings.execute();
  IvyAntSettings.getDefaultInstance(settings).getConfiguredIvyInstance(settings).getSettings().setDefaultBranch("String_Node_Str");
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}

Fixed version (ground truth):
public void testReplaceBranch() throws Exception {
  IvyConfigure settings=new IvyConfigure();
  settings.setProject(project);
  settings.execute();
  IvyAntSettings.getDefaultInstance(settings).getConfiguredIvyInstance(settings).getSettings().setDefaultBranch("String_Node_Str");
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDynamicConstraintDependencyRevisionId());
}
Program: 82652
Project: 82652
Buggy source:
public void testNoReplaceDynamicRev() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setReplacedynamicrev(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}

Fixed version (ground truth):
public void testNoReplaceDynamicRev() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  deliver.setPubrevision("String_Node_Str");
  deliver.setDeliverpattern("String_Node_Str");
  deliver.setReplacedynamicrev(false);
  deliver.execute();
  File deliveredIvyFile=new File("String_Node_Str");
  assertTrue(deliveredIvyFile.exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),deliveredIvyFile.toURI().toURL(),true);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),md.getModuleRevisionId());
  DependencyDescriptor[] dds=md.getDependencies();
  assertEquals(1,dds.length);
  assertEquals(ModuleRevisionId.newInstance("String_Node_Str","String_Node_Str","String_Node_Str"),dds[0].getDependencyRevisionId());
}
Program: 82653
Project: 82653
Buggy source:
public void testInstallWithClassifiers() throws Exception {
  project.setProperty("String_Node_Str",new File("String_Node_Str").toURL().toExternalForm());
  install.setOrganisation("String_Node_Str");
  install.setModule("String_Node_Str");
  install.setRevision("String_Node_Str");
  install.setType("String_Node_Str");
  install.setFrom("String_Node_Str");
  install.setTo("String_Node_Str");
  install.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
}

Fixed version (ground truth):
public void testInstallWithClassifiers() throws Exception {
  project.setProperty("String_Node_Str",new File("String_Node_Str").toURI().toURL().toExternalForm());
  install.setOrganisation("String_Node_Str");
  install.setModule("String_Node_Str");
  install.setRevision("String_Node_Str");
  install.setType("String_Node_Str");
  install.setFrom("String_Node_Str");
  install.setTo("String_Node_Str");
  install.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
}
Program: 82654
Project: 82654
Buggy source:
public void testCustom() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setValidate(false);
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setPubdate("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setValidate(false);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  File dest=new File("String_Node_Str");
  assertTrue(dest.exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),dest.toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getModuleRevisionId().getAttribute("String_Node_Str"));
  assertEquals("String_Node_Str",md.getConfiguration("String_Node_Str").getAttribute("String_Node_Str"));
  assertEquals("String_Node_Str",md.getDependencies()[0].getAttribute("String_Node_Str"));
  String expected=FileUtil.readEntirely(new BufferedReader(new InputStreamReader(IvyPublishTest.class.getResourceAsStream("String_Node_Str"))));
  String updated=FileUtil.readEntirely(new BufferedReader(new FileReader(dest)));
  assertEquals(expected,updated);
}

Fixed version (ground truth):
public void testCustom() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setValidate(false);
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setPubdate("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setValidate(false);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  File dest=new File("String_Node_Str");
  assertTrue(dest.exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),dest.toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getModuleRevisionId().getAttribute("String_Node_Str"));
  assertEquals("String_Node_Str",md.getConfiguration("String_Node_Str").getAttribute("String_Node_Str"));
  assertEquals("String_Node_Str",md.getDependencies()[0].getAttribute("String_Node_Str"));
  String expected=FileUtil.readEntirely(new BufferedReader(new InputStreamReader(IvyPublishTest.class.getResourceAsStream("String_Node_Str"))));
  String updated=FileUtil.readEntirely(new BufferedReader(new FileReader(dest)));
  assertEquals(expected,updated);
}
Program: 82655
Project: 82655
Buggy source:
public void testForceDeliver() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  publish.setForcedeliver(true);
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
}

Fixed version (ground truth):
public void testForceDeliver() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  publish.setForcedeliver(true);
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
}
Program: 82656
Project: 82656
Buggy source:
public void testNoDeliver() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getDependencies()[0].getDependencyRevisionId().getRevision());
}

Fixed version (ground truth):
public void testNoDeliver() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getDependencies()[0].getDependencyRevisionId().getRevision());
}
Program: 82657
Project: 82657
Buggy source:
public void testSimple() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
}

Fixed version (ground truth):
public void testSimple() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
}
Program: 82658
Project: 82658
Buggy source:
public void testPublishNotAllConfigs() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setConf("String_Node_Str");
  publish.setUpdate(true);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  String[] configs=md.getConfigurationsNames();
  assertEquals("String_Node_Str",1,configs.length);
  assertEquals("String_Node_Str","String_Node_Str",configs[0]);
}

Fixed version (ground truth):
public void testPublishNotAllConfigs() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setPubrevision("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setConf("String_Node_Str");
  publish.setUpdate(true);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  String[] configs=md.getConfigurationsNames();
  assertEquals("String_Node_Str",1,configs.length);
  assertEquals("String_Node_Str","String_Node_Str",configs[0]);
}
Program: 82659
Project: 82659
Buggy source:
public void testNoDeliverWithBranch() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setUpdate(true);
  publish.setPubrevision("String_Node_Str");
  publish.setPubbranch("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getBranch());
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getDependencies()[0].getDependencyRevisionId().getRevision());
}

Fixed version (ground truth):
public void testNoDeliverWithBranch() throws Exception {
  project.setProperty("String_Node_Str","String_Node_Str");
  IvyResolve res=new IvyResolve();
  res.setProject(project);
  res.execute();
  publish.setUpdate(true);
  publish.setPubrevision("String_Node_Str");
  publish.setPubbranch("String_Node_Str");
  publish.setResolver("String_Node_Str");
  publish.setSrcivypattern("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),new File("String_Node_Str"),null);
  File art=new File("String_Node_Str");
  FileUtil.copy(new File("String_Node_Str"),art,null);
  publish.execute();
  assertTrue(new File("String_Node_Str").exists());
  assertTrue(new File("String_Node_Str").exists());
  ModuleDescriptor md=XmlModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),new File("String_Node_Str").toURI().toURL(),false);
  assertEquals("String_Node_Str",md.getModuleRevisionId().getBranch());
  assertEquals("String_Node_Str",md.getModuleRevisionId().getRevision());
  assertEquals("String_Node_Str",md.getDependencies()[0].getDependencyRevisionId().getRevision());
}
Program: 82660
Project: 82660
Buggy source:
public void testPerfs() throws Exception {
  generateModules(70,2,5,2,15);
  long start=System.currentTimeMillis();
  ResolveReport report=ivy.resolve(new File("String_Node_Str").toURL(),getResolveOptions(new String[]{"String_Node_Str"}).setRevision("String_Node_Str"));
  long end=System.currentTimeMillis();
  System.out.println("String_Node_Str" + report.getConfigurationReport("String_Node_Str").getNodesNumber() + "String_Node_Str"+ (end - start)+ "String_Node_Str");
  cleanRepo();
}

Fixed version (ground truth):
public void testPerfs() throws Exception {
  generateModules(70,2,5,2,15);
  long start=System.currentTimeMillis();
  ResolveReport report=ivy.resolve(new File("String_Node_Str"),getResolveOptions(new String[]{"String_Node_Str"}).setRevision("String_Node_Str"));
  long end=System.currentTimeMillis();
  System.out.println("String_Node_Str" + report.getConfigurationReport("String_Node_Str").getNodesNumber() + "String_Node_Str"+ (end - start)+ "String_Node_Str");
  cleanRepo();
}
Program: 82661
Project: 82661
Buggy source:
public void testIVY1111() throws Exception {
  Project project=ivyDeliver.getProject();
  project.setProperty("String_Node_Str","String_Node_Str");
  String ivyFileName=DeliverTest.class.getResource("String_Node_Str").getFile();
  File ivyFile=new File(ivyFileName);
  resolve(ivyFile);
  ivyDeliver.setReplacedynamicrev(true);
  ivyDeliver.doExecute();
  String deliverContent=readFile(deliverDir.getAbsolutePath() + "String_Node_Str");
  assertTrue(deliverContent.indexOf("String_Node_Str") == -1);
  assertTrue(deliverContent.indexOf("String_Node_Str") >= 0);
}

Fixed version (ground truth):
public void testIVY1111() throws Exception {
  Project project=ivyDeliver.getProject();
  project.setProperty("String_Node_Str","String_Node_Str");
  File ivyFile=new File(new URI(DeliverTest.class.getResource("String_Node_Str").toString()));
  resolve(ivyFile);
  ivyDeliver.setReplacedynamicrev(true);
  ivyDeliver.doExecute();
  String deliverContent=readFile(deliverDir.getAbsolutePath() + "String_Node_Str");
  assertTrue(deliverContent.indexOf("String_Node_Str") == -1);
  assertTrue(deliverContent.indexOf("String_Node_Str") >= 0);
}
Program: 82662
Project: 82662
Buggy source:
protected void setUp() throws Exception {
  super.setUp();
  resetCounters();
  ivy=Ivy.newInstance();
  ivy.configure(PublishEventsTest.class.getResource("String_Node_Str"));
  ivy.pushContext();
  publishEngine=ivy.getPublishEngine();
  ivyFile=new File("String_Node_Str");
  assertTrue("String_Node_Str",ivyFile.exists());
  dataFile=File.createTempFile("String_Node_Str","String_Node_Str");
  dataFile.deleteOnExit();
  publishModule=XmlModuleDescriptorParser.getInstance().parseDescriptor(ivy.getSettings(),ivyFile.toURL(),false);
  publishSources=Collections.singleton(dataFile.getAbsolutePath());
  publishOptions=new PublishOptions();
  publishOptions.setSrcIvyPattern(ivyFile.getAbsolutePath());
  dataArtifact=publishModule.getAllArtifacts()[0];
  assertEquals("String_Node_Str","String_Node_Str",dataArtifact.getName());
  ivyArtifact=MDArtifact.newIvyArtifact(publishModule);
  expectedPublications=new HashMap();
  expectedPublications.put(dataArtifact.getId(),new PublishTestCase(dataArtifact,dataFile,true));
  expectedPublications.put(ivyArtifact.getId(),new PublishTestCase(ivyArtifact,ivyFile,true));
  assertEquals("String_Node_Str",2,expectedPublications.size());
  IvyContext.getContext().push(PublishEventsTest.class.getName(),this);
}

Fixed version (ground truth):
protected void setUp() throws Exception {
  super.setUp();
  resetCounters();
  ivy=Ivy.newInstance();
  ivy.configure(PublishEventsTest.class.getResource("String_Node_Str"));
  ivy.pushContext();
  publishEngine=ivy.getPublishEngine();
  ivyFile=new File("String_Node_Str");
  assertTrue("String_Node_Str",ivyFile.exists());
  dataFile=File.createTempFile("String_Node_Str","String_Node_Str");
  dataFile.deleteOnExit();
  publishModule=XmlModuleDescriptorParser.getInstance().parseDescriptor(ivy.getSettings(),ivyFile.toURI().toURL(),false);
  publishSources=Collections.singleton(dataFile.getAbsolutePath());
  publishOptions=new PublishOptions();
  publishOptions.setSrcIvyPattern(ivyFile.getAbsolutePath());
  dataArtifact=publishModule.getAllArtifacts()[0];
  assertEquals("String_Node_Str","String_Node_Str",dataArtifact.getName());
  ivyArtifact=MDArtifact.newIvyArtifact(publishModule);
  expectedPublications=new HashMap();
  expectedPublications.put(dataArtifact.getId(),new PublishTestCase(dataArtifact,dataFile,true));
  expectedPublications.put(ivyArtifact.getId(),new PublishTestCase(ivyArtifact,ivyFile,true));
  assertEquals("String_Node_Str",2,expectedPublications.size());
  IvyContext.getContext().push(PublishEventsTest.class.getName(),this);
}
Program: 82663
Project: 82663
Buggy source:
/** 
 * Resolve parent module from module inheritance repository
 * @param parentMrid a given {@link ModuleRevisionId} to find
 * @return a {@link ModuleDescriptor} if found. Return null if no {@link ModuleDescriptor} was found
 * @throws ParseException
 */
protected ModuleDescriptor resolveParentFromModuleInheritanceRepository(ModuleRevisionId parentMrid) throws ParseException {
  Message.debug("String_Node_Str");
  DependencyDescriptor dd=new DefaultDependencyDescriptor(parentMrid,true);
  ResolveEngine engine=IvyContext.getContext().getIvy().getResolveEngine();
  ResolveOptions options=new ResolveOptions();
  options.setDownload(false);
  ResolveData data=new ResolveData(engine,options);
  DependencyResolver resolver=IvyContext.getContext().getSettings().getResolver(getModuleInheritanceRepositoryParentResolverName(parentMrid));
  if (resolver == null) {
    return null;
  }
  dd=NameSpaceHelper.toSystem(dd,getSettings().getContextNamespace());
  ResolvedModuleRevision otherModule=resolver.getDependency(dd,data);
  if (otherModule != null) {
    return otherModule.getDescriptor();
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Resolve parent module from module inheritance repository
 * @param parentMrid a given {@link ModuleRevisionId} to find
 * @return a {@link ModuleDescriptor} if found. Return null if no {@link ModuleDescriptor} was found
 * @throws ParseException
 */
protected ModuleDescriptor resolveParentFromModuleInheritanceRepository(ModuleRevisionId parentMrid) throws ParseException {
  Message.debug("String_Node_Str");
  DependencyDescriptor dd=new DefaultDependencyDescriptor(parentMrid,true);
  ResolveEngine engine=IvyContext.getContext().getIvy().getResolveEngine();
  ResolveOptions options=new ResolveOptions();
  options.setDownload(false);
  ResolveData data=new ResolveData(engine,options);
  IvySettings settings=IvyContext.getContext().getSettings();
  String resolverName=getModuleInheritanceRepositoryParentResolverName(parentMrid);
  if (!settings.hasResolver(resolverName)) {
    return null;
  }
  DependencyResolver resolver=settings.getResolver(resolverName);
  dd=NameSpaceHelper.toSystem(dd,getSettings().getContextNamespace());
  ResolvedModuleRevision otherModule=resolver.getDependency(dd,data);
  if (otherModule != null) {
    return otherModule.getDescriptor();
  }
 else {
    return null;
  }
}
Program: 82664
Project: 82664
Buggy source:
/** 
 * Check if parent module is reachable using location attribute (for dev purpose). If parent module is reachable it will be registered in module inheritance repository 
 * @param location a given location 
 * @param parentMrid 
 * @throws IOException
 * @throws ParseException 
 */
protected DependencyResolver checkParentModuleOnFilesystem(String location,ModuleRevisionId parentMrid) throws IOException {
  if (!"String_Node_Str".equals(descriptorURL.getProtocol())) {
    return null;
  }
  File file=FileUtil.normalize(location);
  if (!file.isAbsolute()) {
    URL url=new URL(descriptorURL,location);
    try {
      file=FileUtil.normalize(new File(new URI(url.toExternalForm())).getAbsolutePath());
    }
 catch (    URISyntaxException e) {
      file=FileUtil.normalize(new File(url.getPath()).getAbsolutePath());
    }
  }
  if (!file.exists()) {
    Message.verbose("String_Node_Str" + file.getAbsolutePath());
    return null;
  }
  FileSystemResolver parentModuleResolver=new FileSystemResolver();
  parentModuleResolver.setName(getModuleInheritanceRepositoryParentResolverName(parentMrid));
  parentModuleResolver.addIvyPattern(file.getAbsolutePath());
  parentModuleResolver.setSettings(IvyContext.getContext().getSettings());
  return parentModuleResolver;
}

Fixed version (ground truth):
/** 
 * Check if parent module is reachable using location attribute (for dev purpose). If parent module is reachable it will be registered in module inheritance repository 
 * @param location a given location 
 * @param parentMrid 
 * @throws IOException
 * @throws ParseException 
 */
protected DependencyResolver checkParentModuleOnFilesystem(String location,ModuleRevisionId parentMrid) throws IOException {
  if (!"String_Node_Str".equals(descriptorURL.getProtocol())) {
    return null;
  }
  File file=new File(location);
  if (!file.isAbsolute()) {
    URL url=new URL(descriptorURL,location);
    try {
      file=new File(new URI(url.toExternalForm()));
    }
 catch (    URISyntaxException e) {
      file=new File(url.getPath());
    }
  }
  file=FileUtil.normalize(file.getAbsolutePath());
  if (!file.exists()) {
    Message.verbose("String_Node_Str" + file.getAbsolutePath());
    return null;
  }
  FileSystemResolver parentModuleResolver=new FileSystemResolver();
  parentModuleResolver.setName(getModuleInheritanceRepositoryParentResolverName(parentMrid));
  parentModuleResolver.addIvyPattern(file.getAbsolutePath());
  parentModuleResolver.setSettings(IvyContext.getContext().getSettings());
  return parentModuleResolver;
}
Program: 82665
Project: 82665
Buggy source:
protected String normalizeToString(URL url) throws IOException {
  if (!"String_Node_Str".equals(url.getProtocol()) && !"String_Node_Str".equals(url.getProtocol())) {
    return url.toExternalForm();
  }
  try {
    URI uri=new URI(url.getProtocol(),url.getAuthority(),url.getPath(),url.getQuery(),url.getRef());
    String uriString=uri.toASCIIString();
    uriString=uriString.replaceAll("String_Node_Str","String_Node_Str");
    return ESCAPE_PATTERN.matcher(uriString).replaceAll("String_Node_Str");
  }
 catch (  URISyntaxException e) {
    IOException ioe=new MalformedURLException("String_Node_Str" + url.toString() + "String_Node_Str");
    ioe.initCause(e);
    throw ioe;
  }
}

Fixed version (ground truth):
protected String normalizeToString(URL url) throws IOException {
  if (!"String_Node_Str".equals(url.getProtocol()) && !"String_Node_Str".equals(url.getProtocol())) {
    return url.toExternalForm();
  }
  try {
    URI uri=new URI(url.getProtocol(),url.getAuthority(),url.getPath(),url.getQuery(),url.getRef());
    String uriString=uri.normalize().toASCIIString();
    uriString=uriString.replaceAll("String_Node_Str","String_Node_Str");
    return ESCAPE_PATTERN.matcher(uriString).replaceAll("String_Node_Str");
  }
 catch (  URISyntaxException e) {
    IOException ioe=new MalformedURLException("String_Node_Str" + url.toString() + "String_Node_Str");
    ioe.initCause(e);
    throw ioe;
  }
}