<commit_before>tQuery.register('createLightSaber', function(opts){
	var saber	= new tQuery.LightSaber(opts);
	return saber;
});

//////////////////////////////////////////////////////////////////////////////////
//										//
//////////////////////////////////////////////////////////////////////////////////

/**
 * TODO make it more flexible
*/
tQuery.register('LightSaber', function(opts){
	
	this._objRoot	= tQuery.createObject3D();
	this._objHilt	= tQuery.createObject3D().addTo(this._objRoot);
	this._objLaser	= tQuery.createObject3D().addTo(this._objRoot);

	// internal part of the hilt
	this._objHiltIn	= tQuery.createCylinder(0.30, 0.20, 1, 8*6, 6*6).addTo(this._objHilt)
				.geometry()
					.rotateZ(-Math.PI/2)
					.back()
	// external part of the hilt
	this._objHiltOut= tQuery.createTorus(0.38-0.05, 0.05, 6*8, 8*8).addTo(this._objHilt)
				.rotateY(Math.PI/2)
				.geometry()
					.scaleBy(1, 1, 20)
					.back()

	// generate the texture
	var canvas	= this._generateLaserCanvas();<commit_msg>little simplification<commit_after>//////////////////////////////////////////////////////////////////////////////////
//										//
//////////////////////////////////////////////////////////////////////////////////

tQuery.register('createLightSaber', function(opts){
	return new tQuery.LightSaber(opts);
});

//////////////////////////////////////////////////////////////////////////////////
//										//
//////////////////////////////////////////////////////////////////////////////////

/**
 * TODO make it more flexible
*/
tQuery.register('LightSaber', function(opts){
	
	this._objRoot	= tQuery.createObject3D();
	this._objHilt	= tQuery.createObject3D().addTo(this._objRoot);
	this._objLaser	= tQuery.createObject3D().addTo(this._objRoot);

	// internal part of the hilt
	this._objHiltIn	= tQuery.createCylinder(0.30, 0.20, 1, 8*6, 6*6).addTo(this._objHilt)
				.geometry()
					.rotateZ(-Math.PI/2)
					.back()
	// external part of the hilt
	this._objHiltOut= tQuery.createTorus(0.38-0.05, 0.05, 6*8, 8*8).addTo(this._objHilt)
				.rotateY(Math.PI/2)
				.geometry()
					.scaleBy(1, 1, 20)
					.back()

	// generate the texture
	var canvas	= this._generateLaserCanvas();
{'fraction_non_alphanumeric': 0.3512773722627737, 'fraction_numerical': 0.030109489051094892, 'mean_word_length': 1.5062857142857142, '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': '1773804', 'n_tokens_mistral': 785, 'n_tokens_neox': 666, 'n_words': 112}