<commit_before>package com.lothrazar.samscontent.event;

import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;  
import java.util.Calendar;
import java.util.Date;
import java.util.Random;  
import org.apache.logging.log4j.Logger;  
import com.lothrazar.samscontent.ModMain;
import com.lothrazar.samscontent.command.CommandSimpleWaypoints;
import com.lothrazar.samscontent.command.CommandTodoList;
import com.lothrazar.samscontent.potion.PotionRegistry;
import com.lothrazar.util.Location;
import com.lothrazar.util.Reference;
import com.lothrazar.util.SamsUtilities; 
import net.minecraft.client.Minecraft; 
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.MathHelper;
import net.minecraft.village.Village;
import net.minecraft.world.GameRules;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraftforge.common.DimensionManager;  
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;  
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
 
public class DebugScreenText
{   
	 public Date addDays(Date baseDate, int daysToAdd) 
	 {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(baseDate);
        calendar.add(Calendar.DAY_OF_YEAR, daysToAdd);
        return calendar.getTime();
	}
	 
	@SubscribeEvent
	public void onRenderTextOverlay(RenderGameOverlayEvent.Text event)
	{ 
		if(Minecraft.getMinecraft().gameSettings.showDebugInfo == false){return;}

		if(ModMain.cfg.debugClearRight )
		{ 
			event.right.clear();
		}

		EntityPlayerSP player = Minecraft.getMinecraft().thePlayer; 
		World world = Minecraft.getMinecraft().getIntegratedServer().getEntityWorld();

		event.left.add("");
		addDateTimeInfo(event, world);
		  
	 	if(ModMain.cfg.debugSlime && player.dimension == Reference.Dimension.overworld)
	 	{ 
	 		addSlimeChunkInfo(event, player, world); 
	 	}
	 	
	 	if(ModMain.cfg.debugVillageInfo && world.villageCollectionObj != null)
	 	{   
	 		addVillageInfo(event, player, world);	 
		}
	 	
	 	if(ModMain.cfg.debugHorseInfo && player.ridingEntity != null && player.ridingEntity instanceof EntityHorse)
	 	{ 
	 		addHorseInfo(event, player);   
	 	} 
	  
	 	if(SamsUtilities.isShiftKeyDown())  
	 	{ 
			addGameruleInfo(event, world); 
		} 

		addTodoCommandInfo(event, player);  

		CommandSimpleWaypoints.AddWaypointInfo(event); 
	}

	private void addTodoCommandInfo(RenderGameOverlayEvent.Text event,	EntityPlayerSP player) 
	{
		String todoCurrent = CommandTodoList.GetTodoForPlayer(player);
		
		if(todoCurrent != null && todoCurrent.isEmpty() == false)
		{
			event.right.add("");
			event.right.add(todoCurrent);
		}
	}
<commit_msg>no empty line above TODO in debug screen<commit_after>package com.lothrazar.samscontent.event;

import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;  
import java.util.Calendar;
import java.util.Date;
import java.util.Random;  
import org.apache.logging.log4j.Logger;  
import com.lothrazar.samscontent.ModMain;
import com.lothrazar.samscontent.command.CommandSimpleWaypoints;
import com.lothrazar.samscontent.command.CommandTodoList;
import com.lothrazar.samscontent.potion.PotionRegistry;
import com.lothrazar.util.Location;
import com.lothrazar.util.Reference;
import com.lothrazar.util.SamsUtilities; 
import net.minecraft.client.Minecraft; 
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.MathHelper;
import net.minecraft.village.Village;
import net.minecraft.world.GameRules;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraftforge.common.DimensionManager;  
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;  
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
 
public class DebugScreenText
{   
	 public Date addDays(Date baseDate, int daysToAdd) 
	 {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(baseDate);
        calendar.add(Calendar.DAY_OF_YEAR, daysToAdd);
        return calendar.getTime();
	}
	 
	@SubscribeEvent
	public void onRenderTextOverlay(RenderGameOverlayEvent.Text event)
	{ 
		if(Minecraft.getMinecraft().gameSettings.showDebugInfo == false){return;}

		if(ModMain.cfg.debugClearRight )
		{ 
			event.right.clear();
		}

		EntityPlayerSP player = Minecraft.getMinecraft().thePlayer; 
		World world = Minecraft.getMinecraft().getIntegratedServer().getEntityWorld();

		event.left.add("");
		addDateTimeInfo(event, world);
		  
	 	if(ModMain.cfg.debugSlime && player.dimension == Reference.Dimension.overworld)
	 	{ 
	 		addSlimeChunkInfo(event, player, world); 
	 	}
	 	
	 	if(ModMain.cfg.debugVillageInfo && world.villageCollectionObj != null)
	 	{   
	 		addVillageInfo(event, player, world);	 
		}
	 	
	 	if(ModMain.cfg.debugHorseInfo && player.ridingEntity != null && player.ridingEntity instanceof EntityHorse)
	 	{ 
	 		addHorseInfo(event, player);   
	 	} 
	  
	 	if(SamsUtilities.isShiftKeyDown())  
	 	{ 
			addGameruleInfo(event, world); 
		} 

		addTodoCommandInfo(event, player);  

		CommandSimpleWaypoints.AddWaypointInfo(event); 
	}

	private void addTodoCommandInfo(RenderGameOverlayEvent.Text event,	EntityPlayerSP player) 
	{
		String todoCurrent = CommandTodoList.GetTodoForPlayer(player);
		
		if(todoCurrent != null && todoCurrent.isEmpty() == false)
		{
			//event.right.add("");
			event.right.add(todoCurrent);
		}
	}

{'fraction_non_alphanumeric': 0.10523497121435266, 'fraction_numerical': 0.0002677734636497523, 'mean_word_length': 5.1735537190082646, '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': '1565165', 'n_tokens_mistral': 2539, 'n_tokens_neox': 2396, 'n_words': 343}