<commit_before>﻿using System.Collections.Generic;

namespace SimpleECS
{
	public class World
	{
		public int entityCount
		{
			get
			{
				return entities.Count;
			}
		}

		private HashSet<Entity> entities = new HashSet<Entity>();

		public Entity CreateEntity()
		{
			Entity newEntity = new Entity();
			entities.Add(newEntity);
			return newEntity;
		}

		public void DestroyEntity(Entity entity)
		{
			throw new System.NotImplementedException();
		}
	}
}
<commit_msg>Adds destroy entity implementation<commit_after>﻿using System.Collections.Generic;

namespace SimpleECS
{
	public class World
	{
		public int entityCount
		{
			get
			{
				return entities.Count;
			}
		}

		private HashSet<Entity> entities = new HashSet<Entity>();

		public Entity CreateEntity()
		{
			Entity newEntity = new Entity();
			entities.Add(newEntity);
			return newEntity;
		}

		public void DestroyEntity(Entity entity)
		{
			entity.ClearAllComponents();
			entities.Remove(entity);
		}
	}
}

{'fraction_non_alphanumeric': 0.0975609756097561, 'fraction_numerical': 0.0, 'mean_word_length': 3.497716894977169, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3902792', 'n_tokens_mistral': 366, 'n_tokens_neox': 306, 'n_words': 72}