<commit_before>$(function() {
  var handleGroupClick = function(){
    // replaces the group with individual stickies when clicked
    $('#stickie-area li.grouped').one('click', function(e){
      e.preventDefault();
      var group = $(this);
      $.each(group.children(), function(index, node){
        if (($(node).prop('tagName') === 'A') && index === 0) {
          $(node).attr('href', $(node).data('href'));
        }
        else {
          group.after("<li class='col-xs-12 col-md-3 col-sm-4 animated shake'>" + "<a class='stickie' href="+$(node).data('href')+" rel='bookmark'>" + $(node).html() + "</a></li>");
          $(node).remove();
        }
      });
      group.addClass('animated shake');
      group.removeClass('grouped');
    });
  };
  handleGroupClick();
});<commit_msg>fixed ordering when expanding grouped stickies<commit_after>$(function() {
  var handleGroupClick = function(){
    // replaces the group with individual stickies when clicked
    $('#stickie-area li.grouped').one('click', function(e){
      e.preventDefault();
      var group = $(this);
      $($.map(group.children(), function(node){
        return "<li class='col-xs-12 col-md-3 col-sm-4 animated shake'>" +
                 "<a class='stickie' href="+$(node).data('href')+" rel='bookmark'>" + $(node).html() + "</a> \
               </li>";
        }).join(""))
      .insertBefore(group);
      $(group).remove();
    });
  };
  handleGroupClick();
});
{'fraction_non_alphanumeric': 0.21993127147766323, 'fraction_numerical': 0.006185567010309278, 'mean_word_length': 2.8518518518518516, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '478786', 'n_tokens_mistral': 437, 'n_tokens_neox': 437, 'n_words': 91}