<commit_before>define([], function() {
	"use strict";

	return function(duration, on_tick_func) {
		on_tick_func = on_tick_func || function() {};

		return {
			age: 0,

			tick: function(dt) {
				this.age += dt;
				on_tick_func(dt, this.progress());
			},

			is_alive: function() { return (this.age < duration || duration === 0); },
			progress: function() { return duration === 0 ? 0.0 : this.age / duration; }
		};
	};
});<commit_msg>change temporary effect to make better use of closures<commit_after>define([], function() {
	"use strict";

	return function(duration, on_tick_func) {
		on_tick_func = on_tick_func || function() {};

		var age = 0;
		var progress = function() { 
			return duration === 0 ? 0.0 : age / duration; 
		}

		return {
			tick: function(dt) {
				age += dt;
				on_tick_func(dt, progress());
			},
			is_alive: function() { return (age < duration || duration === 0); }
		};
	};
});
{'fraction_non_alphanumeric': 0.1739606126914661, 'fraction_numerical': 0.010940919037199124, 'mean_word_length': 3.3779904306220097, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4369668', 'n_tokens_mistral': 362, 'n_tokens_neox': 305, 'n_words': 78}