<commit_before>/**
 * @file Entity definition
 * @since 0.1.6
 */
/*#ifndef(UMD)*/
"use strict";
/*global _gpfAssert*/ // Assertion method
/*exported _GpfEntityDefinition*/ // Entity definition
/*#endif*/

/**
 * Entity definition
 * - Check the definition object for $ properties (and validate them)
 * - Read the entity type, name and namespace
 * - Maintain a flat dictionary of members (using prototype inheritance)
 *
 * @param {Object} definition Entity definition
 * @constructor
 * @since 0.1.6
 */
function _GpfEntityDefinition (definition) {
    _gpfAssert(definition && "object" === typeof definition, "Expected an entity definition");
    /*jshint validthis:true*/ // constructor
    /*eslint-disable no-invalid-this*/
    this._initialDefinition = definition;
    /*eslint-enable no-invalid-this*/
}

_GpfEntityDefinition.prototype = {

    /**
     * Entity initial definition passed to {@link gpf.define}
     *
     * @readonly
     * @constant
     * @since 0.1.6
     */<commit_msg>Adds constructor override<commit_after>/**
 * @file Entity definition
 * @since 0.1.6
 */
/*#ifndef(UMD)*/
"use strict";
/*global _gpfAssert*/ // Assertion method
/*exported _GpfEntityDefinition*/ // Entity definition
/*#endif*/

/**
 * Entity definition
 * - Check the definition object for $ properties (and validate them)
 * - Read the entity type, name and namespace
 * - Maintain a flat dictionary of members (using prototype inheritance)
 *
 * @param {Object} definition Entity definition
 * @constructor
 * @since 0.1.6
 */
function _GpfEntityDefinition (definition) {
    _gpfAssert(definition && "object" === typeof definition, "Expected an entity definition");
    /*jshint validthis:true*/ // constructor
    /*eslint-disable no-invalid-this*/
    this._initialDefinition = definition;
    /*eslint-enable no-invalid-this*/
}

_GpfEntityDefinition.prototype = {

    constructor: _GpfEntityDefinition,

    /**
     * Entity initial definition passed to {@link gpf.define}
     *
     * @readonly
     * @constant
     * @since 0.1.6
     */
{'fraction_non_alphanumeric': 0.13060428849902533, 'fraction_numerical': 0.008771929824561403, 'mean_word_length': 3.3495762711864407, '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': '5152569', 'n_tokens_mistral': 595, 'n_tokens_neox': 583, 'n_words': 174}