<commit_before>/**
 *
 * Inspired by a girl, Ms. <NAME>
 *
 */
import App from './App';
import './tracking/analytics';
import './tracking/sentry';

const splashAnimTime = 1500;

/**
 * basic app handlers
 */
window.addEventListener('load', () => {
  if (window.location.hash) {
    window.location.hash = '';
  }

  // wait for splash transition
  setTimeout(App.start.bind(App), splashAnimTime);
});

// Register service worker to control making site work offline

if ('serviceWorker' in navigator) {
  navigator.serviceWorker.register('/sw.js').then(() => {
    console.log('Service Worker Registered');
  });
}<commit_msg>fixes lint<commit_after>/**
 *
 * Inspired by a girl, Ms. <NAME>
 *
 */
import App from './App';
import './tracking/analytics';
import './tracking/sentry';

const splashAnimTime = 1500;

/**
 * basic app handlers
 */
window.addEventListener('load', () => {
  if (window.location.hash) {
    window.location.hash = '';
  }

  // wait for splash transition
  setTimeout(App.start.bind(App), splashAnimTime);
});

// Register service worker to control making site work offline

if ('serviceWorker' in navigator) {
  navigator.serviceWorker
    .register('/sw.js')
    .then(() => {
      // eslint-disable-next-line no-console
      console.log('Service Worker Registered');
    })
    .catch((e) => {
      // eslint-disable-next-line no-console
      console.error('Service Worker failed');
      // eslint-disable-next-line no-console
      console.error(e);
    });
}
{'fraction_non_alphanumeric': 0.1681178834561286, 'fraction_numerical': 0.0053583389149363695, 'mean_word_length': 3.2203389830508473, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '5579237', 'n_tokens_mistral': 480, 'n_tokens_neox': 456, 'n_words': 110}