<commit_before>#include "controller.h"
#include "animation/animation.h"
#include "engine/log.h"
#include "engine/resource_manager.h"
#include "engine/resource_manager_base.h"


namespace Lumix
{


static const ResourceType ANIMATION_TYPE("animation");


namespace Anim
{


enum class Version : int
{
	LAST
};


struct Header
{
	static const uint32 FILE_MAGIC = '_LAC'; // == '_LAC'
	uint32 magic = FILE_MAGIC;
	int version = (int)Version::LAST;
	uint32 reserved[4] = {0};
};


ControllerResource::ControllerResource(const Path& path, ResourceManagerBase& resource_manager, IAllocator& allocator)
	: Resource(path, resource_manager, allocator)
	, m_root(nullptr)
	, m_allocator(allocator)
	, m_anim_set(allocator)
{
}


ControllerResource::~ControllerResource()
{
	unload();
}


void ControllerResource::unload()
{
	LUMIX_DELETE(m_allocator, m_root);
	m_root = nullptr;<commit_msg>fixed linux build<commit_after>#include "controller.h"
#include "animation/animation.h"
#include "engine/log.h"
#include "engine/resource_manager.h"
#include "engine/resource_manager_base.h"


namespace Lumix
{


static const ResourceType ANIMATION_TYPE("animation");


namespace Anim
{


enum class Version : int
{
	LAST
};


struct Header
{
	static const uint32 FILE_MAGIC = 0x5f4c4143; // == '_LAC'
	uint32 magic = FILE_MAGIC;
	int version = (int)Version::LAST;
	uint32 reserved[4] = {0};
};


ControllerResource::ControllerResource(const Path& path, ResourceManagerBase& resource_manager, IAllocator& allocator)
	: Resource(path, resource_manager, allocator)
	, m_root(nullptr)
	, m_allocator(allocator)
	, m_anim_set(allocator)
{
}


ControllerResource::~ControllerResource()
{
	unload();
}


void ControllerResource::unload()
{
	LUMIX_DELETE(m_allocator, m_root);
	m_root = nullptr;
{'fraction_non_alphanumeric': 0.1244343891402715, 'fraction_numerical': 0.013009049773755657, 'mean_word_length': 6.161943319838056, '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': '4124307', 'n_tokens_mistral': 630, 'n_tokens_neox': 606, 'n_words': 123}