<commit_before>(function () {
  var SPREADSHEET_KEY = '<KEY>';
  var tpl = $('.social-tpl').clone();
  var clearTpl = $('.clearfix-tpl').clone();

  function sheetToTweets (data, tabletop) {
    var elements = data.workzonewtf.elements;
    $('.social-tpl').remove();
    $('.clearfix-tpl').remove();
    $('.wtf-loading').remove();

    for (var i = 0; i < elements.length; i++) {
      addOembed(elements[i]);
      if ((i+1) % 3 == 0) {
        addClearfix();
      }
    }
  }

  function addOembed (str) {
    if (str.oembed !== "") {
      try {
        var oembed = JSON.parse(str.oembed);
        tpl.clone().html(oembed.html).appendTo('.social-grid');
      } catch (e) {
        throw Error(e);
      }
    }
  }

  function addClearfix () {
    clearTpl.clone().appendTo('.social-grid');
  }

  window.onload = function() {
    Tabletop.init({
      key: SPREADSHEET_KEY,
      callback: sheetToTweets,
      query: 'status = accepted'
    })
  };
})()<commit_msg>reverse order by timestamp<commit_after>(function () {
  var SPREADSHEET_KEY = '<KEY>';
  var tpl = $('.social-tpl').clone();
  var clearTpl = $('.clearfix-tpl').clone();

  function sheetToTweets (data, tabletop) {
    var elements = data;
    $('.social-tpl').remove();
    $('.clearfix-tpl').remove();
    $('.wtf-loading').remove();

    for (var i = 0; i < elements.length; i++) {
      addOembed(elements[i]);
      if ((i+1) % 3 == 0) {
        addClearfix();
      }
    }
  }

  function addOembed (str) {
    if (str.oembed !== "") {
      try {
        var oembed = JSON.parse(str.oembed);
        tpl.clone().html(oembed.html).appendTo('.social-grid');
      } catch (e) {
        throw Error(e);
      }
    }
  }

  function addClearfix () {
    clearTpl.clone().appendTo('.social-grid');
  }

  window.onload = function() {
    Tabletop.init({
      key: SPREADSHEET_KEY,
      callback: sheetToTweets,
      query: 'status = accepted',
      simpleSheet: true,
      orderby: 'timestamp',
      reverse: true
    })
  };
})()
{'fraction_non_alphanumeric': 0.19246031746031747, 'fraction_numerical': 0.003968253968253968, 'mean_word_length': 2.384228187919463, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2793154', 'n_tokens_mistral': 719, 'n_tokens_neox': 702, 'n_words': 129}