<commit_before>/*
 * jQuery Fillmore
 * Version 1.2.2
 * http://srobbin.com/jquery-plugins/jquery-fillmore/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2011 <NAME> (<EMAIL>)
 * Dual licensed under the MIT and GPL licenses.
*/
(function(a){a.fillmore=function(k,i,l){function m(c){try{g={left:0,top:0},d=e.width(),b=d/j,b>=e.height()?(h=(b-e.height())/2,f.centeredY&&a.extend(g,{top:"-"+h+"px"})):(b=e.height(),d=b*j,h=(d-e.width())/2,f.centeredX&&a.extend(g,{left:"-"+h+"px"})),a("#fillmore, #fillmore img:last").width(d).height(b).filter("img").css(g)}catch(o){}typeof c=="function"&&c()}var n={centeredX:!0,centeredY:!0,speed:0},c=a("#fillmore"),f=c.data("settings")||n;c.data("settings");var e="onorientationchange" in window?a(document):a(window),j,d,b,h,g;i&&typeof i=="object"&&a.extend(f,i);a(document).ready(function(){if(k){var b;c.length==0?c=a("<div />").attr("id","fillmore").css({left:0,top:0,position:"fixed",overflow:"hidden",zIndex:-999999,margin:0,padding:0,height:"100%",width:"100%"}):c.find("img").addClass("deleteable");b=a("<img />").css({position:"absolute",display:"none",margin:0,padding:0,border:"none",zIndex:-999999}).bind("load",function(b){var d=a(this),e;d.css({width:"auto",height:"auto"});e=this.width||a(b.target).width();b=this.height||a(b.target).height();j=e/b;m(function(){d.fadeIn(f.speed,function(){c.find(".deleteable").remove();typeof l=="function"&&l()})})}).appendTo(c);a("body #fillmore").length==0&&a("body").append(c);c.data("settings",f);b.attr("src",k);a(window).resize(m)}});return this}})(jQuery);<commit_msg>re-minified<commit_after>/*
 * jQuery Fillmore
 * Version 0.1.0
 * https://github.com/Gjslick/jquery-fillmore
 *
 * Add a dynamically-resized background image to any element
 *
 * Copyright (c) 2011 <NAME> (jux.com)
 * Dual licensed under the MIT and GPL licenses.
 */
(function($){var defaultSettings={centeredX:true,centeredY:true,speed:0};var Fillmore=function(containerEl){var fillmoreElPosition='absolute';this.zIndex=-1;this.$containerEl=$(containerEl).css({position:'relative',background:'transparent'});this.$containerSizingEl=this.$containerEl;if(this.$containerSizingEl.is('body')){this.$containerSizingEl=('onorientationchange'in window)?$(document):$(window);fillmoreElPosition='fixed';this.zIndex=-999999;}else{this.$containerEl.css('overflow','hidden');}
this.settings=$.extend({},defaultSettings);this.$fillmoreEl=$('<div style="left: 0; top: 0; position: '+fillmoreElPosition+'; overflow: hidden; z-index: '+this.zIndex+'; margin: 0; padding: 0; height: 100%; width: 100%;" />').appendTo(this.$containerEl);this.$img=null;this.imgRatio=null;$(window).resize($.proxy(this.adjustBG,this));};Fillmore.prototype={constructor:Fillmore,updateSettings:function(settings){this.settings=$.extend(this.settings,settings);},showImage:function(src,callback){this.$fillmoreEl.find('img').addClass('deletable');this.$img=$('<img style="position: absolute; display: none; margin: 0; padding: 0; border: none; z-index: '+this.zIndex+';" />').bind('load',$.proxy(function(evt){this.onImageLoaded(evt,callback);},this)).appendTo(this.$fillmoreEl);this.$img.attr("src",src);},onImageLoaded:function(evt,callback){var img=evt.target,$fillmoreEl=this.$fillmoreEl;this.$img.css({width:"auto",height:"auto"});var imgWidth=img.width||this.$img.width(),imgHeight=img.height||this.$img.height();this.imgRatio=imgWidth/imgHeight;this.adjustBG();this.$img.fadeIn(this.settings.speed,function(){$fillmoreEl.find('img.deletable').remove();if(typeof callback==="function"){callback();}});},adjustBG:function(){if(this.$img){try{var settings=this.settings,$containerEl=this.$containerEl,$containerSizingEl=this.$containerSizingEl,containerHeight=$containerSizingEl.outerHeight()||$containerSizingEl.height(),containerWidth=$containerSizingEl.outerWidth()||$containerSizingEl.width(),bgCSS={left:0,top:0},bgWidth=containerWidth,bgHeight=bgWidth/this.imgRatio,bgOffset;if(bgHeight>=containerHeight){bgOffset=(bgHeight-containerHeight)/2;if(settings.centeredY){$.extend(bgCSS,{top:"-"+bgOffset+"px"});}}else{bgHeight=containerHeight;bgWidth=bgHeight*this.imgRatio;bgOffset=(bgWidth-containerWidth)/2;if(settings.centeredX){$.extend(bgCSS,{left:"-"+bgOffset+"px"});}}
this.$fillmoreEl.width(bgWidth).height(bgHeight);this.$img.width(bgWidth).height(bgHeight).css(bgCSS);}catch(err){}}}};$.fn.fillmore=function(src,settings,callback){return this.each(function(idx,el){var $el=$(el),fillmore=$el.data('fillmore');if(!fillmore){fillmore=new Fillmore(el);$el.data('fillmore',fillmore);}
fillmore.updateSettings(settings);fillmore.showImage(src,callback);});};$.fillmore=function(src,settings,callback){$(document).ready(function(){$('body').fillmore(src,settings,callback);});};})(jQuery);
{'fraction_non_alphanumeric': 0.24170516589668206, 'fraction_numerical': 0.01490970180596388, 'mean_word_length': 13.13353115727003, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 1, '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': '3587994', 'n_tokens_mistral': 1680, 'n_tokens_neox': 1612, 'n_words': 117}