<commit_before>#ifndef RUNE_H
#define RUNE_H

#include "rune_global.h"
#include "entitymanager.h"
#include "worldmap.h"
#include <QString>
#include "rune_error.h"

namespace rune {


    /**
     * @brief This class manages all global settings and actions.
     * Everything that is not specific to any module will be controlled here.
     */
    class RUNESHARED_EXPORT Engine
    {
        public:
            Engine();
            ~Engine();

            /**
             * @brief initialises the engine
             */
            void init();

            /**
             * @brief change the base path
             * worthless after calling init
             * @param basePath
             */
            void setBasePath(QString basePath);

            /**
             * @brief gives the base path of the engine
             */
            QString basePath();

            /**
             * @brief clean up and close all engine processing
             */
            void close();
<commit_msg>move map functions to slots<commit_after>#ifndef RUNE_H
#define RUNE_H

#include "rune_global.h"
#include "entitymanager.h"
#include "worldmap.h"
#include <QString>
#include "rune_error.h"

namespace rune {


    /**
     * @brief This class manages all global settings and actions.
     * Everything that is not specific to any module will be controlled here.
     */
    class RUNESHARED_EXPORT Engine : public QObject
    {
        Q_OBJECT

        public:
            Engine();
            ~Engine();

            /**
             * @brief initialises the engine
             */
            void init();

            /**
             * @brief change the base path
             * worthless after calling init
             * @param basePath
             */
            void setBasePath(QString basePath);

            /**
             * @brief gives the base path of the engine
             */
            QString basePath();

            /**
             * @brief clean up and close all engine processing
             */
            void close();

    public slots:
{'fraction_non_alphanumeric': 0.08498309995171414, 'fraction_numerical': 0.0, 'mean_word_length': 1.4433962264150944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1419478', 'n_tokens_mistral': 538, 'n_tokens_neox': 511, 'n_words': 175}