Program: 47753
Project: 47753
Buggy source:
/** 
 * Get the Kettle ValueMeta that corresponds to the type of the supplied cassandra column.
 * @param colName the name of the column to get a ValueMeta for
 * @return the ValueMeta that is appropriate for the type of the suppliedcolumn.
 */
public ValueMetaInterface getValueMetaForColumn(String colName){
  String type=null;
  if (colName.equals(getKeyName())) {
    type=m_keyValidator;
  }
 else {
    type=m_columnMeta.get(colName);
    if (type == null) {
      type=m_defaultValidationClass;
    }
  }
  int kettleType=0;
  if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_STRING;
  }
 else   if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_INTEGER;
  }
 else   if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_NUMBER;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_DATE;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BIGNUMBER;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BINARY;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BOOLEAN;
  }
  ValueMetaInterface newVM=new ValueMeta(colName,kettleType);
  return newVM;
}

Fixed version (ground truth):
/** 
 * Get the Kettle ValueMeta that corresponds to the type of the supplied cassandra column.
 * @param colName the name of the column to get a ValueMeta for
 * @return the ValueMeta that is appropriate for the type of the suppliedcolumn.
 */
public ValueMetaInterface getValueMetaForColumn(String colName){
  String type=null;
  if (colName.equals(getKeyName())) {
    type=m_keyValidator;
  }
 else {
    type=m_columnMeta.get(colName);
    if (type == null) {
      type=m_defaultValidationClass;
    }
  }
  int kettleType=0;
  if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_STRING;
  }
 else   if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_INTEGER;
  }
 else   if (type.indexOf("String_Node_Str") > 0 || type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_NUMBER;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_DATE;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BIGNUMBER;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BINARY;
  }
 else   if (type.indexOf("String_Node_Str") > 0) {
    kettleType=ValueMetaInterface.TYPE_BOOLEAN;
  }
  ValueMetaInterface newVM=new ValueMeta(colName,kettleType);
  if (m_indexedVals.containsKey(colName)) {
    newVM.setStorageType(ValueMetaInterface.STORAGE_TYPE_INDEXED);
    HashSet<Object> indexedV=m_indexedVals.get(colName);
    Object[] iv=indexedV.toArray();
    newVM.setIndex(iv);
  }
  return newVM;
}