<commit_before>#include "unit_tests/suite/lumix_unit_tests.h"
#include "engine/universe/universe.h"


namespace
{
	void UT_universe(const char* params)
	{
		Lumix::DefaultAllocator allocator;
		Lumix::Universe universe(allocator);
		LUMIX_EXPECT(universe.getEntityCount() == 0);
		LUMIX_EXPECT(!universe.hasEntity(-1));
		LUMIX_EXPECT(!universe.hasEntity(0));
		LUMIX_EXPECT(!universe.hasEntity(1));
		LUMIX_EXPECT(!universe.hasEntity(100));

		static const int ENTITY_COUNT = 5;

		Lumix::Vec3 p(0, 0, 0);
		Lumix::Quat r(0, 0, 0, 1);
		Lumix::Entity entities[ENTITY_COUNT];
		for (int i = 0; i < ENTITY_COUNT; ++i)<commit_msg>fixed unit test crash<commit_after>#include "unit_tests/suite/lumix_unit_tests.h"
#include "engine/universe/universe.h"


namespace
{
	void UT_universe(const char* params)
	{
		Lumix::DefaultAllocator allocator;
		Lumix::PathManager path_manager(allocator);
		Lumix::Universe universe(allocator);
		LUMIX_EXPECT(universe.getEntityCount() == 0);
		LUMIX_EXPECT(!universe.hasEntity(-1));
		LUMIX_EXPECT(!universe.hasEntity(0));
		LUMIX_EXPECT(!universe.hasEntity(1));
		LUMIX_EXPECT(!universe.hasEntity(100));

		static const int ENTITY_COUNT = 5;

		Lumix::Vec3 p(0, 0, 0);
		Lumix::Quat r(0, 0, 0, 1);
		Lumix::Entity entities[ENTITY_COUNT];
		for (int i = 0; i < ENTITY_COUNT; ++i)
{'fraction_non_alphanumeric': 0.14885496183206107, 'fraction_numerical': 0.025954198473282442, 'mean_word_length': 6.048387096774194, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7643972', 'n_tokens_mistral': 572, 'n_tokens_neox': 527, 'n_words': 88}