<commit_before>package org.genericsystem.common;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.genericsystem.defaults.DefaultGeneric;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author <NAME>
 *
 */
public class Statics {

	private static Logger log = LoggerFactory.getLogger(Statics.class);

	private static ThreadLocal<Long> threadDebugged = new ThreadLocal<>();

	public final static String ENGINE_VALUE = "Engine";

	public static final long MILLI_TO_NANOSECONDS = 1000000L;

	public static final int ATTEMPT_SLEEP = 15;
	public static final int ATTEMPTS = 50;
	public static final int HTTP_ATTEMPTS = 1;

	public static final long CONCURRENCY_CONTROL_EXCEPTION = -1;
	public static final long OTHER_EXCEPTION = -2;
	public static final long ROLLBACK_EXCEPTION = -1;

	public static final long GARBAGE_PERIOD = 1000L;
	public static final long GARBAGE_INITIAL_DELAY = 1000L;
	public static final long LIFE_TIMEOUT = 1386174608777L;// 30 minutes
	public final static String DEFAULT_HOST = "127.0.0.1";
	public final static int DEFAULT_PORT = 8082;

	public final static Vertex[] EMPTY = new Vertex[] {};

	public static final long SERVER_TIMEOUT = 1000;
	public static final TimeUnit SERVER_TIMEOUT_UNIT = TimeUnit.MILLISECONDS;


	public static void debugCurrentThread() {
		threadDebugged.set(System.currentTimeMillis());
	}

	public static void stopDebugCurrentThread() {
		threadDebugged.remove();
	}

	public static boolean isCurrentThreadDebugged() {
		return threadDebugged.get() != null;
	}

	public static void logTimeIfCurrentThreadDebugged(String message) {
		if (isCurrentThreadDebugged())
			log.info(message + " : " + (System.currentTimeMillis() - threadDebugged.get()));
	}

	public static class Supers<T extends DefaultGeneric<T>> extends ArrayList<T> {
		private static final long serialVersionUID = 6163099887384346235L;
<commit_msg>change port number from 8082 to 8080. Change localhost to 0.0.0.0<commit_after>package org.genericsystem.common;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.genericsystem.defaults.DefaultGeneric;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author <NAME>
 *
 */
public class Statics {

	private static Logger log = LoggerFactory.getLogger(Statics.class);

	private static ThreadLocal<Long> threadDebugged = new ThreadLocal<>();

	public final static String ENGINE_VALUE = "Engine";

	public static final long MILLI_TO_NANOSECONDS = 1000000L;

	public static final int ATTEMPT_SLEEP = 15;
	public static final int ATTEMPTS = 50;
	public static final int HTTP_ATTEMPTS = 1;

	public static final long CONCURRENCY_CONTROL_EXCEPTION = -1;
	public static final long OTHER_EXCEPTION = -2;
	public static final long ROLLBACK_EXCEPTION = -1;

	public static final long GARBAGE_PERIOD = 1000L;
	public static final long GARBAGE_INITIAL_DELAY = 1000L;
	public static final long LIFE_TIMEOUT = 1386174608777L;// 30 minutes
	public final static String DEFAULT_HOST = "0.0.0.0";
	public final static int DEFAULT_PORT = 8080;

	public final static Vertex[] EMPTY = new Vertex[] {};

	public static final long SERVER_TIMEOUT = 1000;
	public static final TimeUnit SERVER_TIMEOUT_UNIT = TimeUnit.MILLISECONDS;

	public static void debugCurrentThread() {
		threadDebugged.set(System.currentTimeMillis());
	}

	public static void stopDebugCurrentThread() {
		threadDebugged.remove();
	}

	public static boolean isCurrentThreadDebugged() {
		return threadDebugged.get() != null;
	}

	public static void logTimeIfCurrentThreadDebugged(String message) {
		if (isCurrentThreadDebugged())
			log.info(message + " : " + (System.currentTimeMillis() - threadDebugged.get()));
	}

	public static class Supers<T extends DefaultGeneric<T>> extends ArrayList<T> {
		private static final long serialVersionUID = 6163099887384346235L;

{'fraction_non_alphanumeric': 0.08621124275270986, 'fraction_numerical': 0.03932442651877993, 'mean_word_length': 5.2, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '3018205', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1205, 'n_words': 354}