<commit_before>define(['iscroll', 'snap', 'fastclick'], function(IScroll, Snap, FastClick) {
  console.log('Loading layout.');

  var myScroll = new IScroll('#wrapper', {
    bounceEasing: 'elastic',
    bounceTime: 1500,
    mouseWheel: true
  });

  document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

  FastClick.attach(document.body);

  var snapper = new Snap({
    element: document.getElementById('content'),
    disable: 'right',
    tapToClose: true,
    touchToDrag: false
  });

  document.getElementById('snap').onclick = function() {
    if (snapper.state().state === 'left') {
      snapper.close();
    } else {
      snapper.open('left');
    }
  }
});<commit_msg>switched to plain-js fastclick<commit_after>define(['iscroll', 'snap', 'fastclick'], function(IScroll, Snap, FastClick) {
  console.log('Loading layout.');

  var myScroll = new IScroll('#wrapper', {
    bounceEasing: 'elastic',
    bounceTime: 1600,
    mouseWheel: true
  });

  document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

  window.addEventListener('load', function() {
    FastClick.attach(document.body);
  }, false);

  var snapper = new Snap({
    element: document.getElementById('content'),
    disable: 'right',
    tapToClose: true,
    touchToDrag: false
  });

  document.getElementById('snap').onclick = function() {
    if (snapper.state().state === 'left') {
      snapper.close();
    } else {
      snapper.open('left');
    }
  }
});
{'fraction_non_alphanumeric': 0.17319177173191772, 'fraction_numerical': 0.0053085600530856005, 'mean_word_length': 3.817891373801917, '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': '4583387', 'n_tokens_mistral': 480, 'n_tokens_neox': 461, 'n_words': 94}