<commit_before>// import external dependencies
import 'babel-polyfill';
import $ from 'jquery';
import picturefill from 'picturefill';
import 'jquery.scrollto';
import 'jquery.localscroll';
import 'fastdom/fastdom';
import 'motion-ui/dist/motion-ui';

// Import components
import gform from './components/gform';
import slick from './components/slick';
import headroom from './components/headroom';
import analytics from './components/analytics';
import magnificpopup from './components/magnificpopup';
import lazysizes from './components/lazysizes';
import woo from './components/woocommerce';
import floatlabels from './components/float-labels';
// import gmap from './components/gmap';

// Ensure correct images are set before plugins such as orbit begins measuring
// dimensions.
lazysizes();
picturefill();
$(document).foundation();

// Custom components
magnificpopup('#content');
headroom('.headroom');
gform();
// @see https://github.com/kenwheeler/slick/issues/3110
slick('.slick', { arrows: false, dots: true, rows: 0 });
$.localScroll({ duration: 200, lazy: true, filter: ':not(.accordion-title)' });
analytics.scrolldepth({
  elements: [
    '#header',
    '#content',
    '#page__listing',
    '#page__comments',
    '#page__related',
    '#footer',
  ],
  percentage: false,
  pixelDepth: false,
});
woo();
floatlabels('.form__element--vertical, .hs-form-field');
// gmap('[data-gmap]');
<commit_msg>disable some js components by default<commit_after>// import external dependencies
import 'babel-polyfill';
import $ from 'jquery';
import picturefill from 'picturefill';
import 'jquery.scrollto';
import 'jquery.localscroll';
import 'fastdom/fastdom';
import 'motion-ui/dist/motion-ui';

// Import components
import gform from './components/gform';
import slick from './components/slick';
import headroom from './components/headroom';
import analytics from './components/analytics';
import magnificpopup from './components/magnificpopup';
// import lazysizes from './components/lazysizes';
import woo from './components/woocommerce';
// import floatlabels from './components/float-labels';
// import gmap from './components/gmap';

// Ensure correct images are set before plugins such as orbit begins measuring
// dimensions.
// lazysizes();
picturefill();
$(document).foundation();

// Custom components
magnificpopup('#content');
headroom('.headroom');
gform();
// @see https://github.com/kenwheeler/slick/issues/3110
slick('.slick', { arrows: false, dots: true, rows: 0 });
$.localScroll({ duration: 200, lazy: true, filter: ':not(.accordion-title)' });
analytics.scrolldepth({
  elements: [
    '#header',
    '#content',
    '#page__listing',
    '#page__comments',
    '#page__related',
    '#footer',
  ],
  percentage: false,
  pixelDepth: false,
});
woo();
// floatlabels('.form__element--vertical, .hs-form-field');
// gmap('[data-gmap]');

{'fraction_non_alphanumeric': 0.16759776536312848, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 4.870901639344262, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6518157', 'n_tokens_mistral': 868, 'n_tokens_neox': 851, 'n_words': 229}