<commit_before>package com.creative.service;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import com.creative.OrderLinkedList;
import com.creative.context.Context;
import com.creative.server.ClientHandler;
import com.creative.server.TCPServer;

import redis.clients.jedis.Jedis;

public class TimerCommandWDT extends Thread{
	private OrderLinkedList<TimerCommand> queue;
	public TimerCommandWDT(OrderLinkedList<TimerCommand> queue){
		this.queue = queue;
		logger.setLevel(Level.INFO);
	}
	final static Logger logger = Logger.getLogger(TimerCommandWDT.class);
	@Override
	public void run(){
		while(true){
			try {
				Thread.sleep(500);
				if(queue.getHead() == null) continue;
				TimerCommand.updateCurrent(); //Always call before working with TimeCommand<commit_msg>debugging TimerCommandWDT<commit_after>package com.creative.service;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import com.creative.OrderLinkedList;
import com.creative.context.Context;
import com.creative.server.ClientHandler;
import com.creative.server.TCPServer;

import redis.clients.jedis.Jedis;

public class TimerCommandWDT extends Thread{
	private OrderLinkedList<TimerCommand> queue;
	public TimerCommandWDT(OrderLinkedList<TimerCommand> queue){
		this.queue = queue;
		logger.setLevel(Level.DEBUG);
	}
	final static Logger logger = Logger.getLogger(TimerCommandWDT.class);
	@Override
	public void run(){
		while(true){
			try {
				Thread.sleep(500);
				if(queue.getHead() == null) continue;
				TimerCommand.updateCurrent(); //Always call before working with TimeCommand
{'fraction_non_alphanumeric': 0.10407523510971786, 'fraction_numerical': 0.006269592476489028, 'mean_word_length': 5.65, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '829190', 'n_tokens_mistral': 531, 'n_tokens_neox': 495, 'n_words': 104}