Program: 12292
Project: 12292
Buggy source:
private Algorithm getAlgorithm(String algName) throws JATEException {
  if (StringUtils.isEmpty(algName)) {
    throw new JATEException("String_Node_Str" + "String_Node_Str");
  }
  if (algName.equalsIgnoreCase(Algorithm.C_VALUE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.C_VALUE.getAlgorithmName()));
    return Algorithm.C_VALUE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.ATTF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.ATTF.getAlgorithmName()));
    return Algorithm.ATTF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.CHI_SQUARE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.CHI_SQUARE.getAlgorithmName()));
    return Algorithm.CHI_SQUARE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.GLOSSEX.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.GLOSSEX.getAlgorithmName()));
    return Algorithm.GLOSSEX;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.RAKE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.RAKE.getAlgorithmName()));
    return Algorithm.RAKE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.RIDF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.RIDF.getAlgorithmName()));
    return Algorithm.RIDF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TERM_EX.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TERM_EX.getAlgorithmName()));
    return Algorithm.TERM_EX;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TF_IDF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TF_IDF.getAlgorithmName()));
    return Algorithm.TF_IDF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TTF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TTF.getAlgorithmName()));
    return Algorithm.TTF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.WEIRDNESS.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.WEIRDNESS.getAlgorithmName()));
    return Algorithm.WEIRDNESS;
  }
 else {
    throw new JATEException(String.format("String_Node_Str",algName));
  }
}

Fixed version (ground truth):
private Algorithm getAlgorithm(String algName) throws JATEException {
  if (StringUtils.isEmpty(algName)) {
    throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"String_Node_Str" + "String_Node_Str");
  }
  if (algName.equalsIgnoreCase(Algorithm.C_VALUE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.C_VALUE.getAlgorithmName()));
    return Algorithm.C_VALUE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.ATTF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.ATTF.getAlgorithmName()));
    return Algorithm.ATTF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.CHI_SQUARE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.CHI_SQUARE.getAlgorithmName()));
    return Algorithm.CHI_SQUARE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.GLOSSEX.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.GLOSSEX.getAlgorithmName()));
    return Algorithm.GLOSSEX;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.RAKE.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.RAKE.getAlgorithmName()));
    return Algorithm.RAKE;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.RIDF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.RIDF.getAlgorithmName()));
    return Algorithm.RIDF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TERM_EX.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TERM_EX.getAlgorithmName()));
    return Algorithm.TERM_EX;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TF_IDF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TF_IDF.getAlgorithmName()));
    return Algorithm.TF_IDF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.TTF.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.TTF.getAlgorithmName()));
    return Algorithm.TTF;
  }
 else   if (algName.equalsIgnoreCase(Algorithm.WEIRDNESS.getAlgorithmName())) {
    log.debug(String.format("String_Node_Str",Algorithm.WEIRDNESS.getAlgorithmName()));
    return Algorithm.WEIRDNESS;
  }
 else {
    throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,String.format("String_Node_Str" + "String_Node_Str",algName));
  }
}