<commit_before>var fs = require('fs');
var gulp = require('gulp');
var gulpif = require('gulp-if');
var rjs = require('gulp-requirejs');
var compass = require('gulp-compass');
var babel = require('gulp-babel');
var uglify = require('gulp-uglify');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var plumber = require('gulp-plumber');
var atomshell = require('gulp-atom-shell');
var htmlreplace = require('gulp-html-replace');
var sequence = require('gulp-sequence');
var merge = require('merge-stream');
var changed = require('gulp-changed');

var CURRENT_ENVIRONMENT = 'development';

// TODO
// we have to double check **/*.js is a right expression or not
const SCSS_FILES = './src/frontend/scss/**/*.scss';
const FRONTEND_JS_FILES = './src/frontend/js/**/*.js';
const FRONTEND_CSS_FILES = './src/frontend/css/**/*.css';
const BACKEND_JS_FILES = './src/backend/**/*.js';
const BACKEND_L10N_FILES = './src/backend/locales/**/*.*';
const DIST_FILES = './dist';
const INDEX_TEMPLATE_FILE = './_index.html';
const INDEX_FILE = './index.html';

function isProduction() {
  return CURRENT_ENVIRONMENT === 'production';
}

gulp.task('cleanup', function() {
  return gulp
    .src([DIST_FILES], {
      read: false
    })
    .pipe(clean());
});

gulp.task('6to5:frontend', function() {
  var dest = './dist/frontend';
  return gulp
    .src(FRONTEND_JS_FILES)
    .pipe(changed(dest))
    .pipe(plumber())
    .pipe(babel())
    .pipe(gulp.dest(dest));
});

gulp.task('6to5:backend', function() {
  var dest = './dist/backend';
  return gulp
    .src(BACKEND_JS_FILES)
    .pipe(changed(dest))
    .pipe(plumber())
    .pipe(babel())
    .pipe(gulp.dest(dest));
});

gulp.task('linter', function() {
  return gulp
    .src([
      './src/frontend/js/**/*.js',
      './src/backend/**/*.js'
    ])
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'))<commit_msg>add missing ; for #13<commit_after>var fs = require('fs');
var gulp = require('gulp');
var gulpif = require('gulp-if');
var rjs = require('gulp-requirejs');
var compass = require('gulp-compass');
var babel = require('gulp-babel');
var uglify = require('gulp-uglify');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var plumber = require('gulp-plumber');
var atomshell = require('gulp-atom-shell');
var htmlreplace = require('gulp-html-replace');
var sequence = require('gulp-sequence');
var merge = require('merge-stream');
var changed = require('gulp-changed');

var CURRENT_ENVIRONMENT = 'development';

// TODO
// we have to double check **/*.js is a right expression or not
const SCSS_FILES = './src/frontend/scss/**/*.scss';
const FRONTEND_JS_FILES = './src/frontend/js/**/*.js';
const FRONTEND_CSS_FILES = './src/frontend/css/**/*.css';
const BACKEND_JS_FILES = './src/backend/**/*.js';
const BACKEND_L10N_FILES = './src/backend/locales/**/*.*';
const DIST_FILES = './dist';
const INDEX_TEMPLATE_FILE = './_index.html';
const INDEX_FILE = './index.html';

function isProduction() {
  return CURRENT_ENVIRONMENT === 'production';
}

gulp.task('cleanup', function() {
  return gulp
    .src([DIST_FILES], {
      read: false
    })
    .pipe(clean());
});

gulp.task('6to5:frontend', function() {
  var dest = './dist/frontend';
  return gulp
    .src(FRONTEND_JS_FILES)
    .pipe(changed(dest))
    .pipe(plumber())
    .pipe(babel())
    .pipe(gulp.dest(dest));
});

gulp.task('6to5:backend', function() {
  var dest = './dist/backend';
  return gulp
    .src(BACKEND_JS_FILES)
    .pipe(changed(dest))
    .pipe(plumber())
    .pipe(babel())
    .pipe(gulp.dest(dest));
});

gulp.task('linter', function() {
  return gulp
    .src([
      './src/frontend/js/**/*.js',
      './src/backend/**/*.js'
    ])
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'));
{'fraction_non_alphanumeric': 0.20392866373739985, 'fraction_numerical': 0.00361850607392091, 'mean_word_length': 3.9551856594110117, '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': '6361552', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1389, 'n_words': 270}