<commit_before>goog.provide("bricks3d.tween");

var Tween = {
		// t: current time, b: begInnIng value, c: change In value, d: duration
	easeInQuad : function(t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	
	linear : function(t, b, c, d) {
		return (t/d) * c + b;
	},
	
	easeOutQuad : function(t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	
	easeInOutQuad : function(t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	}
	
	
};<commit_msg>added tweens<commit_after>goog.provide("bricks3d.tween");

var Tween = {
		// t: current time, b: begInnIng value, c: change In value, d: duration
	easeInQuad : function(t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	
	linear : function(t, b, c, d) {
		return (t/d) * c + b;
	},
	
	easeOutQuad : function(t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	
	easeInOutQuad : function(t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	
	 sineInOut: function (t, b, c, d) {
         return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
     },

	
	quintInOut: function (t, b, c, d) {
        t /= d / 2;
        if (t < 1) {
            return c / 2 * t * t * t * t * t + b;
        }
        t -= 2;
        return c / 2 * (t * t * t * t * t + 2) + b;
    },
    circInOut: function (t, b, c, d) {
        t /= d / 2;
        if (t < 1) {
            return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
        }
        t -= 2;
        return c / 2 * (Math.sqrt(1 - t * t) + 1) + b;
    }
	
	
};
{'fraction_non_alphanumeric': 0.22156084656084657, 'fraction_numerical': 0.021825396825396824, 'mean_word_length': 1.771062271062271, 'pattern_counts': {'":': 0, '<': 7, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6218185', 'n_tokens_mistral': 764, 'n_tokens_neox': 704, 'n_words': 190}