<commit_before>// Jquery UI for tabbed panes
$.getScript("https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js", function(){
  setupTabs();
});

// Add the 'external' class to every outbound link on the site.
// The css will add a small right arrow after the link.
$('a').filter(function() {
   return this.hostname && this.hostname !== location.hostname;
}).addClass("external");

//Set up tabs
function setupTabs(rootElement) {
      rootElement = rootElement || document;
      var tabs = $(rootElement).find('div.tabs');
      if(tabs.length > 0) {
        tabs.tabs();
      }
};

// Make the table of contents
$(document).ready(function() {
    $('.toc').toc({ listType: 'ul' });

    $('#nav-toggle, #hamburger').on('click', function(){
      $('.top-nav').toggleClass('right');
    })
    $('#nav-doc-toggle').on('click', function(){
      $('.nav-doc-tab').toggle();
    })


});

// Prettyprint
$('pre').addClass("prettyprint");
$.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js", function(){
});

// Collapsible navbar menu, using https://github.com/jordnkr/collapsible
$.getScript("/grpc.github.io/js/jquery.collapsible.js", function(){
  highlightActive();
  $('.submenu').collapsible();
});<commit_msg>Adds JS to close mobile nav when screen is expanded past tablet<commit_after>// Jquery UI for tabbed panes
$.getScript("https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js", function(){
  setupTabs();
});

// Add the 'external' class to every outbound link on the site.
// The css will add a small right arrow after the link.
$('a').filter(function() {
   return this.hostname && this.hostname !== location.hostname;
}).addClass("external");

//Set up tabs
function setupTabs(rootElement) {
      rootElement = rootElement || document;
      var tabs = $(rootElement).find('div.tabs');
      if(tabs.length > 0) {
        tabs.tabs();
      }
};

// Make the table of contents
$(document).ready(function() {
    $('.toc').toc({ listType: 'ul' });

    $('#nav-toggle, #hamburger').on('click', function(){
      $('.top-nav').toggleClass('right');
    });
    $('#nav-doc-toggle').on('click', function(){
      $('.nav-doc-tab').toggle();
    });
    $(window).on('resize',function(){
      if ($(window).width() > 768 && !($('.top-nav').hasClass('right'))) {
        $('.top-nav').addClass('right');
      }
    });


});

// Prettyprint
$('pre').addClass("prettyprint");
$.getScript("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js", function(){
});

// Collapsible navbar menu, using https://github.com/jordnkr/collapsible
$.getScript("/grpc.github.io/js/jquery.collapsible.js", function(){
  highlightActive();
  $('.submenu').collapsible();
});
{'fraction_non_alphanumeric': 0.21599131693198265, 'fraction_numerical': 0.004703328509406657, 'mean_word_length': 3.6627318718381114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 6, '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': '4458230', 'n_tokens_mistral': 909, 'n_tokens_neox': 888, 'n_words': 177}