<commit_before>// Require all the things
const gulp = require('gulp'),
    sass = require('gulp-sass'),
    gutil = require('gulp-util'),
    plumber = require('gulp-plumber'),
    rename = require('gulp-rename'),
    minifyCSS = require('gulp-clean-css'),
    prefixer = require('gulp-autoprefixer'),
    connect = require('gulp-connect'),
    webpack = require('webpack-stream');
cp = require('child_process');

// Set the path variables
const base_path = './',
  src = base_path + '_dev/src',
  dist = base_path + 'assets',
  paths = {
    js: src + '/js/*.js',
    scss: [src + '/sass/*.scss',
      src + '/sass/**/* .scss',
      src + '/sass/**/**/*.scss'
    ],
    jekyll: ['index.html', '_posts/*', '_layouts/*', '_includes/*', 'assets/*', 'assets/**/*']
  };


// Compile sass to css
/*
gulp.task('compile-sass', function() {
  return gulp.src(paths.scss)
    .pipe(plumber(function(error) {
      gutil.log(gutil.colors.red(error.message));
      gulp.task('compile-sass').emit('end');
    }))
    .pipe(sass())
    .pipe(prefixer('last 3 versions', 'ie 9'))
    .pipe(minifyCSS())
    .pipe(rename({ dirname: dist + '/css' }))
    .pipe(gulp.dest('./'));
});

// Rebuild Jekyll 
gulp.task('build-jekyll', function(code) {
  return cp.spawn('jekyll', ['build'], { stdio: 'inherit' })
    .on('error', function(error) { gutil.log(gutil.colors.red(error.message)) })
    .on('close', code);
})

// Setup Server
gulp.task('server', function() {
  connect.server({
    root: ['_site'],
    port: 4000
  });
})


// Watch files
gulp.task('watch', function() {
  gulp.watch(paths.scss, ['compile-sass']);
  gulp.watch(paths.jekyll, ['build-jekyll']);
});
*/

// Start Everything with the default task
gulp.task('default', ['build-js', 'serve']);

gulp.task('build-js', function() {
  return gulp.src('./scripts/posts/2016/11/29/animated-icon-demos.js')
      .pipe(webpack(require('./webpack.config.js')))
      .pipe(gulp.dest('./scripts'));
});

gulp.task('serve', function(done) {
	return cp.spawn('bundle', ['exec', 'jekyll', 'serve', '--baseurl=', '--incremental', '--port=4001'], {stdio: 'inherit'}).on('close', done);
});
<commit_msg>revert change in port number<commit_after>// Require all the things
const gulp = require('gulp'),
    sass = require('gulp-sass'),
    gutil = require('gulp-util'),
    plumber = require('gulp-plumber'),
    rename = require('gulp-rename'),
    minifyCSS = require('gulp-clean-css'),
    prefixer = require('gulp-autoprefixer'),
    connect = require('gulp-connect'),
    webpack = require('webpack-stream');
cp = require('child_process');

// Set the path variables
const base_path = './',
  src = base_path + '_dev/src',
  dist = base_path + 'assets',
  paths = {
    js: src + '/js/*.js',
    scss: [src + '/sass/*.scss',
      src + '/sass/**/* .scss',
      src + '/sass/**/**/*.scss'
    ],
    jekyll: ['index.html', '_posts/*', '_layouts/*', '_includes/*', 'assets/*', 'assets/**/*']
  };


// Compile sass to css
/*
gulp.task('compile-sass', function() {
  return gulp.src(paths.scss)
    .pipe(plumber(function(error) {
      gutil.log(gutil.colors.red(error.message));
      gulp.task('compile-sass').emit('end');
    }))
    .pipe(sass())
    .pipe(prefixer('last 3 versions', 'ie 9'))
    .pipe(minifyCSS())
    .pipe(rename({ dirname: dist + '/css' }))
    .pipe(gulp.dest('./'));
});

// Rebuild Jekyll 
gulp.task('build-jekyll', function(code) {
  return cp.spawn('jekyll', ['build'], { stdio: 'inherit' })
    .on('error', function(error) { gutil.log(gutil.colors.red(error.message)) })
    .on('close', code);
})

// Setup Server
gulp.task('server', function() {
  connect.server({
    root: ['_site'],
    port: 4000
  });
})


// Watch files
gulp.task('watch', function() {
  gulp.watch(paths.scss, ['compile-sass']);
  gulp.watch(paths.jekyll, ['build-jekyll']);
});
*/

// Start Everything with the default task
gulp.task('default', ['build-js', 'serve']);

gulp.task('build-js', function() {
  return gulp.src('./scripts/posts/2016/11/29/animated-icon-demos.js')
      .pipe(webpack(require('./webpack.config.js')))
      .pipe(gulp.dest('./scripts'));
});

gulp.task('serve', function(done) {
	return cp.spawn('bundle', ['exec', 'jekyll', 'serve', '--baseurl=', '--incremental'], {stdio: 'inherit'}).on('close', done);
});

{'fraction_non_alphanumeric': 0.23614345598509548, 'fraction_numerical': 0.007452258965999069, 'mean_word_length': 3.5020964360587, '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': '7074626', 'n_tokens_mistral': 1577, 'n_tokens_neox': 1542, 'n_words': 281}