<commit_before>gulp           = require 'gulp'
bower          = require 'gulp-bower'
concat         = require 'gulp-concat'
jsoncombine    = require 'gulp-jsoncombine'
less           = require 'gulp-less'
plumber        = require 'gulp-plumber'
sourcemaps     = require 'gulp-sourcemaps'
coffee         = require 'gulp-coffee'
clean          = require 'gulp-clean'
webserver      = require 'gulp-webserver'
_              = require 'lodash'
mainBowerFiles = require 'main-bower-files'

gulp.task 'bower', ->
  bower './public/lib'

gulp.task 'bower:concat', ['bower'], ->
  gulp.src mainBowerFiles filter: /\.js$/
      .pipe plumber()
      .pipe sourcemaps.init()
      .pipe concat('dependencies.js')
      .pipe sourcemaps.write('.')
      .pipe gulp.dest('./public/assets/dist/')

gulp.task 'coffee:clean', ->
  gulp.src ['./app/compiled'], read: false
      .pipe clean()

gulp.task 'coffee:compile', ['coffee:clean'], ->
  gulp.src ['./public/app/**/*.coffee']
      .pipe plumber()
      .pipe coffee()
      .pipe concat('application.js')
      .pipe sourcemaps.write('.')
      .pipe gulp.dest('./public/assets/dist/')

gulp.task 'webserver', ->
  gulp.src './public'
      .pipe webserver({
        port: 8888
        livereload: true
        directoryListing: false
        open: false
      })

gulp.task 'default', ['bower:concat', 'coffee:compile'], ->

gulp.task 'watch', ['default', 'webserver'], ->
  gulp.watch ['./bower.json'], ['bower']
  gulp.watch ['./public/app/**/*.js', './public/app/*.js'], ['javascript:concat']
  gulp.watch ['./public/app/**/*.coffee', './public/app/*.coffee'], ['coffee:compile']<commit_msg>Remove old task<commit_after>gulp           = require 'gulp'
bower          = require 'gulp-bower'
concat         = require 'gulp-concat'
jsoncombine    = require 'gulp-jsoncombine'
less           = require 'gulp-less'
plumber        = require 'gulp-plumber'
sourcemaps     = require 'gulp-sourcemaps'
coffee         = require 'gulp-coffee'
clean          = require 'gulp-clean'
webserver      = require 'gulp-webserver'
_              = require 'lodash'
mainBowerFiles = require 'main-bower-files'

gulp.task 'bower', ->
  bower './public/lib'

gulp.task 'bower:concat', ['bower'], ->
  gulp.src mainBowerFiles filter: /\.js$/
      .pipe plumber()
      .pipe sourcemaps.init()
      .pipe concat('dependencies.js')
      .pipe sourcemaps.write('.')
      .pipe gulp.dest('./public/assets/dist/')

gulp.task 'coffee:compile', ['coffee:clean'], ->
  gulp.src ['./public/app/**/*.coffee']
      .pipe plumber()
      .pipe coffee()
      .pipe concat('application.js')
      .pipe sourcemaps.write('.')
      .pipe gulp.dest('./public/assets/dist/')

gulp.task 'webserver', ->
  gulp.src './public'
      .pipe webserver({
        port: 8888
        livereload: true
        directoryListing: false
        open: false
      })

gulp.task 'default', ['bower:concat', 'coffee:compile'], ->

gulp.task 'watch', ['default', 'webserver'], ->
  gulp.watch ['./bower.json'], ['bower']
  gulp.watch ['./public/app/**/*.js', './public/app/*.js'], ['javascript:concat']
  gulp.watch ['./public/app/**/*.coffee', './public/app/*.coffee'], ['coffee:compile']
{'fraction_non_alphanumeric': 0.18775510204081633, 'fraction_numerical': 0.002511773940345369, 'mean_word_length': 2.571748878923767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '297215', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1083, 'n_words': 217}