<commit_before>$(document).ready(function(){
  var noteId = /#note-\d+/.exec(window.location.hash);
  if (noteId) $(noteId[0] + ", " + noteId[0] + " > h4").effect('highlight', null, 3000);
});<commit_msg>highlight note when anchor changed<commit_after>$(document).ready(function(){
  var highlightNote = function() {
    var noteId = /#note-\d+/.exec(window.location.hash);
    if (noteId) $(noteId[0] + ", " + noteId[0] + " > h4").effect('highlight', null, 3000);
  };

  highlightNote();

  if ("onhashchange" in window) { // event supported?
    window.onhashchange = highlightNote;
  }
  else { // event not supported:
    var storedHash = window.location.hash;
    window.setInterval(function () {
      if (window.location.hash != storedHash) {
        storedHash = window.location.hash;
        highlightNote();
      }
    }, 100);
  }
});
{'fraction_non_alphanumeric': 0.18890200708382526, 'fraction_numerical': 0.020070838252656435, 'mean_word_length': 3.463157894736842, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5698003', 'n_tokens_mistral': 288, 'n_tokens_neox': 272, 'n_words': 53}