<commit_before>(function(root) {
  'use strict';

  var availity = root.availity;

  var AnalyticsSplunkServiceFactory = function($log, AvApiResource) {

    var SplunkAnalyticService = function() {};
    var proto = SplunkAnalyticService.prototype;

    proto.trackEvent = function(properties) {
      return AvApiResource[properties.level](properties);
    };

    proto.trackPageView  = function(url) {
      $log.log('URL visited', url);
    };

    return new SplunkAnalyticService();
  };

  availity.core.factory('analyticsSplunkService', AnalyticsSplunkServiceFactory);

})(window);<commit_msg>updated piwik logging to use avLogMessagesResource<commit_after>(function(root) {
  'use strict';

  var availity = root.availity;

  var AnalyticsSplunkServiceFactory = function($log, avLogMessagesResource) {

    var SplunkAnalyticService = function() {};
    var proto = SplunkAnalyticService.prototype;

    proto.trackEvent = function(properties) {
      return avLogMessagesResource[properties.level](properties);
    };

    proto.trackPageView  = function(url) {
      $log.log('URL visited', url);
    };

    return new SplunkAnalyticService();
  };

  availity.core.factory('analyticsSplunkService', AnalyticsSplunkServiceFactory);

})(window);
{'fraction_non_alphanumeric': 0.1177406523468576, 'fraction_numerical': 0.0, 'mean_word_length': 4.517543859649122, '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': '1361493', 'n_tokens_mistral': 394, 'n_tokens_neox': 353, 'n_words': 66}