<commit_before>const gulp = require('gulp');
const eslint = require('gulp-eslint');

gulp.task('lint', () => {
  return gulp.src(['web/js/**/*.js', 'web/js/**/*.jsx'])
    .pipe(eslint({ fix: true}))
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});

gulp.task('default', ['lint'], function () {});<commit_msg>Refactor gulpfile.js<commit_after>const gulp     = require('gulp');
const eslint   = require('gulp-eslint');

gulp.task('lint', () =>
          gulp.src(['web/js/**/*.{js,jsx}', 'web/test/**/*.{js,jsx}'])
              .pipe(eslint({ fix: true}))
              .pipe(eslint.format())
              .pipe(eslint.failAfterError())
         );

gulp.task('default', ['lint'], function () {});
{'fraction_non_alphanumeric': 0.2569832402234637, 'fraction_numerical': 0.0, 'mean_word_length': 3.2176470588235295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5845956', 'n_tokens_mistral': 256, 'n_tokens_neox': 256, 'n_words': 36}