<commit_before>/**
 * Initialize Loggly sensor
 */
window.Log = new loggly({ 
    url: (("https:" == document.location.protocol) 
            ? "https://logs.loggly.com" 
            : "http://logs.loggly.com") 
            + '/inputs/eea8d878-db25-43f4-b3b8-18053bb54004?rt=1', 
    level: 'log'
});

/**
 * Log errors to Loggly
 */
window.defaultHandler = window.error;
window.onerror = function(errorMsg, url, lineNumber) {
    if (lineNumber !== 0) {
        Log.log("\n" +
        		"Browser: " + Log.user_agent + "\n" +
        		"Message: " + errorMsg + "\n" +
        		"File: " + url + "\n" +
        	    "Line no: " + lineNumber
        );
    }
    
    if (defaultHandler) {
        return defaultHandler(errorMsg, url, lineNumber);
    }
    
    return true;
};<commit_msg>Log raw user agent<commit_after>/**
 * Initialize Loggly sensor
 */
window.Log = new loggly({ 
    url: (("https:" == document.location.protocol) 
            ? "https://logs.loggly.com" 
            : "http://logs.loggly.com") 
            + '/inputs/eea8d878-db25-43f4-b3b8-18053bb54004?rt=1', 
    level: 'log'
});

/**
 * Log errors to Loggly
 */
window.defaultHandler = window.error;
window.onerror = function(errorMsg, url, lineNumber) {
    if (lineNumber !== 0) {
        Log.log("\n" +
        		"Browser: " + navigator.userAgent + "\n" +
        		"Message: " + errorMsg + "\n" +
        		"File: " + url + "\n" +
        	    "Line no: " + lineNumber
        );
    }
    
    if (defaultHandler) {
        return defaultHandler(errorMsg, url, lineNumber);
    }
    
    return true;
};
{'fraction_non_alphanumeric': 0.17023959646910466, 'fraction_numerical': 0.029003783102143757, 'mean_word_length': 1.9719101123595506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5961069', 'n_tokens_mistral': 580, 'n_tokens_neox': 547, 'n_words': 101}