<commit_before>define(['goo/statemachine/actions/Action'],
/** @lends */
function(
	Action
	) {
	"use strict";

	function SetAnimationAction(/*id, settings*/) {
		Action.apply(this, arguments);
		this.everyFrame = false;
	}

	SetAnimationAction.prototype = Object.create(Action.prototype);
	SetAnimationAction.prototype.constructor = SetAnimationAction;

	SetAnimationAction.external = {
		parameters: [{
			name:'Animation',
			key:'animation',
			type:'string'
		}, {
			name:'On every frame',
			key:'everyFrame',
			type:'boolean'
		}],
		transitions:[]
	};

	SetAnimationAction.prototype._run = function(fsm) {
		var entity = fsm.getOwnerEntity();
		if (typeof this.animation === 'string' && entity.animationComponent) {
			entity.animationComponent.transitionTo(this.animation);
		}
	};

	return SetAnimationAction;
});<commit_msg>Update to setanimationaction<commit_after>define(['goo/statemachine/actions/Action'],
/** @lends */
function(
	Action
	) {
	"use strict";

	function SetAnimationAction(/*id, settings*/) {
		Action.apply(this, arguments);
		this.everyFrame = false;
	}

	SetAnimationAction.prototype = Object.create(Action.prototype);
	SetAnimationAction.prototype.constructor = SetAnimationAction;

	SetAnimationAction.external = {
		parameters: [{
			name:'Animation',
			key:'animation',
			type:'animstate'
		}, {
			name:'On every frame',
			key:'everyFrame',
			type:'boolean'
		}],
		transitions:[]
	};

	SetAnimationAction.prototype._run = function(fsm) {
		var entity = fsm.getOwnerEntity();
		if (typeof this.animation === 'string' && entity.animationComponent) {
			entity.animationComponent.transitionTo(this.animation);
		}
	};

	return SetAnimationAction;
});
{'fraction_non_alphanumeric': 0.15011820330969267, 'fraction_numerical': 0.0, 'mean_word_length': 4.81786941580756, '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': '6074698', 'n_tokens_mistral': 572, 'n_tokens_neox': 515, 'n_words': 84}