Program: 33767
Project: 33767
Buggy source:
public static void main(String[] args) throws Exception {
  try {
    SAXVSMDirectSamplerParams params=new SAXVSMDirectSamplerParams();
    JCommander jct=new JCommander(params,args);
    if (0 == args.length) {
      jct.usage();
      System.exit(-10);
    }
    StringBuffer sb=new StringBuffer(1024);
    sb.append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.TRAIN_FILE).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.TEST_FILE).append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_NORM_THRESHOLD).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.HOLD_OUT_NUM).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.ITERATIONS_NUM).append(CR);
    consoleLogger.info(sb.toString());
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.ITERATIONS_BREAK_THRESHOLD).append(CR);
    consoleLogger.info(sb.toString());
    trainData=UCRUtils.readUCRData(SAXVSMDirectSamplerParams.TRAIN_FILE);
    consoleLogger.info("String_Node_Str" + trainData.size() + "String_Node_Str"+ trainData.entrySet().iterator().next().getValue().get(0).length);
    for (    Entry<String,List<double[]>> e : trainData.entrySet()) {
      consoleLogger.info("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().size());
    }
    testData=UCRUtils.readUCRData(SAXVSMDirectSamplerParams.TEST_FILE);
    consoleLogger.info("String_Node_Str" + testData.size() + "String_Node_Str"+ testData.entrySet().iterator().next().getValue().get(0).length);
    for (    Entry<String,List<double[]>> e : testData.entrySet()) {
      consoleLogger.info("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().size());
    }
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + StackTrace.toString(e));
    System.exit(-10);
  }
  Date start=new Date();
  lowerBounds=new int[]{SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MIN,SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MIN,SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MIN};
  upperBounds=new int[]{SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MAX,SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MAX,SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MAX};
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.MINDIST.toString() + "String_Node_Str");
  Params classicParams=sample(NumerosityReductionStrategy.MINDIST);
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.EXACT.toString() + "String_Node_Str");
  Params exactParams=sample(NumerosityReductionStrategy.EXACT);
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.NONE.toString() + "String_Node_Str");
  Params noredParams=sample(NumerosityReductionStrategy.NONE);
  Date finish=new Date();
  classify(classicParams);
  classify(exactParams);
  classify(noredParams);
  consoleLogger.info("String_Node_Str" + Long.valueOf(finish.getTime() - start.getTime()).toString() + "String_Node_Str"+ SAXProcessor.timeToString(start.getTime(),finish.getTime()));
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  try {
    SAXVSMDirectSamplerParams params=new SAXVSMDirectSamplerParams();
    JCommander jct=new JCommander(params,args);
    if (0 == args.length) {
      jct.usage();
      System.exit(-10);
    }
    StringBuffer sb=new StringBuffer(1024);
    sb.append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.TRAIN_FILE).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.TEST_FILE).append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MIN).append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MAX).append("String_Node_Str").append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.SAX_NORM_THRESHOLD).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.HOLD_OUT_NUM).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.ITERATIONS_NUM).append(CR);
    sb.append("String_Node_Str").append(SAXVSMDirectSamplerParams.ITERATIONS_BREAK_THRESHOLD).append(CR);
    consoleLogger.info(sb.toString());
    trainData=UCRUtils.readUCRData(SAXVSMDirectSamplerParams.TRAIN_FILE);
    consoleLogger.info("String_Node_Str" + trainData.size() + "String_Node_Str"+ trainData.entrySet().iterator().next().getValue().get(0).length);
    for (    Entry<String,List<double[]>> e : trainData.entrySet()) {
      consoleLogger.info("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().size());
    }
    testData=UCRUtils.readUCRData(SAXVSMDirectSamplerParams.TEST_FILE);
    consoleLogger.info("String_Node_Str" + testData.size() + "String_Node_Str"+ testData.entrySet().iterator().next().getValue().get(0).length);
    for (    Entry<String,List<double[]>> e : testData.entrySet()) {
      consoleLogger.info("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().size());
    }
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + StackTrace.toString(e));
    System.exit(-10);
  }
  Date start=new Date();
  lowerBounds=new int[]{SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MIN,SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MIN,SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MIN};
  upperBounds=new int[]{SAXVSMDirectSamplerParams.SAX_WINDOW_SIZE_MAX,SAXVSMDirectSamplerParams.SAX_PAA_SIZE_MAX,SAXVSMDirectSamplerParams.SAX_ALPHABET_SIZE_MAX};
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.MINDIST.toString() + "String_Node_Str");
  Params classicParams=sample(NumerosityReductionStrategy.MINDIST);
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.EXACT.toString() + "String_Node_Str");
  Params exactParams=sample(NumerosityReductionStrategy.EXACT);
  consoleLogger.info("String_Node_Str" + NumerosityReductionStrategy.NONE.toString() + "String_Node_Str");
  Params noredParams=sample(NumerosityReductionStrategy.NONE);
  Date finish=new Date();
  classify(classicParams);
  classify(exactParams);
  classify(noredParams);
  consoleLogger.info("String_Node_Str" + Long.valueOf(finish.getTime() - start.getTime()).toString() + "String_Node_Str"+ SAXProcessor.timeToString(start.getTime(),finish.getTime()));
}