<commit_before>package ameba.lib;

import com.google.common.collect.Maps;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * <p>Abstract LoggerOwner class.</p>
 *
 * @author icode
 * @since 0.1.6e
 *
 */
public abstract class LoggerOwner {
    private static final Map<Class, Logger> LOGGER_MAP = Maps.newConcurrentMap();

    /**
     * <p>logger.</p>
     *
     * @return a {@link org.slf4j.Logger} object.
     */
    protected Logger logger() {
        Class thisClass = this.getClass();
        Logger logger = LOGGER_MAP.computeIfAbsent(thisClass, k -> LoggerFactory.getLogger(thisClass));
        return logger;
    }
}<commit_msg>logger<commit_after>package ameba.lib;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>Abstract LoggerOwner class.</p>
 *
 * @author icode
 * @since 0.1.6e
 */
public abstract class LoggerOwner {
    /**
     * <p>logger.</p>
     *
     * @return a {@link org.slf4j.Logger} object.
     */
    protected Logger logger() {
        return LoggerFactory.getLogger(this.getClass());
    }
}
{'fraction_non_alphanumeric': 0.1429889298892989, 'fraction_numerical': 0.01107011070110701, 'mean_word_length': 2.9454545454545453, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, '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': '3003949', 'n_tokens_mistral': 371, 'n_tokens_neox': 367, 'n_words': 75}