<commit_before><commit_msg>~Modified PolyUtil to add classification method<commit_after>using System;

using MapParse.Types;

namespace MapParse.Util
{
	public static class PolyUtil
	{
		public static PolyClassification ClassifyPoly(Poly poly)
		{
			bool front, back = false;
			float distance = 0;
			
			for (int i = 0; i < poly.NumberOfVertices; i++)
			{
				distance = poly.P.Normal.Dot(poly.Verts[i].P) + poly.P.Distance;
				if (distance > Constants.Epsilon)
				{
					if (back)
					{
						return PolyClassification.SPLIT;
					}
					front = true;
				}
				else if (distance < -Constants.Epsilon)
				{
					if (front)
					{
						return PolyClassification.SPLIT;
					}
					back = true;
				}
			}
			if (front)
			{
				return PolyClassification.FRONT;
			}
			else if (back)
			{
				return PolyClassification.BACK;
			}
			return PolyClassification.ON_PLANE;
		}
	}
}
{'fraction_non_alphanumeric': 0.1038374717832957, 'fraction_numerical': 0.002257336343115124, 'mean_word_length': 2.4921259842519685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6867842', 'n_tokens_mistral': 402, 'n_tokens_neox': 299, 'n_words': 67}