<commit_before>// Require our dependencies
const gulp = require( 'gulp' );
const $ = require( 'gulp-load-plugins' )();
const merge = require( 'merge-stream' );
const spawn = require( 'child_process' ).spawn;
const autoprefixer = require( 'autoprefixer' );
const mqpacker = require( 'css-mqpacker' );
const cssnano = require( 'cssnano' );
const browserSync = require( 'browser-sync' );
const reload = browserSync.reload;

// Set assets paths.
const paths = {
  'css': [
    'node_modules/normalize.css/normalize.css',
    'node_modules/slick-carousel/slick/slick.css',
    'node_modules/slick-carousel/slick/slick-theme.css',
    // Add all npm packages first
    '_site/assets/*.css',
    '!_site/assets/project.min.css'
  ],
  'html': [
    '_includes/*.html',
    '_layouts/*.html',
    '_posts/**/*.md',
    '*.md',
    '!node_modules/*'
  ],
  'images': '_site/uploads/*',
  'sass': [
    '_sass/**/*.scss',
    'assets/*.scss'
  ],
  'scripts': [
    'node_modules/jquery/dist/jquery.js',
    'node_modules/slick-carousel/slick/slick.js',
    // Add all npm packages first
    '_site/assets/*.js',
    '!_site/assets/project.min.js'
  ]
};

/**
 * Handle errors and alert the user.
 */
function handleErrors () {
  const args = Array.prototype.slice.call( arguments );

  $.notify.onError( {
    'title': 'Task Failed <%= error.message %>',
    'message': 'See console.',
    'sound': 'Sosumi' // See: https://github.com/mikaelbr/node-notifier#all-notification-options-with-their-defaults
  } ).apply( this, args );

  $.util.beep(); // Beep 'sosumi' again.

  // Prevent the 'watch' task from stopping.
  this.emit( 'end' );
}

/**
 * Build the Jekyll Site
 *
 * https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
 */
gulp.task( 'jekyll-build', (done) => {
  $.notify( { message: 'Building Jekyll' } );
  spawn( 'bundle', [ 'exec', 'jekyll', 'build', '--incremental' ], { stdio: 'inherit' } )
    .on( 'close', done );<commit_msg>Update paths with src and dist<commit_after>// Require our dependencies
const gulp = require( 'gulp' );
const $ = require( 'gulp-load-plugins' )();
const merge = require( 'merge-stream' );
const spawn = require( 'child_process' ).spawn;
const autoprefixer = require( 'autoprefixer' );
const mqpacker = require( 'css-mqpacker' );
const cssnano = require( 'cssnano' );
const browserSync = require( 'browser-sync' );
const reload = browserSync.reload;

// Set assets paths.
const paths = {
  'html': [
    '_includes/*.html',
    '_layouts/*.html',
    '_posts/**/*.md',
    '_posts/**/*.markdown',
    '*.md',
    '*.markdown',
    '!node_modules/*'
  ],
  'images': {
    'src': '_uploads/*',
    'dist': '_site/uploads/*'
  },
  'sass': {
    'src': [ '_assets/scss/*.scss' ],
    'dist': '_site/assets'
  },
  'scripts': {
    'src': [
      'node_modules/jquery/dist/jquery.js',
      'node_modules/slick-carousel/slick/slick.js',
      // Add all npm packages first
      '_assets/js/**/*.js'
    ],
    'dist': '_site/assets'
  }
};

/**
 * Handle errors and alert the user.
 */
function handleErrors () {
  const args = Array.prototype.slice.call( arguments );

  $.notify.onError( {
    'title': 'Task Failed <%= error.message %>',
    'message': 'See console.',
    'sound': 'Sosumi' // See: https://github.com/mikaelbr/node-notifier#all-notification-options-with-their-defaults
  } ).apply( this, args );

  $.util.beep(); // Beep 'sosumi' again.

  // Prevent the 'watch' task from stopping.
  this.emit( 'end' );
}

/**
 * Build the Jekyll Site
 *
 * https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
 */
gulp.task( 'jekyll-build', (done) => {
  $.notify( { message: 'Building Jekyll' } );
  spawn( 'bundle', [ 'exec', 'jekyll', 'build', '--incremental' ], { stdio: 'inherit' } )
    .on( 'close', done );
{'fraction_non_alphanumeric': 0.19667013527575442, 'fraction_numerical': 0.0, 'mean_word_length': 3.2960893854748603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1485678', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1361, 'n_words': 279}