<commit_before>var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var fileinclude = require('gulp-file-include');
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');

gulp.task('default', function(callback) {
  runSequence('clean', 'compile', 'watch', callback);
});

gulp.task('clean', function (callback) {
  del('./dist/**', callback);
});

gulp.task('compile', function(callback) {
  runSequence(['sass', 'move_js', 'move_images', 'move_fonts'], 'html', callback);
});

gulp.task('watch', ['browser-sync'], function(callback) {
  runSequence(['watch_sass', 'watch_html', 'watch_js'], callback);
});

// Browser Sync --------------------------------------------------
gulp.task('browser-sync', function() {
  browserSync({
    server: {
      baseDir: "./dist/"
    }
  });
});

// Watchers --------------------------------------------------

// Will watch for changes in the sass directory and compile
gulp.task('watch_sass', function() {
  return gulp.watch('./sass/**', ['sass', browserSync.reload]);
});

// Will watch for changes in the html directory and compile
gulp.task('watch_html', function() {
  return gulp.watch('./html/**', ['html', browserSync.reload]);
});
<commit_msg>Separet browser sync from watchers<commit_after>var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var fileinclude = require('gulp-file-include');
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');

gulp.task('default', function(callback) {
  runSequence('clean', 'compile', 'watch', 'sync', callback);
});

gulp.task('clean', function (callback) {
  del('./dist/**', callback);
});

gulp.task('compile', function(callback) {
  runSequence(['sass', 'move_js', 'move_images', 'move_fonts'], 'html', callback);
});

gulp.task('watch', function(callback) {
  runSequence(['watch_sass', 'watch_html', 'watch_js'], callback);
});

// Browser Sync --------------------------------------------------
gulp.task('sync', function() {
  browserSync({
    server: {
      baseDir: "./dist/"
    }
  });
});

// Watchers --------------------------------------------------

// Will watch for changes in the sass directory and compile
gulp.task('watch_sass', function() {
  return gulp.watch('./sass/**', ['sass', browserSync.reload]);
});

// Will watch for changes in the html directory and compile
gulp.task('watch_html', function() {
  return gulp.watch('./html/**', ['html', browserSync.reload]);
});

{'fraction_non_alphanumeric': 0.26575028636884307, 'fraction_numerical': 0.0, 'mean_word_length': 3.418212478920742, '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': '6662770', 'n_tokens_mistral': 777, 'n_tokens_neox': 776, 'n_words': 180}