<commit_before>exports = Class(function() {
	this.init = function(params) {
		this._start = 'start' in params ? params.start : 0;
		this._end = 'end' in params ? params.end : 1;
		this._transition = params.transition || null;
		this._easing = params.easing || false;
		this._subject = params.subject;
		this._duration = params.duration || 1000;
		this._s = params.current || this._start;
		this._onFinish = params.onFinish || null;

		this._range = this._end - this._start;
		this._isAnimating = false;
		this._animate = bind(this, 'animate');
		this._timer = null;
	}<commit_msg>add some convenience functions to the DOM animation class<commit_after>exports = Class(function() {
	this.init = function(params) {
		this._start = 'start' in params ? params.start : 0;
		this._end = 'end' in params ? params.end : 1;
		this._transition = params.transition || null;
		this._easing = params.easing || false;
		this._subject = params.subject;
		this._duration = params.duration || 1000;
		this._s = params.current || this._start;
		this._onFinish = params.onFinish || null;

		this._range = this._end - this._start;
		this._isAnimating = false;
		this._animate = bind(this, 'animate');
		this._timer = null;
	}
	
	this.stop = function() { this.jumpTo(this._s); }
	this.play = function() { this.seekTo(this._end); }
{'fraction_non_alphanumeric': 0.14678899082568808, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 3.7948717948717947, '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': '2730222', 'n_tokens_mistral': 468, 'n_tokens_neox': 417, 'n_words': 100}