<commit_before>// For conditions of distribution and use, see copyright notice in license.txt

#include "StableHeaders.h"
#include "DebugOperatorNew.h"

#include "Entity.h"
#include "Scene.h"
#include "EC_Name.h"
#include "SceneAPI.h"

#include "Framework.h"
#include "IComponent.h"
#include "CoreStringUtils.h"
#include "LoggingFunctions.h"

#include <QDomDocument>

#include <kNet/DataSerializer.h>
#include <kNet/DataDeserializer.h>

#include "MemoryLeakCheck.h"

Entity::Entity(Framework* framework, Scene* scene) :
    framework_(framework),
    scene_(scene),
    temporary_(false)
{
}

Entity::Entity(Framework* framework, uint id, Scene* scene) :
    framework_(framework),
    id_(id),
    scene_(scene),
    temporary_(false)
{
}

Entity::~Entity()
{
    // If components still alive, they become free-floating
    for (ComponentMap::const_iterator i = components_.begin(); i != components_.end(); ++i)
        i->second->SetParentEntity(0);
   
    components_.clear();
    qDeleteAll(actions_);
}
<commit_msg>Fix parameter type mismatch between declaration and implementation (both were typedefs for unsigned int though so was harmless).<commit_after>// For conditions of distribution and use, see copyright notice in license.txt

#include "StableHeaders.h"
#include "DebugOperatorNew.h"

#include "Entity.h"
#include "Scene.h"
#include "EC_Name.h"
#include "SceneAPI.h"

#include "Framework.h"
#include "IComponent.h"
#include "CoreStringUtils.h"
#include "LoggingFunctions.h"

#include <QDomDocument>

#include <kNet/DataSerializer.h>
#include <kNet/DataDeserializer.h>

#include "MemoryLeakCheck.h"

Entity::Entity(Framework* framework, Scene* scene) :
    framework_(framework),
    scene_(scene),
    temporary_(false)
{
}

Entity::Entity(Framework* framework, entity_id_t id, Scene* scene) :
    framework_(framework),
    id_(id),
    scene_(scene),
    temporary_(false)
{
}

Entity::~Entity()
{
    // If components still alive, they become free-floating
    for (ComponentMap::const_iterator i = components_.begin(); i != components_.end(); ++i)
        i->second->SetParentEntity(0);
   
    components_.clear();
    qDeleteAll(actions_);
}

{'fraction_non_alphanumeric': 0.13632162661737524, 'fraction_numerical': 0.0009242144177449168, 'mean_word_length': 4.804289544235925, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '3918223', 'n_tokens_mistral': 687, 'n_tokens_neox': 686, 'n_words': 167}