<commit_before>/*
  This file is part of WOT Game.

    WOT Game is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    WOT Game is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with WOT Game.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @author		Biggerskimo
 * @copyright	2009 Lost Worlds
 */
function NTime(targetNode, date, tick, format) {
	this.node = targetNode;
	this.date = (typeof date == "undefined") ? new Date() : date;
	this.tick = (typeof tick == "undefined") ? 1 : tick;
	this.format = (typeof format == "undefined") ? "%c" : format;
	this.interval = null;
	
	this.init = function() {
		if(this.tick != 0) {
			var instance = this;
			
			this.interval = window.setInterval(function() { instance.doTick(); }, 1000);
		}
		
		this.print();
	}
		
	this.doTick = function() {
		this.date.setSeconds(this.date.getSeconds() + this.tick);
		
		if(this.date.getSeconds() <= 0) {
			this.date.setSeconds(0);
			window.clearInterval(this.interval);
			targetNode.data = "---";
		}
		else {
			this.print();
		}
	}
	
	this.print = function() {<commit_msg>--- bei der neuen JS-Zeit wird jetzt korrekt angezeigt<commit_after>/*
  This file is part of WOT Game.

    WOT Game is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    WOT Game is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with WOT Game.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @author		Biggerskimo
 * @copyright	2009 - 2010 Lost Worlds
 */
function NTime(targetNode, date, tick, format) {
	this.node = targetNode;
	this.date = (typeof date == "undefined") ? new Date() : date;
	this.tick = (typeof tick == "undefined") ? 1 : tick;
	this.format = (typeof format == "undefined") ? "%c" : format;
	this.interval = null;
	
	this.init = function() {
		if(this.tick != 0) {
			var instance = this;
			
			this.interval = window.setInterval(function() { instance.doTick(); }, 1000);
		}
		
		this.print();
	}
		
	this.doTick = function() {
		this.date.setSeconds(this.date.getSeconds() + this.tick);
		
		if(this.date.getTime() <= 0) {
			this.date.setSeconds(0);
			window.clearInterval(this.interval);
			targetNode.data = "---";
		}
		else {
			this.print();
		}
	}
	
	this.print = function() {
{'fraction_non_alphanumeric': 0.11650175550590489, 'fraction_numerical': 0.009575486753909991, 'mean_word_length': 3.156498673740053, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5179501', 'n_tokens_mistral': 1040, 'n_tokens_neox': 938, 'n_words': 347}