Program: 69921
Project: 69921
Buggy source:
private boolean chooseRepositoryResource(Selenium browser,String chooseRepositoryCss,long key){
  StringBuffer selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(chooseRepositoryCss).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  functionalUtil.waitForPageToLoad(browser);
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(getRepositoryPopupSearchResourcesCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(FunctionalRepositorySiteUtil.SearchField.ID.getEntryCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.type(selectorBuffer.toString(),Long.toString(key));
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(getRepositoryPopupCss()).append("String_Node_Str").append(functionalUtil.getButtonCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(FunctionalRepositorySiteUtil.SearchField.ID.getEntryCss()).append("String_Node_Str").append(functionalUtil.getTableFirstChildCss()).append("String_Node_Str").append(functionalUtil.getTableLastChildCss()).append("String_Node_Str").append(functionalUtil.getTableLastChildCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  return (true);
}

Fixed version (ground truth):
private boolean chooseRepositoryResource(Selenium browser,String chooseRepositoryCss,long key){
  StringBuffer selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(chooseRepositoryCss).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  functionalUtil.waitForPageToLoad(browser);
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(getRepositoryPopupSearchResourcesCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(FunctionalRepositorySiteUtil.SearchField.ID.getEntryCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.type(selectorBuffer.toString(),Long.toString(key));
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(getRepositoryPopupCss()).append("String_Node_Str").append(functionalUtil.getButtonCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  selectorBuffer=new StringBuffer();
  selectorBuffer.append("String_Node_Str").append(getRepositoryPopupCss()).append("String_Node_Str").append(functionalUtil.getTableFirstChildCss()).append("String_Node_Str").append(functionalUtil.getTableLastChildCss()).append("String_Node_Str").append(functionalUtil.getTableLastChildCss()).append("String_Node_Str");
  functionalUtil.waitForPageToLoadElement(browser,selectorBuffer.toString());
  browser.click(selectorBuffer.toString());
  functionalUtil.waitForPageToUnloadElement(browser,selectorBuffer.toString());
  return (true);
}