<commit_before>var gulp = require('gulp');
var browserSync = require('browser-sync');
var cp = require('child_process');
var messages = {
  reload: 'Reloading...',
  build:  'Building Middleman...'
};

gulp.task('middleman-build', function(done) {
  browserSync.notify(messages.build);
  cp.spawn('bundle', ['exec', 'middleman', 'build'], { stdio: 'inherit' }).on('close', done);
});

gulp.task('browser-reload', ['middleman-build'], function() {
  browserSync.notify(messages.reload);
  browserSync.reload();
});

gulp.task('browser-sync', ['middleman-build'], function() {
  browserSync({
    server: { 
      baseDir: 'build'
    },
    port: 4060
  });
});

gulp.task('watch', function() {
  gulp.watch('source/*.html.erb', ['browser-reload']);
  gulp.watch('source/partials/*.erb', ['browser-reload']);
  gulp.watch('source/layouts/*.erb', ['browser-reload']);
  gulp.watch('source/assets/javascripts/*.js', ['browser-reload']);
  gulp.watch('source/assets/stylesheets/*.css.scss', ['browser-reload']);
});

gulp.task('serve', ['browser-sync', 'watch']);
gulp.task('build', ['middleman-build']);
// gulp.task('deploy', []);
gulp.task('install-bower', function(done) {
  cp.spawn('bower', ['install'], { stdio: 'inherit' }).on('close', done);
});
gulp.task('install-bundle', function(done) {
  cp.spawn('bundle', ['install'], { stdio: 'inherit' }).on('close', done);
});
gulp.task('install', ['install-bundle', 'install-bower']);
<commit_msg>Watch all folders and files<commit_after>var gulp = require('gulp');
var browserSync = require('browser-sync');
var cp = require('child_process');
var messages = {
  reload: 'Reloading...',
  build:  'Building Middleman...'
};

gulp.task('middleman-build', function(done) {
  browserSync.notify(messages.build);
  cp.spawn('bundle', ['exec', 'middleman', 'build'], { stdio: 'inherit' }).on('close', done);
});

gulp.task('browser-reload', ['middleman-build'], function() {
  browserSync.notify(messages.reload);
  browserSync.reload();
});

gulp.task('browser-sync', ['middleman-build'], function() {
  browserSync({
    server: {
      baseDir: 'build'
    },
    port: 4060
  });
});

gulp.task('watch', function() {
  gulp.watch('source/**/*.*', ['browser-reload']);
});

gulp.task('serve', ['browser-sync', 'watch']);
gulp.task('build', ['middleman-build']);
// gulp.task('deploy', []);
gulp.task('install-bower', function(done) {
  cp.spawn('bower', ['install'], { stdio: 'inherit' }).on('close', done);
});
gulp.task('install-bundle', function(done) {
  cp.spawn('bundle', ['install'], { stdio: 'inherit' }).on('close', done);
});
gulp.task('install', ['install-bundle', 'install-bower']);

{'fraction_non_alphanumeric': 0.24905374716124148, 'fraction_numerical': 0.003028009084027252, 'mean_word_length': 5.27790973871734, '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': '5161666', 'n_tokens_mistral': 914, 'n_tokens_neox': 898, 'n_words': 152}