Program: 31764
Project: 31764
Buggy source:
private int checkContinuousTraining(FileSystem fileSystem,List<String> localArgs,Path modelPath) throws IOException {
  int finalContinuous=0;
  if (Boolean.TRUE.toString().equals(this.modelConfig.getTrain().getIsContinuous().toString())) {
    if (this.isForVarSelect) {
      finalContinuous=0;
      LOG.warn("String_Node_Str");
    }
 else     if (!fileSystem.exists(modelPath)) {
      finalContinuous=0;
      LOG.info("String_Node_Str");
    }
 else     if (NNConstants.NN_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm()) && !inputOutputModelCheckSuccess(fileSystem,modelPath)) {
      finalContinuous=0;
      LOG.warn("String_Node_Str" + "String_Node_Str");
    }
 else     if (CommonConstants.GBT_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm())) {
      TreeModel model=(TreeModel)CommonUtils.loadModel(this.modelConfig,modelPath,fileSystem);
      if (!model.getAlgorithm().equalsIgnoreCase(modelConfig.getAlgorithm())) {
        finalContinuous=0;
        LOG.warn("String_Node_Str");
      }
 else       if (!model.getLossStr().equalsIgnoreCase(this.modelConfig.getTrain().getParams().get("String_Node_Str").toString())) {
        finalContinuous=0;
        LOG.warn("String_Node_Str");
      }
 else       if (model.getTrees().size() == 0) {
        finalContinuous=0;
      }
 else       if (model.getTrees().size() >= Integer.valueOf(modelConfig.getTrain().getParams().get("String_Node_Str").toString())) {
        finalContinuous=-1;
      }
 else {
        finalContinuous=1;
      }
    }
 else     if (CommonConstants.RF_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm())) {
      finalContinuous=0;
      LOG.warn("String_Node_Str");
    }
 else {
      finalContinuous=1;
    }
  }
 else {
    finalContinuous=0;
  }
  localArgs.add(String.format(CommonConstants.MAPREDUCE_PARAM_FORMAT,CommonConstants.CONTINUOUS_TRAINING,finalContinuous == 1 ? "String_Node_Str" : "String_Node_Str"));
  return finalContinuous;
}

Fixed version (ground truth):
private int checkContinuousTraining(FileSystem fileSystem,List<String> localArgs,Path modelPath,Map<String,Object> modelParams) throws IOException {
  int finalContinuous=0;
  if (Boolean.TRUE.toString().equals(this.modelConfig.getTrain().getIsContinuous().toString())) {
    if (this.isForVarSelect) {
      finalContinuous=0;
      LOG.warn("String_Node_Str");
    }
 else     if (!fileSystem.exists(modelPath)) {
      finalContinuous=0;
      LOG.info("String_Node_Str");
    }
 else     if (NNConstants.NN_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm()) && !inputOutputModelCheckSuccess(fileSystem,modelPath,modelParams)) {
      finalContinuous=0;
      LOG.warn("String_Node_Str");
    }
 else     if (CommonConstants.GBT_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm())) {
      TreeModel model=(TreeModel)CommonUtils.loadModel(this.modelConfig,modelPath,fileSystem);
      if (!model.getAlgorithm().equalsIgnoreCase(modelConfig.getAlgorithm())) {
        finalContinuous=0;
        LOG.warn("String_Node_Str");
      }
 else       if (!model.getLossStr().equalsIgnoreCase(this.modelConfig.getTrain().getParams().get("String_Node_Str").toString())) {
        finalContinuous=0;
        LOG.warn("String_Node_Str");
      }
 else       if (model.getTrees().size() == 0) {
        finalContinuous=0;
      }
 else       if (model.getTrees().size() >= Integer.valueOf(modelConfig.getTrain().getParams().get("String_Node_Str").toString())) {
        finalContinuous=-1;
      }
 else {
        finalContinuous=1;
      }
    }
 else     if (CommonConstants.RF_ALG_NAME.equalsIgnoreCase(modelConfig.getAlgorithm())) {
      finalContinuous=0;
      LOG.warn("String_Node_Str");
    }
 else {
      finalContinuous=1;
    }
  }
 else {
    finalContinuous=0;
  }
  localArgs.add(String.format(CommonConstants.MAPREDUCE_PARAM_FORMAT,CommonConstants.CONTINUOUS_TRAINING,finalContinuous == 1 ? "String_Node_Str" : "String_Node_Str"));
  return finalContinuous;
}