<commit_before>#include "room.h"
#include "area.h"
#include "item.h"
#include "engine.h"

Room::Room(const string name): id(name)
{

}

Room::~Room()
{
    for (std::map<string, Area *>::iterator i = areas.begin();
         i != areas.end(); ++i)
    {
        logger.write("Garbage collector: " + i->second->id, Log::NOTE);
        delete i->second;
    }
    areas.clear();
}

string Room::bg() const
{
    return _bg;
}
void Room::bg(const string name)<commit_msg>Making Room class more independent, avoiding quite useless logging.<commit_after>#include "room.h"
#include "area.h"
#include "item.h"
#include "engine.h"

Room::Room(const string name): id(name)
{

}

Room::~Room()
{
    for (std::map<string, Area *>::iterator i = areas.begin();
         i != areas.end(); ++i)
        delete i->second;
    areas.clear();
}

string Room::bg() const
{
    return _bg;
}
void Room::bg(const string name)
{'fraction_non_alphanumeric': 0.18915929203539822, 'fraction_numerical': 0.0, 'mean_word_length': 3.5024875621890548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1277653', 'n_tokens_mistral': 322, 'n_tokens_neox': 320, 'n_words': 79}