<commit_before>/*!
 *                                                                                                                         (℠)
 * # sML JavaScript Library
 *
 * - "I'm a Simple and Middling Library."
 * - Copyright (c) <NAME> - https://github.com/satorumurmur/sML
 * - Licensed under the MIT license. - http://www.opensource.org/licenses/mit-license.php
 *
 */ sML = (function() { var Version = "0.999.46", Build = 201704051737;




//==============================================================================================================================================
//----------------------------------------------------------------------------------------------------------------------------------------------

//-- Polarstar

//----------------------------------------------------------------------------------------------------------------------------------------------

var sML = function(S) {
    var SML = (typeof S == "string") ? [sML.create.apply(this, arguments)] : (S.length ? S : [S]);
    if(window.__proto__) SML.__proto__ = sML.SML; else for(var M in sML.SML) SML[M] = sML.SML[M];
    return SML;
};

sML["version"] = Version, sML["build"] = Build;

var nUA = navigator.userAgent;
var getVersion = function(Prefix, Reference) {
    var N = parseFloat(nUA.replace(new RegExp('^.*' + Prefix + '[ :\\/]?(\\d+([\\._]\\d+)?).*$'), Reference ? Reference : "$1").replace(/_/g, "."));
    return (!isNaN(N) ? N : undefined);
};

sML.OperatingSystem = sML.OS = (function(OS) {
         if(/iP(hone|ad|od( touch)?);/.test(nUA)) OS.iOS          = getVersion("CPU (iP(hone|ad|od( touch)?) )?OS", "$4");
    else if(          /OS X 10[\._]\d/.test(nUA)) OS.macOS        = getVersion("OS X 10[\\._]");
    else if(  /Windows Phone( OS)? \d/.test(nUA)) OS.WindowsPhone = getVersion("Windows Phone OS") || getVersion("Windows Phone");
    else if(        /Windows( NT)? \d/.test(nUA)) OS.Windows      = (function(W) { return (W >= 10 ? W : W >= 6.3 ? 8.1 : W >= 6.2 ? 8 : W >= 6.1 ? 7 : W); })(getVersion("Windows NT") || getVersion("Windows"));
    else if(              /Android \d/.test(nUA)) OS.Android      = getVersion("Android");
    else if(                    /CrOS/.test(nUA)) OS.Chrome       = true;
    else if(                    /X11;/.test(nUA)) OS.Linux        = true;
    else if(                 /Firefox/.test(nUA)) OS.Firefox      = true;
    return OS;
})({});

sML.UserAgent = sML.UA = (function(UA) {
    if(/Gecko\/\d/.test(nUA)) {
        UA.Gecko = getVersion("rv");
        if(/Firefox\/\d/.test(nUA)) UA.Firefox = getVersion("Firefox");
    } else if(/Edge\/\d/.test(nUA)) {
        UA.Edge = getVersion("Edge");
    } else if(/Chrome\/\d/.test(nUA)) {
        UA.Blink = getVersion("Chrome") || true;
             if( /OPR\/\d/.test(nUA)) UA.Opera  = getVersion("OPR");
        else if(/Silk\/\d/.test(nUA)) UA.Silk   = getVersion("Silk");
        else                          UA.Chrome = UA.Blink;
    } else if(/AppleWebKit\/\d/.test(nUA)) {
        UA.WebKit = getVersion("AppleWebKit");
             if(   /CriOS \d/.test(nUA)) UA.Chrome  = getVersion("CriOS");
        else if(   /FxiOS \d/.test(nUA)) UA.Firefox = getVersion("FxiOS");
        else if(/Version\/\d/.test(nUA)) UA.Safari  = getVersion("Version");
    } else if(/Trident\/\d/.test(nUA)) {
        UA.Trident          = getVersion("Trident"); <commit_msg>Change rule of deciding value of sML.OS.macOS (from 12.4 to 10.12 on macOS 10.12.4)<commit_after>/*!
 *                                                                                                                         (℠)
 * # sML JavaScript Library
 *
 * - "I'm a Simple and Middling Library."
 * - Copyright (c) <NAME> - https://github.com/satorumurmur/sML
 * - Licensed under the MIT license. - http://www.opensource.org/licenses/mit-license.php
 *
 */ sML = (function() { var Version = "0.999.46", Build = 201704051737;




//==============================================================================================================================================
//----------------------------------------------------------------------------------------------------------------------------------------------

//-- Polarstar

//----------------------------------------------------------------------------------------------------------------------------------------------

var sML = function(S) {
    var SML = (typeof S == "string") ? [sML.create.apply(this, arguments)] : (S.length ? S : [S]);
    if(window.__proto__) SML.__proto__ = sML.SML; else for(var M in sML.SML) SML[M] = sML.SML[M];
    return SML;
};

sML["version"] = Version, sML["build"] = Build;

var nUA = navigator.userAgent;
var getVersion = function(Prefix, Reference) {
    var N = parseFloat(nUA.replace(new RegExp('^.*' + Prefix + '[ :\\/]?(\\d+([\\._]\\d+)?).*$'), Reference ? Reference : "$1").replace(/_/g, "."));
    return (!isNaN(N) ? N : undefined);
};

sML.OperatingSystem = sML.OS = (function(OS) {
         if(/iP(hone|ad|od( touch)?);/.test(nUA)) OS.iOS          = getVersion("CPU (iP(hone|ad|od( touch)?) )?OS", "$4");
    else if(          /OS X 10[\._]\d/.test(nUA)) OS.macOS        = getVersion("OS X ");
    else if(  /Windows Phone( OS)? \d/.test(nUA)) OS.WindowsPhone = getVersion("Windows Phone OS") || getVersion("Windows Phone");
    else if(        /Windows( NT)? \d/.test(nUA)) OS.Windows      = (function(W) { return (W >= 10 ? W : W >= 6.3 ? 8.1 : W >= 6.2 ? 8 : W >= 6.1 ? 7 : W); })(getVersion("Windows NT") || getVersion("Windows"));
    else if(              /Android \d/.test(nUA)) OS.Android      = getVersion("Android");
    else if(                    /CrOS/.test(nUA)) OS.Chrome       = true;
    else if(                    /X11;/.test(nUA)) OS.Linux        = true;
    else if(                 /Firefox/.test(nUA)) OS.Firefox      = true;
    return OS;
})({});

sML.UserAgent = sML.UA = (function(UA) {
    if(/Gecko\/\d/.test(nUA)) {
        UA.Gecko = getVersion("rv");
        if(/Firefox\/\d/.test(nUA)) UA.Firefox = getVersion("Firefox");
    } else if(/Edge\/\d/.test(nUA)) {
        UA.Edge = getVersion("Edge");
    } else if(/Chrome\/\d/.test(nUA)) {
        UA.Blink = getVersion("Chrome") || true;
             if( /OPR\/\d/.test(nUA)) UA.Opera  = getVersion("OPR");
        else if(/Silk\/\d/.test(nUA)) UA.Silk   = getVersion("Silk");
        else                          UA.Chrome = UA.Blink;
    } else if(/AppleWebKit\/\d/.test(nUA)) {
        UA.WebKit = getVersion("AppleWebKit");
             if(   /CriOS \d/.test(nUA)) UA.Chrome  = getVersion("CriOS");
        else if(   /FxiOS \d/.test(nUA)) UA.Firefox = getVersion("FxiOS");
        else if(/Version\/\d/.test(nUA)) UA.Safari  = getVersion("Version");
    } else if(/Trident\/\d/.test(nUA)) {
        UA.Trident          = getVersion("Trident"); 
{'fraction_non_alphanumeric': 0.3053602811950791, 'fraction_numerical': 0.012595196250732278, 'mean_word_length': 1.6623781676413256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '687151', 'n_tokens_mistral': 2249, 'n_tokens_neox': 2133, 'n_words': 430}