<commit_before>var NATQA = NATQA || {};

(function($, NATQA) {
	
	NATQA.modules = {
			
		layout: {
			
			init: function() {
				
			}
		}
	}
	
	NATQA.resize = function() {
		
	}
	
	
	NATQA.modules.layout.init();
	
	
	$(window).on('resize', NATQA.resize);
	
})(jQuery, NATQA);<commit_msg>app.js cleaned&upgraded<commit_after>var APP = APP || {};

(function($, APP) {
  
  APP.init = function() {
    layout.init();
    index.init();
  }

  /*
      Pages code
      for particular pages (layout is common for all)
  */
  APP.pages = {

    //returns true if the current page has an id: #page-[page-name], to enable individual page code
    _check: function(id) {

      var isCurrent = false;
      if (!(id instanceof Array))
        id = [id];

      $.each(id, function() {
        if ($('#page-' + this).length) {
          isCurrent = true;
          id = this;
          return false;
        }
      });

      return isCurrent ? id : false;
    },

      
    layout: {
      
      init: function() {
        
      }
    },

    index: {
      
      init: function() {
        if (!APP.pages._check('index'))
          return;
      }
    }
  }

  //helper vars
  var layout = APP.pages.layout
      index = APP.pages.index;

  
  //on resize window standard handler
  APP.resize = function() {
    
  }



  /*
      Functional modules
  */
  APP.modules = {

    //checks for current media query range, defined by CSS z-index applied to body element
    isRes: function(mode, exact) {

      var ret,
        width = $(window).width(),
        height = $(window).height(),
        indicatorVal = parseInt($('body').css('z-index'));

      switch (mode) {

        case 'mobile':
          ret = indicatorVal == 1;
          break;

        case 'tablet':
          ret = exact ? (indicatorVal == 2) : (indicatorVal <= 2);
          break;

        case 'desktop':
          ret = exact ? (indicatorVal == 3) : (indicatorVal <= 3);
          break;
      }

      return ret;
    }
  }




  /*
      Init
  */
  $(function() {
    APP.init();
  });

  $(window).on('resize', APP.resize);

  
})(jQuery, APP);
{'fraction_non_alphanumeric': 0.1536286522148916, 'fraction_numerical': 0.00235626767200754, 'mean_word_length': 1.6975857687420584, 'pattern_counts': {'":': 0, '<': 5, '<?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': '759708', 'n_tokens_mistral': 749, 'n_tokens_neox': 660, 'n_words': 163}