<commit_before>var webAnimVisUpdateAnims = undefined;

var Timing = Class.create({
	initialize: function(timingDict) {
		this.startDelay = timingDict.startDelay || 0;
		this.duration = timingDict.duration;
		this.iterationCount = timingDict.iterationCount || 1.0;
		this.iterationStart = timingDict.iterationStart || 0.0;
		this.playbackRate = timingDict.playbackRate || 1;
		this.direction = timingDict.direction || "normal";
		if (typeof timingDict.timingFunc === "string") {
			// TODO: Write createFromString
			throw "createFromString not implemented";
			this.timingFunc = TimingFunc.createFromString(timingDict.timingFunc);
		} else {
			this.timingFunc = timingDict.timingFunc;
		}
		this.fill = timingDict.fill || "none";
	},
	clone: function() {
		return new Timing(
			{ startDelay: this.startDelay,
				duration: this.duration,
				iterationCount: this.iterationCount,
				iterationStart: this.iterationStart,
				playbackRate: this.playbackRate,
				direction: this.direction,
				timingFunc: this.timingFunc.clone(),
				fill: this.fill
			});
	}
})

function ImmutableTimingProxy(timing) {
	return new TimingProxy(timing, function(v) { throw "can't modify timing properties of templated Animation Instances"});
}

var TimingProxy = Class.create({
	initialize: function(timing, setter) {
		this.timing = timing;
		["startDelay", "duration", "iterationCount", "iterationStart", "playbackRate", "direction", "timingFunc", "fill"].forEach(function(s) {
			this.__defineGetter__(s, function() { return timing[s]; });
			this.__defineSetter__(s, function(v) { var old = timing[s]; timing[s] = v; try { setter(v); } catch (e) { timing[s] = old; throw e;}});			
		}.bind(this));
	},<commit_msg>Making fill default to forwards for now<commit_after>var webAnimVisUpdateAnims = undefined;

var Timing = Class.create({
	initialize: function(timingDict) {
		this.startDelay = timingDict.startDelay || 0;
		this.duration = timingDict.duration;
		this.iterationCount = timingDict.iterationCount || 1.0;
		this.iterationStart = timingDict.iterationStart || 0.0;
		this.playbackRate = timingDict.playbackRate || 1;
		this.direction = timingDict.direction || "normal";
		if (typeof timingDict.timingFunc === "string") {
			// TODO: Write createFromString
			throw "createFromString not implemented";
			this.timingFunc = TimingFunc.createFromString(timingDict.timingFunc);
		} else {
			this.timingFunc = timingDict.timingFunc;
		}
		this.fill = timingDict.fill || "forwards";
	},
	clone: function() {
		return new Timing(
			{ startDelay: this.startDelay,
				duration: this.duration,
				iterationCount: this.iterationCount,
				iterationStart: this.iterationStart,
				playbackRate: this.playbackRate,
				direction: this.direction,
				timingFunc: this.timingFunc.clone(),
				fill: this.fill
			});
	}
})

function ImmutableTimingProxy(timing) {
	return new TimingProxy(timing, function(v) { throw "can't modify timing properties of templated Animation Instances"});
}

var TimingProxy = Class.create({
	initialize: function(timing, setter) {
		this.timing = timing;
		["startDelay", "duration", "iterationCount", "iterationStart", "playbackRate", "direction", "timingFunc", "fill"].forEach(function(s) {
			this.__defineGetter__(s, function() { return timing[s]; });
			this.__defineSetter__(s, function(v) { var old = timing[s]; timing[s] = v; try { setter(v); } catch (e) { timing[s] = old; throw e;}});			
		}.bind(this));
	},
{'fraction_non_alphanumeric': 0.13752913752913754, 'fraction_numerical': 0.0034965034965034965, 'mean_word_length': 4.750418760469012, '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': '6671508', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1087, 'n_words': 238}