<commit_before>var menu = (function () {
    'use strict';

    function menuDrop() {
        $('#drop-down-menu').on('click', function () {
            $('header ul').slideToggle();
        });
    }

    function windowResize() {
        var enteredFromDesktop = !Modernizr.mq('(max-width: 767px)');
        $(window).on('resize', function () {
            if (!Modernizr.mq('(max-width: 767px)')) {
                enteredFromDesktop = true;
                $('header ul').css('display', 'inline-block');
            } else {
                if (enteredFromDesktop) {
                    enteredFromDesktop = false;
                    $('header ul').css('display', 'none');
                }
            }
        });
    }

    function init() {
        menuDrop();
        windowResize();
    }

    var menuModule = {
        init: init
    };

    return menuModule;

})();<commit_msg>simplified menu dropdown js<commit_after>var menu = (function () {
  'use strict';

  function menuDrop() {
    $('#drop-down-menu').on('click', function () {
      $('header ul').slideToggle();
    });
  }

  function windowResize() {
    if (Modernizr.mq('(max-width: 767px)')) {
      $('header ul').css('display', 'none');
    }

    $(window).on('resize', function () {
      if (!Modernizr.mq('(max-width: 767px)')) {
        $('header ul').css('display', 'inline-block');
      } else {
        $('header ul').css('display', 'none');
      }
    });
  }

  function init() {
    menuDrop();
    windowResize();
  }

  var menuModule = {
    init: init
  };

  return menuModule;

})();
{'fraction_non_alphanumeric': 0.18990536277602524, 'fraction_numerical': 0.007570977917981073, 'mean_word_length': 1.9534450651769089, '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': '7507361', 'n_tokens_mistral': 507, 'n_tokens_neox': 476, 'n_words': 89}