<commit_before>const fs = require('fs');
const path = require('path');

function createCHCP(outputFolder, config = {}) {
	const defaultConfig = {
		content_url: '/',
		release: Date.now()
	};
	const filePath = path.join(outputFolder, 'chcp.json');
	config = Object.assign({}, defaultConfig, config);

	return new Promise((resolve, reject) => {
		fs.writeFile(filePath, JSON.stringify(config), err => {
			if (err) {
				reject(err);
			}
			resolve();
		});
	});
}

module.exports = createCHCP;<commit_msg>chcp.json is now generated with default release-prop as string.<commit_after>const fs = require('fs');
const path = require('path');

function createCHCP(outputFolder, config = {}) {
	const defaultConfig = {
		content_url: '/',
		release: Date.now().toString()
	};
	const filePath = path.join(outputFolder, 'chcp.json');
	config = Object.assign({}, defaultConfig, config);

	return new Promise((resolve, reject) => {
		fs.writeFile(filePath, JSON.stringify(config), err => {
			if (err) {
				reject(err);
			}
			resolve();
		});
	});
}

module.exports = createCHCP;
{'fraction_non_alphanumeric': 0.1733457595526561, 'fraction_numerical': 0.0, 'mean_word_length': 4.396984924623116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7016468', 'n_tokens_mistral': 374, 'n_tokens_neox': 346, 'n_words': 77}