<commit_before>(function(window){
    'use strict';

    var Monaco = window.Monaco = (window.Monaco || {});

    /* -- UTILITIES -------------------------------------------------------- */
    Monaco.utils = Monaco.utils || {};

    Monaco.utils.setCookie = function( key, value, days, baseDomain ) {
        days = ( days && days >= 0 ) ? days : 365;

        var date = new Date();
        date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
        var expires = '; expires=' + date.toGMTString();

        value = escape( value );
        var cookieString = key + '=' + value + expires + '; path=/;';
        if ( baseDomain ) {
            var domain = document.domain.split('.');
            domain = '.' + domain[ domain.length - 2 ] + '.' + domain[ domain.length - 1 ];
            cookieString += ' domain=' + domain + ';';
        }
        document.cookie = cookieString;
    };

    Monaco.utils.getCookie = function( key ) {
        var result = null;
        return ( result = new RegExp( '(?:^|; )' + encodeURIComponent( key ) + '=([^;]*)' ).exec( document.cookie ) ) ? result[1] : null;
    };

}(window));<commit_msg>fixed day parsing issue from monaco cookie utils<commit_after>(function(window, _){
    'use strict';

    var Monaco = window.Monaco = (window.Monaco || {});

    /* -- UTILITIES -------------------------------------------------------- */
    Monaco.utils = Monaco.utils || {};

    Monaco.utils.setCookie = function( key, value, days, baseDomain ) {
        days = ( days && _.isNumber(days) ) ? days : 365;

        var date = new Date();
        date.setTime( date.getTime() + ( days * 24 * 60 * 60 * 1000 ) );
        var expires = '; expires=' + date.toGMTString();

        value = escape( value );
        var cookieString = key + '=' + value + expires + '; path=/;';
        if ( baseDomain ) {
            var domain = document.domain.split('.');
            domain = '.' + domain[ domain.length - 2 ] + '.' + domain[ domain.length - 1 ];
            cookieString += ' domain=' + domain + ';';
        }
        document.cookie = cookieString;
    };

    Monaco.utils.getCookie = function( key ) {
        var result = null;
        return ( result = new RegExp( '(?:^|; )' + encodeURIComponent( key ) + '=([^;]*)' ).exec( document.cookie ) ) ? result[1] : null;
    };

}(window, window._));
{'fraction_non_alphanumeric': 0.22033177371331347, 'fraction_numerical': 0.014036580178647383, 'mean_word_length': 1.854368932038835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '769820', 'n_tokens_mistral': 735, 'n_tokens_neox': 685, 'n_words': 166}