<commit_before>// Include gulp
var gulp = require('gulp');

// Include Our Plugins
var jshint = require('gulp-jshint');
var less = require('gulp-less');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var react = require('gulp-react');

// react compilation task
gulp.task('react', function() {
    return gulp.src(['public/javascripts/elements/*.jsx','public/javascripts/*.jsx'])
        .pipe(react({
            harmony: true,
            esnext: true
        }))
        .pipe(concat("build.js"))
        .pipe(gulp.dest('public/javascripts/build'));
});

// Lint Task
gulp.task('lint', function() {
    return gulp.src(['public/javascripts/build/*.js', 'public/javascripts/*.js'])
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

// Compile Our less
gulp.task('less', function() {
    return gulp.src('public/stylesheets/less/*.less')
        .pipe(less())
        .pipe(gulp.dest('css'));
});

// Concatenate & Minify JS
gulp.task('scripts', function() {
    return gulp.src(['public/javascripts/build/*.js', 'public/javascripts/*.js'])
        .pipe(concat('all.js'))
        .pipe(gulp.dest('public/javascripts/dist'))
        .pipe(rename('all.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/javascripts/dist'));
});

// Watch Files For Changes
gulp.task('watch', function() {
    gulp.watch('public/javascripts/**/*.jsx', ['react']);
    gulp.watch('public/javascripts/**/.js', ['lint', 'scripts']);
    gulp.watch('public/stylesheets/less/*.less', ['less']);
});

// Default Task
gulp.task('default', ['react', 'lint', 'less', 'scripts', 'watch']);<commit_msg>Fixed gulp watch to look for changes to all js files<commit_after>// Include gulp
var gulp = require('gulp');

// Include Our Plugins
var jshint = require('gulp-jshint');
var less = require('gulp-less');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var react = require('gulp-react');

// react compilation task
gulp.task('react', function() {
    return gulp.src(['public/javascripts/elements/*.jsx','public/javascripts/*.jsx'])
        .pipe(react({
            harmony: true,
            esnext: true
        }))
        .pipe(concat("build.js"))
        .pipe(gulp.dest('public/javascripts/build'));
});

// Lint Task
gulp.task('lint', function() {
    return gulp.src(['public/javascripts/build/*.js', 'public/javascripts/*.js'])
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

// Compile Our less
gulp.task('less', function() {
    return gulp.src('public/stylesheets/less/*.less')
        .pipe(less())
        .pipe(gulp.dest('css'));
});

// Concatenate & Minify JS
gulp.task('scripts', function() {
    return gulp.src(['public/javascripts/build/*.js', 'public/javascripts/*.js'])
        .pipe(concat('all.js'))
        .pipe(gulp.dest('public/javascripts/dist'))
        .pipe(rename('all.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/javascripts/dist'));
});

// Watch Files For Changes
gulp.task('watch', function() {
    gulp.watch('public/javascripts/**/*.jsx', ['react']);
    gulp.watch('public/javascripts/**/*.js', ['lint', 'scripts']);
    gulp.watch('public/stylesheets/less/*.less', ['less']);
});

// Default Task
gulp.task('default', ['react', 'lint', 'less', 'scripts', 'watch']);
{'fraction_non_alphanumeric': 0.2168141592920354, 'fraction_numerical': 0.0, 'mean_word_length': 3.398184176394293, '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': '6779491', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1126, 'n_words': 195}