<commit_before>exports = module.exports = Victor;

/**
 * # Victor - A JavaScript 2D vector class with methods for common vector operations
 */

/**
 * Constructor. Will also work without the `new` keyword
 *
 * ### Examples:
 *     var vec1 = new Victor(100, 50);
 *     var vec2 = Victor(42, 1337);
 *
 * @param {Number} x Value of the x axis
 * @param {Number} y Value of the y axis
 * @return {Victor}
 * @api public
 */
function Victor (x, y) {
	if (!(this instanceof Victor)) {
		return new Victor(x, y);
	}
	this.x = x || 0;
	this.y = y || 0;
};

/**
 * # Properties
 */

/**
 * The X axis
 *
 * ### Examples:
 *     var vec = new Victor.fromArray(42, 21);
 *
 *     vec.x;
 *     // => 42
 *
 * @api public
 */
Victor.prototype.x = 0;

/**
 * The Y axis
 *
 * ### Examples:
 *     var vec = new Victor.fromArray(42, 21);
 *
 *     vec.y;
 *     // => 21
 *
 * @api public
 */
Victor.prototype.y = 0;

/**
 * # Static
 */

/**
 * Creates a new instance from an array
 *
 * ### Examples:<commit_msg>git rid of the x and y properties in the prototype<commit_after>exports = module.exports = Victor;

/**
 * # Victor - A JavaScript 2D vector class with methods for common vector operations
 */

/**
 * Constructor. Will also work without the `new` keyword
 *
 * ### Examples:
 *     var vec1 = new Victor(100, 50);
 *     var vec2 = Victor(42, 1337);
 *
 * @param {Number} x Value of the x axis
 * @param {Number} y Value of the y axis
 * @return {Victor}
 * @api public
 */
function Victor (x, y) {
	if (!(this instanceof Victor)) {
		return new Victor(x, y);
	}

	/**
	 * The X axis
	 *
	 * ### Examples:
	 *     var vec = new Victor.fromArray(42, 21);
	 *
	 *     vec.x;
	 *     // => 42
	 *
	 * @api public
	 */
	this.x = x || 0;

	/**
	 * The Y axis
	 *
	 * ### Examples:
	 *     var vec = new Victor.fromArray(42, 21);
	 *
	 *     vec.y;
	 *     // => 21
	 *
	 * @api public
	 */
	this.y = y || 0;
};

/**
 * # Static
 */

/**
 * Creates a new instance from an array
 *
 * ### Examples:
{'fraction_non_alphanumeric': 0.17084168336673347, 'fraction_numerical': 0.02905811623246493, 'mean_word_length': 2.257748776508972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4948126', 'n_tokens_mistral': 762, 'n_tokens_neox': 691, 'n_words': 226}