<commit_before>/**
 * A numerical data type.
 * @class module:numjs.DataType
 * @param {String} type - the abbreviated name of the data type. Currently supported values are "f32" and "f64".
 */
function DataType(type) {
	if (['f32', 'f64'].indexOf(type) >= 0) {
		this.type = type;
		this.size = {'f32': 4, 'f64': 8}[type];
		this.arrayType = {'f32': Float32Array, 'f64': Float64Array}[type];
	} else {
		throw new RangeError("Type " + type + " is not supported");
	}
}

DataType.prototype.equals = function(other) {<commit_msg>Docs: document DataType class with YUIDoc syntax<commit_after>/**
 * A numerical data type object.
 *
 * @class DataType
 */

/**
 * Creates a data type object from a string abbreviation.
 *
 * @constructor
 * @param {String} type - the abbreviated name of the data type. The following names are supported:
 *
 *     <table>
 *         <tr>
 *             <th>Abbreviated Name</th>
 *             <th>Interpretation</th>
 *         </tr>
 *         <tr>
 *             <td>&quot;f32&quot;</td>
 *             <td>Single-precision (32-bit) IEEE-754 floating-point type.</td>
 *         </tr>
 *         <tr>
 *             <td>&quot;f64&quot;</td>
 *             <td>Double-precision (64-bit) IEEE-754 floating-point type.</td>
 *         </tr>
 *     </table>
 *
 */
function DataType(type) {
	if (['f32', 'f64'].indexOf(type) >= 0) {
		this.type = type;
		this.size = {'f32': 4, 'f64': 8}[type];
		this.arrayType = {'f32': Float32Array, 'f64': Float64Array}[type];
	} else {
		throw new RangeError("Type " + type + " is not supported");
	}
}

/**
 * Compares two data type objects for equality.
 *
 * @constructor
 * @param {any} other - an object to compare to.
 */
DataType.prototype.equals = function(other) {
{'fraction_non_alphanumeric': 0.17001723147616313, 'fraction_numerical': 0.032165422171166, 'mean_word_length': 2.7301927194860816, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '6461785', 'n_tokens_mistral': 631, 'n_tokens_neox': 579, 'n_words': 158}