Program: 92407
Project: 92407
Buggy source:
@Override public boolean analyse(DResult pres){
  log.info("String_Node_Str",pres);
  Endpoint ep=pres.getEndpointResult().getEndpoint();
  DiscoverabilityView dview=getView(ep);
  EPView epview=getEPView(ep);
  List<EPViewDiscoverabilityData> lvoid=new ArrayList<EPViewDiscoverabilityData>();
  List<EPViewDiscoverabilityData> lsd=new ArrayList<EPViewDiscoverabilityData>();
  for (  DGETInfo info : pres.getDescriptionFiles()) {
    if (info.getOperation().equals("String_Node_Str")) {
      dview.setServerName(info.getResponseServer());
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getVoiDpreds().size() != 0);
      lvoid.add(d);
      d=new EPViewDiscoverabilityData("String_Node_Str",info.getSPARQLDESCpreds().size() != 0);
      lsd.add(d);
    }
    if (info.getOperation().equals("String_Node_Str")) {
      dview.setServerName(info.getResponseServer());
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getVoiDpreds().size() != 0);
      lvoid.add(d);
      d=new EPViewDiscoverabilityData("String_Node_Str",info.getSPARQLDESCpreds().size() != 0);
      lsd.add(d);
    }
    if (info.getSPARQLDESCpreds().size() > 0) {
      dview.setSD(true);
    }
    if (info.getVoiDpreds().size() > 0) {
      dview.setVoID(true);
    }
  }
  EPViewDiscoverability depview=epview.getDiscoverability();
  depview.setServerName(dview.getServerName());
  depview.setVoIDDescription(lvoid);
  for (  QueryInfo info : pres.getQueryInfo()) {
    if (info.getOperation().equals("String_Node_Str")) {
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getResults().size() != 0);
      lvoid.add(d);
    }
  }
  dview.setLastUpdate(pres.getEndpointResult().getEnd());
  _db.update(dview);
  _db.update(epview);
  return true;
}

Fixed version (ground truth):
@Override public boolean analyse(DResult pres){
  log.info("String_Node_Str",pres);
  Endpoint ep=pres.getEndpointResult().getEndpoint();
  DiscoverabilityView dview=getView(ep);
  EPView epview=getEPView(ep);
  List<EPViewDiscoverabilityData> lvoid=new ArrayList<EPViewDiscoverabilityData>();
  List<EPViewDiscoverabilityData> lsd=new ArrayList<EPViewDiscoverabilityData>();
  String serverName="String_Node_Str";
  for (  DGETInfo info : pres.getDescriptionFiles()) {
    if (info.getOperation().equals(DTask.EPURL)) {
      if (!info.getResponseServer().equals("String_Node_Str"))       dview.setServerName(info.getResponseServer());
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getVoiDpreds().size() != 0);
      lvoid.add(d);
      d=new EPViewDiscoverabilityData("String_Node_Str",info.getSPARQLDESCpreds().size() != 0);
      lsd.add(d);
    }
    if (info.getOperation().equals("String_Node_Str")) {
      if (!info.getResponseServer().equals("String_Node_Str"))       dview.setServerName(info.getResponseServer());
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getVoiDpreds().size() != 0);
      lvoid.add(d);
      d=new EPViewDiscoverabilityData("String_Node_Str",info.getSPARQLDESCpreds().size() != 0);
      lsd.add(d);
    }
    if (info.getSPARQLDESCpreds().size() > 0) {
      dview.setSD(true);
    }
    if (info.getVoiDpreds().size() > 0) {
      dview.setVoID(true);
    }
  }
  EPViewDiscoverability depview=epview.getDiscoverability();
  depview.setServerName(dview.getServerName());
  depview.setVoIDDescription(lvoid);
  for (  QueryInfo info : pres.getQueryInfo()) {
    if (info.getOperation().equals("String_Node_Str")) {
      EPViewDiscoverabilityData d=new EPViewDiscoverabilityData("String_Node_Str",info.getResults().size() != 0);
      lvoid.add(d);
    }
  }
  dview.setLastUpdate(pres.getEndpointResult().getEnd());
  _db.update(dview);
  _db.update(epview);
  return true;
}