<commit_before>#include "Anchor.hpp"

using namespace MPACK::Math;

namespace MPACK
{
	namespace UI
	{
		Anchor::Anchor(double x, double y)
			: m_x(x), m_y(y)
		{
			if(m_x<0.0)
			{
				m_x=0.0;
			}
			else if(m_x>1.0)
			{
				m_x=1.0;
			}

			if(m_y<0.0)
			{
				m_y=0.0;
			}
			else if(m_y>1.0)
			{
				m_y=1.0;
			}
		}

		double Anchor::GetX() const
		{<commit_msg>UI: fix anchor clamp-to-edge bug<commit_after>#include "Anchor.hpp"

using namespace MPACK::Math;

namespace MPACK
{
	namespace UI
	{
		Anchor::Anchor(double x, double y)
			: m_x(x), m_y(y)
		{
		}

		double Anchor::GetX() const
		{
{'fraction_non_alphanumeric': 0.16229508196721312, 'fraction_numerical': 0.02622950819672131, 'mean_word_length': 2.5941176470588236, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '950000', 'n_tokens_mistral': 346, 'n_tokens_neox': 291, 'n_words': 50}