<commit_before>// Extension to track errors using google analytics as a data store.
(function() {

    "use strict";
    var trackJavaScriptError = function (e) {
      var errorSource = e.filename + ': ' + e.lineno;
      _gaq.push([
        '_trackEvent',
        'JavaScript Error',
        e.message,
        errorSource,
        true //nonInteractive so bounce rate isn't affected
      ]);
    };

    if (window.addEventListener) {
      window.addEventListener('error', trackJavaScriptError, false);
    } else if (window.attachEvent) {
      window.attachEvent('onerror', trackJavaScriptError);
    } else {
      window.onerror = trackJavaScriptError;
    }

}());<commit_msg>Add in `value` count, leaving non-interactive as the final parameter<commit_after>// Extension to track errors using google analytics as a data store.
(function() {

    "use strict";
    var trackJavaScriptError = function (e) {
      var errorSource = e.filename + ': ' + e.lineno;
      _gaq.push([
        '_trackEvent',
        'JavaScript Error',
        e.message,
        errorSource,
        1, // Set our value to 1, though we could look to tally session errors here
        true // nonInteractive so bounce rate isn't affected
      ]);
    };

    if (window.addEventListener) {
      window.addEventListener('error', trackJavaScriptError, false);
    } else if (window.attachEvent) {
      window.attachEvent('onerror', trackJavaScriptError);
    } else {
      window.onerror = trackJavaScriptError;
    }

}());
{'fraction_non_alphanumeric': 0.11243386243386243, 'fraction_numerical': 0.0013227513227513227, 'mean_word_length': 2.6723300970873787, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4369982', 'n_tokens_mistral': 426, 'n_tokens_neox': 403, 'n_words': 122}