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

  if (!$) {
    console.log('jQuery missing. Exiting.');
    return;
  }

  $('.decklist li').each(function() {
    
  });
})(jQuery);
<commit_msg>Resolves #6. Adding JS that parses card names and turns them into links.<commit_after>/* globals jQuery */
(function($) {
  'use strict';

  var DECK_LI_REGEX = /^(\d+)\s(.+)$/;
  var GATHERER_SEARCH_URL = 'http://gatherer.wizards.com/pages/search/' +
      'default.aspx';

  if (!$) {
    console.log('jQuery missing. Exiting.');
    return;
  }

  $('.decklist li').each(function() {
    var li = $(this).html();
    var result = DECK_LI_REGEX.exec(li);
    var num = result[1];
    var cardName = result[2];
    var param = 'name=' + encodeURIComponent('+["' + cardName + '"]');
    var cardLink = GATHERER_SEARCH_URL + '?' + param;
    $(this).html(num + ' <a href="' + cardLink + '" target="_blank">' +
        cardName + '</a>');
  });
})(jQuery);

{'fraction_non_alphanumeric': 0.21496311907270813, 'fraction_numerical': 0.003161222339304531, 'mean_word_length': 3.0948275862068964, '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': '169645', 'n_tokens_mistral': 349, 'n_tokens_neox': 343, 'n_words': 72}