Program: 53048
Project: 53048
Buggy source:
@Test @Ignore public void testMostSimilarPages() throws WikapidiaException, DaoException, ConfigurationException, ClassNotFoundException, IOException {
  Configurator c=new Configurator(new Configuration());
  LocalPageDao localPageDao=c.get(LocalPageDao.class);
  Language lang=Language.getByLangCode("String_Node_Str");
  LuceneSearcher searcher=new LuceneSearcher(new LanguageSet(Arrays.asList(lang)),LuceneOptions.getDefaultOptions());
  ESAMetric esaMetric=new ESAMetric(lang,searcher,localPageDao);
  String string1="String_Node_Str";
  String string2="String_Node_Str";
  String string3="String_Node_Str";
  String string4="String_Node_Str";
  LocalPage page1=localPageDao.getByTitle(lang,new Title(string1,lang),NameSpace.ARTICLE);
  LocalPage page2=localPageDao.getByTitle(lang,new Title(string2,lang),NameSpace.ARTICLE);
  LocalPage page3=localPageDao.getByTitle(lang,new Title(string3,lang),NameSpace.ARTICLE);
  LocalPage page4=localPageDao.getByTitle(lang,new Title(string4,lang),NameSpace.ARTICLE);
  System.out.println(page3);
  SRResultList srResults=esaMetric.mostSimilar(page3,10,true);
  for (  SRResult srResult : srResults) {
    printResult(srResult);
  }
  System.out.println(Arrays.toString(srResults.getScoresAsFloat()));
  System.out.println(page4);
  SRResultList srResults2=esaMetric.mostSimilar(page4,10,true);
  for (  SRResult srResult : srResults2) {
    printResult(srResult);
  }
  System.out.println(Arrays.toString(srResults2.getScoresAsFloat()));
  String[] testPhrases={string3,string4};
  for (int i=0; i < testPhrases.length; i++) {
    for (int j=i + 1; j < testPhrases.length; j++) {
      SRResult srResult=esaMetric.similarity(testPhrases[i],testPhrases[j],lang,true);
      System.out.println(testPhrases[i] + "String_Node_Str" + testPhrases[j]+ "String_Node_Str");
      printResult(srResult);
    }
  }
  LocalPage[] testPages={page3,page4};
  for (int i=0; i < testPages.length; i++) {
    for (int j=i + 1; j < testPages.length; j++) {
      SRResult srResult=esaMetric.similarity(testPages[i],testPages[j],true);
      System.out.println(testPages[i].getTitle().getCanonicalTitle() + "String_Node_Str" + testPages[j].getTitle().getCanonicalTitle()+ "String_Node_Str");
      printResult(srResult);
    }
  }
}

Fixed version (ground truth):
@Test @Ignore public void testMostSimilarPages() throws WikapidiaException, DaoException, ConfigurationException, ClassNotFoundException, IOException {
  Configurator c=new Configurator(new Configuration());
  LocalPageDao localPageDao=c.get(LocalPageDao.class);
  Language lang=Language.getByLangCode("String_Node_Str");
  LuceneSearcher searcher=new LuceneSearcher(new LanguageSet(Arrays.asList(lang)),LuceneOptions.getDefaultOptions());
  ESAMetric esaMetric=new ESAMetric(lang,searcher,localPageDao);
  String string1="String_Node_Str";
  String string2="String_Node_Str";
  String string3="String_Node_Str";
  String string4="String_Node_Str";
  LocalPage page1=localPageDao.getByTitle(lang,new Title(string1,lang),NameSpace.ARTICLE);
  LocalPage page2=localPageDao.getByTitle(lang,new Title(string2,lang),NameSpace.ARTICLE);
  LocalPage page3=localPageDao.getByTitle(lang,new Title(string3,lang),NameSpace.ARTICLE);
  LocalPage page4=localPageDao.getByTitle(lang,new Title(string4,lang),NameSpace.ARTICLE);
  System.out.println(page3);
  SRResultList srResults=esaMetric.mostSimilar(page3,10);
  for (  SRResult srResult : srResults) {
    printResult(srResult);
  }
  System.out.println(Arrays.toString(srResults.getScoresAsFloat()));
  System.out.println(page4);
  SRResultList srResults2=esaMetric.mostSimilar(page4,10);
  for (  SRResult srResult : srResults2) {
    printResult(srResult);
  }
  System.out.println(Arrays.toString(srResults2.getScoresAsFloat()));
  String[] testPhrases={string3,string4};
  for (int i=0; i < testPhrases.length; i++) {
    for (int j=i + 1; j < testPhrases.length; j++) {
      SRResult srResult=esaMetric.similarity(testPhrases[i],testPhrases[j],lang,true);
      System.out.println(testPhrases[i] + "String_Node_Str" + testPhrases[j]+ "String_Node_Str");
      printResult(srResult);
    }
  }
  LocalPage[] testPages={page3,page4};
  for (int i=0; i < testPages.length; i++) {
    for (int j=i + 1; j < testPages.length; j++) {
      SRResult srResult=esaMetric.similarity(testPages[i],testPages[j],true);
      System.out.println(testPages[i].getTitle().getCanonicalTitle() + "String_Node_Str" + testPages[j].getTitle().getCanonicalTitle()+ "String_Node_Str");
      printResult(srResult);
    }
  }
}