<commit_before>const gulp = require('gulp');
const eslint = require('gulp-eslint');
const webpack = require('webpack-stream');
const exec = require('child_process').exec;
const scripts = ['*.js', 'app/*.js', 'test/*.js'];
const protractor = require('gulp-protractor').protractor;

gulp.task('lint', () => {
  return gulp.src(scripts)
  .pipe(eslint())
  .pipe(eslint.format());
});

gulp.task('webpack', () => {
  return gulp.src('app/js/*.js')
  .pipe(webpack({
    output: {
      filename: 'bundle.js'
    }
  }))
  .pipe(gulp.dest('./build'));
});

gulp.task('staticHTML', () => {
  return gulp.src('app/**/*.html')
  .pipe(gulp.dest('./build'));
});

gulp.task('css', () => {
  return gulp.src('app/**/*.css')
  .pipe(gulp.dest('./build'));
});

gulp.task('server', (done) => {
  exec('node server.js', (err, stdout, stderr) => { //  eslint-disable-line handle-callback-err
    process.stdout.write(stdout + '\n');
    process.stderr.write(stderr + '\n');
    done();
  });
});

gulp.task('selenium', (done) => {
  exec('webdriver-manager start', (err, stdout, stderr) => { //  eslint-disable-line handle-callback-err
    process.stdout.write(stdout + '\n');
    process.stderr.write(stderr + '\n');
    done();
  });
});

gulp.task('protractor', () => {
  return gulp.src('test/integration/*spec.js')
  .pipe(protractor({
    configFile: 'test/integration/config.js',
    args: ['--baseurl', 'http://127.0.0.1:8000']
  }));
});

gulp.task('test', ['build', 'server', 'selenium', 'protractor']);
gulp.task('build', ['lint', 'webpack', 'staticHTML', 'css']);
gulp.task('default', ['lint']);
<commit_msg>removed eslint-disable-line<commit_after>const gulp = require('gulp');
const eslint = require('gulp-eslint');
const webpack = require('webpack-stream');
const exec = require('child_process').exec;
const scripts = ['*.js', 'app/*.js', 'test/*.js'];
const protractor = require('gulp-protractor').protractor;

gulp.task('lint', () => {
  return gulp.src(scripts)
  .pipe(eslint())
  .pipe(eslint.format());
});

gulp.task('webpack', () => {
  return gulp.src('app/js/*.js')
  .pipe(webpack({
    output: {
      filename: 'bundle.js'
    }
  }))
  .pipe(gulp.dest('./build'));
});

gulp.task('staticHTML', () => {
  return gulp.src('app/**/*.html')
  .pipe(gulp.dest('./build'));
});

gulp.task('css', () => {
  return gulp.src('app/**/*.css')
  .pipe(gulp.dest('./build'));
});

gulp.task('server', (done) => {
  exec('node server.js', (err, stdout, stderr) => {
    if (err) throw err;
    process.stdout.write(stdout + '\n');
    process.stderr.write(stderr + '\n');
    done();
  });
});

gulp.task('selenium', (done) => {
  exec('webdriver-manager start', (err, stdout, stderr) => {
    if (err) throw err;
    process.stdout.write(stdout + '\n');
    process.stderr.write(stderr + '\n');
    done();
  });
});

gulp.task('protractor', () => {
  return gulp.src('test/integration/*spec.js')
  .pipe(protractor({
    configFile: 'test/integration/config.js',
    args: ['--baseurl', 'http://127.0.0.1:8000']
  }));
});

gulp.task('test', ['build', 'server', 'selenium', 'protractor']);
gulp.task('build', ['lint', 'webpack', 'staticHTML', 'css']);
gulp.task('default', ['lint']);

{'fraction_non_alphanumeric': 0.26097867001254704, 'fraction_numerical': 0.006273525721455458, 'mean_word_length': 3.967289719626168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1814209', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1161, 'n_words': 185}