<commit_before>(function($){
  $.fn.wipeImages=function(opts){
    return init.apply(this,[opts]);
  }
  var namespace=$.fn.wipeImages;

  function init(opts){
    namespace.config=$.extend(namespace.config,opts);
    namespace.config.animating=false;// flag to check if animation is running
    namespace.config.className=namespace.config.className || "wipebox";// make sure a class name is set
    namespace.pausePlaying=false;
    namespace.images=[];
		return start(this);
  }

  function start(el){
    var opts=namespace.config,
    wipes=namespace.wipes,wipeString=[];

    for(var k in wipes){
      wipeString.push(k);
    };

    return el.each(function(){
      var _this=$(this).css({position:"relative"}),
      imgs=_this.find("img"),srcs=[];

      imgs.each(function(){
        //preload images
        var _src=$(this).attr("src"),_i=new Image();
        _i.src=_src;
        srcs.push(_src);
      });

      namespace.images.srcs=srcs;
      namespace.images.current=0;


      imgs.filter(":gt(0)").remove();

      if(opts.pauseOnHover){
        _this
        .bind("mouseenter",function(){
  				namespace.pausePlaying=true;
  			})
  			.bind("mouseleave",function(){
  				namespace.pausePlaying=false;
  			});
      }

      if(opts.autoPlay){
        setInterval(function(){<commit_msg>Removing images before they are fully loaded triggers the IE Throbber Of DOOM. The leftover images will be removed the first time a transition runs<commit_after>(function($){
  $.fn.wipeImages=function(opts){
    return init.apply(this,[opts]);
  }
  var namespace=$.fn.wipeImages;

  function init(opts){
    namespace.config=$.extend(namespace.config,opts);
    namespace.config.animating=false;// flag to check if animation is running
    namespace.config.className=namespace.config.className || "wipebox";// make sure a class name is set
    namespace.pausePlaying=false;
    namespace.images=[];
		return start(this);
  }

  function start(el){
    var opts=namespace.config,
    wipes=namespace.wipes,wipeString=[];

    for(var k in wipes){
      wipeString.push(k);
    };

    return el.each(function(){
      var _this=$(this).css({position:"relative"}),
      imgs=_this.find("img"),srcs=[];

      imgs.each(function(){
        //preload images
        var _src=$(this).attr("src"),_i=new Image();
        _i.src=_src;
        srcs.push(_src);
      });

      namespace.images.srcs=srcs;
      namespace.images.current=0;


      imgs.filter(":gt(0)").hide();

      if(opts.pauseOnHover){
        _this
        .bind("mouseenter",function(){
  				namespace.pausePlaying=true;
  			})
  			.bind("mouseleave",function(){
  				namespace.pausePlaying=false;
  			});
      }

      if(opts.autoPlay){
        setInterval(function(){
{'fraction_non_alphanumeric': 0.15409717186366934, 'fraction_numerical': 0.0014503263234227702, 'mean_word_length': 2.9985507246376812, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '6736087', 'n_tokens_mistral': 910, 'n_tokens_neox': 864, 'n_words': 151}