<commit_before>// Copyright (C) 2015 <NAME> (ayebear)
// This code is licensed under LGPLv3, see LICENSE.txt for details.

#ifndef ES_COMPONENTSETUP_H
#define ES_COMPONENTSETUP_H

#include "es/componentpool.h"

#define esRegister(compName) static es::RegisterName<compName> esCompReg_##compName(#compName);

namespace es
{

// Creating an instance of this will register the specified component type and name
template <class T>
struct RegisterName
{
    RegisterName(const char* name)
    {
        ComponentPool::registerComponent<T>(name);
    }
};

template<typename T>
void registerComponents()
{
	ComponentPool::registerComponent<T>(T::name);
}

template<typename A, typename B, typename... Args>
void registerComponents()
{
	registerComponents<A>();
	registerComponents<B, Args...>();
}

}

#endif
<commit_msg>Removed old component registration code<commit_after>// Copyright (C) 2015 <NAME> (ayebear)
// This code is licensed under LGPLv3, see LICENSE.txt for details.

#ifndef ES_COMPONENTSETUP_H
#define ES_COMPONENTSETUP_H

#include "es/componentpool.h"

namespace es
{

// Registers a single component type
template<typename T>
void registerComponents()
{
	ComponentPool::registerComponent<T>(T::name);
}

// Registers multiple component types
template<typename A, typename B, typename... Args>
void registerComponents()
{
	registerComponents<A>();
	registerComponents<B, Args...>();
}

}

#endif

{'fraction_non_alphanumeric': 0.11940298507462686, 'fraction_numerical': 0.007107320540156361, 'mean_word_length': 5.4, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '6245328', 'n_tokens_mistral': 447, 'n_tokens_neox': 436, 'n_words': 122}