<commit_before>'use strict'

function run (msg) {
	msg.say({
		text: 'Writing out your dreams can be helpful when looking for inspiration.  Tell me about a dream you had recently?',
		"attachments": [{
			"callback_id": 'nextcancel_callback',
			actions: [
				{ name: 'answer', text: 'Next', type: 'button', value: 'next' },
				{ name: 'answer', text: 'Cancel', type: 'button', value: 'cancel' },
			]
		}]
	})
		.route('dream_response', {}, 60)
}

function response (db, msg, state) {
	// Save message sent to Creature-bot about dream
	db.saveDream(msg.body.event.user, msg.body.event.text, (err, convo) => {
		if (err)
		{
			console.log(err)
		}
	})
	msg.say(['Thanks, I have taken note.', 'Sounds good, I am keeping track of these.', 'Thanks, I am writing this down.'])
}

module.exports = {
	run: run,
	response: response
}<commit_msg>Enhancements to dream.<commit_after>'use strict'

function run (msg) {
	msg.say({
		text: 'Writing out your dreams can be helpful when looking for inspiration.  Tell me about a dream you had recently?',
		'attachments': [
		{
			"callback_id": 'nextcancel_callback',
			actions: [
				{ name: 'answer', text: 'Next', type: 'button', value: 'next' },
				{ name: 'answer', text: 'Cancel', type: 'button', value: 'cancel' },
			]
		}]
		})
		.route('dream_response', {}, 60)
}

function response (db, msg, state) {
	// Save message sent to Creature-bot about dream
	db.saveDream(msg.body.event.user, msg.body.event.text, (err, convo) => {
		if (err)
		{
			console.log(err)
		}
	})
	msg.say(['Thanks, I have taken note.', 'Sounds good, I am keeping track of these.', 'Thanks, I am writing this down.'])
}

module.exports = {
	run: run,
	response: response
}
{'fraction_non_alphanumeric': 0.16676487919858574, 'fraction_numerical': 0.002357100766057749, 'mean_word_length': 3.6648351648351647, 'pattern_counts': {'":': 3, '<': 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': '2091848', 'n_tokens_mistral': 633, 'n_tokens_neox': 577, 'n_words': 184}