<NME> ArrayCollisionMatrix.js
<BEF> module.exports = ArrayCollisionMatrix;

/**
 * Collision "matrix". It's actually a triangular-shaped array of whether two bodies are touching this step, for reference next step
 * @class ArrayCollisionMatrix
 * @constructor
 */
function ArrayCollisionMatrix() {

    /**
     * The matrix storage
     * @property matrix
     * @type {Array}
     */
	this.matrix = [];
}

/**
 * Get an element
 * @method get
 * @param  {Number} i
 * @param  {Number} j
 * @return {Number}
 */
ArrayCollisionMatrix.prototype.get = function(i, j) {
	i = i.index;
	j = j.index;
    if (j > i) {
        var temp = j;
        j = i;
        i = temp;
    }
	return this.matrix[(i*(i + 1)>>1) + j-1];
};

/**
 * Set an element
 * @method set
 * @param {Number} i
 * @param {Number} j
 * @param {Number} value
 */
ArrayCollisionMatrix.prototype.set = function(i, j, value) {
	i = i.index;
	j = j.index;
    if (j > i) {
        var temp = j;
        j = i;
        i = temp;
    }
	this.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;
};

/**
 * Sets all elements to zero
 * @method reset
 */
ArrayCollisionMatrix.prototype.reset = function() {
	for (var i=0, l=this.matrix.length; i!==l; i++) {
		this.matrix[i]=0;
	}
};

/**
 * Sets the max number of objects
 * @method setNumObjects
 * @param {Number} n
 */
ArrayCollisionMatrix.prototype.setNumObjects = function(n) {
	this.matrix.length = n*(n-1)>>1;
};

<MSG> use spaces

<DFF> @@ -12,7 +12,7 @@ function ArrayCollisionMatrix() {
      * @property matrix
      * @type {Array}
      */
-	this.matrix = [];
+    this.matrix = [];
 }
 
 /**
@@ -23,14 +23,14 @@ function ArrayCollisionMatrix() {
  * @return {Number}
  */
 ArrayCollisionMatrix.prototype.get = function(i, j) {
-	i = i.index;
-	j = j.index;
+    i = i.index;
+    j = j.index;
     if (j > i) {
         var temp = j;
         j = i;
         i = temp;
     }
-	return this.matrix[(i*(i + 1)>>1) + j-1];
+    return this.matrix[(i*(i + 1)>>1) + j-1];
 };
 
 /**
@@ -41,14 +41,14 @@ ArrayCollisionMatrix.prototype.get = function(i, j) {
  * @param {Number} value
  */
 ArrayCollisionMatrix.prototype.set = function(i, j, value) {
-	i = i.index;
-	j = j.index;
+    i = i.index;
+    j = j.index;
     if (j > i) {
         var temp = j;
         j = i;
         i = temp;
     }
-	this.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;
+    this.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;
 };
 
 /**
@@ -56,9 +56,9 @@ ArrayCollisionMatrix.prototype.set = function(i, j, value) {
  * @method reset
  */
 ArrayCollisionMatrix.prototype.reset = function() {
-	for (var i=0, l=this.matrix.length; i!==l; i++) {
-		this.matrix[i]=0;
-	}
+    for (var i=0, l=this.matrix.length; i!==l; i++) {
+        this.matrix[i]=0;
+    }
 };
 
 /**
@@ -67,5 +67,5 @@ ArrayCollisionMatrix.prototype.reset = function() {
  * @param {Number} n
  */
 ArrayCollisionMatrix.prototype.setNumObjects = function(n) {
-	this.matrix.length = n*(n-1)>>1;
+    this.matrix.length = n*(n-1)>>1;
 };

