<commit_before>'use strict'

ERROR_STACK_MAX_LENGTH = 500

exports.toString = (err) ->
	msg = ''
	if err.stack
		specFileLine = /^.+\.spec\.[a-z]+:\d+:\d+$/m.exec err.stack
		if specFileLine?
			msg += specFileLine[0] + "\n\n"
		if err.stack.length > ERROR_STACK_MAX_LENGTH
			msg += "#{err.stack.slice(0, ERROR_STACK_MAX_LENGTH)}…"
		else
			msg += err.stack
	else
		msg += err
	msg += "\n"
	msg<commit_msg>Error text now has no limit<commit_after>'use strict'

exports.toString = (err) ->
	msg = ''
	if err.stack
		specFileLine = /^.+\.spec\.[a-z]+:\d+:\d+$/m.exec err.stack
		if specFileLine?
			msg += specFileLine[0] + "\n\n"
		msg += err.stack
	else
		msg += err
	msg += "\n"
	msg
{'fraction_non_alphanumeric': 0.19387755102040816, 'fraction_numerical': 0.008746355685131196, 'mean_word_length': 3.1137724550898205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '169577', 'n_tokens_mistral': 307, 'n_tokens_neox': 282, 'n_words': 59}