<commit_before>// Load paths and gulp
import paths from '../config/paths.json'
import gulp from 'gulp'

// Specific task modules
const wbBuild = require('workbox-build');

// Workbox Task
gulp.task('bundle-sw', () => {
  return wbBuild.generateSW({
    globDirectory: paths.build,
    swDest: paths.build + 'sw.js',
    globPatterns: ['**\/*.{html,js,css}']
  })
  .then(() => {
    console.log('Service worker generated.');
  })
  .catch((err) => {
    console.log('[ERROR] This happened: ' + err);
  });
})<commit_msg>fix(workflow): add a 3 second delay to workbox task<commit_after>// Load paths and gulp
import paths from '../config/paths.json'
import gulp from 'gulp'

// Specific task modules
const wbBuild = require('workbox-build');

// Workbox Task
gulp.task('bundle-sw', () => {
  setTimeout(function () {
    return wbBuild.generateSW({
      globDirectory: paths.build,
      swDest: paths.build + 'sw.js',
      globPatterns: ['**\/*.{html,js,css}']
    })
    .then(() => {
      console.log('Service worker generated.');
    })
    .catch((err) => {
      console.log('[ERROR] This happened: ' + err);
    });
  }, 3000);
})
{'fraction_non_alphanumeric': 0.1922739244951712, 'fraction_numerical': 0.004389815627743635, 'mean_word_length': 3.1911764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5169758', 'n_tokens_mistral': 385, 'n_tokens_neox': 380, 'n_words': 90}