<commit_before>$(function () {
  $('[data-toggle="tooltip"]').tooltip()

  $(".search-button").on('click', function(event) {
    event.preventDefault();
    if ($(".search-field").hasClass('hidden')) {
      $(".search-field").animate({"width": "200px"}, "fast");
      $("input.form-control").focus();
      $(".search-field").removeClass('hidden');
    } else {
      $(".search-field").animate({"width": "0"}, "fast");
      $(".search-field").addClass('hidden');
    }
    return false;
  });

  $(".dropdown-toggle").on('click', function(event) {
    event.preventDefault();
    if ($(".dropdown").hasClass('slided') == false) {
      $(".dropdown").addClass('slided');
      $(".dropdown-menu").slideDown('fast')
    } else {
      $(".dropdown").removeClass('slided');
      $(".dropdown-menu").slideUp('fast')

    }
    return false;
  });


  // $( window ).scroll(function() {
  //   $.data( this, "scrollCheck", setTimeout(function() {
  //     $( "div.navbar.navbar-info.navbar-fixed-top" ).removeClass('box-shadow');
  //   }, 2500) );
  // });

  var CurrentScroll = 0;
  $(window).scroll(function(event){
    $( "div.navbar.navbar-info.navbar-fixed-top" ).addClass('box-shadow');
    var NextScroll = $(this).scrollTop();
    if (NextScroll > CurrentScroll){

      //write the codes related to down-ward scrolling here
      if (window.scrollY >= 300) {
        $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeOut(600);
      }

    } else {

      $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeIn(200);

      //write the codes related to upward-scrolling here
      // $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeIn("fast");
    }
    //Updates current scroll position
    CurrentScroll = NextScroll;
  });

  // if (window.scrollY >= 300) {<commit_msg>make small styling changes<commit_after>$(function () {
  $('[data-toggle="tooltip"]').tooltip()

  $(".search-button").on('click', function(event) {
    event.preventDefault();
    if ($(".search-field").hasClass('hidden')) {
      $(".search-field").animate({"width": "200px"}, "fast");
      $("input.form-control").focus();
      $(".search-field").removeClass('hidden');
    } else {
      $(".search-field").animate({"width": "0"}, "fast");
      $(".search-field").addClass('hidden');
    }
    return false;
  });

  $(".dropdown-toggle").on('click', function(event) {
    event.preventDefault();
    if ($(".dropdown").hasClass('slided') == false) {
      $(".dropdown").addClass('slided');
      $(".dropdown-menu").slideDown('fast')
    } else {
      $(".dropdown").removeClass('slided');
      $(".dropdown-menu").slideUp('fast')

    }
    return false;
  });


  // $( window ).scroll(function() {
  //   $.data( this, "scrollCheck", setTimeout(function() {
  //     $( "div.navbar.navbar-info.navbar-fixed-top" ).removeClass('box-shadow');
  //   }, 2500) );
  // });

  var CurrentScroll = 0;
  $(window).scroll(function(event){
    if (window.scrollY == 0) {
      $( "div.navbar.navbar-info.navbar-fixed-top" ).removeClass('box-shadow');
    } else {
      $( "div.navbar.navbar-info.navbar-fixed-top" ).addClass('box-shadow');
    }

    var NextScroll = $(this).scrollTop();
    if (NextScroll > CurrentScroll){

      //write the codes related to down-ward scrolling here
      if (window.scrollY >= 300) {
        $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeOut(600);
      }

    } else {

      $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeIn(200);

      //write the codes related to upward-scrolling here
      // $( "div.navbar.navbar-info.navbar-fixed-top" ).fadeIn("fast");
    }
    //Updates current scroll position
    CurrentScroll = NextScroll;
  });

  // if (window.scrollY >= 300) {
{'fraction_non_alphanumeric': 0.2260752688172043, 'fraction_numerical': 0.011559139784946236, 'mean_word_length': 2.9334038054968286, 'pattern_counts': {'":': 4, '<': 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': '4026426', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1155, 'n_words': 183}