<commit_before>var spawn = require('child_process').spawn;

var gulp = require('gulp');
var server = require( 'gulp-develop-server' );
var bower = require('gulp-bower');

gulp.task('watch-src', function () {
    return gulp.watch(['src/**/*.js', 'public/**/*.js', 'views/**/*.hbs'], ['restart-server']);
});

gulp.task('dev', ['watch-src', 'start-server']);

gulp.task('prod', function () {
    var server = spawn('node', ['./main.js']);

    server.stdout.on('data', function (data) {
        process.stdout.write(data.toString());
    });

    server.stderr.on('data', function (data) {
        process.stderr.write(data.toString());<commit_msg>Add bower as a dependency of production<commit_after>var spawn = require('child_process').spawn;

var gulp = require('gulp');
var server = require( 'gulp-develop-server' );
var bower = require('gulp-bower');

gulp.task('watch-src', function () {
    return gulp.watch(['src/**/*.js', 'public/**/*.js', 'views/**/*.hbs'], ['restart-server']);
});

gulp.task('dev', ['watch-src', 'start-server']);

gulp.task('prod', ['bower'], function () {
    var server = spawn('node', ['./main.js']);

    server.stdout.on('data', function (data) {
        process.stdout.write(data.toString());
    });

    server.stderr.on('data', function (data) {
        process.stderr.write(data.toString());
{'fraction_non_alphanumeric': 0.23816679188580014, 'fraction_numerical': 0.0, 'mean_word_length': 4.123076923076923, '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': '2164020', 'n_tokens_mistral': 442, 'n_tokens_neox': 439, 'n_words': 80}