<commit_before>/**
*
*
* Shows: special features for models
* Requires:
**/

modelSpecialFeatures = {}
modelSpecialFeatures.inlinespace = 'inlinespace__'

modelSpecialFeatures.onLoaded = function () {
	console.log("x3d loaded");
	var skin_shape = $('x3d Shape#'+modelSpecialFeatures.inlinespace+'headskin_2');
	if(skin_shape.length) {
			$('#viewer_object').prepend(
				$('<div/>').css('width','100px').css('margin','0 auto').slider({
					min: 0,
					max: 100,
					value: 100,
					slide: function (event,ui) { 
						if(ui.value == 100) {
							modelHighlighter.setMaterial(skin_shape, $(''));
						} else {
							modelHighlighter.setMaterial(skin_shape, $('<Material/>').attr('transparency', (100-ui.value)/100));
						}
					}
				})
			);
	}
};

modelViewer.addEventListener('load', modelSpecialFeatures.onLoaded);

$(document).ready( function () {
});
<commit_msg>fix fading component of half head<commit_after>/**
*
*
* Shows: special features for models
* Requires:
**/

modelSpecialFeatures = {}
modelSpecialFeatures.inlinespace = 'inlinespace__'

modelSpecialFeatures.onLoaded = function () {
	console.log("x3d loaded");
	var skin_shape = $('x3d Shape#'+modelSpecialFeatures.inlinespace+'headskin_1');
	if(skin_shape.length) {
			$('#viewer_object').prepend(
				$('<div/>').css('width','100px').css('margin','0 auto').slider({
					min: 0,
					max: 100,
					value: 100,
					slide: function (event,ui) { 
						if(ui.value == 100) {
							modelHighlighter.setMaterial(skin_shape, $(''));
						} else {
							modelHighlighter.setMaterial(skin_shape, $('<Material/>').attr('transparency', (100-ui.value)/100));
						}
					}
				})
			);
	}
};

modelViewer.addEventListener('load', modelSpecialFeatures.onLoaded);

$(document).ready( function () {
});

{'fraction_non_alphanumeric': 0.1871476888387824, 'fraction_numerical': 0.02593010146561443, 'mean_word_length': 4.042613636363637, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5503953', 'n_tokens_mistral': 735, 'n_tokens_neox': 587, 'n_words': 89}