<commit_before>var gulp = require('gulp');
var del = require('del');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var uglify = require('gulp-uglify');
var sass = require('gulp-sass');

/* GULP TASK: clean
 * Deletes all the uploaded images from the /u/ directory
 */
gulp.task('clean', function () {
  del(['./public/dist']);
});

/* GULP TASK: jshint
 * Lints JavaScript files with jshint
 */
gulp.task('jshint', function () {
  return gulp.src(['./app.js', './public/src/js/upload.js', './public/src/js/overview.js'])
          .pipe(jshint())
          .pipe(jshint.reporter('jshint-stylish'));
});

/* GULP TASK: uglify
 * Uglifies all the (client side) JavaScript files
 */
gulp.task('uglify', function () {
  return gulp.src('./public/src/js/*.js')
          .pipe(uglify())
          .pipe(gulp.dest('./public/dist/js/'));
});

/* GULP TASK: sass
 * Compiles all sass to css
 */
gulp.task('sass', function () {
  return gulp.src('./public/src/scss/*.scss')
          .pipe(sass({ outputStyle: 'compressed' }))
          .on('error', handleError)
          .pipe(gulp.dest('./public/dist/css/'));
});

/* GULP TASK: watch
 * Watch files for changes and run apropriate tasks
 */
gulp.task('watch', function () {
  gulp.watch('./public/src/js/*.js', ['jshint', 'uglify']);
  gulp.watch('./public/src/scss/*.scss', ['sass']);
});


gulp.task('default', ['watch', 'jshint', 'uglify', 'sass']);

function handleError (error) {
  console.log('Error in \'' + error.plugin + '\'');
  console.log(error.message);
  this.emit('end');
}
<commit_msg>Update gulp-jshint task<commit_after>var gulp = require('gulp');
var del = require('del');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var uglify = require('gulp-uglify');
var sass = require('gulp-sass');

/* GULP TASK: clean
 * Deletes all the uploaded images from the /u/ directory
 */
gulp.task('clean', function () {
  del(['./public/dist']);
});

/* GULP TASK: jshint
 * Lints JavaScript files with jshint
 */
gulp.task('jshint', function () {
  return gulp.src([
    './app.js', './public/src/js/**/*.js',
    './routes/**/*.js', './utils/**/*.js'])
          .pipe(jshint())
          .pipe(jshint.reporter('jshint-stylish'));
});

/* GULP TASK: uglify
 * Uglifies all the (client side) JavaScript files
 */
gulp.task('uglify', function () {
  return gulp.src('./public/src/js/*.js')
          .pipe(uglify())
          .pipe(gulp.dest('./public/dist/js/'));
});

/* GULP TASK: sass
 * Compiles all sass to css
 */
gulp.task('sass', function () {
  return gulp.src('./public/src/scss/*.scss')
          .pipe(sass({ outputStyle: 'compressed' }))
          .on('error', handleError)
          .pipe(gulp.dest('./public/dist/css/'));
});

/* GULP TASK: watch
 * Watch files for changes and run apropriate tasks
 */
gulp.task('watch', function () {
  gulp.watch('./public/src/js/*.js', ['jshint', 'uglify']);
  gulp.watch('./public/src/scss/*.scss', ['sass']);
});


gulp.task('default', ['watch', 'jshint', 'uglify', 'sass']);

function handleError (error) {
  console.log('Error in \'' + error.plugin + '\'');
  console.log(error.message);
  this.emit('end');
}

{'fraction_non_alphanumeric': 0.2239698018244731, 'fraction_numerical': 0.0, 'mean_word_length': 3.3031123139377536, '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': '3651182', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1169, 'n_words': 232}