<commit_before>//START CODE
package net.minecraft.src;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

public class AutoReferee {
	public static final String CHANNEL = "autoref:referee";
	public static final String DELIMITER = "\\|";
	public static final char DELIMITER_SEND = '|';
	public static final String PLUGIN_CHANNEL_ENC = "UTF-8";
	
	public static final int MAX_NUMBER_OF_PLAYERS_ON_SCREEN = 4;

	public static final int AUTOREFEREE_ICON_NUMBER_IN_WIDTH = 4;
	public static final int AUTOREFEREE_ICON_NUMBER_IN_HEIGHT = 4;
	public static final int AUTOREFEREE_ICON_TEXTURE_SIZE = 4;
	public static final int AUTOREFEREE_WINNERS_ICON = 0;
	public static final int AUTOREFEREE_SKULL_ICON = 1;
	public static final int AUTOREFEREE_ARROW_ICON = 2;
	public static final int AUTOREFEREE_KILL_STREAK_ICON = 4;
	public static final int AUTOREFEREE_DOMINATION_ICON = 5;
	public static final int AUTOREFEREE_ICON_SIZE = 13;

	public static final int PLAYER_NAMETAG_HEARTS_X_OFFSET = -40;
	public static final int PLAYER_NAMETAG_HEARTS_Y_OFFSET = -12;
	public static final int PLAYER_NAMETAG_ARMOR_X_OFFSET = PLAYER_NAMETAG_HEARTS_X_OFFSET;
	public static final int PLAYER_NAMETAG_ARMOR_Y_OFFSET = -22;
	public static final int PLAYER_NAMETAG_WOOL_X_OFFSET = -20;
	public static final int PLAYER_NAMETAG_WOOL_Y_OFFSET = -42;
	
	public static final ResourceLocation GUI_ICONS = new ResourceLocation("textures/gui/icons.png");
	public static final ResourceLocation AUTOREFEREE_ICONS = new ResourceLocation("textures/AutoReferee.png");

	// public static final int LIST_DISPLAY_TICKS = 50;
	public static final int MESSAGE_DISPLAY_TICKS = 60;
	public static final int TEAM_LIST_CYCLE = 150;

	private static AutoReferee instance = new AutoReferee();
	private RenderItem renderItem;
	private Minecraft mc;
	private NetClientHandler netClientHandler;

	public HashMap<String, AutoRefereePlayer> players = new HashMap<String, AutoRefereePlayer>();
	public HashMap<String, AutoRefereeTeam> teams = new HashMap<String, AutoRefereeTeam>();

	public ArrayList<AutoRefereeMessage> messages = new ArrayList<AutoRefereeMessage>();
	public AutoRefereeMessage lastMessage = null;

	// match fields
	private int lastTick;
	public int tickInit = 0;
	public boolean startOfMatch = false; // is true for a short amount of time after the match|init message.
	public boolean gameRunning;
	public boolean countingDown;
	private Calendar countdownEnd;
	private Calendar matchStart;
	private String mapName;
	private AutoRefereeTeam winners;
	private int lastTickPlayerList;
	private int lastTickTeamList;
	private String gameType;
	public boolean nightVision;
	public boolean swapTeams;
	public boolean registeredChannel;
	private List<AutoRefereePlayer> closestPlayers;
	private int closestPlayersUpdateTick;
	private boolean ffa;

	public AutoReferee() {
		renderItem = new RenderItem();
		resetValues();
	}

	public void resetValues() {
		this.mapName = "";
		this.gameRunning = false;
		this.players.clear();
		this.teams.clear();
		this.countingDown = false;
		this.winners = null;
		this.lastTickPlayerList = 0;
		this.lastTickTeamList = 0;
		this.messages.clear();
		this.lastMessage = null;
		this.gameType = "RFW";
		this.nightVision = true;
		this.swapTeams = false;
		this.registeredChannel = false;
		this.closestPlayers = null;
		this.ffa = false;
		this.closestPlayersUpdateTick = 0;
	}

	public static AutoReferee get() {
		return instance;
	}

	public EntityPlayer getPlayer() {
		return (EntityPlayer) this.mc.thePlayer;
	}

