<commit_before>/*
 * Copyright (c) 2016. InvidIT.de
 */

package de.invidit.design.creational.singleton;

/**
 * @author <NAME>
 * @since 24.02.2016
 */
public class Logger {

    private static Logger instance;

    private Logger() {
    }

    public static Logger getLogger() {
        if (instance == null) {
            instance = new Logger();
        }
        return instance;
    }

    public void Log(Object textToLog) {
        System.out.println(textToLog);
    }
}<commit_msg>Synchronized getInstance for multi thread support<commit_after>/*
 * Copyright (c) 2016. InvidIT.de
 */

package de.invidit.design.creational.singleton;

/**
 * @author <NAME>
 * @since 24.02.2016
 */
public class Logger {

    private static Logger instance;

    private Logger() {
    }

    public synchronized static Logger getLogger() {
        if (instance == null) {
            instance = new Logger();
        }
        return instance;
    }

    public void Log(Object textToLog) {
        System.out.println(textToLog);
    }
}
{'fraction_non_alphanumeric': 0.11833171677982542, 'fraction_numerical': 0.023278370514064017, 'mean_word_length': 2.3398058252427183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4629171', 'n_tokens_mistral': 334, 'n_tokens_neox': 304, 'n_words': 80}