<commit_before>var gulp           = require('gulp');
var webpack        = require('gulp-webpack');
var webpackPlugins = require('gulp-webpack/node_modules/webpack');
var rename         = require('gulp-rename');
var browserSync    = require('browser-sync');
var _              = require('lodash');
var util           = require('gulp-util');

var config = {
	module: {
		loaders: [
			{ test: /\.css$/, loader: 'style-loader!css-loader' },
			{ test: /\.jsx$/, loader: 'jsx-loader' },
			{ test: /\.json$/, loader: 'json-loader' }
		]
	}
};

gulp.task('webpack', function() {

	if (util.env.prod) {
		// _.extend(config, {
		// 	plugins: [
		// 		new webpackPlugins.optimize.UglifyJsPlugin(),
		// 		new webpackPlugins.DefinePlugin({
		// 			'process.env': {
		// 				NODE_ENV: JSON.stringify('production')
		// 			}
		// 		})
		//     ]
		// });
	} else {
		_.extend(config, {<commit_msg>add minification back<commit_after>var gulp           = require('gulp');
var webpack        = require('gulp-webpack');
var webpackPlugins = require('gulp-webpack/node_modules/webpack');
var rename         = require('gulp-rename');
var browserSync    = require('browser-sync');
var _              = require('lodash');
var util           = require('gulp-util');

var config = {
	module: {
		loaders: [
			{ test: /\.css$/, loader: 'style-loader!css-loader' },
			{ test: /\.jsx$/, loader: 'jsx-loader' },
			{ test: /\.json$/, loader: 'json-loader' }
		]
	}
};

gulp.task('webpack', function() {

	if (util.env.prod) {
		_.extend(config, {
			plugins: [
				new webpackPlugins.optimize.UglifyJsPlugin(),
				new webpackPlugins.DefinePlugin({
					'process.env': {
						NODE_ENV: JSON.stringify('production')
					}
				})
		    ]
		});
	} else {
		_.extend(config, {
{'fraction_non_alphanumeric': 0.18949771689497716, 'fraction_numerical': 0.0, 'mean_word_length': 2.5557809330628802, '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': '4514426', 'n_tokens_mistral': 691, 'n_tokens_neox': 615, 'n_words': 104}