<commit_before>function replace() {
  var watch_words = {
    'Bill': 'a thing',
    'Activity': 'an action',
  };
  function span_wrap(text) {
    return ' <span class="glossary" title="' + watch_words[text] + '">' + text + '</span> ';
  }
  var keys = $.map(watch_words, function(element,index) {return index});
  var re = RegExp('\\b(' + keys.join('|') + ')\\b', "g");
  $('div').html(function(i, html) {
    return html.replace(re, span_wrap);
  });
};

$(document).ready(replace);<commit_msg>Change placeholder words for now<commit_after>function replace() {
  var watch_words = {
    '<NAME>': 'a thing',
    'Activity': 'an action',
  };
  function span_wrap(text) {
    return ' <span class="glossary" title="' + watch_words[text] + '">' + text + '</span> ';
  }
  var keys = $.map(watch_words, function(element,index) {return index});
  var re = RegExp('\\b(' + keys.join('|') + ')\\b', "g");
  $('div').html(function(i, html) {
    return html.replace(re, span_wrap);
  });
};

$(document).ready(replace);
{'fraction_non_alphanumeric': 0.22857142857142856, 'fraction_numerical': 0.0, 'mean_word_length': 4.004926108374384, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '772592', 'n_tokens_mistral': 362, 'n_tokens_neox': 360, 'n_words': 77}