<commit_before>runSequence = require('run-sequence')
gulp   = require('gulp')
coffee = require('gulp-coffee')
react = require('gulp-react')
webpack = require('webpack-stream')


config = require('./config')


gulp.task 'default', ['build']


gulp.task 'develop', (callback) ->
  config.webpack.entry = config.dest.compile + '/sub.js'
  runSequence(
    'build',
    callback
  )

gulp.task 'build', (callback) ->
  runSequence(
    'compile',
    ['webpack', 'copy:index', 'copy:vendor'],
    callback
  )

gulp.task 'compile', (callback) ->
  runSequence(
    [
      'compile:jsx'
      ,'compile:coffee'
    ]
    callback
  )

gulp.task 'compile:jsx', ->
  gulp.src('src/**/*.jsx')
    .pipe(react())
    .pipe(gulp.dest(config.dest.compile))

gulp.task 'compile:coffee', ->
  gulp.src('src/**/*.coffee')
    .pipe(coffee())
    .pipe(gulp.dest(config.dest.compile))
<commit_msg>Add gulp task 'watch'<commit_after>runSequence = require('run-sequence')
gulp   = require('gulp')
coffee = require('gulp-coffee')
react = require('gulp-react')
webpack = require('webpack-stream')


config = require('./config')


gulp.task 'default', ['build']


gulp.task 'develop', (callback) ->
  config.webpack.entry = config.dest.compile + '/sub.js'
  runSequence(
    'build',
    callback
  )

gulp.task 'watch', ['develop'], (callback) ->
  gulp.watch('./src/**', ['develop']);


gulp.task 'build', (callback) ->
  runSequence(
    'compile',
    ['webpack', 'copy:index', 'copy:vendor'],
    callback
  )

gulp.task 'compile', (callback) ->
  runSequence(
    [
      'compile:jsx'
      ,'compile:coffee'
    ]
    callback
  )

gulp.task 'compile:jsx', ->
  gulp.src('src/**/*.jsx')
    .pipe(react())
    .pipe(gulp.dest(config.dest.compile))

gulp.task 'compile:coffee', ->
  gulp.src('src/**/*.coffee')
    .pipe(coffee())
    .pipe(gulp.dest(config.dest.compile))

{'fraction_non_alphanumeric': 0.20687802256851157, 'fraction_numerical': 0.0, 'mean_word_length': 3.443914081145585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '6562775', 'n_tokens_mistral': 693, 'n_tokens_neox': 671, 'n_words': 109}