<commit_before><script>
  if (!window.GluBehaviors) {
    window.GluBehaviors = {};
  }

  GluBehaviors.GridSort = {
    properties: {
      sortedGrid: {
        type: Array,
        notify: true,
        value: []
      },
      sortOrder: {
        type: Array,
        notify: true,
        value: ["t", "+"]
      },
    },
    sortOrderChanged: function (e, newSortOrder) {
      this.sortOrder = newSortOrder;
    },
    sortGrid: function (items, sortOrder) {
      var dir = sortOrder[1] === '+' ? -1 : 1,
        column = sortOrder[0] === 't' ? -1 : parseInt(sortOrder[0]);
      items.sort(function (a, b) {
        return (column === -1 ? (a.t < b.t) : (a.n[column] < b.n[column])) ? dir : -dir;
      });
      this.sortedGrid = items;
    }
  };
</script><commit_msg>Added missing behavior annotation.<commit_after><script>
  if (!window.GluBehaviors) {
    window.GluBehaviors = {};
  }

 /**
   * @polymerBehavior GluBehaviors.GridSort
   */
  GluBehaviors.GridSort = {
    properties: {
      sortedGrid: {
        type: Array,
        notify: true,
        value: []
      },
      sortOrder: {
        type: Array,
        notify: true,
        value: ["t", "+"]
      },
    },
    sortOrderChanged: function (e, newSortOrder) {
      this.sortOrder = newSortOrder;
    },
    sortGrid: function (items, sortOrder) {
      var dir = sortOrder[1] === '+' ? -1 : 1,
        column = sortOrder[0] === 't' ? -1 : parseInt(sortOrder[0]);
      items.sort(function (a, b) {
        return (column === -1 ? (a.t < b.t) : (a.n[column] < b.n[column])) ? dir : -dir;
      });
      this.sortedGrid = items;
    }
  };
</script>
{'fraction_non_alphanumeric': 0.1752136752136752, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 2.0128676470588234, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '4493695', 'n_tokens_mistral': 574, 'n_tokens_neox': 564, 'n_words': 112}