<commit_before>const gulp        = require('gulp');
const babel       = require('gulp-babel');
const uglify      = require('gulp-uglify');
const rename      = require('gulp-rename');
const clean       = require('gulp-clean');
const jshint      = require('gulp-jshint');
const mocha       = require('gulp-mocha');
const sourcemaps  = require('gulp-sourcemaps');
const livereload  = require('gulp-livereload');
const exec        = require('gulp-exec');
const sequence    = require('run-sequence');
const symlink     = require('gulp-symlink');
const fs          = require('fs');
const path        = require('path');
const rmdir       = require('rmdir');

gulp.task('lint', () => {
  return gulp.src([
    './tests/**/*.es6.js',
    './src/**/*.es6.js'
  ])
  .pipe(jshint())
  .pipe(jshint.reporter('jshint-stylish'))
  .pipe(jshint.reporter('fail'));
});

gulp.task('clean', () => {
  gulp.src([
    './dist/*',
    './dist',
    './tests/**/*.map',
    './tests/**/*.js',
    '!./tests/**/*.es6.js',
    './*.tgz',
    '!node_modules/**/*',
    './services/environment',
    './services/start_systemd.sh',
    './services/systemd/candy-red.service',
    './services/systemd/environment',
  ])
  .pipe(clean({force: true}))
  .pipe(gulp.src([
    './node_modules/node-red*/locales/!(en-US)',
    './node_modules/node-red/**/locales/!(en-US)',
  ]))
  .pipe(clean({force: true}))
});

gulp.task('nodes', () => {
  return Promise.all(fs.readdirSync('node_modules/')
  .filter(f => f.indexOf('local-node-') === 0)<commit_msg>Remove i18n resources other than en-US<commit_after>const gulp        = require('gulp');
const babel       = require('gulp-babel');
const uglify      = require('gulp-uglify');
const rename      = require('gulp-rename');
const clean       = require('gulp-clean');
const jshint      = require('gulp-jshint');
const mocha       = require('gulp-mocha');
const sourcemaps  = require('gulp-sourcemaps');
const livereload  = require('gulp-livereload');
const exec        = require('gulp-exec');
const sequence    = require('run-sequence');
const symlink     = require('gulp-symlink');
const fs          = require('fs');
const path        = require('path');
const rmdir       = require('rmdir');

gulp.task('lint', () => {
  return gulp.src([
    './tests/**/*.es6.js',
    './src/**/*.es6.js'
  ])
  .pipe(jshint())
  .pipe(jshint.reporter('jshint-stylish'))
  .pipe(jshint.reporter('fail'));
});

gulp.task('clean', () => {
  gulp.src([
    './dist/*',
    './dist',
    './tests/**/*.map',
    './tests/**/*.js',
    '!./tests/**/*.es6.js',
    './*.tgz',
    '!node_modules/**/*',
    './services/environment',
    './services/start_systemd.sh',
    './services/systemd/candy-red.service',
    './services/systemd/environment',
  ])
  .pipe(clean({force: true}))
  .pipe(gulp.src([
    './node_modules/node-red*/**/locales/!(en-US)',
    './node_modules/node-red/**/locales/!(en-US)',
  ]))
  .pipe(clean({force: true}))
});

gulp.task('nodes', () => {
  return Promise.all(fs.readdirSync('node_modules/')
  .filter(f => f.indexOf('local-node-') === 0)
{'fraction_non_alphanumeric': 0.2392438070404172, 'fraction_numerical': 0.003259452411994785, 'mean_word_length': 3.006527415143603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6455365', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1116, 'n_words': 162}