<commit_before>'use strict';
const webpack = require('webpack');

const env = process.env.NODE_ENV || 'development';
const isDev = env === 'development';

const devtool = isDev ? '#inline-source-map' : null;
const uglify = isDev ? null : new webpack.optimize.UglifyJsPlugin({
	output: {
		comments: false
	},
	compress: {
		dead_code: true, // eslint-disable-line camelcase
		warnings: false
	}
});

const plugins = [
	new webpack.DefinePlugin({
		'process.env': {
			NODE_ENV: JSON.stringify(env)
		}
	}),
	uglify
].filter(v => v);

module.exports = {
	cache: true,
	entry: [
		'babel-polyfill',
		'./renderer/index.js'
	],
	debug: env === 'development',
	devtool,
	output: {
		path: `${__dirname}/dist`,
		filename: 'bundle.js'
	},
	plugins,
	module: {
		loaders: [
			{
				test: /\.js$/,
				loader: 'babel?cacheDirectory',
				exclude: /node_modules/
			}
		]
	}
};<commit_msg>Add renderer setting for electron<commit_after>'use strict';
const webpack = require('webpack');

const env = process.env.NODE_ENV || 'development';
const isDev = env === 'development';

const devtool = isDev ? '#inline-source-map' : null;
const uglify = isDev ? null : new webpack.optimize.UglifyJsPlugin({
	output: {
		comments: false
	},
	compress: {
		dead_code: true, // eslint-disable-line camelcase
		warnings: false
	}
});

const plugins = [
	new webpack.DefinePlugin({
		'process.env': {
			NODE_ENV: JSON.stringify(env)
		}
	}),
	uglify
].filter(v => v);

module.exports = {
	cache: true,
	entry: [
		'babel-polyfill',
		'./renderer/index.js'
	],
	debug: env === 'development',
	target: 'electron',
	devtool,
	output: {
		path: `${__dirname}/dist`,
		filename: 'bundle.js'
	},
	plugins,
	module: {
		loaders: [
			{
				test: /\.js$/,
				loader: 'babel?cacheDirectory',
				exclude: /node_modules/
			}
		]
	}
};
{'fraction_non_alphanumeric': 0.1739612188365651, 'fraction_numerical': 0.0, 'mean_word_length': 3.515, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6465962', 'n_tokens_mistral': 736, 'n_tokens_neox': 668, 'n_words': 142}