<commit_before>#ifndef MINIASCAPE_SDL_EXCEPTION
#define MINIASCAPE_SDL_EXCEPTION
#include <stdexcept>
#include <string>

namespace sdl
{

class Exception : public std::exception
{
  public:
    Exception() = default;
    virtual ~Exception() noexcept override = default;

    virtual const char* what() const noexcept override {return "";}
};

class InitError : public Exception
{
  public:
    InitError(const std::string& mes) : mes_(mes){}
    virtual ~InitError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}

  protected:
    const std::string mes_;
};

class WindowError : public Exception
{
  public:
    WindowError(const std::string& mes) : mes_(mes){}
    virtual ~WindowError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}
  protected:
    const std::string mes_;
};

class RendererError : public Exception
{
  public:
    RendererError(const std::string& mes) : mes_(mes){}
    virtual ~RendererError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}
  protected:
    const std::string mes_;
};

}//sdl

#endif /* MINIASCAPE_SDL_EXCEPTION */
<commit_msg>add EventError<commit_after>#ifndef MINIASCAPE_SDL_EXCEPTION
#define MINIASCAPE_SDL_EXCEPTION
#include <stdexcept>
#include <string>

namespace sdl
{

class Exception : public std::exception
{
  public:
    Exception() = default;
    virtual ~Exception() noexcept override = default;

    virtual const char* what() const noexcept override {return "";}
};

class InitError : public Exception
{
  public:
    InitError(const std::string& mes) : mes_(mes){}
    virtual ~InitError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}

  protected:
    const std::string mes_;
};

class WindowError : public Exception
{
  public:
    WindowError(const std::string& mes) : mes_(mes){}
    virtual ~WindowError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}
  protected:
    const std::string mes_;
};

class RendererError : public Exception
{
  public:
    RendererError(const std::string& mes) : mes_(mes){}
    virtual ~RendererError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}
  protected:
    const std::string mes_;
};

class EventError : public Exception
{
  public:
    EventError(const std::string& mes) : mes_(mes){}
    virtual ~EventError() noexcept override = default;

    virtual const char* what() const noexcept override {return mes_.c_str();}
  protected:
    const std::string mes_;
};

}//sdl

#endif /* MINIASCAPE_SDL_EXCEPTION */

{'fraction_non_alphanumeric': 0.11454219030520646, 'fraction_numerical': 0.0, 'mean_word_length': 4.368015414258188, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7630160', 'n_tokens_mistral': 848, 'n_tokens_neox': 820, 'n_words': 256}