<commit_before>var gulp = require('gulp')
  , rename = require('gulp-rename')
  , concat = require('gulp-concat')
  , uglify = require('gulp-uglify')
  , less = require('gulp-less')

var gulpconcat = function(){
  gulp.src(['src/lib/*.js', '!src/lib/ezoop.js', 'dist/geodash.min.js'])
    .pipe(concat('geodash.min.js'))
    .pipe(gulp.dest('../dist'))

  gulp.src(['src/lib/*.js', '!src/lib/ezoop.js', 'dist/geodash.js'])
    .pipe(concat('geodash.js'))
    .pipe(gulp.dest('dist'))
}

// Concat & Minify JS
gulp.task('minify', function(next){
  gulp.src(['src/lib/ezoop.js', 'src/GeoDash.js', 'src/Chart.js', 'src/charts/*.js'])
    .pipe(concat('geodash.js'))
    .pipe(gulp.dest('../dist'))
    .pipe(rename('geodash.min.js'))
    .pipe(uglify())
    .pipe(gulp.dest('../dist'))
    .on('end', next)
})

gulp.task('less', function () {
  gulp.src('src/styles/chart.less')
    .pipe(less({
      paths: ['../src/Styles']
    }))
    .pipe(rename('geodash.min.css'))
    .pipe(gulp.dest('../dist'))
});

// The default task (called when you run `gulp`)
gulp.task('default', function() {
  gulp.run('minify', function() { gulpconcat() })
  gulp.run('less')

  // Watch files and run tasks if they change
  gulp.watch(['src/GeoDash.js', 'src/Chart.js', 'src/charts/*.js'], function(event) {
    gulp.run('minify', function() { gulpconcat() })
  })

  gulp.watch(['src/styles/*.less'], function(event) {
    gulp.run('less', function() { gulpconcat() })
  })

});<commit_msg>updat gulpfile<commit_after>// Build GeoDash.js

var gulp = require('gulp')
  , rename = require('gulp-rename')
  , concat = require('gulp-concat')
  , uglify = require('gulp-uglify')
  , less = require('gulp-less')

var gulpconcat = function(){
  gulp.src(['src/lib/*.js', '!src/lib/ezoop.js', 'dist/geodash.min.js'])
    .pipe(concat('geodash.min.js'))
    .pipe(gulp.dest('../dist'))

  gulp.src(['src/lib/*.js', '!src/lib/ezoop.js', 'dist/geodash.js'])
    .pipe(concat('geodash.js'))
    .pipe(gulp.dest('dist'))
}

gulp.task('minify', function(next){
  gulp.src(['src/lib/ezoop.js', 'src/GeoDash.js', 'src/Chart.js', 'src/charts/*.js'])
    .pipe(concat('geodash.js'))
    .pipe(gulp.dest('../dist'))
    .pipe(rename('geodash.min.js'))
    .pipe(uglify())
    .pipe(gulp.dest('../dist'))
    .on('end', next)
})

gulp.task('less', function () {
  gulp.src('src/styles/chart.less')
    .pipe(less({
      paths: ['../src/Styles']
    }))
    .pipe(rename('geodash.min.css'))
    .pipe(gulp.dest('../dist'))
})

gulp.task('default', function() {
  gulp.run('minify', function() { gulpconcat() })
  gulp.run('less')

  gulp.watch(['src/GeoDash.js', 'src/Chart.js', 'src/charts/*.js'], function(event) {
    gulp.run('minify', function() { gulpconcat() })
  })

  gulp.watch(['src/styles/*.less'], function(event) {
    gulp.run('less', function() { gulpconcat() })
  })

})
{'fraction_non_alphanumeric': 0.2567520168361978, 'fraction_numerical': 0.0, 'mean_word_length': 3.526984126984127, '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': '5949779', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1156, 'n_words': 149}