<commit_before>function UniversalAnalyticsProxy() {
  this._isDebug = false;
  this._isEcommerceRequired = false;
  this._trackingId = null;

  var namespace = window.GoogleAnalyticsObject || 'nativeGa';
  loadGoogleAnalytics.call(this, namespace);

  bindAll(this, [
    '_ensureEcommerce',
    '_uncaughtExceptionHandler',
    'addCustomDimension',
    'addTransaction',
    'addTransactionItem',
    'debugMode',
    'enableUncaughtExceptionReporting',
    'setAllowIDFACollection',
    'setAnonymizeIp',
    'setAppVersion',
    'setOptOut',
    'setUserId',
    'getVar',
    'setVar',
    'startTrackerWithId',
    'trackEvent',
    'trackException',
    'trackMetric',
    'trackTiming',
    'trackView'
  ]);
}

UniversalAnalyticsProxy.prototype = {
  startTrackerWithId: wrap(function (trackingId) {
    this._trackingId = trackingId;

    this._ga('create', {
      trackingId: trackingId,
      cookieDomain: 'auto'
    });
    this._ga('set', 'appName', document.title);
  }),

  setUserId: wrap(function (userId) {
    this._ga('set', 'userId', userId);
  }),

  setAnonymizeIp: wrap(function (anonymize) {
    this._ga('set', 'anonymizeIp', anonymize);
  }),

  setOptOut: wrap(function (optout) {
    if (!this._trackingId) {
      throw new Error('TrackingId not available');
    }
    window['ga-disable-' + this._trackingId] = optout;
  }),

  setAppVersion: wrap(function (version) {
    this._ga('set', 'appVersion', version);
  }),

  setAllowIDFACollection: wrap(function (enable) {
    // Not supported by browser platofrm
  }),

  getVar: wrap(function(param){
    this._ga('get', param);
  }),

  setVar: wrap(function(param, value){
    this._ga('set', param, value);
  }),  

  debugMode: wrap(function () {
    this._isDebug = true;<commit_msg>fix for getVar on browser platform<commit_after>function UniversalAnalyticsProxy() {
  this._isDebug = false;
  this._isEcommerceRequired = false;
  this._trackingId = null;

  var namespace = window.GoogleAnalyticsObject || 'nativeGa';
  loadGoogleAnalytics.call(this, namespace);

  bindAll(this, [
    '_ensureEcommerce',
    '_uncaughtExceptionHandler',
    'addCustomDimension',
    'addTransaction',
    'addTransactionItem',
    'debugMode',
    'enableUncaughtExceptionReporting',
    'setAllowIDFACollection',
    'setAnonymizeIp',
    'setAppVersion',
    'setOptOut',
    'setUserId',
    'getVar',
    'setVar',
    'startTrackerWithId',
    'trackEvent',
    'trackException',
    'trackMetric',
    'trackTiming',
    'trackView'
  ]);
}

UniversalAnalyticsProxy.prototype = {
  startTrackerWithId: wrap(function (trackingId) {
    this._trackingId = trackingId;

    this._ga('create', {
      trackingId: trackingId,
      cookieDomain: 'auto'
    });
    this._ga('set', 'appName', document.title);
  }),

  setUserId: wrap(function (userId) {
    this._ga('set', 'userId', userId);
  }),

  setAnonymizeIp: wrap(function (anonymize) {
    this._ga('set', 'anonymizeIp', anonymize);
  }),

  setOptOut: wrap(function (optout) {
    if (!this._trackingId) {
      throw new Error('TrackingId not available');
    }
    window['ga-disable-' + this._trackingId] = optout;
  }),

  setAppVersion: wrap(function (version) {
    this._ga('set', 'appVersion', version);
  }),

  setAllowIDFACollection: wrap(function (enable) {
    // Not supported by browser platofrm
  }),

  getVar: function (param, success, error) {
    this._ga(function(tracker){
      success(tracker.get(param));
    });
  },

  setVar: wrap(function(param, value){
    this._ga('set', param, value);
  }),  

  debugMode: wrap(function () {
    this._isDebug = true;
{'fraction_non_alphanumeric': 0.14817880794701987, 'fraction_numerical': 0.0, 'mean_word_length': 3.6955958549222796, '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': '4250319', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1177, 'n_words': 211}