<commit_before>/**
 * jQuery mouseable() plugin
 * https://github.com/DanZiti/jQuery-mouseable
 * 
 * Custom jQuery method that adds hover and active classes to DOM elements...
 * A !DOCTYPE-agnostic replacement for CSS :hover and :active pseudo classes
 * 
 * Copyright (c) 2015 <NAME>
 * Released under the MIT license
 * https://github.com/DanZiti/jQuery-mouseable/blob/master/LICENSE
 */

	(function($){
		
		$.fn.mouseable = function(_classes){
			
			var hoverClass, activeClass, evt_hover, evt_remove, evt_down, evt_up;
			
			if (_classes){
				
				if (typeof _classes === "object"){
					hoverClass  = (_classes.hasOwnProperty("hoverClass"))  ? _classes["hoverClass"]  : "over";
					activeClass = (_classes.hasOwnProperty("activeClass")) ? _classes["activeClass"] : "down";
				} else {
					throw new Error("Classes parameter for mouseable() must be an object with properties 'hoverClass' and/or 'activeClass'.");
				}
				
			} else {
				hoverClass = "over";
				activeClass = "down";
			}
			
			evt_hover  = ("createTouch" in document) ? "touchstart" : "mouseenter";
			evt_remove = ("createTouch" in document) ? "touchend"   : "mouseleave";
			evt_down   = ("createTouch" in document) ? "touchstart" : "mousedown";
			evt_up     = ("createTouch" in document) ? "touchend"   : "mouseup mouseleave";
			
			$(this).on(evt_hover,function(){
				$(this).addClass(hoverClass);
			})
			.on(evt_remove,function(){
				$(this).removeClass(hoverClass);
			})
			.on(evt_down,function(){
				$(this).addClass(activeClass);
			})
			.on(evt_up,function(){
				$(this).removeClass(activeClass);
			});
			
			return this;
		};
	}(jQuery));<commit_msg>Getting anal about spacing.<commit_after>/**
 * jQuery mouseable() plugin
 * https://github.com/DanZiti/jQuery-mouseable
 * 
 * Custom jQuery method that adds hover and active classes to DOM elements...
 * A !DOCTYPE-agnostic replacement for CSS :hover and :active pseudo classes
 * 
 * Copyright (c) 2015 <NAME>
 * Released under the MIT license
 * https://github.com/DanZiti/jQuery-mouseable/blob/master/LICENSE
 */

	(function($) {
		
		$.fn.mouseable = function(_classes) {
			
			var hoverClass, activeClass, evt_hover, evt_remove, evt_down, evt_up;
			
			if (_classes) {
				
				if (typeof _classes === "object") {
					hoverClass  = (_classes.hasOwnProperty("hoverClass"))  ? _classes["hoverClass"]  : "over";
					activeClass = (_classes.hasOwnProperty("activeClass")) ? _classes["activeClass"] : "down";
				} else {
					throw new Error("Classes parameter for mouseable() must be an object with properties 'hoverClass' and/or 'activeClass'.");
				}
				
			} else {
				hoverClass = "over";
				activeClass = "down";
			}
			
			evt_hover  = ("createTouch" in document) ? "touchstart" : "mouseenter";
			evt_remove = ("createTouch" in document) ? "touchend"   : "mouseleave";
			evt_down   = ("createTouch" in document) ? "touchstart" : "mousedown";
			evt_up     = ("createTouch" in document) ? "touchend"   : "mouseup mouseleave";
			
			$(this).on(evt_hover, function() {
				$(this).addClass(hoverClass);
			})
			.on(evt_remove, function() {
				$(this).removeClass(hoverClass);
			})
			.on(evt_down, function() {
				$(this).addClass(activeClass);
			})
			.on(evt_up, function() {
				$(this).removeClass(activeClass);
			});
			
			return this;
		};
	}(jQuery));
{'fraction_non_alphanumeric': 0.15409934171154996, 'fraction_numerical': 0.0023937761819269898, 'mean_word_length': 3.499327052489906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': 1, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6922359', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1059, 'n_words': 242}