<commit_before><!doctype html>
<html>
	<head>
		<title>mod1</title>
		<style>
			body { margin: 0;i overflow:hidden; }
			canvas { display: block; }
		</style>
	</head>
	<body>
	</body>
	<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r70/three.js"></script>
	<script src="https://dl.dropboxusercontent.com/u/3587259/Code/Threejs/OrbitControls.js"></script>
	<script src="./ground.js"></script>
	<script src="./water.js"></script>
	<script>
			var scene = new THREE.Scene();
			//for (var i = 0; i < 100; i++) 
			//	fluid(ground, water);
			//for (var i = 0; i < ground.length; i++)
			//	ground[i] += water[i];
			var texture = THREE.ImageUtils.loadTexture("textures/greenbark.jpg");
			var waterTexture = THREE.ImageUtils.loadTexture("textures/water.jpg");
			var quality = 32, step = 1024 / quality;
			var geometry = new THREE.PlaneGeometry( 1024, 1024, quality - 1, quality - 1);
			for (var i = 0, l = geometry.vertices.length; i < l; i++) {
				var x = i % quality, y = Math.floor( i / quality );
				geometry.vertices[i].z = ground[ ( x * step ) + ( y * step ) * 1024];
			}
			geometry.applyMatrix( new THREE.Matrix4().makeRotationX(  - Math.PI / 2 ) );
			var material = new THREE.MeshBasicMaterial( {map: texture, side:THREE.DoubleSide } ); 
			var ground = new THREE.Mesh(geometry, material);
			scene.add( ground );
			var waterHeight = new THREE.PlaneGeometry(1024, 1024, quality - 1, quality - 1);
			for (var i = 0, l = waterHeight.vertices.length; i < l; i++) {
				waterHeight.vertices[i].z = 100;
			}
			waterHeight.applyMatrix( new THREE.Matrix4().makeRotationX(  - Math.PI / 2 ) );
			var waterMat = new THREE.MeshBasicMaterial( { color: 0x297ACC, map: waterTexture } );
			var water = new THREE.Mesh(waterHeight, waterMat);
			scene.add( water );

	//Generate camera
			var camera = new THREE.PerspectiveCamera( 60, window.innerWidth/window.innerHeight, 1, 10000 );
			camera.position.x = 700;
			camera.position.y = 700;
			camera.position.z = 700;
			camera.lookAt(new THREE.Vector3(0, 0, 0));
			var controls = new THREE.OrbitControls( camera );
			//controls.addEventListener( 'change', render );
	//Print scene
			var renderer = new THREE.WebGLRenderer();
			renderer.setPixelRatio( window.devicePixelRatio );
			renderer.setSize( window.innerWidth, window.innerHeight );
			renderer.setSize( window.innerWidth, window.innerHeight );
			renderer.setClearColor(0xFFFFFF, 1); 
			document.body.appendChild( renderer.domElement );
			var render = function() {
				requestAnimationFrame( render );
				//controls.update();
				renderer.render(scene, camera);
			}
			$(window).load(function () {
				render();
		});
		</script>
</html>
<commit_msg>start of control panel<commit_after><!doctype html>
<html>
	<head>
		<title>mod1</title>
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
		<style>
			body { margin: 0;i overflow:hidden; }
			canvas { display: block; }
			console {position: fixed; margin: 50px; z-index: 1;}
		</style>
	</head>
	<body>
		<console>
		<form class="form-inline">
			<select class="form-control">
 				<option>1</option>
 				<option>2</option>
  				<option>3</option>
  				<option>4</option>
	  			<option>0</option>
			</select>	
			<button class="btn btn-default" type="submit" id="generate">Generate New Map</button>
		</form>
		</console>
	</body>
	<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r70/three.js"></script>
	<script src="https://dl.dropboxusercontent.com/u/3587259/Code/Threejs/OrbitControls.js"></script>
	<script src="./ground.js"></script>
	<script src="./water.js"></script>
	<script>
			var scene = new THREE.Scene();
			//for (var i = 0; i < 100; i++) 
			//	fluid(ground, water);
			//for (var i = 0; i < ground.length; i++)
			//	ground[i] += water[i];
			var texture = THREE.ImageUtils.loadTexture("textures/greenbark.jpg");
			var waterTexture = THREE.ImageUtils.loadTexture("textures/water.jpg");
			var quality = 32, step = 1024 / quality;
			var geometry = new THREE.PlaneGeometry( 1024, 1024, quality - 1, quality - 1);
			for (var i = 0, l = geometry.vertices.length; i < l; i++) {
				var x = i % quality, y = Math.floor( i / quality );
				geometry.vertices[i].z = ground[ ( x * step ) + ( y * step ) * 1024];
			}
			geometry.applyMatrix( new THREE.Matrix4().makeRotationX(  - Math.PI / 2 ) );
			var material = new THREE.MeshBasicMaterial( {map: texture, side:THREE.DoubleSide } ); 
			var ground = new THREE.Mesh(geometry, material);
			scene.add( ground );
			var waterHeight = new THREE.PlaneGeometry(1024, 1024, quality - 1, quality - 1);
			for (var i = 0, l = waterHeight.vertices.length; i < l; i++) {
				waterHeight.vertices[i].z = 100;
			}
			waterHeight.applyMatrix( new THREE.Matrix4().makeRotationX(  - Math.PI / 2 ) );
			var waterMat = new THREE.MeshBasicMaterial( { map: waterTexture } );
			var water = new THREE.Mesh(waterHeight, waterMat);
			scene.add( water );

	//Generate camera
			var camera = new THREE.PerspectiveCamera( 60, window.innerWidth/window.innerHeight, 1, 10000 );
			camera.position.x = 700;
			camera.position.y = 700;
			camera.position.z = 700;
			camera.lookAt(new THREE.Vector3(0, 0, 0));
			var controls = new THREE.OrbitControls( camera );
			//controls.addEventListener( 'change', render );
	//Print scene
			var renderer = new THREE.WebGLRenderer();
			renderer.setPixelRatio( window.devicePixelRatio );
			renderer.setSize( window.innerWidth, window.innerHeight );
			renderer.setSize( window.innerWidth, window.innerHeight );
			renderer.setClearColor(0xFFFFFF, 1); 
			document.body.appendChild( renderer.domElement );
			var render = function() {
				requestAnimationFrame( render );
				controls.update();
				renderer.render(scene, camera);
			}
			$(window).load(function () {
				render();
		});
		</script>
</html>

{'fraction_non_alphanumeric': 0.1632420091324201, 'fraction_numerical': 0.028864970645792562, 'mean_word_length': 3.1216397849462365, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 68, 'https://': 7, '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': '3037256', 'n_tokens_mistral': 2435, 'n_tokens_neox': 2020, 'n_words': 457}