<commit_before>const production = require('yargs').argv.p
const async = require('async')

const compile = require('./compile')
const bundler = require('./bundler')
const { copy, remove, files } = require('./util')

function release(produnction) {
	async.series([
		done => {
			console.log('> Compile Started')

			const compileDirs = ['app', 'server']
			async.each(compileDirs, (dir, done2) => {
				remove(dir)
				files(dir)
				.then(files => {
					compile(files, production)
					.then(() => {
						done2()
					})
				})
			}, 
			err => {
				if (err) {
					console.log(err)
				} else {
					console.log('< Compile Finished')
					done()
				}
			})
		},
		done => {
			console.log('> Bundling Started')

			const bundleDirs = ['app']
			async.each(bundleDirs, (dir, done2) => {<commit_msg>Fixed error in remove.<commit_after>const production = require('yargs').argv.p
const async = require('async')

const compile = require('./compile')
const bundler = require('./bundler')
const { copy, remove, files } = require('./util')

function release(produnction) {
	async.series([
		done => {
			console.log('> Compile Started')

			const compileDirs = ['app', 'server']
			async.each(compileDirs, (dir, done2) => {
				remove(dir, production)
				console.log(`compiling ${dir}...`)
				files(dir)
				.then(files => {
					compile(files, production)
					.then(() => {
						done2()
					})
				})
			}, 
			err => {
				if (err) {
					console.log(err)
				} else {
					console.log('< Compile Finished')
					done()
				}
			})
		},
		done => {
			console.log('> Bundling Started')

			const bundleDirs = ['app']
			async.each(bundleDirs, (dir, done2) => {
{'fraction_non_alphanumeric': 0.18329326923076922, 'fraction_numerical': 0.003605769230769231, 'mean_word_length': 2.8364055299539173, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '4513619', 'n_tokens_mistral': 702, 'n_tokens_neox': 552, 'n_words': 120}