<commit_before>package tools;

import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import java.util.logging.StreamHandler;

public class LogUtil {

	public static Logger logger = Logger.getLogger("Tests benoit");

	public static void init() {
		logger.setLevel(Level.ALL);
		logger.setUseParentHandlers(false);
		Handler ch = new MyHandler(System.out, new MyFormatter());
		logger.addHandler(ch);
	}

	static class MyHandler extends StreamHandler {

		public MyHandler(PrintStream out, MyFormatter formatter) {
			super(out, formatter);
		}

		@Override
		public void publish(LogRecord record) {
			super.publish(record);
			flush();
		}

	}
<commit_msg>easier handling of info<commit_after>package tools;

import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import java.util.logging.StreamHandler;

public class LogUtil {
	
	public static Logger logger = Logger.getLogger("Tests benoit");

	{
		logger.setLevel(Level.ALL);
		logger.setUseParentHandlers(false);
		Handler ch = new MyHandler(System.out, new MyFormatter());
		logger.addHandler(ch);
	}
	
	public static void info(String msg) {
		logger.info(msg);
	}

	static class MyHandler extends StreamHandler {

		public MyHandler(PrintStream out, MyFormatter formatter) {
			super(out, formatter);
		}

		@Override
		public void publish(LogRecord record) {
			super.publish(record);
			flush();
		}

	}

{'fraction_non_alphanumeric': 0.10865874363327674, 'fraction_numerical': 0.0, 'mean_word_length': 4.854304635761589, 'pattern_counts': {'":': 0, '<': 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': '5079956', 'n_tokens_mistral': 583, 'n_tokens_neox': 533, 'n_words': 127}