<commit_before>'use strict';

var d      = require('es5-ext/lib/Object/descriptor')
  , proto  = require('../_proto')
  , simple = require('./simple')

  , validate;

Object.defineProperties(simple(proto._defineRel_('toString')), {
	validateValue: d(validate = function (value) {
		if (!value || (typeof value !== 'function') || value._type_) {
			return new TypeError(value + ' is not valid function');
		}
		return null;
	}),
	validateCreateValue: d(validate)
}).$$setValue(function () { return '[DBJS:' + this._id_ + ']'; });<commit_msg>Improve low level string representation<commit_after>'use strict';

var d      = require('es5-ext/lib/Object/descriptor')
  , proto  = require('../_proto')
  , simple = require('./simple')

  , validate;

Object.defineProperties(simple(proto._defineRel_('toString')), {
	validateValue: d(validate = function (value) {
		if (!value || (typeof value !== 'function') || value._type_) {
			return new TypeError(value + ' is not valid function');
		}
		return null;
	}),
	validateCreateValue: d(validate)
}).$$setValue(function () { return '[dbjs ' + this._id_ + ']'; });
{'fraction_non_alphanumeric': 0.1871609403254973, 'fraction_numerical': 0.0018083182640144665, 'mean_word_length': 4.426470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5899677', 'n_tokens_mistral': 353, 'n_tokens_neox': 339, 'n_words': 76}