<commit_before>package omnikryptec.util;

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import omnikryptec.logger.LogEntry.LogLevel;
import omnikryptec.logger.Logger;
import omnikryptec.main.OmniKryptecEngine;

/**
 *
 * @author Panzer1119
 */
public class OSUtil {
    
    private static final String OS_NAME = System.getProperty("os.name").toLowerCase();
    private static final File USER_HOME = new File(System.getProperty("user.home"));
    private static final String FOLDER_NAME = "." + OmniKryptecEngine.class.getSimpleName();
    private static final String PATHSEPARATOR = "/";
    
    public static final OS OS = detectOS();
    public static final File STANDARDAPPDATA = getStandardAppDataFolder();
    
    public enum OS {
        WINDOWS ("windows"),
        MAC     ("macosx"),
        UNIX    ("linux"),
        SOLARIS ("solaris"),
        ERROR   (null);
        
        private final String name;
        
        OS(String name) {
            this.name = name;
        }
        
        public String getName() {
            return name;
        }
        
        public String toPathForResource(String nativesPath) {
            return (nativesPath.startsWith(PATHSEPARATOR) ? "" : PATHSEPARATOR) + nativesPath + (nativesPath.endsWith(PATHSEPARATOR) ? "" : PATHSEPARATOR) + name;
        }
        
        @Override
        public String toString() {
            return name;
        }
    }
    
    public static final OS getOS() {
        return OS;
    }
    
    private static final OS detectOS() {<commit_msg>Made the OS enum static<commit_after>package omnikryptec.util;

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import omnikryptec.logger.LogEntry.LogLevel;
import omnikryptec.logger.Logger;
import omnikryptec.main.OmniKryptecEngine;

/**
 *
 * @author Panzer1119
 */
public class OSUtil {
    
    private static final String OS_NAME = System.getProperty("os.name").toLowerCase();
    private static final File USER_HOME = new File(System.getProperty("user.home"));
    private static final String FOLDER_NAME = "." + OmniKryptecEngine.class.getSimpleName();
    private static final String PATHSEPARATOR = "/";
    
    public static final OS OS = detectOS();
    public static final File STANDARDAPPDATA = getStandardAppDataFolder();
    
    public static enum OS {
        WINDOWS ("windows"),
        MAC     ("macosx"),
        UNIX    ("linux"),
        SOLARIS ("solaris"),
        ERROR   (null);
        
        private final String name;
        
        OS(String name) {
            this.name = name;
        }
        
        public String getName() {
            return name;
        }
        
        public String toPathForResource(String nativesPath) {
            return (nativesPath.startsWith(PATHSEPARATOR) ? "" : PATHSEPARATOR) + nativesPath + (nativesPath.endsWith(PATHSEPARATOR) ? "" : PATHSEPARATOR) + name;
        }
        
        @Override
        public String toString() {
            return name;
        }
    }
    
    public static final OS getOS() {
        return OS;
    }
    
    private static final OS detectOS() {
{'fraction_non_alphanumeric': 0.10020155485171321, 'fraction_numerical': 0.002303484019579614, 'mean_word_length': 2.4396039603960396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1535134', 'n_tokens_mistral': 1035, 'n_tokens_neox': 1017, 'n_words': 245}