<commit_before>/* browserify task
   ---------------
   Bundle javascripty things with browserify!

   If the watch task is running, this uses watchify instead
   of browserify for faster bundling using caching.
*/

var browserify   = require('browserify');
var watchify     = require('watchify');
var bundleLogger = require('../util/bundleLogger');
var gulp         = require('gulp');
var handleErrors = require('../util/handleErrors');
var source       = require('vinyl-source-stream');
var config       = require('../config');
var gutil        = require('gulp-util');
var _            = require('underscore');

gulp.task('browserify', function() {
	var bundleMethod = global.isWatching ? watchify : browserify;
  var bundleConfs = {
    main: {
		  entries: [config.src + '/js/main.js'],
		  extensions: ['.js'],
      outputFile: 'main.js',
      outputPath: config.dest + '/js/'
    },
    search: {
		  entries: [config.src + '/js/search/app.js'],
		  extensions: ['.js'],
      outputFile: 'search.js',
      outputPath: config.dest + '/js/'
    }
  };

  var bundlers = [];

  var bundleUp = function() {
    _.each(bundleConfs, function(bundleConf, index) {
      var bundler = bundleMethod({
        // Specify the entry point of your app
        entries: bundleConf.entries,
        // Add file extentions to make optional in your requires
        extensions: bundleConf.extensions
      });
       // Log when bundling starts
		  bundleLogger.start();
      bundler
        // Enable source maps!
        .bundle({debug: true})
        // Report compile errors
        .on('error', handleErrors)
        // Use vinyl-source-stream to make the
        // stream gulp compatible. Specifiy the
        // desired output filename here.
        .pipe(source(bundleConf.outputFile))
        // Specify the output destination<commit_msg>Commenting search for now.<commit_after>/* browserify task
   ---------------
   Bundle javascripty things with browserify!

   If the watch task is running, this uses watchify instead
   of browserify for faster bundling using caching.
*/

var browserify   = require('browserify');
var watchify     = require('watchify');
var bundleLogger = require('../util/bundleLogger');
var gulp         = require('gulp');
var handleErrors = require('../util/handleErrors');
var source       = require('vinyl-source-stream');
var config       = require('../config');
var gutil        = require('gulp-util');
var _            = require('underscore');

gulp.task('browserify', function() {
	var bundleMethod = global.isWatching ? watchify : browserify;
  var bundleConfs = {
    main: {
		  entries: [config.src + '/js/main.js'],
		  extensions: ['.js'],
      outputFile: 'main.js',
      outputPath: config.dest + '/js/'
    }
    /*search: {
		  entries: [config.src + '/js/search/app.js'],
		  extensions: ['.js'],
      outputFile: 'search.js',
      outputPath: config.dest + '/js/'
    }*/
  };

  var bundlers = [];

  var bundleUp = function() {
    _.each(bundleConfs, function(bundleConf, index) {
      var bundler = bundleMethod({
        // Specify the entry point of your app
        entries: bundleConf.entries,
        // Add file extentions to make optional in your requires
        extensions: bundleConf.extensions
      });
       // Log when bundling starts
		  bundleLogger.start();
      bundler
        // Enable source maps!
        .bundle({debug: true})
        // Report compile errors
        .on('error', handleErrors)
        // Use vinyl-source-stream to make the
        // stream gulp compatible. Specifiy the
        // desired output filename here.
        .pipe(source(bundleConf.outputFile))
        // Specify the output destination
{'fraction_non_alphanumeric': 0.13567567567567568, 'fraction_numerical': 0.0, 'mean_word_length': 2.4300278035217793, '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': '1273933', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1008, 'n_words': 298}