<commit_before>package openmods;

import java.util.logging.Level;
import java.util.logging.Logger;

import cpw.mods.fml.common.FMLLog;

public final class Log {
	private Log() {}

	private static final Logger logger;

	static {
		logger = Logger.getLogger("OpenMods");
		logger.setParent(FMLLog.getLogger());
	}

	private static final Throwable stackInfo = new Throwable();

	private static String getLogLocation(Throwable t) {<commit_msg>Fix logger in stand-alone mode<commit_after>package openmods;

import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

import cpw.mods.fml.common.FMLLog;

public final class Log {
	private Log() {}

	private static final Logger logger;

	static {
		logger = Logger.getLogger("OpenMods");
		logger.setLevel(Level.ALL);

		Logger rootLogger = FMLLog.getLogger();
		if (rootLogger != null) {
			logger.setParent(rootLogger);
		} else {
			ConsoleHandler handler = new ConsoleHandler();
			handler.setLevel(Level.ALL);
			logger.addHandler(handler);
			logger.setUseParentHandlers(false);
		}
	}

	private static final Throwable stackInfo = new Throwable();

	private static String getLogLocation(Throwable t) {
{'fraction_non_alphanumeric': 0.10776942355889724, 'fraction_numerical': 0.0, 'mean_word_length': 4.84390243902439, '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': '1033396', 'n_tokens_mistral': 395, 'n_tokens_neox': 367, 'n_words': 91}