<commit_before>import { EventsConsts } from '../events/events-consts';

class Animator {

	static bounce(progress) {
		for (var a = 0, b = 1; 1; a += b, b /= 2) {
			if (progress >= (7 - 4 * a) / 11) {
				return -Math.pow((11 - 6 * a - 11 * progress) / 4, 2) + Math.pow(b, 2)
			}
		}
	}

	static quad(progress) {
		return Math.pow(progress, 2)
	}

	static linear(progress) {
		return progress
	}

	static animate(opts) {
		const start = new Date;

		var id = setInterval(function () {
			const timePassed = new Date - start;
			let progress = timePassed / opts.duration;

			if (progress > 1) progress = 1;<commit_msg>:art: Changed var -> const.<commit_after>import { EventsConsts } from '../events/events-consts';

class Animator {

	static bounce(progress) {
		for (var a = 0, b = 1; 1; a += b, b /= 2) {
			if (progress >= (7 - 4 * a) / 11) {
				return -Math.pow((11 - 6 * a - 11 * progress) / 4, 2) + Math.pow(b, 2)
			}
		}
	}

	static quad(progress) {
		return Math.pow(progress, 2)
	}

	static linear(progress) {
		return progress
	}

	static animate(opts) {
		const start = new Date;

		const id = setInterval(function () {
			const timePassed = new Date - start;
			let progress = timePassed / opts.duration;

			if (progress > 1) progress = 1;
{'fraction_non_alphanumeric': 0.1536624203821656, 'fraction_numerical': 0.030254777070063694, 'mean_word_length': 2.686217008797654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '772565', 'n_tokens_mistral': 537, 'n_tokens_neox': 449, 'n_words': 136}