<commit_before>quack.math.matrix3 = function() {
	//set the matrix to the 3x3 identity matrix
	this.setIdentity = function() {
		this.elements = [
			1, 0, 0,
			0, 1, 0,
			0, 0, 1
		];
		
		return this;
	};
	
	//constructor
	this.elements= new Float32Array(9);
	this.setIdentity();
	
	this.set = function(e00, e01, e02, e10, e11, e12, e20, e21, e22) {
		this.elements[0] = e00 || 1, this.elements[3] = e01 || 0, this.elements[6] = e02 || 0,
		this.elements[1] = e10 || 0, this.elements[4] = e11 || 1, this.elements[7] = e12 || 0,
		this.elements[2] = e20 || 0, this.elements[5] = e21 || 0, this.elements[8] = e22 || 1;
		
		return this;
	};
	
	this.multScalar = function(a) {
		for (var k = 0; k < 9; k++) {
			this.elements[k] *= a;
		}
		
		return this;
	};
	
	this.multVector = function(v) {
		var elem = this.elements;
		return new quack.math.vector3(<commit_msg>incremental changes to math package<commit_after>quack.math.matrix3 = function() {
	//set the matrix to the 3x3 identity matrix
	this.setIdentity = function() {
		this.elements = [
			1, 0, 0,
			0, 1, 0,
			0, 0, 1
		];
		
		return this;
	};
	
	//constructor
	this.elements= new Float32Array(9);
	this.setIdentity();
	
	this.set = function(e00, e01, e02, e10, e11, e12, e20, e21, e22) {
		this.elements[0] = e00 || 1, this.elements[3] = e01 || 0, this.elements[6] = e02 || 0,
		this.elements[1] = e10 || 0, this.elements[4] = e11 || 1, this.elements[7] = e12 || 0,
		this.elements[2] = e20 || 0, this.elements[5] = e21 || 0, this.elements[8] = e22 || 1;
		
		return this;
	};
	
	this.determinant = function() {
		var e = this.elements; //just to make this not look like a mess
		return (e[0] * e[4] * e[8]) + (e[1] * e[5] * e[6]) + (e[2] * e[3] * e[7]) -
			(e[6] * e[4] * e[2]) -(e[7] * e[5] * e[0]) - (e[8] * e[3] * e[1]);
		
	};
	
	this.multScalar = function(a) {
		for (var k = 0; k < 9; k++) {
			this.elements[k] *= a;
		}
		
		return this;
	};
	
	this.multVector = function(v) {
		var elem = this.elements;
		return new quack.math.vector3(
{'fraction_non_alphanumeric': 0.19444444444444445, 'fraction_numerical': 0.08035714285714286, 'mean_word_length': 2.9165048543689323, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5599906', 'n_tokens_mistral': 994, 'n_tokens_neox': 833, 'n_words': 214}