// Path: src/main/java/RFLogger.java
// public class RFLogger {
// 
//     private String fileName = "./classes/log.properties";
//     private static java.util.logging.Logger logger = null;
//     
//     private static ConsoleHandler consoleHandler;
//     
//     private static SimpleFormatter simpleFormatter;
// 
//     private RFLogger() {
// 
//         // Create the logger.
//         logger = java.util.logging.Logger.getLogger(RFLogger.class.getName());
// 
//         try {
//             java.util.logging.LogManager.getLogManager().readConfiguration(new FileInputStream(fileName));
// 
//         }
//         catch (IOException e) {
//             System.out.println("Unable to configure logging for " + fileName);
// 
//             e.printStackTrace();
// 
//             System.out.println("Resorting to console handler.");
// 
//         
//             //Create consoleHandler.
//             consoleHandler = new ConsoleHandler();
//         
//             //Assigning handler to logger object.
//             logger.addHandler(consoleHandler);
//         
//             //Setting levels to handler and logger.
//             consoleHandler.setLevel(Level.INFO);
//             logger.setLevel(Level.ALL);
//         
//             // Creating SimpleFormatter for human readable format.
//             simpleFormatter = new SimpleFormatter();
// 
//             // Setting formatter to all handlers.
//             consoleHandler.setFormatter(simpleFormatter);
// 
//             // Remove parent handlers in order to respect our formatting only.
//             // logger.setUseParentHandlers(false);
//         }
//     }
//     
//     private static java.util.logging.Logger getLogger() {
//         if(logger == null){
//             new RFLogger();
//         }
//         return logger;
//     }
//     
//     public static void log(Level level, String msg, Throwable thrown){
//         getLogger().log(level, msg, thrown);
//     }
//     
//     public static void log(Level level, String msg){
//         getLogger().log(level, msg);
//     }
// 
// }


import com.kogalur.randomforest.RFLogger;
import java.lang.Math;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Set;
import java.util.Iterator;
import java.util.Map;
import java.util.Random;
import java.util.logging.Level;
        else {
            this.modelType = ModelType.PRED;
        }
    }

    // TBD TBD remove public option TBD TBD
    public Ensemble getEnsembleObj(String name) {
        Ensemble ensb = (Ensemble) ensembleList.get(name);
        return ensb;
    }


    // TBD TBD remove public option TBD TBD    
    public void printEnsembleList() {
        Set entrySet = ensembleList.entrySet();
        Iterator itr = entrySet.iterator();
        int actLength = 0;
        long thrLength = 0;
        int i = 0;
        while(itr.hasNext()){
            Map.Entry me = (Map.Entry) itr.next();
            Ensemble ensb = (Ensemble) me.getValue();
            ensb.printMetaInfo();
            i++;
        }
    }    

    // TBD TBD remove public option TBD TBD
    public void printEnsemble(Object ensb) {
        if (ensb == null) {
// Path: src/main/java/RFLogger.java
// public class RFLogger {
// 
//     private String fileName = "./classes/log.properties";
//     private static java.util.logging.Logger logger = null;
//     
//     private static ConsoleHandler consoleHandler;
//     
//     private static SimpleFormatter simpleFormatter;
// 
//     private RFLogger() {
// 
//         // Create the logger.
//         logger = java.util.logging.Logger.getLogger(RFLogger.class.getName());
// 
//         try {
//             java.util.logging.LogManager.getLogManager().readConfiguration(new FileInputStream(fileName));
// 
//         }
//         catch (IOException e) {
//             System.out.println("Unable to configure logging for " + fileName);
// 
//             e.printStackTrace();
// 
//             System.out.println("Resorting to console handler.");
// 
//         
//             //Create consoleHandler.
//             consoleHandler = new ConsoleHandler();
//         
//             //Assigning handler to logger object.
//             logger.addHandler(consoleHandler);
//         
//             //Setting levels to handler and logger.
//             consoleHandler.setLevel(Level.INFO);
//             logger.setLevel(Level.ALL);
//         
//             // Creating SimpleFormatter for human readable format.
//             simpleFormatter = new SimpleFormatter();
// 
//             // Setting formatter to all handlers.
//             consoleHandler.setFormatter(simpleFormatter);
// 
//             // Remove parent handlers in order to respect our formatting only.
//             // logger.setUseParentHandlers(false);
//         }
//     }
//     
//     private static java.util.logging.Logger getLogger() {
//         if(logger == null){
//             new RFLogger();
//         }
//         return logger;
//     }
//     
//     public static void log(Level level, String msg, Throwable thrown){
//         getLogger().log(level, msg, thrown);
//     }
//     
//     public static void log(Level level, String msg){
//         getLogger().log(level, msg);
//     }
// 
// }


// Path: src/main/java/RandomForestModel.java
import com.kogalur.randomforest.RFLogger;
import java.lang.Math;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Set;
import java.util.Iterator;
import java.util.Map;
import java.util.Random;
import java.util.logging.Level;

        else {
            this.modelType = ModelType.PRED;
        }
    }

    // TBD TBD remove public option TBD TBD
    public Ensemble getEnsembleObj(String name) {
        Ensemble ensb = (Ensemble) ensembleList.get(name);
        return ensb;
    }


    // TBD TBD remove public option TBD TBD    
    public void printEnsembleList() {
        Set entrySet = ensembleList.entrySet();
        Iterator itr = entrySet.iterator();
        int actLength = 0;
        long thrLength = 0;
        int i = 0;
        while(itr.hasNext()){
            Map.Entry me = (Map.Entry) itr.next();
            Ensemble ensb = (Ensemble) me.getValue();
            ensb.printMetaInfo();
            i++;
        }
    }    

    // TBD TBD remove public option TBD TBD
    public void printEnsemble(Object ensb) {
        if (ensb == null) {
            RFLogger.log(Level.INFO, "Ensemble:  null");