<commit_before>package scrum.client;

import ilarkesto.gwt.client.GwtLogger;

import com.google.gwt.user.client.Timer;

public class PingTimer extends Timer {

	public static final int MIN_DELAY = 1000;
	public static final int MAX_DELAY = 15000;

	public PingTimer() {
		scheduleRepeating(MAX_DELAY);
	}

	@Override
	public void run() {
		ScrumGwtApplication.get().callPing();
		schedule();
	}

	public void schedule() {
		long idle = System.currentTimeMillis() - ScrumGwtApplication.get().getLastDataReceiveTime();
		idle = (int) (idle * 0.2);
		if (idle < MIN_DELAY) idle = MIN_DELAY;
		if (idle > MAX_DELAY) idle = MAX_DELAY;
		GwtLogger.DEBUG("new:", idle);
	}

}<commit_msg>no debug output on ping<commit_after>package scrum.client;

import com.google.gwt.user.client.Timer;

public class PingTimer extends Timer {

	public static final int MIN_DELAY = 1000;
	public static final int MAX_DELAY = 15000;

	public PingTimer() {
		scheduleRepeating(MAX_DELAY);
	}

	@Override
	public void run() {
		ScrumGwtApplication.get().callPing();
		schedule();
	}

	public void schedule() {
		long idle = System.currentTimeMillis() - ScrumGwtApplication.get().getLastDataReceiveTime();
		idle = (int) (idle * 0.2);
		if (idle < MIN_DELAY) idle = MIN_DELAY;
		if (idle > MAX_DELAY) idle = MAX_DELAY;
		scheduleRepeating((int) idle);
	}

}
{'fraction_non_alphanumeric': 0.12255639097744361, 'fraction_numerical': 0.016541353383458645, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7379675', 'n_tokens_mistral': 513, 'n_tokens_neox': 474, 'n_words': 112}