<commit_before>(function (element, jQuery) {
  'use strict';
  // jQueryUI Core scrollParent
  // http://jqueryui.com
  if (typeof jQuery === 'undefined') {
    element.fn.extend({
      parents: function (){
        var result = [];
        return (function walkParents (current) {
          var parent = element(current).parent()[0];
          if (parent.tagName.match(/body/i)) {
            result.push(parent);
            return element(result);
          } else {
            result.push(parent);
            walkParents.call(null, parent);
          }
        }(this));
      },
      filter: function (fn) {
        var result = [];
        angular.forEach(this, function (v, k) {
          if (fn(v, k)) result.push(v);
        }, this);
        return element(result);
      }
    });
  }
  element.fn.extend({
    scrollParent: function() {
      var position = this.css( 'position' ),
        excludeStaticParent = position === 'absolute',
        scrollParent = this.parents().filter( function() {
          var parent = $( this );
          if ( excludeStaticParent && parent.css( 'position' ) === 'static' ) {
            return false;
          }
          return (/(auto|scroll)/).test( parent.css( 'overflow' ) + parent.css( 'overflow-y' ) + parent.css( 'overflow-x' ) );
        }).eq( 0 );

      return position === 'fixed' || !scrollParent.length ? element( 'body' ) : scrollParent;
    },
    scrollParents: function () {
      var result = [];
      angular.forEach(this, function (parent, index) {
        (function walkParents (current) {
          var parent = element(current).scrollParent()[0];
          if (parent.tagName.match(/body/i)) {
            result.push(parent);
            return;
          } else {
            result.push(parent);
            walkParents.call(null, parent);
          }
        }(parent));
      });
      return element(result);
    }
  });
}(window.angular.element, window.jQuery));<commit_msg>fix(syntax): prevent possible syntax errors<commit_after>(function (element, jQuery) {
  'use strict';
  // jQueryUI Core scrollParent
  // http://jqueryui.com
  if (typeof jQuery === 'undefined') {
    element.fn.extend({
      parents: function (){
        var result = [];
        return (function walkParents (current) {
          var parent = element(current).parent()[0];
          if (parent.tagName.match(/body/i)) {
            result.push(parent);
            return element(result);
          } else {
            result.push(parent);
            walkParents.call(null, parent);
          }
        }(this));
      },
      filter: function (fn) {
        var result = [];
        angular.forEach(this, function (v, k) {
          if (fn(v, k)) result.push(v);
        }, this);
        return element(result);
      }
    });
  }
  element.fn.extend({
    scrollParent: function() {
      var position = this.css( 'position' ),
        excludeStaticParent = position === 'absolute',
        scrollParent = this.parents().filter( function() {
          var parent = $( this );
          if ( excludeStaticParent && parent.css( 'position' ) === 'static' ) {
            return false;
          }
          return (/(auto|scroll)/).test( parent.css( 'overflow' ) + parent.css( 'overflow-y' ) + parent.css( 'overflow-x' ) );
        }).eq( 0 );

      return (position === 'fixed' || !scrollParent.length) ? element( 'body' ) : scrollParent;
    },
    scrollParents: function () {
      var result = [];
      angular.forEach(this, function (parent, index) {
        (function walkParents (current) {
          var parent = element(current).scrollParent()[0];
          if (parent.tagName.match(/body/i)) {
            result.push(parent);
            return;
          } else {
            result.push(parent);
            walkParents.call(null, parent);
          }
        }(parent));
      });
      return element(result);
    }
  });
}(window.angular.element, window.jQuery));
{'fraction_non_alphanumeric': 0.15721518987341773, 'fraction_numerical': 0.0015189873417721519, 'mean_word_length': 1.9639909977494374, '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': '2535242', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1095, 'n_words': 239}