<commit_before>$( document ).ready(function() {
  // Shift nav in mobile when clicking the menu.
  $(document).on('click', "[data-toggle='wy-nav-top']", function(event) {
    $("[data-toggle='wy-nav-shift']").toggleClass("shift");
  });
  // Close menu when you click a link.
  $(document).on("click", ".wy-menu-vertical a", function(event) {
    $("[data-toggle='wy-nav-shift']").removeClass("shift");
  });

  // Fake form builder stuffs
  $(document).on("click", "[fake-toggle*='fake-widget']", function(event) {
    var attr = $(this).attr('fake-toggle');
    var widget = attr.substring(12,attr.length);
    $("[fake-toggle='fake-widget-edit']").show();
    $("[fake-toggle='fake-widget-list']").hide();

    $("[fake-toggle*='fake-widget-form']").hide();
    $("[fake-toggle='fake-widget-form-" + widget + "']").show();
    $("[fake-toggle*='fake-widget']").removeClass("wy-control-group-edit");
    $(this).addClass("wy-control-group-edit");

  });

  $(document).on("click", "[fake-toggle='fake-widget-done']", function(event) {
    $("[fake-toggle='fake-widget-edit']").hide();<commit_msg>onclick for dropdowns<commit_after>$( document ).ready(function() {
  // Shift nav in mobile when clicking the menu.
  $(document).on('click', "[data-toggle='wy-nav-top']", function(event) {
    $("[data-toggle='wy-nav-shift']").toggleClass("shift");
  });
  // Close menu when you click a link
  $(document).on("click", ".wy-menu-vertical a", function(event) {
    $("[data-toggle='wy-nav-shift']").removeClass("shift");
  });

  // Close menu when you click a link
  $(document).on("click", ".wy-dropdown .btn", function(event) {
    $(this).parent().find(".wy-dropdown-menu").toggle();
  });

  // Fake form builder stuffs
  $(document).on("click", "[fake-toggle*='fake-widget']", function(event) {
    var attr = $(this).attr('fake-toggle');
    var widget = attr.substring(12,attr.length);
    $("[fake-toggle='fake-widget-edit']").show();
    $("[fake-toggle='fake-widget-list']").hide();

    $("[fake-toggle*='fake-widget-form']").hide();
    $("[fake-toggle='fake-widget-form-" + widget + "']").show();
    $("[fake-toggle*='fake-widget']").removeClass("wy-control-group-edit");
    $(this).addClass("wy-control-group-edit");

  });

  $(document).on("click", "[fake-toggle='fake-widget-done']", function(event) {
    $("[fake-toggle='fake-widget-edit']").hide();
{'fraction_non_alphanumeric': 0.26286919831223626, 'fraction_numerical': 0.0016877637130801688, 'mean_word_length': 4.364253393665158, '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': '7569705', 'n_tokens_mistral': 779, 'n_tokens_neox': 782, 'n_words': 117}