<commit_before>(function() {
	var isBrowser = (typeof window !== 'undefined');
	function _WallFactory(THREE) {

		var textureLoader = new THREE.TextureLoader();
		var brickTexture = (isBrowser) ? textureLoader.load("textures/brick.png") : null;

		function Wall(width, height, originX, originY) {
			THREE.Object3D.call(this);

			var doRotate = false;
			if (height > width) {
				var temp = width;
				width = height;
				height = temp;
				doRotate = true;
			}

			var brickTextureRepeat = null;
			if (isBrowser) {
				brickTextureRepeat = textureLoader.load("textures/brick.png");
				brickTextureRepeat.wrapS = brickTextureRepeat.wrapT = THREE.RepeatWrapping;
				brickTextureRepeat.repeat.set(width/10, height/10);
			}

			var baseGeo = new THREE.BoxGeometry(width, height, 10, width/10, height/10, 1);

			var brickRepeatMaterial = new THREE.MeshLambertMaterial({ map: brickTextureRepeat });
			var brickMaterial = new THREE.MeshLambertMaterial({ map: brickTexture });

			var baseMaterials = new THREE.MultiMaterial([brickMaterial, brickMaterial, brickRepeatMaterial, brickRepeatMaterial, brickRepeatMaterial, brickRepeatMaterial]);
	
			this.baseMesh = new THREE.Mesh(baseGeo, baseMaterials);
			this.add(this.baseMesh);

			if (doRotate) {
				var temp = width;
				width = height;
				height = temp;
			}

			this.rotation.z = doRotate ? Math.PI/2 : 0;
			this.position.set(originX + width/2, originY + height/2, 5);
			this.baseMesh.position.set(0, 0, 0);
		}
		Wall.prototype = Object.create(THREE.Object3D.prototype);

		return Wall;
	}

	if (isBrowser) {
		window.Wall = _WallFactory(THREE);
	} else {
		module.exports = _WallFactory;
	}
})();<commit_msg>fixed wall collision<commit_after>(function() {
	var isBrowser = (typeof window !== 'undefined');
	function _WallFactory(THREE) {

		var textureLoader = new THREE.TextureLoader();
		var brickTexture = (isBrowser) ? textureLoader.load("textures/brick.png") : null;

		function Wall(width, height, originX, originY) {
			var doRotate = false;
			if (height > width) {
				var temp = width;
				width = height;
				height = temp;
				doRotate = true;
			}

			var brickTextureRepeat = null;
			if (isBrowser) {
				brickTextureRepeat = textureLoader.load("textures/brick.png");
				brickTextureRepeat.wrapS = brickTextureRepeat.wrapT = THREE.RepeatWrapping;
				brickTextureRepeat.repeat.set(width/10, height/10);
			}

			var baseGeo = new THREE.BoxGeometry(width, height, 10, width/10, height/10, 1);

			var brickRepeatMaterial = new THREE.MeshLambertMaterial({ map: brickTextureRepeat });
			var brickMaterial = new THREE.MeshLambertMaterial({ map: brickTexture });

			var baseMaterials = new THREE.MultiMaterial([brickMaterial, brickMaterial, brickRepeatMaterial, brickRepeatMaterial, brickRepeatMaterial, brickRepeatMaterial]);

			if (doRotate) {
				var temp = width;
				width = height;
				height = temp;
			}

			THREE.Mesh.call(this, baseGeo, baseMaterials);
			this.rotation.z = doRotate ? Math.PI/2 : 0;
			this.position.set(originX + width/2, originY + height/2, 5);
		}
		Wall.prototype = Object.create(THREE.Mesh.prototype);

		return Wall;
	}

	if (isBrowser) {
		window.Wall = _WallFactory(THREE);
	} else {
		module.exports = _WallFactory;
	}
})();
{'fraction_non_alphanumeric': 0.12472985489348565, 'fraction_numerical': 0.011423278789749922, 'mean_word_length': 3.9617151607963246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2943634', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1047, 'n_words': 230}