<commit_before>_ = require('underscore');

module.exports = {
  interval: 10 * 60 * 1000,
  startTime: new Date().getTime(),
  setup: function () {
    setInterval(_.bind(this.fireEvent, this), this.interval);
  },
  getCurrentTime: function () {
    return new Date().getTime();
  },
  fireEvent: function () {
    var currentTime,
        elapsedMinutes;

    currentTime = this.getCurrentTime();
    elapsedMinutes = Math.round(((currentTime - this.startTime) / 1000) / 60);
    ga('send', {
      'hitType': 'event',
      'eventCategory': location.pathname,
      'eventAction': 'minutes-since-page-load',
      'eventLabel': '',
      'eventValue': elapsedMinutes,
      'nonInteraction': true
    });
  }
};<commit_msg>Analytics - fix JSHint errors<commit_after>var _ = require('underscore');

module.exports = {
  interval: 10 * 60 * 1000,
  startTime: new Date().getTime(),
  setup: function () {
    setInterval(_.bind(this.fireEvent, this), this.interval);
  },
  getCurrentTime: function () {
    return new Date().getTime();
  },
  fireEvent: function () {
    var currentTime,
        elapsedMinutes;

    currentTime = this.getCurrentTime();
    elapsedMinutes = Math.round(((currentTime - this.startTime) / 1000) / 60);
    window.ga('send', {
      'hitType': 'event',
      'eventCategory': window.location.pathname,
      'eventAction': 'minutes-since-page-load',
      'eventLabel': '',
      'eventValue': elapsedMinutes,
      'nonInteraction': true
    });
  }
};
{'fraction_non_alphanumeric': 0.16218034993270525, 'fraction_numerical': 0.018842530282637954, 'mean_word_length': 3.2124645892351276, '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': '6158661', 'n_tokens_mistral': 497, 'n_tokens_neox': 462, 'n_words': 91}