<commit_before>/* global $ */

$(document).ready(function(){
  // Hide-Show code blocks
  $('.code-block > .button').click(function(){
    $(this).next('pre').toggle();
  });

  $('#menu').click(function() {
    $('#nav-options').toggle();
  });

  if ($(window).width >= 768) {
    console.log('hello');
    $('#nav-options').show();
  }
});

$(window).resize(function() {
  if ($(window).width() >= 768) {
    $('#nav-options').show();<commit_msg>Some jQuery caching<commit_after>/* global $ */

$(document).ready(function () {
  $navOptions = $('#nav-options');
  $windowWidth = $(window).width();

  // Hide-Show code blocks
  $('.code-block > .button').click(function(){
    $(this).next('pre').toggle();
  });

  $('#menu').click(function () {
    $navOptions.toggle();
  });

  if ($windowWidth >= 768) {
    console.log('hello');
    $navOptions.show();
  }
});

$(window).resize(function () {
  if ($windowWidth >= 768) {
    $navOptions.show();
{'fraction_non_alphanumeric': 0.27148846960167716, 'fraction_numerical': 0.012578616352201259, 'mean_word_length': 3.569377990430622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5141353', 'n_tokens_mistral': 330, 'n_tokens_neox': 312, 'n_words': 47}