{'commit': 'diff --git a/src/collision/ArrayCollisionMatrix.js b/src/collision/ArrayCollisionMatrix.js\nindex 351e427..8065233 100644\n--- a/src/collision/ArrayCollisionMatrix.js\n+++ b/src/collision/ArrayCollisionMatrix.js\n@@ -12,7 +12,7 @@ function ArrayCollisionMatrix() {\n      * @property matrix\n      * @type {Array}\n      */\n-\tthis.matrix = [];\n+    this.matrix = [];\n }\n \n /**\n@@ -23,14 +23,14 @@ function ArrayCollisionMatrix() {\n  * @return {Number}\n  */\n ArrayCollisionMatrix.prototype.get = function(i, j) {\n-\ti = i.index;\n-\tj = j.index;\n+    i = i.index;\n+    j = j.index;\n     if (j > i) {\n         var temp = j;\n         j = i;\n         i = temp;\n     }\n-\treturn this.matrix[(i*(i + 1)>>1) + j-1];\n+    return this.matrix[(i*(i + 1)>>1) + j-1];\n };\n \n /**\n@@ -41,14 +41,14 @@ ArrayCollisionMatrix.prototype.get = function(i, j) {\n  * @param {Number} value\n  */\n ArrayCollisionMatrix.prototype.set = function(i, j, value) {\n-\ti = i.index;\n-\tj = j.index;\n+    i = i.index;\n+    j = j.index;\n     if (j > i) {\n         var temp = j;\n         j = i;\n         i = temp;\n     }\n-\tthis.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;\n+    this.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;\n };\n \n /**\n@@ -56,9 +56,9 @@ ArrayCollisionMatrix.prototype.set = function(i, j, value) {\n  * @method reset\n  */\n ArrayCollisionMatrix.prototype.reset = function() {\n-\tfor (var i=0, l=this.matrix.length; i!==l; i++) {\n-\t\tthis.matrix[i]=0;\n-\t}\n+    for (var i=0, l=this.matrix.length; i!==l; i++) {\n+        this.matrix[i]=0;\n+    }\n };\n \n /**\n@@ -67,5 +67,5 @@ ArrayCollisionMatrix.prototype.reset = function() {\n  * @param {Number} n\n  */\n ArrayCollisionMatrix.prototype.setNumObjects = function(n) {\n-\tthis.matrix.length = n*(n-1)>>1;\n+    this.matrix.length = n*(n-1)>>1;\n };\n', 'commit_subject': 'use spaces', 'repo_name': 'schteppe/cannon.js', 'committer': {'name': 'Stefan Hedman', 'email': '85041421f5f449a37b3e3e5f537c641527250853@gmail.com', 'time_sec': '1450175865', 'tz_offset': '60', 'date': {'seconds': '1450175865'}}, 'commit_tree': 'bcc401adb1d7640cbb9a100a3dba9997122c05c2', 'commit_message': 'use spaces\n', 'language_name': 'HTML', 'license': 'mit', 'hunks': '@@ -12,7 +12,7 @@ function ArrayCollisionMatrix() {\n      * @property matrix\n      * @type {Array}\n      */\n-\tthis.matrix = [];\n+    this.matrix = [];\n }\n \n /**\n@@ -23,14 +23,14 @@ function ArrayCollisionMatrix() {\n  * @return {Number}\n  */\n ArrayCollisionMatrix.prototype.get = function(i, j) {\n-\ti = i.index;\n-\tj = j.index;\n+    i = i.index;\n+    j = j.index;\n     if (j > i) {\n         var temp = j;\n         j = i;\n         i = temp;\n     }\n-\treturn this.matrix[(i*(i + 1)>>1) + j-1];\n+    return this.matrix[(i*(i + 1)>>1) + j-1];\n };\n \n /**\n@@ -41,14 +41,14 @@ ArrayCollisionMatrix.prototype.get = function(i, j) {\n  * @param {Number} value\n  */\n ArrayCollisionMatrix.prototype.set = function(i, j, value) {\n-\ti = i.index;\n-\tj = j.index;\n+    i = i.index;\n+    j = j.index;\n     if (j > i) {\n         var temp = j;\n         j = i;\n         i = temp;\n     }\n-\tthis.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;\n+    this.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;\n };\n \n /**\n@@ -56,9 +56,9 @@ ArrayCollisionMatrix.prototype.set = function(i, j, value) {\n  * @method reset\n  */\n ArrayCollisionMatrix.prototype.reset = function() {\n-\tfor (var i=0, l=this.matrix.length; i!==l; i++) {\n-\t\tthis.matrix[i]=0;\n-\t}\n+    for (var i=0, l=this.matrix.length; i!==l; i++) {\n+        this.matrix[i]=0;\n+    }\n };\n \n /**\n@@ -67,5 +67,5 @@ ArrayCollisionMatrix.prototype.reset = function() {\n  * @param {Number} n\n  */\n ArrayCollisionMatrix.prototype.setNumObjects = function(n) {\n-\tthis.matrix.length = n*(n-1)>>1;\n+    this.matrix.length = n*(n-1)>>1;\n };\n', 'addition_count': 11, 'deletion_count': 11, 'src_file': 'a/src/collision/ArrayCollisionMatrix.js', 'tgt_file': 'b/src/collision/ArrayCollisionMatrix.js', 'file_extension': '.js', 'before_file': 'module.exports = ArrayCollisionMatrix;\n\n/**\n * Collision "matrix". It\'s actually a triangular-shaped array of whether two bodies are touching this step, for reference next step\n * @class ArrayCollisionMatrix\n * @constructor\n */\nfunction ArrayCollisionMatrix() {\n\n    /**\n     * The matrix storage\n     * @property matrix\n     * @type {Array}\n     */\n\tthis.matrix = [];\n}\n\n/**\n * Get an element\n * @method get\n * @param  {Number} i\n * @param  {Number} j\n * @return {Number}\n */\nArrayCollisionMatrix.prototype.get = function(i, j) {\n\ti = i.index;\n\tj = j.index;\n    if (j > i) {\n        var temp = j;\n        j = i;\n        i = temp;\n    }\n\treturn this.matrix[(i*(i + 1)>>1) + j-1];\n};\n\n/**\n * Set an element\n * @method set\n * @param {Number} i\n * @param {Number} j\n * @param {Number} value\n */\nArrayCollisionMatrix.prototype.set = function(i, j, value) {\n\ti = i.index;\n\tj = j.index;\n    if (j > i) {\n        var temp = j;\n        j = i;\n        i = temp;\n    }\n\tthis.matrix[(i*(i + 1)>>1) + j-1] = value ? 1 : 0;\n};\n\n/**\n * Sets all elements to zero\n * @method reset\n */\nArrayCollisionMatrix.prototype.reset = function() {\n\tfor (var i=0, l=this.matrix.length; i!==l; i++) {\n\t\tthis.matrix[i]=0;\n\t}\n};\n\n/**\n * Sets the max number of objects\n * @method setNumObjects\n * @param {Number} n\n */\nArrayCollisionMatrix.prototype.setNumObjects = function(n) {\n\tthis.matrix.length = n*(n-1)>>1;\n};\n', 'message': 'use spaces\n', 'author_name': 'Stefan Hedman', 'lang': 'js'}