<commit_before>/**
* TPMcopyalert Sprint1
* License: MIT
* Contact me: <EMAIL>
* by <NAME>
*/
(function($){
	$.fn.extend({ 
		tpmcopyalert: function(options) {
			//default Settings
			var defaults = {
				text : 'This media is copyrighted &copy 2014 by the site owner. All rights reserved.',
                mousebutton: 3,
                alertid: "tpmcopyalert",
			}
			return this.each(function() {
				var o = $.extend(defaults, options); //combines defaults and optional Settings
                var id = '#'+o.alertid;
                var alert = '<p id='+o.alertid+' style="display:none">'+o.text+'</p>';
                $('body').append(alert);
                $(this).bind('contextmenu', function(e){ return false; });
                $(this).mousedown(function(e) {
                    if(e.which == o.mousebutton) {
                        var mouseX = e.pageX; 
                        var mouseY = e.pageY-16;
                        $(id).hide().css({'top':mouseY,'left':mouseX}).show();
                    }
                });
                $(document).click(function(event) {
                    if (!$(event.target).closest(id).length) {
                        $(id).hide();
                    }
                });
    		});<commit_msg>bugfix<commit_after>/**
* TPMcopyalert Sprint1
* License: MIT
* Contact me: <EMAIL>
* by <NAME>
*/
(function($){
	$.fn.extend({ 
		tpmcopyalert: function(options) {
			//default Settings
			var defaults = {
				text : 'This media is copyrighted &copy 2014 by the site owner. All rights reserved.',
                mousebutton: 3,
                alertid: "tpmcopyalert",
			}
			return this.each(function() {
				var o = $.extend(defaults, options); //combines defaults and optional Settings
                var id = '#'+o.alertid;
                var alert = '<p id='+o.alertid+' style="display:none">'+o.text+'</p>';
                $(this).bind('contextmenu', function(e){ return false; });
                $(this).mousedown(function(e) {
                    if(e.which == o.mousebutton) {
                        var mouseX = e.pageX; 
                        var mouseY = e.pageY-16;
                        $(id).hide().css({'top':mouseY,'left':mouseX}).show();
                    }
                });
                $(document).click(function(event) {
                    if (!$(event.target).closest(id).length) {
                        $(id).hide();
                    }
                });
    		});
            $('body').append(alert);
{'fraction_non_alphanumeric': 0.15996816553919618, 'fraction_numerical': 0.006366892160764027, 'mean_word_length': 1.5266331658291457, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3898478', 'n_tokens_mistral': 771, 'n_tokens_neox': 687, 'n_words': 148}