<commit_before>var Chain = require('./chain')
  , util = require('./util')

  , noop = function () {}
;

/**
 * Exception that is thrown from is
 *
 * @constructor
 * @this {ValidationsException}
 * @param {array} msgs List of constructed error messages
 */
var ValidationsException = function (msgs) {
	this.name = "ValidationsException";
	this.messages = msgs;
};

module.exports = is;

function is(val, name) {

	var chain = new Chain(val, name || 'value');
	is._registered.push(chain);

	return chain;
    
}

// expose Chain through is
is.Chain = Chain;

var returnIsGetter = {
    get: function () {
        return is;
    }
};

Object.defineProperties(is, {
    a: returnIsGetter,
    an: returnIsGetter,
    valid: {
        get: function () {<commit_msg>export ValidationException<commit_after>var Chain = require('./chain')
  , util = require('./util')

  , noop = function () {}
;

/**
 * Exception that is thrown from is
 *
 * @constructor
 * @this {ValidationsException}
 * @param {array} msgs List of constructed error messages
 */
var ValidationsException = function (msgs) {
    var err = Error.call(this, "ValidationsException");
	err.name = "ValidationsException";
	err.messages = msgs;

    return err
};


module.exports = is;
module.exports.ValidationsException = ValidationsException;

function is(val, name) {

    var chain = new Chain(val, name || 'value');
    is._registered.push(chain);

    return chain;
    
}

// expose Chain through is
is.Chain = Chain;

var returnIsGetter = {
    get: function () {
        return is;
    }
};

Object.defineProperties(is, {
    a: returnIsGetter,
    an: returnIsGetter,
    valid: {
        get: function () {
{'fraction_non_alphanumeric': 0.13579511614055986, 'fraction_numerical': 0.0, 'mean_word_length': 3.221105527638191, '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': '7162543', 'n_tokens_mistral': 527, 'n_tokens_neox': 521, 'n_words': 141}