<commit_before>'use strict'

groundskeeper = require 'groundskeeper'

{log} = Neft

RELEASE_NAMESPACES_TO_REMOVE = [
	'assert', 'Object.freeze', 'Object.seal', 'Object.preventExtensions'
]

module.exports = (bundle, opts, callback) ->
	if opts.release
		logtime = log.time 'Release mode'
		namespaces = utils.clone RELEASE_NAMESPACES_TO_REMOVE

		if opts.removeLogs
			namespaces.push 'log'

		bundle = bundle.replace ///\/\/<(\/)?development>;///g, '//<$1development>'
		bundle = bundle.replace /, assert,;/g, ', '
		bundle = bundle.replace /\ assert, |, assert;/g, ' '<commit_msg>Release mode bug fixed<commit_after>'use strict'

groundskeeper = require 'groundskeeper'

{utils, log} = Neft

RELEASE_NAMESPACES_TO_REMOVE = [
	'assert', 'Object.freeze', 'Object.seal', 'Object.preventExtensions'
]

module.exports = (bundle, opts, callback) ->
	if opts.release
		logtime = log.time 'Release mode'
		namespaces = utils.clone RELEASE_NAMESPACES_TO_REMOVE

		if opts.removeLogs
			namespaces.push 'log'

		bundle = bundle.replace ///\/\/<(\/)?development>;///g, '//<$1development>'
		bundle = bundle.replace /, assert,;/g, ', '
		bundle = bundle.replace /\ assert, |, assert;/g, ' '
{'fraction_non_alphanumeric': 0.1669491525423729, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 4.112554112554113, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5581223', 'n_tokens_mistral': 435, 'n_tokens_neox': 404, 'n_words': 84}