	public void set(Minecraft mc, NetClientHandler netClientHandler) {
		this.mc = mc;
		this.netClientHandler = netClientHandler;<commit_msg>Set NightVision off by default.<commit_after>//START CODE
package net.minecraft.src;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import org.apache.commons.lang3.StringUtils;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

public class AutoReferee {
	public static final String CHANNEL = "autoref:referee";
	public static final String DELIMITER = "\\|";
	public static final char DELIMITER_SEND = '|';
	public static final String PLUGIN_CHANNEL_ENC = "UTF-8";
	
	public static final int MAX_NUMBER_OF_PLAYERS_ON_SCREEN = 4;

	public static final int AUTOREFEREE_ICON_NUMBER_IN_WIDTH = 4;
	public static final int AUTOREFEREE_ICON_NUMBER_IN_HEIGHT = 4;
	public static final int AUTOREFEREE_ICON_TEXTURE_SIZE = 4;
	public static final int AUTOREFEREE_WINNERS_ICON = 0;
	public static final int AUTOREFEREE_SKULL_ICON = 1;
	public static final int AUTOREFEREE_ARROW_ICON = 2;
	public static final int AUTOREFEREE_KILL_STREAK_ICON = 4;
	public static final int AUTOREFEREE_DOMINATION_ICON = 5;
	public static final int AUTOREFEREE_ICON_SIZE = 13;

	public static final int PLAYER_NAMETAG_HEARTS_X_OFFSET = -40;
	public static final int PLAYER_NAMETAG_HEARTS_Y_OFFSET = -12;
	public static final int PLAYER_NAMETAG_ARMOR_X_OFFSET = PLAYER_NAMETAG_HEARTS_X_OFFSET;
	public static final int PLAYER_NAMETAG_ARMOR_Y_OFFSET = -22;
	public static final int PLAYER_NAMETAG_WOOL_X_OFFSET = -20;
	public static final int PLAYER_NAMETAG_WOOL_Y_OFFSET = -42;
	
	public static final ResourceLocation GUI_ICONS = new ResourceLocation("textures/gui/icons.png");
	public static final ResourceLocation AUTOREFEREE_ICONS = new ResourceLocation("textures/AutoReferee.png");

	// public static final int LIST_DISPLAY_TICKS = 50;
	public static final int MESSAGE_DISPLAY_TICKS = 60;
	public static final int TEAM_LIST_CYCLE = 150;

	private static AutoReferee instance = new AutoReferee();
	private RenderItem renderItem;
	private Minecraft mc;
	private NetClientHandler netClientHandler;

	public HashMap<String, AutoRefereePlayer> players = new HashMap<String, AutoRefereePlayer>();
	public HashMap<String, AutoRefereeTeam> teams = new HashMap<String, AutoRefereeTeam>();

	public ArrayList<AutoRefereeMessage> messages = new ArrayList<AutoRefereeMessage>();
	public AutoRefereeMessage lastMessage = null;

	// match fields
	private int lastTick;
	public int tickInit = 0;
	public boolean startOfMatch = false; // is true for a short amount of time after the match|init message.
	public boolean gameRunning;
	public boolean countingDown;
	private Calendar countdownEnd;
	private Calendar matchStart;
	private String mapName;
	private AutoRefereeTeam winners;
	private int lastTickPlayerList;
	private int lastTickTeamList;
	private String gameType;
	public boolean nightVision;
	public boolean swapTeams;
	public boolean registeredChannel;
	private List<AutoRefereePlayer> closestPlayers;
	private int closestPlayersUpdateTick;
	private boolean ffa;

	public AutoReferee() {
		renderItem = new RenderItem();
		resetValues();
	}

	public void resetValues() {
		this.mapName = "";
		this.gameRunning = false;
		this.players.clear();
		this.teams.clear();
		this.countingDown = false;
		this.winners = null;
		this.lastTickPlayerList = 0;
		this.lastTickTeamList = 0;
		this.messages.clear();
		this.lastMessage = null;
		this.gameType = "RFW";
		this.nightVision = false;
		this.swapTeams = false;
		this.registeredChannel = false;
		this.closestPlayers = null;
		this.ffa = false;
		this.closestPlayersUpdateTick = 0;
	}

	public static AutoReferee get() {
		return instance;
	}

	public EntityPlayer getPlayer() {
		return (EntityPlayer) this.mc.thePlayer;
	}

	public void set(Minecraft mc, NetClientHandler netClientHandler) {
		this.mc = mc;
		this.netClientHandler = netClientHandler;
{'fraction_non_alphanumeric': 0.07655673294439815, 'fraction_numerical': 0.009048696273365877, 'mean_word_length': 5.471494607087828, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6065358', 'n_tokens_mistral': 2833, 'n_tokens_neox': 2689, 'n_words': 731}