Program: 107030
Project: 107030
Buggy source:
private List<HostVO> searchForServers(Long startIndex,Long pageSize,Object name,Object type,Object state,Object zone,Object pod,Object cluster,Object id,Object keyword,Object allocationState){
  Filter searchFilter=new Filter(HostVO.class,"String_Node_Str",Boolean.TRUE,startIndex,pageSize);
  SearchCriteria<HostVO> sc=_hostDao.createSearchCriteria();
  if (keyword != null) {
    SearchCriteria<HostVO> ssc=_hostDao.createSearchCriteria();
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    sc.addAnd("String_Node_Str",SearchCriteria.Op.SC,ssc);
  }
  if (id != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,id);
  }
  if (name != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + name + "String_Node_Str");
  }
  if (type != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,type);
  }
  if (state != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,state);
  }
  if (zone != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,zone);
  }
  if (pod != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,pod);
  }
  if (cluster != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,cluster);
  }
  if (allocationState != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,allocationState);
  }
  return _hostDao.search(sc,searchFilter);
}

Fixed version (ground truth):
private List<HostVO> searchForServers(Long startIndex,Long pageSize,Object name,Object type,Object state,Object zone,Object pod,Object cluster,Object id,Object keyword,Object allocationState){
  Filter searchFilter=new Filter(HostVO.class,"String_Node_Str",Boolean.TRUE,startIndex,pageSize);
  SearchCriteria<HostVO> sc=_hostDao.createSearchCriteria();
  if (keyword != null) {
    SearchCriteria<HostVO> ssc=_hostDao.createSearchCriteria();
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    ssc.addOr("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + keyword + "String_Node_Str");
    sc.addAnd("String_Node_Str",SearchCriteria.Op.SC,ssc);
  }
  if (id != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,id);
  }
  if (name != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + name + "String_Node_Str");
  }
  if (type != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.LIKE,"String_Node_Str" + type + "String_Node_Str");
  }
  if (state != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,state);
  }
  if (zone != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,zone);
  }
  if (pod != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,pod);
  }
  if (cluster != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,cluster);
  }
  if (allocationState != null) {
    sc.addAnd("String_Node_Str",SearchCriteria.Op.EQ,allocationState);
  }
  return _hostDao.search(sc,searchFilter);
}