<commit_before>/**
 * jQuery Pluginifier - A jQuery Plugin Instantiator (Write Less, Do More)
 * 	|- Plugin Boilerplate Code
 * 
 * Copyright (c) 2011 <NAME> - http://aknosis.com
 * Licensed under WTFPL v2 see http://sam.zoy.org/wtfpl/
 */

//This should be available somewhere, doesn't have to be here explicitly
var namespace = {
	
	//This will hold all of the plugins
	plugins : {}
};

//Wrap in a closure to secure $ for jQuery
(function( $ ){

	//Constructor - This is what is called when we create call new namspace.plugins.pluginNameHere( this , options );
	namespace.plugins.pluginNameHere = function( ele , options ){
		this.$this = $( ele );
		this.options = $.extend( {} , this.defaults , options );
	};

	//These prototype items get assigned to every instance of namespace.plugins.pluginNameHere
	namespace.plugins.pluginNameHere.prototype = {

		//This is the default option all instances get, can be overridden by incoming options argument
		defaults : { 
			opt: "tion"
		},
		
		//private init method - This is called immediately after the constructor 
		_init : function(){
			//useful code here
		},
		
		//private method - We filter out method names that start with an underscore this won't work outside
		_aPrivateMethod : function(){ 
			//Something useful here that is not needed externally
		},
		
		//public method - This method is available via $("#element").pluginNameHere("aPublicMethod","aParameter");
		aPublicMethod : function(){
			//Something useful here that anyone can call anytime
		}
	};

	//Here we register the plugin - $("#ele").pluginNameHere(); now works as expected
	$.pluginifier( "pluginNameHere" );
	
})( jQuery );<commit_msg>Fixed a small bug :) - (I like the GitHub editor btw)<commit_after>/**
 * jQuery Pluginifier - A jQuery Plugin Instantiator (Write Less, Do More)
 * 	|- Plugin Boilerplate Code
 * 
 * Copyright (c) 2011 <NAME> - http://aknosis.com
 * Licensed under WTFPL v2 see http://sam.zoy.org/wtfpl/
 */

//This should be available somewhere, doesn't have to be here explicitly
var namespace = {
	
	//This will hold all of the plugins
	plugins : {}
};

//Wrap in a closure to secure $ for jQuery
(function( $ ){

	//Constructor - This is what is called when we create call new namspace.plugins.pluginNameHere( this , options );
	namespace.plugins.pluginNameHere = function( ele , options ){
		this.$this = $( ele );
		this.options = $.extend( {} , this.defaults , options );
	};

	//These prototype items get assigned to every instance of namespace.plugins.pluginNameHere
	namespace.plugins.pluginNameHere.prototype = {

		//This is the default option all instances get, can be overridden by incoming options argument
		defaults : { 
			opt: "tion"
		},
		
		//private init method - This is called immediately after the constructor 
		_init : function(){
			//useful code here
			return this; //This is very important if you want to call into your plugin after the initial setup
		},
		
		//private method - We filter out method names that start with an underscore this won't work outside
		_aPrivateMethod : function(){ 
			//Something useful here that is not needed externally
		},
		
		//public method - This method is available via $("#element").pluginNameHere("aPublicMethod","aParameter");
		aPublicMethod : function(){
			//Something useful here that anyone can call anytime
		}
	};

	//Here we register the plugin - $("#ele").pluginNameHere(); now works as expected
	$.pluginifier( "pluginNameHere" );
	
})( jQuery );
{'fraction_non_alphanumeric': 0.10964408725602756, 'fraction_numerical': 0.0028702640642939152, 'mean_word_length': 3.479434447300771, 'pattern_counts': {'":': 0, '<': 5, '<?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': '473924', 'n_tokens_mistral': 1038, 'n_tokens_neox': 921, 'n_words': 387}