<commit_before>(function(){
  var requestFrame = window.requestAnimationFrame ||
                    window.mozRequestAnimationFrame ||
                    window.webkitRequestAnimationFrame ||
                    function(fn){ return window.setTimeout(fn, 20); };
  
  function debounceResize(e){
    var win = e.target || e.srcElement;
    if (!win.__resizeRAF__) {
      win.__resizeRAF__ = requestFrame(function(){
        var trigger = win.__resizeTrigger__;
        trigger.__resizeListeners__.forEach(function(fn){
          fn.call(trigger, e);
        });
        win.__resizeRAF__ = null;
        console.log('end resize', win.offsetWidth, win.offsetHeight);
      });
    };
  }
  
  function objectLoad(e){
    this.contentDocument.defaultView.__resizeTrigger__ = this.__resizeElement__;
    this.contentDocument.defaultView.addEventListener('resize', debounceResize);
  }
  
  window.addResizeListener = function(element, fn){
    if (typeof SquareMart.bFrameRequired === 'undefined') {
      SquareMart.bFrameRequired = (function() {
          var obj, value = false, site = document.querySelector('body');
          try {
            obj = document.createElement('object'); 
            obj.type = 'text/html'; 
            obj.data = 'about:blank'; 
            site.appendChild(obj); 
            obj.contentDocument.head = obj.contentDocument.head;
          } catch(e) {
             value = true;
          }
          site.removeChild(obj); 
          return value;
        })();      
    }

    if (!element.__resizeListeners__) {
      element.__resizeListeners__ = [];
      element.setAttribute('data-resize','');

      var obj;
      if (SquareMart.bFrameRequired) {
        obj = document.createElement('iframe');
        obj.src = 'about:blank';
      } else {
        obj = document.createElement('object');
        obj.type = 'text/html';
        obj.data = 'about:blank';
      }
      obj.__resizeElement__ = element;
      element.__resizeTrigger__ = obj;
      obj.onload = objectLoad;
      element.appendChild(obj);
    }
    element.__resizeListeners__.push(fn);
  };
  <commit_msg>no need<commit_after>(function(){
  var requestFrame = window.requestAnimationFrame ||
                    window.mozRequestAnimationFrame ||
                    window.webkitRequestAnimationFrame ||
                    function(fn){ return window.setTimeout(fn, 20); };
  
  function debounceResize(e){
    var win = e.target || e.srcElement;
    if (!win.__resizeRAF__) {
      win.__resizeRAF__ = requestFrame(function(){
        var trigger = win.__resizeTrigger__;
        trigger.__resizeListeners__.forEach(function(fn){
          fn.call(trigger, e);
        });
        win.__resizeRAF__ = null;
        console.log('end resize', win.offsetWidth, win.offsetHeight);
      });
    };
  }
  
  function objectLoad(e){
    this.contentDocument.defaultView.__resizeTrigger__ = this.__resizeElement__;
    this.contentDocument.defaultView.addEventListener('resize', debounceResize);
  }
  
  window.addResizeListener = function(element, fn){
    // if (typeof SquareMart.bFrameRequired === 'undefined') {
    //   SquareMart.bFrameRequired = (function() {
    //       var obj, value = false, site = document.querySelector('body');
    //       try {
    //         obj = document.createElement('object'); 
    //         obj.type = 'text/html'; 
    //         obj.data = 'about:blank'; 
    //         site.appendChild(obj); 
    //         obj.contentDocument.head = obj.contentDocument.head;
    //       } catch(e) {
    //          value = true;
    //       }
    //       site.removeChild(obj); 
    //       return value;
    //     })();      
    // }

    if (!element.__resizeListeners__) {
      element.__resizeListeners__ = [];
      element.setAttribute('data-resize','');

      var obj;
      if (SquareMart.bFrameRequired) {
        obj = document.createElement('iframe');
        obj.src = 'about:blank';
      } else {
        obj = document.createElement('object');
        obj.type = 'text/html';
        obj.data = 'about:blank';
      }
      obj.__resizeElement__ = element;
      element.__resizeTrigger__ = obj;
      obj.onload = objectLoad;
      element.appendChild(obj);
    }
    element.__resizeListeners__.push(fn);
  };
  
{'fraction_non_alphanumeric': 0.12978524743230627, 'fraction_numerical': 0.0009337068160597573, 'mean_word_length': 2.1787833827893177, 'pattern_counts': {'":': 0, '<': 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': '738843', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1167, 'n_words': 193}