Program: 12296
Project: 12296
Buggy source:
/** 
 * Initialise common run-time parameters
 * @param params, command line run-time parameters (paramKey, value) for termranking algorithms <p> see also {code CommandLineParams}
 * @throws JATEException
 */
App(Map<String,String> params) throws JATEException {
  if (params.containsKey(AppParams.CUTOFF_TOP_K.getParamKey())) {
    String topKSetting=params.get(AppParams.CUTOFF_TOP_K.getParamKey());
    this.cutoffTopK=parseIntParam("String_Node_Str" + AppParams.CUTOFF_TOP_K.getParamKey(),topKSetting);
    log.debug(String.format("String_Node_Str",topKSetting));
  }
  if (params.containsKey(AppParams.CUTOFF_TOP_K_PERCENT.getParamKey())) {
    String topPercSetting=params.get(AppParams.CUTOFF_TOP_K_PERCENT.getParamKey());
    this.cutoffTopKPercent=parseDoubleParam("String_Node_Str" + AppParams.CUTOFF_TOP_K_PERCENT.getParamKey(),topPercSetting);
    log.debug(String.format("String_Node_Str",topPercSetting));
  }
  if (params.containsKey(AppParams.CUTOFF_THRESHOLD.getParamKey())) {
    String cutOffThreshold=params.get(AppParams.CUTOFF_THRESHOLD.getParamKey());
    this.cutoffThreshold=parseDoubleParam("String_Node_Str" + AppParams.CUTOFF_THRESHOLD.getParamKey(),cutOffThreshold);
    log.debug(String.format("String_Node_Str",cutOffThreshold));
  }
  if (params.containsKey(AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY.getParamKey())) {
    String minTCF=params.get(AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY.getParamKey());
    this.prefilterMinTCF=parseIntParam("String_Node_Str" + AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY,minTCF);
    log.debug(String.format("String_Node_Str",prefilterMinTCF));
  }
  if (params.containsKey(AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY.getParamKey())) {
    String minTTF=params.get(AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY.getParamKey());
    this.prefilterMinTTF=parseIntParam("String_Node_Str" + AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY,minTTF);
    log.debug(String.format("String_Node_Str",prefilterMinTCF));
  }
  if (params.containsKey(AppParams.COLLECT_TERM_INFO.getParamKey())) {
    String collectTermOffsets=params.get(AppParams.COLLECT_TERM_INFO.getParamKey());
    if (collectTermOffsets != null && collectTermOffsets.equalsIgnoreCase("String_Node_Str")) {
      this.collectTermInfo=true;
      log.debug("String_Node_Str");
    }
  }
  if (params.containsKey(AppParams.OUTPUT_FILE.getParamKey())) {
    String outFile=params.get(AppParams.OUTPUT_FILE.getParamKey());
    StringBuilder msg=new StringBuilder("String_Node_Str");
    msg.append("String_Node_Str");
    if (outFile == null) {
      log.warn(msg.toString());
      outputFile="String_Node_Str";
    }
 else {
      try {
        PrintWriter p=new PrintWriter(outFile);
        p.close();
        outputFile=outFile;
      }
 catch (      IOException ioe) {
        log.warn(msg.toString());
        outputFile="String_Node_Str";
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Initialise common run-time parameters
 * @param params, command line run-time parameters (paramKey, value) for termranking algorithms
 * @see AppParams
 * @throws JATEException
 * @see AppParams
 */
App(Map<String,String> params) throws JATEException {
  if (params.containsKey(AppParams.CUTOFF_TOP_K.getParamKey())) {
    String topKSetting=params.get(AppParams.CUTOFF_TOP_K.getParamKey());
    this.cutoffTopK=parseIntParam("String_Node_Str" + AppParams.CUTOFF_TOP_K.getParamKey(),topKSetting);
    log.debug(String.format("String_Node_Str",topKSetting));
  }
  if (params.containsKey(AppParams.CUTOFF_TOP_K_PERCENT.getParamKey())) {
    String topPercSetting=params.get(AppParams.CUTOFF_TOP_K_PERCENT.getParamKey());
    this.cutoffTopKPercent=parseDoubleParam("String_Node_Str" + AppParams.CUTOFF_TOP_K_PERCENT.getParamKey(),topPercSetting);
    log.debug(String.format("String_Node_Str",topPercSetting));
  }
  if (params.containsKey(AppParams.CUTOFF_THRESHOLD.getParamKey())) {
    String cutOffThreshold=params.get(AppParams.CUTOFF_THRESHOLD.getParamKey());
    this.cutoffThreshold=parseDoubleParam("String_Node_Str" + AppParams.CUTOFF_THRESHOLD.getParamKey(),cutOffThreshold);
    log.debug(String.format("String_Node_Str",cutOffThreshold));
  }
  if (params.containsKey(AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY.getParamKey())) {
    String minTCF=params.get(AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY.getParamKey());
    this.prefilterMinTCF=parseIntParam("String_Node_Str" + AppParams.PREFILTER_MIN_TERM_CONTEXT_FREQUENCY,minTCF);
    log.debug(String.format("String_Node_Str",prefilterMinTCF));
  }
  if (params.containsKey(AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY.getParamKey())) {
    String minTTF=params.get(AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY.getParamKey());
    this.prefilterMinTTF=parseIntParam("String_Node_Str" + AppParams.PREFILTER_MIN_TERM_TOTAL_FREQUENCY,minTTF);
    log.debug(String.format("String_Node_Str",prefilterMinTCF));
  }
  if (params.containsKey(AppParams.COLLECT_TERM_INFO.getParamKey())) {
    String collectTermOffsets=params.get(AppParams.COLLECT_TERM_INFO.getParamKey());
    if (collectTermOffsets != null && collectTermOffsets.equalsIgnoreCase("String_Node_Str")) {
      this.collectTermInfo=true;
      log.debug("String_Node_Str");
    }
  }
  if (params.containsKey(AppParams.OUTPUT_FILE.getParamKey())) {
    String outFile=params.get(AppParams.OUTPUT_FILE.getParamKey());
    String msg="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
    if (outFile == null) {
      log.warn(msg);
      outputFile=DEFAULT_OUTPUT_FILE;
    }
 else {
      try {
        PrintWriter p=new PrintWriter(outFile);
        p.close();
        outputFile=outFile;
      }
 catch (      IOException ioe) {
        log.warn(msg);
        outputFile=DEFAULT_OUTPUT_FILE;
      }
    }
  }
}