<commit_before>package net.runelite.client.plugins.boosts;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import net.runelite.api.Client;
import net.runelite.api.Skill;
import net.runelite.client.RuneLite;
import net.runelite.client.ui.overlay.Overlay;
import net.runelite.client.ui.overlay.OverlayPosition;
import net.runelite.client.ui.overlay.OverlayPriority;

class BoostsOverlay extends Overlay
{
	private static final int WIDTH = 140;

	private static final Color BACKGROUND = new Color(Color.gray.getRed(), Color.gray.getGreen(), Color.gray.getBlue(), 127);

	private static final Skill[] SHOW = new Skill[] { Skill.ATTACK, Skill.STRENGTH, Skill.DEFENCE, Skill.RANGED, Skill.MAGIC };

	private static final int TOP_BORDER = 2;
	private static final int LEFT_BORDER = 2;
	private static final int RIGHT_BORDER = 2;

	private static final int SEPARATOR = 2;
	
	BoostsOverlay()
	{
		super(OverlayPosition.TOP_LEFT, OverlayPriority.MED);
	}

	@Override
	public Dimension render(Graphics2D graphics)
	{
		Client client = RuneLite.getClient();
		FontMetrics metrics = graphics.getFontMetrics();

		int[] boostedSkills = client.getBoostedSkillLevels(),
			baseSkills = client.getRealSkillLevels();

		int height = TOP_BORDER;
		for (Skill skill : SHOW)
		{
			int boosted = boostedSkills[skill.ordinal()],
				base = baseSkills[skill.ordinal()];

			if (boosted == base)
				continue;<commit_msg>Only show boosts when logged in<commit_after>package net.runelite.client.plugins.boosts;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import net.runelite.api.Client;
import net.runelite.api.GameState;
import net.runelite.api.Skill;
import net.runelite.client.RuneLite;
import net.runelite.client.ui.overlay.Overlay;
import net.runelite.client.ui.overlay.OverlayPosition;
import net.runelite.client.ui.overlay.OverlayPriority;

class BoostsOverlay extends Overlay
{
	private static final int WIDTH = 140;

	private static final Color BACKGROUND = new Color(Color.gray.getRed(), Color.gray.getGreen(), Color.gray.getBlue(), 127);

	private static final Skill[] SHOW = new Skill[] { Skill.ATTACK, Skill.STRENGTH, Skill.DEFENCE, Skill.RANGED, Skill.MAGIC };

	private static final int TOP_BORDER = 2;
	private static final int LEFT_BORDER = 2;
	private static final int RIGHT_BORDER = 2;

	private static final int SEPARATOR = 2;
	
	BoostsOverlay()
	{
		super(OverlayPosition.TOP_LEFT, OverlayPriority.MED);
	}

	@Override
	public Dimension render(Graphics2D graphics)
	{
		Client client = RuneLite.getClient();

		if (client.getGameState() != GameState.LOGGED_IN)
			return null;
		
		FontMetrics metrics = graphics.getFontMetrics();

		int[] boostedSkills = client.getBoostedSkillLevels(),
			baseSkills = client.getRealSkillLevels();

		int height = TOP_BORDER;
		for (Skill skill : SHOW)
		{
			int boosted = boostedSkills[skill.ordinal()],
				base = baseSkills[skill.ordinal()];

			if (boosted == base)
				continue;
{'fraction_non_alphanumeric': 0.10825929582099375, 'fraction_numerical': 0.007897334649555774, 'mean_word_length': 4.846153846153846, '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': '5044764', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1015, 'n_words': 237}