<commit_before>/*!
 * Low Browser it is a small tool to check Microsoft browsers (IE and EDGE) on JavaScript
 * https://github.com/Arttse/low-browser
 * Copyright (c) 2015 Nikita «Arttse» Bystrov
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Version: 0.2.0-pre5
 */

(function ( global ) {

    var lowBrowser = {};

    /**
     * Parse user agent browser
     *
     * @param {string} userAgent - string of user agent browser
     *
     * @returns {lowBrowser}
     */
    lowBrowser.parse = function ( userAgent ) {

        var m;

        this.userAgent    = userAgent;
        this.name         = undefined;
        this.version      = undefined;
        this.core         = undefined;
        this.coreVersion  = undefined;
        this.os           = undefined;
        this.osBuild      = undefined;
        this.gamePlatform = undefined;

        /** Check Windows OS */
        if ( ( m = userAgent.match( /(Windows.*?)(;|\))/i ) ) ) {
            this.os = m[1].replace(/^\s+|\s+$/g, '');
        }

        /** Check Trident version core */
        if ( ( m = userAgent.match( /Trident(\/|\s)(\d+\.\d+)(;|\))/i ) ) ) {
            this.core        = 'Trident';
            this.coreVersion = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check IE 11 */
        if ( /rv:11\.0/i.test( userAgent ) && this.core === 'Trident' ) {
            this.name    = 'IE';
            this.version = '11.0';
        }

        /** Check IE < 11 */
        if ( ( m = userAgent.match( /MSIE(\/|\s)(\d+\.\d+)(;|\))/i ) ) ) {
            this.name    = 'IE';
            this.version = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check IEMobile */
        if ( ( m = userAgent.match( /IEMobile(\/|\s)(\d+\.\d+)(;|\))/i ) ) ) {
            this.name    = 'IEMobile';
            this.version = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check EDGE browser */
        if ( ( m = userAgent.match( /Edge(\/|\s)(.*?)\.(\d+)/i ) ) ) {
            this.name        = 'Edge';
            this.version     = m[2].replace(/^\s+|\s+$/g, '');<commit_msg>Fix. Can get the literal version<commit_after>/*!
 * Low Browser it is a small tool to check Microsoft browsers (IE and EDGE) on JavaScript
 * https://github.com/Arttse/low-browser
 * Copyright (c) 2015 Nikita «Arttse» Bystrov
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Version: 0.2.0-pre6
 */

(function ( global ) {

    var lowBrowser = {};

    /**
     * Parse user agent browser
     *
     * @param {string} userAgent - string of user agent browser
     *
     * @returns {lowBrowser}
     */
    lowBrowser.parse = function ( userAgent ) {

        var m;

        this.userAgent    = userAgent;
        this.name         = undefined;
        this.version      = undefined;
        this.core         = undefined;
        this.coreVersion  = undefined;
        this.os           = undefined;
        this.osBuild      = undefined;
        this.gamePlatform = undefined;

        /** Check Windows OS */
        if ( ( m = userAgent.match( /(Windows.*?)(;|\))/i ) ) ) {
            this.os = m[1].replace(/^\s+|\s+$/g, '');
        }

        /** Check Trident version core */
        if ( ( m = userAgent.match( /Trident(\/|\s)(\d+\.(\d+|\w+))(;|\))/i ) ) ) {
            this.core        = 'Trident';
            this.coreVersion = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check IE 11 */
        if ( /rv:11\.0/i.test( userAgent ) && this.core === 'Trident' ) {
            this.name    = 'IE';
            this.version = '11.0';
        }

        /** Check IE < 11 */
        if ( ( m = userAgent.match( /MSIE(\/|\s)(\d+\.(\d+|\w+))(;|\))/i ) ) ) {
            this.name    = 'IE';
            this.version = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check IEMobile */
        if ( ( m = userAgent.match( /IEMobile(\/|\s)(\d+\.(\d+|\w+))(;|\))/i ) ) ) {
            this.name    = 'IEMobile';
            this.version = m[2].replace(/^\s+|\s+$/g, '');
        }

        /** Check EDGE browser */
        if ( ( m = userAgent.match( /Edge(\/|\s)(.*?)\.(\d+)/i ) ) ) {
            this.name        = 'Edge';
            this.version     = m[2].replace(/^\s+|\s+$/g, '');
{'fraction_non_alphanumeric': 0.20285781213398923, 'fraction_numerical': 0.010775357226516749, 'mean_word_length': 1.5236406619385343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7340802', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1395, 'n_words': 281}