<commit_before>gulp       = require "gulp"
babelify   = require "babelify"
browserify = require "browserify"
es         = require "event-stream"
rename     = require "gulp-rename"
source     = require "vinyl-source-stream"
transform  = require "vinyl-transform"
gutil      = require "gulp-util"

bundleScripts = (files) ->
  tasks = files.map (entry) ->
    browserify({ entries: [entry], debug: true })
      .transform(babelify, {presets: ['react', 'es2015', 'stage-0']})
      .bundle().on 'error', (err) -> gutil.log(err.message)
      .pipe(source(entry))
      .pipe(rename({
        extname: '.bundle.js'
      }))
      .pipe(gulp.dest('./'))

  es.merge.apply(null, tasks)





#*------------------------------------*\
#     $SCRIPTS
#*------------------------------------*/
gulp.task 'scripts',  () ->
  files = [
    "#{path.dev.js}/map.js"
  ]

  bundleScripts(files)
<commit_msg>alphabetise deps<commit_after>gulp       = require "gulp"
gutil      = require "gulp-util"
babelify   = require "babelify"
browserify = require "browserify"
es         = require "event-stream"
rename     = require "gulp-rename"
source     = require "vinyl-source-stream"
transform  = require "vinyl-transform"

bundleScripts = (files) ->
  tasks = files.map (entry) ->
    browserify({ entries: [entry], debug: true })
      .transform(babelify, {presets: ['react', 'es2015', 'stage-0']})
      .bundle().on 'error', (err) -> gutil.log(err.message)
      .pipe(source(entry))
      .pipe(rename({
        extname: '.bundle.js'
      }))
      .pipe(gulp.dest('./'))

  es.merge.apply(null, tasks)





#*------------------------------------*\
#     $SCRIPTS
#*------------------------------------*/
gulp.task 'scripts',  () ->
  files = [
    "#{path.dev.js}/map.js"
  ]

  bundleScripts(files)

{'fraction_non_alphanumeric': 0.2484611080022384, 'fraction_numerical': 0.005595970900951315, 'mean_word_length': 2.0721649484536084, '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': '6424728', 'n_tokens_mistral': 601, 'n_tokens_neox': 580, 'n_words': 113}