<commit_before>(function() {

    // Percentage of users to display the survey for
    var percentage = 0.6,
        cookie_time = null,
        cookie_array = document.cookie.split(';'),
        i, cookie, time, site_time, link, data, query_string;

    for(i=0;i < cookie_array.length;i++) {
        cookie = cookie_array[i];
        cookie = cookie.replace(/^\s+/, '')
        if (cookie.indexOf('ms_srv_t=') == 0) {
            // Cookie for time...
            cookie_time = cookie.substring('ms_srv_t='.length,cookie.length);
        }
        if (cookie.indexOf('ms_srv_r=') == 0) {
            // Cookie for referrer...
            cookie_referrer = cookie.substring('ms_srv_r='.length,cookie.length);
        }
    }

    if (cookie_time == null) {
        // No cookie!
        if (Math.random() < percentage) {
            // Chosen to survey
            // Set the cookie to current timestamp
            time = Math.round(new Date().getTime() / 1000);
            document.cookie = 'ms_srv_t='+time+'; path=/';
            document.cookie = 'ms_srv_r='+document.referrer+'; path=/';<commit_msg>Change Mzalendo surveyed users percentage to 100%<commit_after>(function() {

    // Percentage of users to display the survey for
    var percentage = 1,
        cookie_time = null,
        cookie_array = document.cookie.split(';'),
        i, cookie, time, site_time, link, data, query_string;

    for(i=0;i < cookie_array.length;i++) {
        cookie = cookie_array[i];
        cookie = cookie.replace(/^\s+/, '')
        if (cookie.indexOf('ms_srv_t=') == 0) {
            // Cookie for time...
            cookie_time = cookie.substring('ms_srv_t='.length,cookie.length);
        }
        if (cookie.indexOf('ms_srv_r=') == 0) {
            // Cookie for referrer...
            cookie_referrer = cookie.substring('ms_srv_r='.length,cookie.length);
        }
    }

    if (cookie_time == null) {
        // No cookie!
        if (Math.random() < percentage) {
            // Chosen to survey
            // Set the cookie to current timestamp
            time = Math.round(new Date().getTime() / 1000);
            document.cookie = 'ms_srv_t='+time+'; path=/';
            document.cookie = 'ms_srv_r='+document.referrer+'; path=/';
{'fraction_non_alphanumeric': 0.1512455516014235, 'fraction_numerical': 0.008896797153024912, 'mean_word_length': 2.0557065217391304, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2249579', 'n_tokens_mistral': 715, 'n_tokens_neox': 682, 'n_words': 149}