<commit_before>/**
 * @author <NAME> / http://gomo.se/
 */

THREE.AnimationHandler = ( function () {

	var playing = [];
	var library = {};
	var that    = {};

	that.update = function ( deltaTimeMS ) {

		for ( var i = 0; i < playing.length; i ++ ) {

			playing[ i ].update( deltaTimeMS );

		}

	};

	that.addToUpdate = function ( animation ) {

		if ( playing.indexOf( animation ) === -1 ) {

			playing.push( animation );

		}

	};

	that.removeFromUpdate = function ( animation ) {

		var index = playing.indexOf( animation );

		if ( index !== -1 ) {

			playing.splice( index, 1 );

		}

	};

	that.add = function ( data ) {

		if ( library[ data.name ] !== undefined ) {

			console.log( "THREE.AnimationHandler.add: Warning! " + data.name + " already exists in library. Overwriting." );

		}

		library[ data.name ] = data;
		initData( data );

	};

	that.remove = function ( name ) {

		if ( library[ name ] === undefined ) {

			console.log( "THREE.AnimationHandler.add: Warning! " + name + " doesn't exists in library. Doing nothing." );

		}
			
		library[ name ] = undefined;

	};

	that.get = function ( name ) {

		if ( typeof name === "string" ) {

			if ( library[ name ] ) {

				return library[ name ];

			} else {

				console.log( "THREE.AnimationHandler.get: Couldn't find animation " + name );<commit_msg>AnimationHandler: Removed unneeded warning. Fixes #3494.<commit_after>/**
 * @author <NAME> / http://gomo.se/
 */

THREE.AnimationHandler = ( function () {

	var playing = [];
	var library = {};
	var that    = {};

	that.update = function ( deltaTimeMS ) {

		for ( var i = 0; i < playing.length; i ++ ) {

			playing[ i ].update( deltaTimeMS );

		}

	};

	that.addToUpdate = function ( animation ) {

		if ( playing.indexOf( animation ) === -1 ) {

			playing.push( animation );

		}

	};

	that.removeFromUpdate = function ( animation ) {

		var index = playing.indexOf( animation );

		if ( index !== -1 ) {

			playing.splice( index, 1 );

		}

	};

	that.add = function ( data ) {

		if ( library[ data.name ] !== undefined ) {

			console.log( "THREE.AnimationHandler.add: Warning! " + data.name + " already exists in library. Overwriting." );

		}

		library[ data.name ] = data;
		initData( data );

	};

	that.remove = function ( name ) {

		if ( library[ name ] === undefined ) {

			console.log( "THREE.AnimationHandler.add: Warning! " + name + " doesn't exists in library. Doing nothing." );

		}
			
		library[ name ] = undefined;

	};

	that.get = function ( name ) {

		if ( typeof name === "string" ) {

			if ( library[ name ] ) {

				return library[ name ];

			} else {

{'fraction_non_alphanumeric': 0.16520412056466996, 'fraction_numerical': 0.004578405188859214, 'mean_word_length': 2.591780821917808, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '7646789', 'n_tokens_mistral': 999, 'n_tokens_neox': 836, 'n_words': 217}