<commit_before>#include "CMoverGroup.h"

TypeHandle CMoverGroup::_type_handle;


CMoverGroup::CMoverGroup() {
    
}

CMoverGroup::~CMoverGroup() {
    
}

void CMoverGroup::add_c_mover(string name, CMover* mover) {
    libotp_cat.debug() << "Adding CMover to our mover map!" << std::endl;
    m_c_movers[name] = mover;
}

void CMoverGroup::remove_c_mover(string name) {
    if (m_c_movers.find(name) == m_c_movers.end()) {
        libotp_cat.debug() << "CMover was not found in mover map! Returning..." << std::endl;
        return;
    } else {
        libotp_cat.debug() << "Removing CMover from mover map and destorying CMover!" << std::endl;
        pmap<std::string, CMover*>::iterator it;
        it = m_c_movers.find(name);
        if (it != m_c_movers.end()) {
            // Found it - Delete it
            delete it->second;
            m_c_movers.erase(it);
        }
    }
}


void CMoverGroup::process_c_impulses_and_integrate() {
    libotp_cat.debug() << "Processing all CImpulses in our CMover Groups!" << std::endl;
    for each(pair<string, CMover*> x in m_c_movers) {
        x.second->process_c_impulses(get_dt());
    }
}

void CMoverGroup::set_dt(float dt) {
    m_dt = dt;
}

void CMoverGroup::set_dt() {
    m_dt = 0.0;
}

void CMoverGroup::reset_dt() {
    m_dt = 0.0;
}

float CMoverGroup::get_dt() {
    return m_dt;
}<commit_msg>Add a else{} statement here<commit_after>#include "CMoverGroup.h"

TypeHandle CMoverGroup::_type_handle;


CMoverGroup::CMoverGroup() {
    
}

CMoverGroup::~CMoverGroup() {
    
}

void CMoverGroup::add_c_mover(string name, CMover* mover) {
    libotp_cat.debug() << "Adding CMover to our mover map!" << std::endl;
    m_c_movers[name] = mover;
}

void CMoverGroup::remove_c_mover(string name) {
    if (m_c_movers.find(name) == m_c_movers.end()) {
        libotp_cat.debug() << "CMover was not found in mover map! Returning..." << std::endl;
        return;
    } else {
        libotp_cat.debug() << "Removing CMover from mover map and destorying CMover!" << std::endl;
        pmap<std::string, CMover*>::iterator it;
        it = m_c_movers.find(name);
        if (it != m_c_movers.end()) {
            // Found it - Delete it
            delete it->second;
            m_c_movers.erase(it);
        } else {
            libotp_cat.debug() << "CMover was not found in mover map! Returning..." << std::endl;
            return;
        }
    }
}


void CMoverGroup::process_c_impulses_and_integrate() {
    libotp_cat.debug() << "Processing all CImpulses in our CMover Groups!" << std::endl;
    for each(pair<string, CMover*> x in m_c_movers) {
        x.second->process_c_impulses(get_dt());
    }
}

void CMoverGroup::set_dt(float dt) {
    m_dt = dt;
}

void CMoverGroup::set_dt() {
    m_dt = 0.0;
}

void CMoverGroup::reset_dt() {
    m_dt = 0.0;
}

float CMoverGroup::get_dt() {
    return m_dt;
}
{'fraction_non_alphanumeric': 0.1461457970003488, 'fraction_numerical': 0.0027903732124171608, 'mean_word_length': 2.9778085991678225, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 11, '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': '4601815', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1069, 'n_words': 214}