<commit_before>let path = require('path');
let toArgv = require('object-to-argv');
let exec = require('child_process').spawn;

module.exports = function(argv) {
	let command = path.resolve(__dirname, '../../node_modules/.bin/webpack-dev-server');
	let config = path.resolve(process.cwd(), 'build/webpack.config.dev.js');

	argv.port = argv.port || 3000;
	argv.config = argv.config || config;

	if (argv.hot === undefined) {
		argv.hot = true;
	}

	if (argv.inline === undefined) {
		argv.inline = true;
	}

	if (argv.colors === undefined) {
		argv.colors = true;
	}

	if (argv.progress === undefined) {
		argv.progress = true;
	}

	let proc = exec(command, toArgv(argv), { stdio: 'inherit', shell: true });
};<commit_msg>fix args with spaces in start task<commit_after>let path = require('path');
let toArgv = require('object-to-argv');
let spawn = require('child_process').spawn;

module.exports = function(argv) {
	let command = path.resolve(__dirname, '../../node_modules/.bin/webpack-dev-server');
	let config = path.resolve(process.cwd(), 'build/webpack.config.dev.js');

	argv.port = argv.port || 3000;
	argv.config = argv.config || `"${config}"`;

	if (argv.hot === undefined) {
		argv.hot = true;
	}

	if (argv.inline === undefined) {
		argv.inline = true;
	}

	if (argv.colors === undefined) {
		argv.colors = true;
	}

	if (argv.progress === undefined) {
		argv.progress = true;
	}

	spawn(`"${command}"`, toArgv(argv), { stdio: 'inherit', shell: true });
};
{'fraction_non_alphanumeric': 0.194141689373297, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 3.996598639455782, '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': '2926798', 'n_tokens_mistral': 525, 'n_tokens_neox': 498, 'n_words': 110}