<commit_before>var
  concat    = require('gulp-concat'),
  concatCss = require('gulp-concat-css'),
  cssmin    = require('gulp-cssmin'),
  del       = require('del'),
  gulp      = require('gulp'),
  jeditor   = require('gulp-json-editor'),
  notify = require('gulp-notify'),
  prompt    = require('gulp-prompt'),
  sequence  = require('run-sequence'),
  streamqueue  = require('streamqueue'),
  uglify    = require('gulp-uglify');

var meta = require('../package.json');

// Merge sequence
gulp.task('merge', function(callback) {

  gulp.src('build/assets')
    .pipe(prompt.prompt({
        type: 'list',
        name: 'merge',
        message: 'Do you want to merge all assets?',
        choices: [
          {
            name: 'Yes, merge all assets',
            value: 'merge'
          },
          'No, keep individual files'
        ]
    }, function(res){
        if(res.merge === 'merge') {
            console.log('Merging assets…');

            sequence(
                  ['merge:js', 'merge:css'],
                  'post-merge',
                  callback
                );

              gulp
              .src("build/config.json")
              .pipe(jeditor({
                'general': {
                  'concat_assets': true
                }
              }))
              .pipe(gulp.dest("build/"));
        }
    }));

});


// Merge JS files
gulp.task('merge:js', function(){

    return streamqueue({ objectMode: true },
       // gulp.src('build/assets/js/bootstrap.min.js'),
       gulp.src('build/assets/js/highlight.min.js'),
       gulp.src('build/assets/js/jquery.searcher.min.js'),
       gulp.src('build/assets/js/stupidtable.min.js'),
       gulp.src('build/assets/js/listr.min.js')
    )
    .pipe(concat('listr.pack.js'))
    .pipe(uglify())
    .pipe(notify("Merge: <%= file.relative %>"))
    .pipe(gulp.dest('build/assets/js/'));
});


// Merge CSS files
gulp.task('merge:css', function(){

  return gulp.src([
      'build/assets/css/font-awesome.min.css',
      'build/assets/css/bootstrap.min.css',
      'build/assets/css/highlight.min.css',
      'build/assets/css/listr.min.css'
    ])
    .pipe(concatCss('listr.pack.css'))
    .pipe(cssmin())
    .pipe(notify("Merge: <%= file.relative %>"))
    .pipe(gulp.dest('build/assets/css/'));
});


// Clean up after merge
gulp.task('post-merge', function() {

  return del([
    'build/assets/css/*.css',
    '!build/assets/css/listr.pack.css',
    'build/assets/js/*.js',
    '!build/assets/js/bootlint.js',
    '!build/assets/js/bootstrap.min.js',
    '!build/assets/js/jquery.min.js',
    '!build/assets/js/listr.pack.js'
  ]);
});<commit_msg>remove gulp-notify<commit_after>var
  concat    = require('gulp-concat'),
  concatCss = require('gulp-concat-css'),
  cssmin    = require('gulp-cssmin'),
  del       = require('del'),
  gulp      = require('gulp'),
  jeditor   = require('gulp-json-editor'),
  prompt    = require('gulp-prompt'),
  sequence  = require('run-sequence'),
  streamqueue  = require('streamqueue'),
  uglify    = require('gulp-uglify');

var meta = require('../package.json');

// Merge sequence
gulp.task('merge', function(callback) {

  gulp.src('build/assets')
    .pipe(prompt.prompt({
        type: 'list',
        name: 'merge',
        message: 'Do you want to merge all assets?',
        choices: [
          {
            name: 'Yes, merge all assets',
            value: 'merge'
          },
          'No, keep individual files'
        ]
    }, function(res){
        if(res.merge === 'merge') {
            console.log('Merging assets…');

            sequence(
                  ['merge:js', 'merge:css'],
                  'post-merge',
                  callback
                );

              gulp
              .src("build/config.json")
              .pipe(jeditor({
                'general': {
                  'concat_assets': true
                }
              }))
              .pipe(gulp.dest("build/"));
        }
    }));

});


// Merge JS files
gulp.task('merge:js', function(){

    return streamqueue({ objectMode: true },
       // gulp.src('build/assets/js/bootstrap.min.js'),
       gulp.src('build/assets/js/highlight.min.js'),
       gulp.src('build/assets/js/jquery.searcher.min.js'),
       gulp.src('build/assets/js/stupidtable.min.js'),
       gulp.src('build/assets/js/listr.min.js')
    )
    .pipe(concat('listr.pack.js'))
    .pipe(uglify())
    .pipe(gulp.dest('build/assets/js/'));
});


// Merge CSS files
gulp.task('merge:css', function(){

  return gulp.src([
      'build/assets/css/font-awesome.min.css',
      'build/assets/css/bootstrap.min.css',
      'build/assets/css/highlight.min.css',
      'build/assets/css/listr.min.css'
    ])
    .pipe(concatCss('listr.pack.css'))
    .pipe(cssmin())
    .pipe(gulp.dest('build/assets/css/'));
});


// Clean up after merge
gulp.task('post-merge', function() {

  return del([
    'build/assets/css/*.css',
    '!build/assets/css/listr.pack.css',
    'build/assets/js/*.js',
    '!build/assets/js/bootlint.js',
    '!build/assets/js/bootstrap.min.js',
    '!build/assets/js/jquery.min.js',
    '!build/assets/js/listr.pack.js'
  ]);
});
{'fraction_non_alphanumeric': 0.18875968992248063, 'fraction_numerical': 0.0, 'mean_word_length': 2.0592768227622997, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3165860', 'n_tokens_mistral': 1756, 'n_tokens_neox': 1709, 'n_words': 241}