<commit_before>import Ember from 'ember';
import ENV from '../config/environment';

export default Ember.Mixin.create({

  pageviewToGA: function(page, title) {
    var page = page ? page : this.get('url');
    var title = title ? title : this.get('url');

    if (Ember.get(ENV, 'googleAnalytics.webPropertyId') != null) {
      var trackerType = Ember.getWithDefault(ENV, 'googleAnalytics.tracker', 'analytics.js');

      if (trackerType === 'analytics.js') {
        var globalVariable = Ember.getWithDefault(ENV, 'googleAnalytics.globalVariable', 'ga');

        window[globalVariable]('send', 'pageview', {
          page: page,
          title: title 
        });
      } else if (trackerType === 'ga.js') {
        window._gaq.push(['_trackPageview']);
      }
    }
  }.on('didTransition')

});<commit_msg>remove trailing white space<commit_after>import Ember from 'ember';
import ENV from '../config/environment';

export default Ember.Mixin.create({

  pageviewToGA: function(page, title) {
    var page = page ? page : this.get('url');
    var title = title ? title : this.get('url');

    if (Ember.get(ENV, 'googleAnalytics.webPropertyId') != null) {
      var trackerType = Ember.getWithDefault(ENV, 'googleAnalytics.tracker', 'analytics.js');

      if (trackerType === 'analytics.js') {
        var globalVariable = Ember.getWithDefault(ENV, 'googleAnalytics.globalVariable', 'ga');

        window[globalVariable]('send', 'pageview', {
          page: page,
          title: title
        });
      } else if (trackerType === 'ga.js') {
        window._gaq.push(['_trackPageview']);
      }
    }
  }.on('didTransition')

});
{'fraction_non_alphanumeric': 0.16068167985392576, 'fraction_numerical': 0.0, 'mean_word_length': 3.162025316455696, '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': '1437339', 'n_tokens_mistral': 519, 'n_tokens_neox': 505, 'n_words': 109}