<commit_before><!doctype html>
<html lang=en>
<head>
<title>Jaanga Moon Viewer R4</title>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<body>
<script src = http://mrdoob.github.io/three.js/build/three.min.js ></script>
<script src = http://mrdoob.github.io/three.js/examples/js/controls/OrbitControls.js ></script>
<script src = http://mrdoob.github.io/three.js/examples/js/controls/FirstPersonControls.js ></script>
<script>

	var centerX = 4000;
	var centerZ = 2000;

	var delta = 8;
//	var imageName = '../../images/LALT_GGT_MAP.jpg';
	var imageName = '../../images/ACopldB.jpg';

	var scale = 10;
	var heightMap;
	var vertices;

	var cam1, cam2, con1, con2;
	var clock = new THREE.Clock();

	var renderer, scene, camera, controls, heightMap;
	var geometry, material, mesh;

	init();
	animate();

	function init() {

		css = document.head.appendChild( document.createElement('style') );
		css.innerHTML ='body { color: #fff; font: 600 12pt monospace; margin: 0; overflow: hidden; }' +
			'a { color: #fff; } ' +
		'';

		info = document.body.appendChild( document.createElement( 'div' ) );
		info.style.cssText = 'margin: 20px; position: absolute; ';
		info.innerHTML = '<a href="" ><h1>' + document.title + '</h1></a>' +
			'<p><select id=selPlace></select></p>' +
			'<p><button onclick=goNorth(); >North</button> ' +
				'<button onclick=goSouth(); >South</button> ' +
				'<button onclick=goEast(); >East</button> ' +
				'<button onclick=goWest(); >West</button><br>' +
				'Or use cursor keys' +
				'</p>' +
			'<p>X <input type=range id=inpX min=0 max=8192 step=10 value=' + centerX + ' onclick=centerX=parseInt(this.value,10);initTerrain(); /> </p>' +
			'<p>Y <input type=range id=inpY min=0 max=4096 step=10 value=' + centerZ + ' onclick=centerZ=parseInt(this.value,10);initTerrain(); /> </p>' +
			'<p><button onclick=setControlsFirstPerson(); >First Person Controls</button> ' +
				'<button onclick=setControlsOrbit(); >Orbit Controls</button></p>' +
			'<p>Freeze camera: <input type=checkbox id=chkFreeze ></p>' +
			'<div id=msg ></div>' +
		'';

		renderer = new THREE.WebGLRenderer( { antialias: true }  );
		renderer.setSize( window.innerWidth, window.innerHeight );
		document.body.appendChild( renderer.domElement );
		scene = new THREE.Scene();

		camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 1000 );
		camera.position.set( 0, 200, 350 );
		controls = new THREE.OrbitControls( camera, renderer.domElement );
		controls.noKeys = true;

		window.addEventListener( 'keydown', onKeyUp, false );
<commit_msg>add touchmove<commit_after><!doctype html>
<html lang=en>
<head>
<title>Jaanga Moon Viewer R4</title>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<body>
<script src = http://mrdoob.github.io/three.js/build/three.min.js ></script>
<script src = http://mrdoob.github.io/three.js/examples/js/controls/OrbitControls.js ></script>
<script src = http://mrdoob.github.io/three.js/examples/js/controls/FirstPersonControls.js ></script>
<script>

	var centerX = 4000;
	var centerZ = 2000;

	var delta = 8;
//	var imageName = '../../images/LALT_GGT_MAP.jpg';
	var imageName = '../../images/ACopldB.jpg';

	var scale = 10;
	var heightMap;
	var vertices;

	var cam1, cam2, con1, con2;
	var clock = new THREE.Clock();

	var renderer, scene, camera, controls, heightMap;
	var geometry, material, mesh;

	init();
	animate();

	function init() {

		css = document.head.appendChild( document.createElement('style') );
		css.innerHTML ='body { color: #fff; font: 600 12pt monospace; margin: 0; overflow: hidden; }' +
			'a { color: #fff; } ' +
		'';

		info = document.body.appendChild( document.createElement( 'div' ) );
		info.style.cssText = 'margin: 20px; position: absolute; ';
		info.innerHTML = '<a href="" ><h1>' + document.title + '</h1></a>' +
			'<p><select id=selPlace></select></p>' +
			'<p><button onclick=goNorth(); >North</button> ' +
				'<button onclick=goSouth(); >South</button> ' +
				'<button onclick=goEast(); >East</button> ' +
				'<button onclick=goWest(); >West</button><br>' +
				'Or use cursor keys' +
				'</p>' +
			'<p>X <input type=range id=inpX min=0 max=8192 step=10 value=' + centerX + ' onclick=centerX=parseInt(this.value,10);initTerrain(); /> </p>' +
			'<p>Y <input type=range id=inpY min=0 max=4096 step=10 value=' + centerZ + ' onclick=centerZ=parseInt(this.value,10);initTerrain(); /> </p>' +
			'<p><button onclick=setControlsFirstPerson(); >First Person Controls</button> ' +
				'<button onclick=setControlsOrbit(); >Orbit Controls</button></p>' +
			'<p>Freeze camera: <input type=checkbox id=chkFreeze ></p>' +
			'<div id=msg ></div>' +
		'';


		inpX.ontouchmove = function () {

			centerX = this.valueAsNumber;
			initTerrain();

//				out.value = inp.valueAsNumber;

		};

		inpY.ontouchmove = function () {

			centerZ = this.valueAsNumber;
			initTerrain();

//				out.value = inp.valueAsNumber;

		};

		renderer = new THREE.WebGLRenderer( { antialias: true }  );
		renderer.setSize( window.innerWidth, window.innerHeight );
		document.body.appendChild( renderer.domElement );
		scene = new THREE.Scene();

		camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 1000 );
		camera.position.set( 0, 200, 350 );
		controls = new THREE.OrbitControls( camera, renderer.domElement );
		controls.noKeys = true;

		window.addEventListener( 'keydown', onKeyUp, false );

{'fraction_non_alphanumeric': 0.1850724897082513, 'fraction_numerical': 0.022552353678181494, 'mean_word_length': 4.22731524789523, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '5311482', 'n_tokens_mistral': 2212, 'n_tokens_neox': 1951, 'n_words': 425}