<commit_before>var angularProtractor = require('gulp-angular-protractor'),
  exec = require('child_process').exec,
  mocha = require('gulp-spawn-mocha'),
  path = require('path'),
  globby = require('globby');

var yargs = require('yargs');
var buildFolder = path.join('dist', process.platform + '-' + process.arch);

module.exports = function(gulp) {

  function createMocha() {
    return new mochaa({
      recursive: true,
      compilers: 'js:babel-core/register',
      env: {
        NODE_PATH: '.'
      },
      grep: yargs.argv.grep,
      g: yargs.argv.g,
      reporter: yargs.argv.reporter,
      istanbul: {
        report: yargs.argv.report || 'lcov'
      }
    });
  }

  gulp.task('unit-test-1by1', function() {
    return globby('test/unit/**/*.js', {root: '.'}).then(function(files) {
      files.reduce((promises, file) => {
        return promises.then(function() {
          return new Promise(function(resolve) {
            gulp.src([file], {
              read: false
            }).pipe(mocha({
              recursive: false,
              compilers: 'js:babel-core/register',
              env: {
                NODE_PATH: '.'<commit_msg>Remove unused function createMocha()<commit_after>var angularProtractor = require('gulp-angular-protractor'),
  exec = require('child_process').exec,
  mocha = require('gulp-spawn-mocha'),
  path = require('path'),
  globby = require('globby');

var yargs = require('yargs');
var buildFolder = path.join('dist', process.platform + '-' + process.arch);

module.exports = function(gulp) {

  gulp.task('unit-test-1by1', function() {
    return globby('test/unit/**/*.js', {root: '.'}).then(function(files) {
      files.reduce((promises, file) => {
        return promises.then(function() {
          return new Promise(function(resolve) {
            gulp.src([file], {
              read: false
            }).pipe(mocha({
              recursive: false,
              compilers: 'js:babel-core/register',
              env: {
                NODE_PATH: '.'
{'fraction_non_alphanumeric': 0.16493827160493826, 'fraction_numerical': 0.0019753086419753087, 'mean_word_length': 2.4810996563573884, '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': '2314466', 'n_tokens_mistral': 648, 'n_tokens_neox': 626, 'n_words': 112}