<commit_before>(function() {
  'use strict';

  var gulp = require('gulp');
  var browserify = require('browserify');
  var source = require('vinyl-source-stream');
  var streamify = require('gulp-streamify');
  var svgSprite = require('gulp-svg-sprite');
  var uglify = require('gulp-uglify');

  var paths = {
    self: 'gulpfile.js',
    src: {
      js: {
        app: 'js/.src/angular/app.js',
        lib: 'js/.src/lib/index.js'
      },
      svg: 'svg/.src/*.svg'
    },
    dest: {
      js: 'js/final',
      svg: 'svg/final'
    }
  };

  gulp.task('default', ['browserify-app']);

  gulp.task('build', ['js', 'svg']);

  gulp.task('js', ['browserify']);

  gulp.task('browserify', ['browserify-app', 'browserify-lib']);

  gulp.task('browserify-app', function() {
    return browserify([paths.src.js.app], {
      debug: true
    })
      .bundle()
      .pipe(source('app.min.js'))
      .pipe(streamify(uglify()))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('browserify-lib', function() {
    return browserify([paths.src.js.lib])
      .bundle()
      .pipe(source('lib.min.js'))
      .pipe(streamify(uglify()))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('svg', function() {
    return gulp.src(paths.src.svg)
      .pipe(svgSprite({
        mode: {
          defs: {
            dest: '',
            sprite: 'sprite.defs.svg'
          }
        }
      }))
      .pipe(gulp.dest(paths.dest.svg));
  });
})();
<commit_msg>Add new gulp tasks including more dev friendly defaults<commit_after>(function() {
  'use strict';

  var gulp = require('gulp');
  var browserify = require('browserify');
  var source = require('vinyl-source-stream');
  var streamify = require('gulp-streamify');
  var svgSprite = require('gulp-svg-sprite');
  var uglify = require('gulp-uglify');

  var paths = {
    self: 'gulpfile.js',
    src: {
      js: {
        app: 'js/.src/angular/app.js',
        lib: 'js/.src/lib/index.js'
      },
      svg: 'svg/.src/*.svg'
    },
    dest: {
      js: 'js/final',
      svg: 'svg/final'
    }
  };

  gulp.task('default', ['browserify-app']);

  gulp.task('build', ['js', 'svg']);

  gulp.task('js', ['browserify']);

  gulp.task('browserify', ['browserify-app', 'browserify-lib']);

  gulp.task('browserify-app', function() {
    return browserify([paths.src.js.app], {
      debug: true
    })
      .bundle()
      .pipe(source('app.min.js'))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('browserify-lib', function() {
    return browserify([paths.src.js.lib])
      .bundle()
      .pipe(source('lib.min.js'))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('release', ['js-release', 'svg']);

  gulp.task('js-release', ['browserify-release']);

  gulp.task('browserify-release', [
    'browserify-release-app',
    'browserify-release-lib'
  ]);

  gulp.task('browserify-release-app', function() {
    return browserify([paths.src.js.app], {
      debug: true
    })
      .bundle()
      .pipe(source('app.min.js'))
      .pipe(streamify(uglify()))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('browserify-release-lib', function() {
    return browserify([paths.src.js.lib])
      .bundle()
      .pipe(source('lib.min.js'))
      .pipe(streamify(uglify()))
      .pipe(gulp.dest(paths.dest.js));
  });

  gulp.task('svg', function() {
    return gulp.src(paths.src.svg)
      .pipe(svgSprite({
        mode: {
          defs: {
            dest: '',
            sprite: 'sprite.defs.svg'
          }
        }
      }))
      .pipe(gulp.dest(paths.dest.svg));
  });
})();

{'fraction_non_alphanumeric': 0.20936715918594925, 'fraction_numerical': 0.0, 'mean_word_length': 2.4533205004812317, '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': '4061748', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1286, 'n_words': 186}