<commit_before>"use strict";

var gulp = require('gulp'),
    Q = require('q'),
    del = Q.denodeify(require('del')),
    jshint = require('gulp-jshint'),
    jscs = require('gulp-jscs'),
    Transpiler = require('./index').Transpiler,
    mocha = require('gulp-mocha'),
    spawnWatcher = require('./index').spawnWatcher.use(gulp),
    runSequence = Q.denodeify(require('run-sequence').use(gulp));

gulp.task('jscs', function () {
  return gulp
   .src(['*.js', 'lib/**/*.js', 'test/*.js'])
   .pipe(jscs())
   .on('error', spawnWatcher.handleError);
});

gulp.task('jshint', function () {
  return gulp
   .src(['*.js', 'lib/**/*.js', 'test/**/*.js'])
   .pipe(jshint())
   .pipe(jshint.reporter('jshint-stylish'))
   .pipe(jshint.reporter('fail'))
   .on('error', spawnWatcher.handleError);
});

gulp.task('lint',['jshint','jscs']);

gulp.task('del-build', function () {
  return del(['build']);
});

gulp.task('transpile-es7-fixtures', ['del-build'] , function () {
  var transpiler = new Transpiler();
  return gulp.src('test/fixtures/es7/**/*.js')
    .pipe(transpiler.stream())
    .on('error', spawnWatcher.handleError)
    .pipe(gulp.dest('build'));
});

gulp.task('test-es7-mocha', ['transpile-es7-fixtures'] , function () {
  process.env.SKIP_TRACEUR_RUNTIME = true;
  return gulp.src('build/test/a-specs.js')
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('test-es7-mocha-throw', ['transpile-es7-fixtures'] , function () {
  process.env.SKIP_TRACEUR_RUNTIME = true;
  return gulp.src('build/test/a-throw-specs.js')
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('test', function () {
  return gulp.src(['test/**/*-specs.js', '!test/fixtures'])
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('once', function () {
  return runSequence('lint', 'test');
});

spawnWatcher.clear(false);
spawnWatcher.configure('watch', ['lib/**/*.js','test/**/*.js','!test/fixtures'], function () {
  return runSequence('lint', 'test');
});

gulp.task('default', ['watch']);

<commit_msg>added index.js to watch<commit_after>"use strict";

var gulp = require('gulp'),
    Q = require('q'),
    del = Q.denodeify(require('del')),
    jshint = require('gulp-jshint'),
    jscs = require('gulp-jscs'),
    Transpiler = require('./index').Transpiler,
    mocha = require('gulp-mocha'),
    spawnWatcher = require('./index').spawnWatcher.use(gulp),
    runSequence = Q.denodeify(require('run-sequence').use(gulp));

gulp.task('jscs', function () {
  return gulp
   .src(['*.js', 'lib/**/*.js', 'test/*.js'])
   .pipe(jscs())
   .on('error', spawnWatcher.handleError);
});

gulp.task('jshint', function () {
  return gulp
   .src(['*.js', 'lib/**/*.js', 'test/**/*.js'])
   .pipe(jshint())
   .pipe(jshint.reporter('jshint-stylish'))
   .pipe(jshint.reporter('fail'))
   .on('error', spawnWatcher.handleError);
});

gulp.task('lint',['jshint','jscs']);

gulp.task('del-build', function () {
  return del(['build']);
});

gulp.task('transpile-es7-fixtures', ['del-build'] , function () {
  var transpiler = new Transpiler();
  return gulp.src('test/fixtures/es7/**/*.js')
    .pipe(transpiler.stream())
    .on('error', spawnWatcher.handleError)
    .pipe(gulp.dest('build'));
});

gulp.task('test-es7-mocha', ['transpile-es7-fixtures'] , function () {
  process.env.SKIP_TRACEUR_RUNTIME = true;
  return gulp.src('build/test/a-specs.js')
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('test-es7-mocha-throw', ['transpile-es7-fixtures'] , function () {
  process.env.SKIP_TRACEUR_RUNTIME = true;
  return gulp.src('build/test/a-throw-specs.js')
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('test', function () {
  return gulp.src(['test/**/*-specs.js', '!test/fixtures'])
    .pipe(mocha())
    .on('error', spawnWatcher.handleError);
});

gulp.task('once', function () {
  return runSequence('lint', 'test');
});

spawnWatcher.clear(false);
spawnWatcher.configure('watch', ['index.js', 'lib/**/*.js','test/**/*.js','!test/fixtures'], function () {
  return runSequence('lint', 'test');
});

gulp.task('default', ['watch']);


{'fraction_non_alphanumeric': 0.243042226487524, 'fraction_numerical': 0.0028790786948176585, 'mean_word_length': 4.324393358876118, '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': '6758789', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1577, 'n_words': 210}