<commit_before>package com.xoba.mra;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class LogFactory {

	public synchronized static ILogFactory getDefault() {

		if (SINGLETON == null) {
			SINGLETON = new DefaultLogFactory();
		}

		return SINGLETON;

	}

	private static ILogFactory SINGLETON;

	static final class MyLogger implements ILogger {

		private final DateFormat df = new SimpleDateFormat("HH:mm:ss.SSS'Z'");
		private final String name;

		public MyLogger(String name) {
			this.name = name;
			df.setTimeZone(TimeZone.getTimeZone("GMT"));
		}

		public void debugf(String fmt, Object... args) {
			core("DEBUG", fmt, null, args);
		}

		public synchronized void core(String type, String fmt, Throwable t, Object... args) {
			System.out.printf("%5s %s %s: ", type, df.format(new Date()), name);
			if (args == null) {
				System.out.print(fmt);
			} else {
				System.out.printf(fmt, args);
			}
			System.out.println();
			if (t != null) {
				t.printStackTrace(System.out);
			}
		}

		public void warn(String fmt, Throwable t, Object... args) {
			core("WARN", fmt, t, args);

		}

		public void warnf(String fmt, Object... args) {
			core("WARN", fmt, null, args);
		}
	}

}<commit_msg>show whole date-time in each log message<commit_after>package com.xoba.mra;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class LogFactory {

    public synchronized static ILogFactory getDefault() {

        if (SINGLETON == null) {
            SINGLETON = new DefaultLogFactory();
        }

        return SINGLETON;

    }

    private static ILogFactory SINGLETON;

    static final class MyLogger implements ILogger {

        private final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
        private final String name;

        public MyLogger(String name) {
            this.name = name;
            df.setTimeZone(TimeZone.getTimeZone("GMT"));
        }

        public void debugf(String fmt, Object... args) {
            core("DEBUG", fmt, null, args);
        }

        public synchronized void core(String type, String fmt, Throwable t, Object... args) {
            System.out.printf("%5s %s %s: ", type, df.format(new Date()), name);
            if (args == null) {
                System.out.print(fmt);
            } else {
                System.out.printf(fmt, args);
            }
            System.out.println();
            if (t != null) {
                t.printStackTrace(System.out);
            }
        }

        public void warn(String fmt, Throwable t, Object... args) {
            core("WARN", fmt, t, args);

        }

        public void warnf(String fmt, Object... args) {
            core("WARN", fmt, null, args);
        }
    }

}
{'fraction_non_alphanumeric': 0.1270118964310707, 'fraction_numerical': 0.0006997900629811056, 'mean_word_length': 2.4280575539568345, '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': '4206566', 'n_tokens_mistral': 941, 'n_tokens_neox': 863, 'n_words': 234}