Program: 176524
Project: 176524
Buggy source:
/** 
 * On counter column.
 * @param m the m
 * @param isRelation the is relation
 * @param relations the relations
 * @param ks the ks
 * @return the list
 */
protected List<Object> onCounterColumn(EntityMetadata m,boolean isRelation,List<String> relations,List<KeySlice> ks){
  List<Object> entities;
  if (m.getType().isSuperColumnFamilyMetadata()) {
    Map<Bytes,List<CounterSuperColumn>> qCounterSuperColumnResults=ColumnOrSuperColumnHelper.transformKeySlices(ks,ColumnOrSuperColumnHelper.COUNTER_SUPER_COLUMN);
    entities=new ArrayList<Object>(qCounterSuperColumnResults.size());
    for (    Bytes key : qCounterSuperColumnResults.keySet()) {
      List<CounterSuperColumn> counterSuperColumns=qCounterSuperColumnResults.get(key);
      ThriftRow tr=new ThriftRow(PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(),key.toByteArray()),m.getTableName(),new ArrayList<Column>(0),new ArrayList<SuperColumn>(0),new ArrayList<CounterColumn>(0),counterSuperColumns);
      entities.add(getDataHandler().populateEntity(tr,m,relations,isRelation,isCql3Enabled(m)));
    }
  }
 else {
    Map<Bytes,List<CounterColumn>> qCounterColumnResults=ColumnOrSuperColumnHelper.transformKeySlices(ks,ColumnOrSuperColumnHelper.COUNTER_COLUMN);
    entities=new ArrayList<Object>(qCounterColumnResults.size());
    for (    Bytes key : qCounterColumnResults.keySet()) {
      List<CounterColumn> counterColumns=qCounterColumnResults.get(key);
      ThriftRow tr=new ThriftRow(PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(),key.toByteArray()),m.getTableName(),new ArrayList<Column>(0),new ArrayList<SuperColumn>(0),counterColumns,new ArrayList<CounterSuperColumn>(0));
      entities.add(getDataHandler().populateEntity(tr,m,relations,isRelation,isCql3Enabled(m)));
    }
  }
  return entities;
}

Fixed version (ground truth):
/** 
 * On counter column.
 * @param m the m
 * @param isRelation the is relation
 * @param relations the relations
 * @param ks the ks
 * @return the list
 */
protected List<Object> onCounterColumn(EntityMetadata m,boolean isRelation,List<String> relations,List<KeySlice> ks){
  List<Object> entities;
  if (m.getType().isSuperColumnFamilyMetadata()) {
    Map<Bytes,List<CounterSuperColumn>> qCounterSuperColumnResults=ColumnOrSuperColumnHelper.transformKeySlices(ks,ColumnOrSuperColumnHelper.COUNTER_SUPER_COLUMN);
    entities=new ArrayList<Object>(qCounterSuperColumnResults.size());
    for (    Bytes key : qCounterSuperColumnResults.keySet()) {
      List<CounterSuperColumn> counterSuperColumns=qCounterSuperColumnResults.get(key);
      ThriftRow tr=new ThriftRow(PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(),key.toByteArray()),m.getTableName(),new ArrayList<Column>(0),new ArrayList<SuperColumn>(0),new ArrayList<CounterColumn>(0),counterSuperColumns);
      entities.add(getDataHandler().populateEntity(tr,m,relations,isRelation));
    }
  }
 else {
    Map<Bytes,List<CounterColumn>> qCounterColumnResults=ColumnOrSuperColumnHelper.transformKeySlices(ks,ColumnOrSuperColumnHelper.COUNTER_COLUMN);
    entities=new ArrayList<Object>(qCounterColumnResults.size());
    for (    Bytes key : qCounterColumnResults.keySet()) {
      List<CounterColumn> counterColumns=qCounterColumnResults.get(key);
      ThriftRow tr=new ThriftRow(PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(),key.toByteArray()),m.getTableName(),new ArrayList<Column>(0),new ArrayList<SuperColumn>(0),counterColumns,new ArrayList<CounterSuperColumn>(0));
      entities.add(getDataHandler().populateEntity(tr,m,relations,isRelation));
    }
  }
  return entities;
}