<commit_before>var gulp = require('gulp');
var uglify = require('gulp-uglify');
var cssnano = require('gulp-cssnano');
var htmlmin = require('gulp-htmlmin');
var rename = require('gulp-rename');
var bs = require('browser-sync').create();
var through2 = require('through2')
var browserify = require('browserify');


gulp.task('js', function(){
  return gulp.src(['src/galFly/main.js', 'src/galNum/main.js' ], {base: 'src/'})
    .pipe(through2.obj(function(file, enc, next){
      browserify({
        entries: file.path,
        debug: false
      }).bundle(function(err, res){
        if(err){
          return next(err);
        }
        file.contents = res;
        next(null, file);
      })
    }))
    .on('error', function(error){
      console.log(error.stack);
      this.emit('end');
    })
    .pipe(gulp.dest('.tmp/src'))
});

gulp.task('uglify', function(){
  return gulp.src(['src/galFly/main.js', 'src/galNum/main.js' ], {base: 'src/'})
    .pipe(uglify())
    .pipe(gulp.dest('temp'));
});

gulp.task('cssmin', function(){
  return gulp.src(['src/galFly/main.css', 'src/galNum/main.css'], {base: 'src/'})
    .pipe(cssnano())
    .pipe(gulp.dest('temp'));
});

gulp.task('htmlmin', function(){<commit_msg>Use browserified js as source for bulding dist result<commit_after>var gulp = require('gulp');
var uglify = require('gulp-uglify');
var cssnano = require('gulp-cssnano');
var htmlmin = require('gulp-htmlmin');
var rename = require('gulp-rename');
var bs = require('browser-sync').create();
var through2 = require('through2')
var browserify = require('browserify');


gulp.task('js', function(){
  return gulp.src(['src/galFly/main.js', 'src/galNum/main.js' ], {base: 'src/'})
    .pipe(through2.obj(function(file, enc, next){
      browserify({
        entries: file.path,
        debug: false
      }).bundle(function(err, res){
        if(err){
          return next(err);
        }
        file.contents = res;
        next(null, file);
      })
    }))
    .on('error', function(error){
      console.log(error.stack);
      this.emit('end');
    })
    .pipe(gulp.dest('.tmp/src'))
});

gulp.task('uglify', ['js'], function(){
  return gulp.src(['.tmp/src/galFly/main.js', '.tmp/src/galNum/main.js' ], {base: '.tmp/src/'})
    .pipe(uglify())
    .pipe(gulp.dest('temp'));
});

gulp.task('cssmin', function(){
  return gulp.src(['src/galFly/main.css', 'src/galNum/main.css'], {base: 'src/'})
    .pipe(cssnano())
    .pipe(gulp.dest('temp'));
});

gulp.task('htmlmin', function(){
{'fraction_non_alphanumeric': 0.21898683685680095, 'fraction_numerical': 0.0023932987634623054, 'mean_word_length': 3.3846153846153846, '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': '285240', 'n_tokens_mistral': 903, 'n_tokens_neox': 890, 'n_words': 154}