<commit_before>package com.cookingfox.logging.adapter;

import com.cookingfox.logging.Level;
import com.cookingfox.logging.api.Entry;
import com.cookingfox.logging.api.LoggerAdapter;

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

/**
 * Log adapter implementation using System.out.println.
 */
public class SystemOutLoggerAdapter implements LoggerAdapter {

    //----------------------------------------------------------------------------------------------
    // PRIVATE PROPERTIES
    //----------------------------------------------------------------------------------------------

    /**
     * Date format to use for log message.
     */
    private final SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd HH:mm:ss.SSS");

    //----------------------------------------------------------------------------------------------
    // PUBLIC METHODS
    //----------------------------------------------------------------------------------------------

    @Override
    public void debug(Entry entry) {
        log(Level.DEBUG, entry);
    }

    @Override
    public void error(Entry entry) {
        log(Level.ERROR, entry);
    }

    @Override
    public void info(Entry entry) {
        log(Level.INFO, entry);
    }

    @Override
    public void verbose(Entry entry) {
        log(Level.VERBOSE, entry);
    }

    @Override
    public void warn(Entry entry) {
        log(Level.WARN, entry);
    }

    //----------------------------------------------------------------------------------------------
    // PRIVATE METHODS
    //----------------------------------------------------------------------------------------------

    /**
     * Output log message using System.out.println.
     *
     * @param level The logging level.
     * @param entry The log entry.
     */
    private void log(Level level, Entry entry) {
        // use first character of level name
        String levelId = level.toString().substring(0, 1);

        System.out.println(dateFormat.format(new Date()) + " " +
                levelId + "/" + entry.getCaller() +
                "(" + Thread.currentThread().getId() + ") : " + entry.getMessage());
    }

}<commit_msg>Removes Thread id from SystemOutLoggerAdapter<commit_after>package com.cookingfox.logging.adapter;

import com.cookingfox.logging.Level;
import com.cookingfox.logging.api.Entry;
import com.cookingfox.logging.api.LoggerAdapter;

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

/**
 * Log adapter implementation using System.out.println.
 */
public class SystemOutLoggerAdapter implements LoggerAdapter {

    //----------------------------------------------------------------------------------------------
    // PRIVATE PROPERTIES
    //----------------------------------------------------------------------------------------------

    /**
     * Date format to use for log message.
     */
    private final SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd HH:mm:ss.SSS");

    //----------------------------------------------------------------------------------------------
    // PUBLIC METHODS
    //----------------------------------------------------------------------------------------------

    @Override
    public void debug(Entry entry) {
        log(Level.DEBUG, entry);
    }

    @Override
    public void error(Entry entry) {
        log(Level.ERROR, entry);
    }

    @Override
    public void info(Entry entry) {
        log(Level.INFO, entry);
    }

    @Override
    public void verbose(Entry entry) {
        log(Level.VERBOSE, entry);
    }

    @Override
    public void warn(Entry entry) {
        log(Level.WARN, entry);
    }

    //----------------------------------------------------------------------------------------------
    // PRIVATE METHODS
    //----------------------------------------------------------------------------------------------

    /**
     * Output log message using System.out.println.
     *
     * @param level The logging level.
     * @param entry The log entry.
     */
    private void log(Level level, Entry entry) {
        // use first character of level name
        String levelId = level.toString().substring(0, 1);

        System.out.println(dateFormat.format(new Date()) + " " + levelId + "/" +
                entry.getCaller() + " : " + entry.getMessage());
    }

}
{'fraction_non_alphanumeric': 0.3477660064486412, 'fraction_numerical': 0.0009212344541685859, 'mean_word_length': 1.0573188062529606, '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': '5833419', 'n_tokens_mistral': 995, 'n_tokens_neox': 945, 'n_words': 231}