<commit_before>HummingbirdTracker = {};

HummingbirdTracker.track = function(env) {
  delete env.trackingServer;
  delete env.trackingServerSecure;
  env.u = document.location.href;
  env.bw = window.innerWidth;
  env.bh = window.innerHeight;
  env.guid = document.cookie.match(/guid=([^\_]*)_([^;]*)/)[2];
  env.gen = document.cookie.match(/gender=([^;]*);/)[1];
  env.uid = document.cookie.match(/user_id=([^\_]*)_([^;]*)/)[2];

  $('body').append('<img src="http://localhost:8000/tracking.gif?' + jQuery.param(env) + '"/>');
};<commit_msg>Adding referrer to tracking pixel<commit_after>HummingbirdTracker = {};

HummingbirdTracker.track = function(env) {
  delete env.trackingServer;
  delete env.trackingServerSecure;
  env.u = document.location.href;
  env.bw = window.innerWidth;
  env.bh = window.innerHeight;
  env.guid = document.cookie.match(/guid=([^\_]*)_([^;]*)/)[2];
  env.gen = document.cookie.match(/gender=([^;]*);/)[1];
  env.uid = document.cookie.match(/user_id=([^\_]*)_([^;]*)/)[2];

  if(document.referrer && document.referrer != "") {
    env.ref = document.referrer;
  }

  $('body').append('<img src="http://localhost:8000/tracking.gif?' + jQuery.param(env) + '"/>');
};
{'fraction_non_alphanumeric': 0.23765690376569037, 'fraction_numerical': 0.011715481171548118, 'mean_word_length': 4.805825242718447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2842478', 'n_tokens_mistral': 450, 'n_tokens_neox': 418, 'n_words': 52}