<commit_before>(function () {
	var ns = $.namespace("pskl.controller");
	ns.AnimatedPreviewController = function (framesheet, container, dpi) {
		this.framesheet = framesheet;
		this.container = container;

		this.elapsedTime = 0;
		this.currentIndex = 0;

		this.fps = parseInt($("#preview-fps")[0].value, 10);
		this.deltaTime = 0;
		this.previousTime = 0;
		var renderingOptions = {
			"dpi": dpi
		};
		this.renderer = new pskl.rendering.FrameRenderer(this.container, renderingOptions);
	};

	ns.AnimatedPreviewController.prototype.init = function () {
		$("#preview-fps")[0].addEventListener('change', this.onFPSSliderChange.bind(this));
	};

    ns.AnimatedPreviewController.prototype.onFPSSliderChange = function(evt) {
		this.fps = parseInt($("#preview-fps")[0].value, 10);
	};

   	ns.AnimatedPreviewController.prototype.render = function (delta) {
   		this.elapsedTime += delta;
   		var index = Math.floor(this.elapsedTime / (1000/this.fps));
   		if (index != this.currentIndex) {
   			this.currentIndex = index;
   			if (!this.framesheet.hasFrameAtIndex(this.currentIndex)) {
	   			this.currentIndex = 0;
	   			this.elapsedTime = 0;<commit_msg>Removed 2 useless instance variables in AnimatedPreviewController<commit_after>(function () {
	var ns = $.namespace("pskl.controller");
	ns.AnimatedPreviewController = function (framesheet, container, dpi) {
		this.framesheet = framesheet;
		this.container = container;

		this.elapsedTime = 0;
		this.currentIndex = 0;

		this.fps = parseInt($("#preview-fps")[0].value, 10);
		
		var renderingOptions = {
			"dpi": dpi
		};
		this.renderer = new pskl.rendering.FrameRenderer(this.container, renderingOptions);
	};

	ns.AnimatedPreviewController.prototype.init = function () {
		$("#preview-fps")[0].addEventListener('change', this.onFPSSliderChange.bind(this));
	};

    ns.AnimatedPreviewController.prototype.onFPSSliderChange = function(evt) {
		this.fps = parseInt($("#preview-fps")[0].value, 10);
	};

   	ns.AnimatedPreviewController.prototype.render = function (delta) {
   		this.elapsedTime += delta;
   		var index = Math.floor(this.elapsedTime / (1000/this.fps));
   		if (index != this.currentIndex) {
   			this.currentIndex = index;
   			if (!this.framesheet.hasFrameAtIndex(this.currentIndex)) {
	   			this.currentIndex = 0;
	   			this.elapsedTime = 0;
{'fraction_non_alphanumeric': 0.14751286449399656, 'fraction_numerical': 0.014150943396226415, 'mean_word_length': 4.138766519823789, 'pattern_counts': {'":': 2, '<': 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': '6529129', 'n_tokens_mistral': 843, 'n_tokens_neox': 773, 'n_words': 123}