<commit_before>$(function(){
              var nb = $('.navbtn');
              var n = $('.mainnav');
              
              $(window).on('resize', function(){
                
                if($(this).width() < 570 && n.hasClass('keep-nav-closed')) {
                  // if the nav menu and nav button are both visible,
                  // then the responsive nav transitioned from open to non-responsive, then back again.
                  // re-hide the nav menu and remove the hidden class
                  $('.mainnav').hide().removeAttr('class');
                }
                if(nb.is(':hidden') && n.is(':hidden') && $(window).width() > 569) {
                  // if the navigation menu and nav button are both hidden,
                  // then the responsive nav is closed and the window resized larger than 560px.
                  // just display the nav menu which will auto-hide at <560px width.
                  $('.mainnav').show().addClass('keep-nav-closed');
                }
              }); 
              
              // $('.mainnav a,.top a,#btmnav nav a').on('click', function(e){
              //   e.preventDefault(); // stop all hash(#) anchor links from loading
              // });
              
              $('.navbtn').on('click', function(e){
                e.preventDefault();
                $(".mainnav").toggleClass('open');
              });
              

              $('.menu').click(function(){
			  $(this).toggleClass('open');
			  $('.slidenav').toggleClass('open')
			  $('body').toggleClass('nav-open')
			})

// fixed header

  $(window).scroll(function () {
       var sc = $(window).scrollTop()
      if (sc > 1) {
          $(".top").addClass("scroll-on")
      } else {
          $(".top").removeClass("scroll-on")
      }
  });
});





//horizontal tabs

jQuery(document).ready(function($) {

    $(".tab_content").hide();
 $(".tab_content:first").show();

//tab mode

    $("ul.tabs li").click(function() {
		
      $(".tab_content").hide();
      var activeTab = $(this).attr("rel"); 
      $("#"+activeTab).fadeIn();		
      $("ul.tabs li").removeClass("active");
      $(this).addClass("active");

      $(".tab-accordion_heading").removeClass("d_active");
      $(".tab-accordion_heading[rel^='"+activeTab+"']").addClass("d_active");
      
      
 		  target= $('.tabs');
         $('html,body').animate({
           scrollTop: target.offset().top + -100
         }, 1000);
	  
    });

	/* acoordion mode */

	$(".tab-accordion_heading").click(function() {
      
      $(".tab_content").hide();
      var d_activeTab = $(this).attr("rel"); 
      $("#"+d_activeTab).fadeIn();
    
	   $(".tab-accordion_heading").removeClass("d_active");
      $(this).addClass("d_active");
	  
      $("ul.tabs li").removeClass("active");
      $("ul.tabs li[rel^='"+d_activeTab+"']").addClass("active");
       
    // if ( $( this ).hasClass( "d_active" ) ) {
    //          $(this).removeClass("d_active");
    //          $("#"+d_activeTab).fadeIn();
    // }
      target= $('.all-plugins');
         $('html,body').animate({
           scrollTop: target.offset().top + -100
         }, 1000);
    

    });
	
});


jQuery(document).ready(function($) {
  
  $('.help_cta').click(function(event) {
    $('.signup').slideDown('fast');
  });
  $('.signup .close').click(function(event) {
    $('.signup').slideUp('fast');
  });

});
<commit_msg>Reformat main.js for whitespace<commit_after>$(function(){
  var nb = $('.navbtn');
  var n = $('.mainnav');

  $(window).on('resize', function(){

    if($(this).width() < 570 && n.hasClass('keep-nav-closed')) {
      // if the nav menu and nav button are both visible,
      // then the responsive nav transitioned from open to non-responsive, then back again.
      // re-hide the nav menu and remove the hidden class
      $('.mainnav').hide().removeAttr('class');
    }
    if(nb.is(':hidden') && n.is(':hidden') && $(window).width() > 569) {
      // if the navigation menu and nav button are both hidden,
      // then the responsive nav is closed and the window resized larger than 560px.
      // just display the nav menu which will auto-hide at <560px width.
      $('.mainnav').show().addClass('keep-nav-closed');
    }
  });

  // $('.mainnav a,.top a,#btmnav nav a').on('click', function(e){
  //   e.preventDefault(); // stop all hash(#) anchor links from loading
  // });

  $('.navbtn').on('click', function(e){
    e.preventDefault();
    $(".mainnav").toggleClass('open');
  });


  $('.menu').click(function(){
    $(this).toggleClass('open');
    $('.slidenav').toggleClass('open')
    $('body').toggleClass('nav-open')
  })

  // fixed header

  $(window).scroll(function () {
    var sc = $(window).scrollTop()
    if (sc > 1) {
      $(".top").addClass("scroll-on")
    } else {
      $(".top").removeClass("scroll-on")
    }
  });
});





//horizontal tabs

jQuery(document).ready(function($) {

  $(".tab_content").hide();
  $(".tab_content:first").show();

  //tab mode

  $("ul.tabs li").click(function() {

    $(".tab_content").hide();
    var activeTab = $(this).attr("rel");
    $("#"+activeTab).fadeIn();
    $("ul.tabs li").removeClass("active");
    $(this).addClass("active");

    $(".tab-accordion_heading").removeClass("d_active");
    $(".tab-accordion_heading[rel^='"+activeTab+"']").addClass("d_active");


    target = $('.tabs');
    $('html,body').animate({
      scrollTop: target.offset().top + -100
    }, 1000);

  });

  /* acoordion mode */

  $(".tab-accordion_heading").click(function() {

    $(".tab_content").hide();
    var d_activeTab = $(this).attr("rel");
    $("#"+d_activeTab).fadeIn();

    $(".tab-accordion_heading").removeClass("d_active");
    $(this).addClass("d_active");

    $("ul.tabs li").removeClass("active");
    $("ul.tabs li[rel^='"+d_activeTab+"']").addClass("active");

    // if ( $( this ).hasClass( "d_active" ) ) {
    //          $(this).removeClass("d_active");
    //          $("#"+d_activeTab).fadeIn();
    // }
    target= $('.all-plugins');
    $('html,body').animate({
      scrollTop: target.offset().top + -100
    }, 1000);

  });

});


jQuery(document).ready(function($) {

  $('.help_cta').click(function(event) {
    $('.signup').slideDown('fast');
  });
  $('.signup .close').click(function(event) {
    $('.signup').slideUp('fast');
  });

});

{'fraction_non_alphanumeric': 0.22353125981778196, 'fraction_numerical': 0.008482563619227144, 'mean_word_length': 2.290439276485788, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5752561', 'n_tokens_mistral': 2063, 'n_tokens_neox': 1919, 'n_words': 355}