<commit_before>'use strict';

var path = require('path');

var eslintify = require('eslintify'),
    gulp = require('gulp'),
    sourcemaps = require('gulp-sourcemaps'),
    plumber = require('gulp-plumber'),
    runSequence = require('run-sequence'),
    uglifyify = require('uglifyify');

var gulpWB = require('..');

// "global" variable for watch mode
var watch = false;

/**
 * Browserify / Watchify task
 */
gulp.task('browserify', function(done) {

  var src = './src',
      dest = './dest';

  var options = {
    // watch mode
    watch: watch,
    // set cwd to manipulate relative output path
    cwd: src,
    browserify: {
      insertGlobals: false,
      paths: [
        path.join(src, 'modules'),
        './node_modules'
      ],
      debug: true,
      transform: [
        eslintify,
        [uglifyify, {global: true}]
      ]
    }
  };

  gulpWB('*.js', options, streamHandler.bind(this), done);

  /**
   * stream handler to apply further gulp plugins
   * @param  {Object} stream  gulp file stream
   * @return {Object}         processed stream
   */
  function streamHandler(stream) {
    return stream
      .pipe(plumber())
      .pipe(sourcemaps.init({loadMaps: true}))
      .pipe(sourcemaps.write('.', {includeContent: true, sourceRoot: '.'}))
      .pipe(gulp.dest(dest));
  }

});

// task for enabling watch mode
gulp.task('enable-watchify', function(done) {
  watch = true;
  done();
});

// enable watch mode and start browserify
gulp.task('watchify', function(done) {
  runSequence('enable-watchify', 'browserify', done);
});

// set default task
gulp.task('default', ['browserify']);
<commit_msg>update demo, remove unecessary default options<commit_after>'use strict';

var path = require('path');

var eslintify = require('eslintify'),
    gulp = require('gulp'),
    sourcemaps = require('gulp-sourcemaps'),
    plumber = require('gulp-plumber'),
    runSequence = require('run-sequence'),
    uglifyify = require('uglifyify');

var gulpWB = require('..');

// "global" variable for watch mode
var watch = false;

/**
 * Browserify / Watchify task
 */
gulp.task('browserify', function(done) {

  var src = './src',
      dest = './dest';

  var options = {
    // watch mode
    watch: watch,
    // set cwd to manipulate relative output path
    cwd: src,
    browserify: {
      paths: [
        path.join(src, 'modules'),
        './node_modules'
      ],
      debug: true,
      transform: [
        eslintify,
        [uglifyify, {global: true}]
      ]
    }
  };

  gulpWB('*.js', options, streamHandler.bind(this), done);

  /**
   * stream handler to apply further gulp plugins
   * @param  {Object} stream  gulp file stream
   * @return {Object}         processed stream
   */
  function streamHandler(stream) {
    return stream
      .pipe(plumber())
      .pipe(sourcemaps.init({loadMaps: true}))
      .pipe(sourcemaps.write('.', {includeContent: true, sourceRoot: '.'}))
      .pipe(gulp.dest(dest));
  }

});

// task for enabling watch mode
gulp.task('enable-watchify', function(done) {
  watch = true;
  done();
});

// enable watch mode and start browserify
gulp.task('watchify', function(done) {
  runSequence('enable-watchify', 'browserify', done);
});

// set default task
gulp.task('default', ['browserify']);

{'fraction_non_alphanumeric': 0.16081782117790663, 'fraction_numerical': 0.0, 'mean_word_length': 2.9023809523809523, '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': '1018522', 'n_tokens_mistral': 1048, 'n_tokens_neox': 1033, 'n_words': 257}