<commit_before>package nallar.insecurity;

import java.security.Permission;
import java.util.logging.Handler;

import cpw.mods.fml.common.FMLLog;
import nallar.tickthreading.Log;
import net.minecraft.server.MinecraftServer;

public class InsecurityManager extends java.lang.SecurityManager {
	static {
		System.setSecurityManager(new InsecurityManager());
	}

	@SuppressWarnings ("EmptyMethod")
	public static void init() {
	}

	@Override
	public void checkPermission(Permission perm) {
	}

	@Override
	public void checkPermission(Permission perm, Object context) {
	}

	@Override
	public void checkExit(int status) {
		super.checkExit(status);
		if (MinecraftServer.getServer().isServerRunning()) {
			Log.info("Server shutting down - requested at ", new ThisIsNotAnError());
		}
		for (Handler handler : FMLLog.getLogger().getHandlers()) {
			handler.flush();
		}
		for (Handler handler : Log.LOGGER.getHandlers()) {<commit_msg>Only log ThisIsNotAnError shutdown stack trace when running in debug mode<commit_after>package nallar.insecurity;

import java.security.Permission;
import java.util.logging.Handler;

import cpw.mods.fml.common.FMLLog;
import nallar.tickthreading.Log;
import net.minecraft.server.MinecraftServer;

public class InsecurityManager extends java.lang.SecurityManager {
	static {
		System.setSecurityManager(new InsecurityManager());
	}

	@SuppressWarnings ("EmptyMethod")
	public static void init() {
	}

	@Override
	public void checkPermission(Permission perm) {
	}

	@Override
	public void checkPermission(Permission perm, Object context) {
	}

	@Override
	public void checkExit(int status) {
		super.checkExit(status);
		if (Log.debug && MinecraftServer.getServer().isServerRunning()) {
			Log.debug("Server shutting down - requested at ", new ThisIsNotAnError());
		}
		for (Handler handler : FMLLog.getLogger().getHandlers()) {
			handler.flush();
		}
		for (Handler handler : Log.LOGGER.getHandlers()) {
{'fraction_non_alphanumeric': 0.11116856256463288, 'fraction_numerical': 0.0, 'mean_word_length': 5.241935483870968, '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': '671082', 'n_tokens_mistral': 613, 'n_tokens_neox': 587, 'n_words': 135}