<commit_before>/**
 * Add timeline to top of dashboard if event data is present.
 * The numbers indicate remaining days.
 * Red numbers indicate close deadlines.
 * Clicking on the numbers displays all event information.
 */
$(document).ready(function() {
  $(".bucket").css("cursor", "pointer").click(function () {
    $(this).next().children().each(function() {
      $(this).toggle();
    });
    $(this).children(".arrow").each(function() {
      if ($(this).text() === "\u25B6") {
        $(this).text("\u25BC");
      } else {
        $(this).text("\u25B6");
      }
    });
  });
  $(".title").css("cursor", "pointer").click(function () {
    $(this).next().children().children().each(function() {
      $(this).show();
    });
  });
});
<commit_msg>Better global expanding/collapsing<commit_after>/**
 * Add timeline to top of dashboard if event data is present.
 * The numbers indicate remaining days.
 * Red numbers indicate close deadlines.
 * Clicking on the numbers displays all event information.
 */
$(document).ready(function() {
  var collapsed = "\u25B6";
  var expanded = "\u25BC";
  $(".bucket").css("cursor", "pointer").click(function () {
    $(this).next().children().each(function() {
      $(this).toggle();
    });
    $(this).children(".arrow").each(function() {
      if ($(this).text() === collapsed) {
        $(this).text(expanded);
      } else {
        $(this).text(collapsed);
      }
    });
  });
  $(".title").css("cursor", "pointer").click(function () {
    $(this).children(".arrow").each(function() {
      var arrows = $(this).parent().next().children().children(".arrow");
      var tables = $(this).parent().next().children(".table").children();
      if ($(this).text() === collapsed) {
        tables.show();
        arrows.text(expanded);
        $(this).text(expanded);
      } else {
        tables.hide();
        arrows.text(collapsed);
        $(this).text(collapsed);
      }
    });
  });
});
{'fraction_non_alphanumeric': 0.22147995889003083, 'fraction_numerical': 0.006680369989722507, 'mean_word_length': 2.965376782077393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5133378', 'n_tokens_mistral': 577, 'n_tokens_neox': 559, 'n_words': 115}