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

  // MATERIALIZE INIT //
  $(document).ready(() => {
    $('.parallax').parallax();
  });

  $(document).ready(() => {
    $('.collapsible').collapsible();
  });

  $(document).ready(() => {
    $('.modal').modal();
  });

  $(document).ready(() => {
    $('.tooltipped').tooltip({ delay: 50 });
  });

  // INITIAL HELP TOAST BASED ON LOCALSTORAGE VALUE //
  const initialToast = function() {
    if (document.cookie.indexOf('visited') >= 0) {
      const howMessage = 'Enter a search term and/or location to get started';
      const xtraMessage = 'Be sure to check out the map and deals tabs to view the deals near you!';

      Materialize.toast(howMessage, 6000);
      setTimeout(Materialize.toast(xtraMessage, 6000), 3000);
    }
    else {
      document.cookie = 'visited';
    }
  };

  initialToast();

  // GET USER GEOLOCATION //
  const userCoordinates = {};

  const geoFailure = function(err) {
    console.warn(`ERROR (${err.code}): ` + err.message);
  };

  const geoSuccess = function(pos) {
    userCoordinates.lat = pos.coords.latitude;
    userCoordinates.lng = pos.coords.longitude;
  };

  // navigator.geolocation.getCurrentPosition(geoSuccess, geoFailure);

  // DEFINE DATA STRUCTURES //
  // const userCoordinates = {};
  let allMerchants;
  let keywordQuery;
  let locationQuery;
  let currentMerchants;
<commit_msg>working version 2.2<commit_after>(function() {
  'use strict';

  // MATERIALIZE INIT //
  $(document).ready(() => {
    $('.parallax').parallax();
  });

  $(document).ready(() => {
    $('.collapsible').collapsible();
  });

  $(document).ready(() => {
    $('.modal').modal();
  });

  $(document).ready(() => {
    $('.tooltipped').tooltip({ delay: 50 });
  });

  // INITIAL HELP TOAST BASED ON LOCALSTORAGE VALUE //
  const initialToast = function() {
    if (document.cookie.indexOf('visited') >= 0) {
      const howMessage = 'Enter a search term and/or location to get started';
      const xtraMessage = 'Be sure to check out the map and deals tabs to view the deals near you!';

      Materialize.toast(howMessage, 6000);
      setTimeout(Materialize.toast(xtraMessage, 6000), 3000);
    }
    else {
      document.cookie = 'visited';
    }
  };

  initialToast();

  // GET USER GEOLOCATION //
  const userCoordinates = {};

  const geoFailure = function(err) {
    console.warn(`ERROR (${err.code}): ` + err.message);
  };

  const geoSuccess = function(pos) {
    userCoordinates.lat = pos.coords.latitude;
    userCoordinates.lng = pos.coords.longitude;
  };

  navigator.geolocation.getCurrentPosition(geoSuccess, geoFailure);

  // DEFINE DATA STRUCTURES //
  const userCoordinates = {};
  let allMerchants;
  let keywordQuery;
  let locationQuery;
  let currentMerchants;

{'fraction_non_alphanumeric': 0.16498921639108555, 'fraction_numerical': 0.011502516175413372, 'mean_word_length': 3.1413690476190474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6735792', 'n_tokens_mistral': 960, 'n_tokens_neox': 892, 'n_words': 200}