<commit_before>/*
	Glean.js - the final product from the ShopDown.js tests.
	proposed use.
  ----
  	var Glean 	= $("thiselement.section").Glean(),
  			link 		= Glean.get("link");
  	console.log(link);
	----
	output: http://danieltamkin.com
*/
<commit_msg>Added basic structure<commit_after>/*
	Glean.js - the final product from the ShopDown.js tests.
	proposed use.
  ----
  	var Glean 	= $("thiselement.section").Glean(),
  			link 		= Glean.get("link");
  	console.log(link);
	----
	output: http://danieltamkin.com
*/
$.fn.ShopDown = function(data) {
	$this = $(this);
	$data = [];
	$data.settings = datacheck(data);
	/*data*/
	function datacheck(data){
	  return datascrub(data);
	}
	function datatemplate(){
	  return {
			leftovers: false,
	    content: $this,
	    sanitize: true,
			cull: true,
			images: true,
			compile: true
	  }
	}
	function datascrub(data){
	  template = datatemplate();
		if(data == undefined || $.isEmptyObject(data) == true){
			data = template;
		}
		else{
		  $.each(template,function(key,value){
		    $.each(data,function(bravokey,bravovalue){
		      if(bravokey == key){
		        if(bravovalue.length === -1){
		          value = value;
		        }
		        else{
		          // do nothing, bravovalue is in bravokey
		        }
		      }
		      else{
		        if(!(key in data)){// that key doesnt exist? make it.
		          data[key] = value;
		        }
		      }
		    });
		  });
		}
		return data;
	}
/*> app*/
	function app(){
	  window.htmlGot = false;// yes your allowed to grab HTML!
		appCalculation();
		appCleanup();
	}
	app();
/*> objective functions*/
	return {
	  output: function(data) {
	    return appOutput(data);
	  },
		reload: function(){
			app();// just reloads the app model to get new info.
		}
	}
};

{'fraction_non_alphanumeric': 0.16234498308906425, 'fraction_numerical': 0.0005636978579481398, 'mean_word_length': 2.3054003724394785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1801699', 'n_tokens_mistral': 692, 'n_tokens_neox': 621, 'n_words': 140}