<commit_before>
var test_version = "v3";


function include(filename)
{
    var head = document.getElementsByTagName('head')[0];

    var script = document.createElement('script');
    script.src = filename;
    script.type = 'text/javascript';

    head.appendChild(script)
}


//include('http://mrdoob.github.com/three.js/build/three.min.js');


parent.wl_inst.handleCommandResponse = function(msg, id)
{
	alert("On command response: " + msg);
}

parent.wl_inst.handleCommandError = function(msg, id)
{
	alert("On handleCommandError: " + msg);
}

parent.wl_inst.setTime = function(time)
{
	alert("On set time" + time);
}

parent.wl_inst.startInteraction = function()
{
	alert("OnStartInteraction");
}

parent.wl_inst.end = function()
{
	alert("OnEnd");
}


function gfxinit()
{
}<commit_msg>[jstest]: Minor changes to test script<commit_after>
var test_version = "v3";


function include(filename)
{
    var head = document.getElementsByTagName('head')[0];

    var script = document.createElement('script');
    script.src = filename;
    script.type = 'text/javascript';

    head.appendChild(script)
}


include('http://mrdoob.github.com/three.js/build/three.min.js');


parent.wl_inst.handleCommandResponse = function(msg, id)
{
	alert("On command response: " + msg);
}

parent.wl_inst.handleCommandError = function(msg, id)
{
	alert("On handleCommandError: " + msg);
}

parent.wl_inst.setTime = function(time)
{
	alert("On set time" + time);
}

parent.wl_inst.startInteraction = function()
{
	alert("OnStartInteraction");
	gfxinit();
}

parent.wl_inst.end = function()
{
	alert("OnEnd");
}

function gfxtest()
{
	alert("Test");
}


function gfxinit()
{
	container = document.createElement('div');
	document.body.appendChild(container);
	
	camera = new THREE.PesrpectiveCamera( 45, window.innerWidth / window.innertHeight, 1, 10000);
	camera.position.z = 1000;
	
	scene = new THREE.Scene();
	
	scene.add(camera);
	
	renderer = new THREE.CanvasRenderer();
	renderer.setSize(window.innerWidth, window.innerHeight);
	
	container.appendChild(renderer.domElement);
	
	stats = new Stats();
	stats.domElement.style.position = 'absolute';
	stats.domElement.style.top = '0px';
	container.appendChild( stats.domElement );
}

function gfxanimate()
{
	requestAnimationFrame(gfxanimate);
	
	gfxrender();
	stats.update();
}

function gfxrender()
{
	renderer.autoClear = false;
	renderer.clear();
	
	renderer.render(scene, camera);
}

//@ sourceURL=dynamicScript.js
{'fraction_non_alphanumeric': 0.15472312703583063, 'fraction_numerical': 0.006921824104234527, 'mean_word_length': 4.794811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?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': '921377', 'n_tokens_mistral': 862, 'n_tokens_neox': 822, 'n_words': 144}