<commit_before>//     Zepto.js
//     (c) 2010-2015 <NAME>
//     Zepto.js may be freely distributed under the MIT license.

;(function($){
  var cache = [], timeout

  $.fn.remove = function(){
    return this.each(function(){
      if(this.parentNode){
        if(this.tagName === 'IMG'){
          cache.push(this)
          this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='
          if (timeout) clearTimeout(timeout)
          timeout = setTimeout(function(){ cache = [] }, 60000)
        }
        this.parentNode.removeChild(this)
      }
    })
  }
})(Zepto)<commit_msg>add comment<commit_after>//     Zepto.js
//     (c) 2010-2015 <NAME>
//     Zepto.js may be freely distributed under the MIT license.

//重写remove方法 针对img元素ios下移除元素清空内存
(function($){
  var cache = [], timeout;

  $.fn.remove = function(){
    return this.each(function(){
      if(this.parentNode){
        if(this.tagName === 'IMG'){
          cache.push(this);
          this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
          if (timeout) {
            clearTimeout(timeout);
          }
          timeout = setTimeout(function(){
            cache = [];
          }, 60000);
        }
        this.parentNode.removeChild(this);
      }
    })
  }
})(Zepto);
{'fraction_non_alphanumeric': 0.1529503105590062, 'fraction_numerical': 0.024844720496894408, 'mean_word_length': 2.1905940594059405, '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': '4959143', 'n_tokens_mistral': 462, 'n_tokens_neox': 436, 'n_words': 76}