<commit_before>var Events = {

  scroll: function (ev, me) {
    if(me.disableScrollEv) { return; }

    if (!G.pauseCheck) {
      me.fireCustomEvent('scrollstart');
    }
    G.pauseCheck = true;
    
    _invoke(me.scrollbars, 'update');
    
    clearTimeout(me.cache.timerStop);
    me.cache.timerStop = setTimeout(function () {
      Events.scrollStop(me);
    }, me.settings.scrollStopDelay);
  },


  touchstart: function (ev, me) {
    G.pauseCheck = false;
    if(me.settings.preventParentScroll) {
      _invoke(me.scrollbars, 'update', [true]);
    }
  },


  touchend: function (ev, me) {
    // prevents touchmove generate scroll event to call
    // scrollstop  while the page is still momentum scrolling
    clearTimeout(me.cache.timerStop);
  },


  scrollStop: function (me) {
    // fire custom event<commit_msg>Moved touch preventParentScroll to touchstart ev<commit_after>var Events = {

  scroll: function (ev, me) {
    if(me.disableScrollEv) { return; }

    if (!G.pauseCheck) {
      me.fireCustomEvent('scrollstart');
    }
    G.pauseCheck = true;
    
    _invoke(me.scrollbars, 'update');
    
    clearTimeout(me.cache.timerStop);
    me.cache.timerStop = setTimeout(function () {
      Events.scrollStop(me);
    }, me.settings.scrollStopDelay);
  },


  touchstart: function (ev, me) {
    var cache = me.cache,
        cacheV = cache.v, cacheH = cache.h;

    G.pauseCheck = false;
    _invoke(me.scrollbars, 'update', [true]);
    
    if(me.settings.preventParentScroll) {
      if(cacheV.enabled && cacheV.percent % 100 === 0) {
        me.scrollTo( false, cacheV.percent ? (cacheV.position * cache.scrollH - 1) : 1, 0, true);
      }
      if(cacheH.enabled && cacheH.percent % 100 === 0) {
        me.scrollTo( cacheH.percent ? (cacheH.position * cache.scrollW - 1) : 1, false, 0, true);
      }
    }
  },


  touchend: function (ev, me) {
    // prevents touchmove generate scroll event to call
    // scrollstop  while the page is still momentum scrolling
    clearTimeout(me.cache.timerStop);
  },


  scrollStop: function (me) {
    // fire custom event
{'fraction_non_alphanumeric': 0.13590844062947066, 'fraction_numerical': 0.006676204101096805, 'mean_word_length': 2.7397504456327986, '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': '174603', 'n_tokens_mistral': 702, 'n_tokens_neox': 672, 'n_words': 149}