<commit_before>#ifndef WORD_H
#define WORD_H

#include "lazyloadedimage.h"
#include "QString"
#include "fonts.h"
#include "QRect"

class Word
{
public:
    enum Type : long int {
        None = 0,
        Misc = 1,
        Text = 2,

        TimestampNoSeconds   = 4,
        TimestampWithSeconds = 8,

        TwitchEmoteImage = 0x10,
        TwitchEmoteText = 0x20,
        BttvEmoteImage = 0x40,
        BttvEmoteText = 0x80,
        BttvGifEmoteImage = 0x100,
        BttvGifEmoteText = 0x200,
        FfzEmoteImage = 0x400,
        FfzEmoteText = 0x800,

        Bits = 0x1000,
        BitsAnimated = 0x2000,

        BadgeStaff = 0x4000,
        BadgeAdmin = 0x8000,
        BadgeGlobalMod = 0x10000,
        BadgeModerator = 0x20000,
        BadgeTurbo = 0x40000,
        BadgeBroadcaster = 0x80000,
        BadgePremium = 0x100000,
        BadgeChatterino = 0x200000,
        BadgeBits = 0x400000,
    };

    Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip = "");
    Word(const QString& text, Type type, const QString& copytext, const QString& tooltip = "");

    ~Word();

    LazyLoadedImage& getImage() {
        return *image;
    }

    QString& getText() {
        return *text;
    }

    int width() {
        return m_width;
    }

    int height() {
        return m_height;
    }

    int x() {
        return m_x;
    }

    int y() {
        return m_y;<commit_msg>Contructors with an argument other than its own type should be specified as explicit<commit_after>#ifndef WORD_H
#define WORD_H

#include "lazyloadedimage.h"
#include "QString"
#include "fonts.h"
#include "QRect"

class Word
{
public:
    enum Type : long int {
        None = 0,
        Misc = 1,
        Text = 2,

        TimestampNoSeconds   = 4,
        TimestampWithSeconds = 8,

        TwitchEmoteImage = 0x10,
        TwitchEmoteText = 0x20,
        BttvEmoteImage = 0x40,
        BttvEmoteText = 0x80,
        BttvGifEmoteImage = 0x100,
        BttvGifEmoteText = 0x200,
        FfzEmoteImage = 0x400,
        FfzEmoteText = 0x800,

        Bits = 0x1000,
        BitsAnimated = 0x2000,

        BadgeStaff = 0x4000,
        BadgeAdmin = 0x8000,
        BadgeGlobalMod = 0x10000,
        BadgeModerator = 0x20000,
        BadgeTurbo = 0x40000,
        BadgeBroadcaster = 0x80000,
        BadgePremium = 0x100000,
        BadgeChatterino = 0x200000,
        BadgeBits = 0x400000,
    };

    explicit Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip = "");
    explicit Word(const QString& text, Type type, const QString& copytext, const QString& tooltip = "");

    ~Word();

    LazyLoadedImage& getImage() {
        return *image;
    }

    QString& getText() {
        return *text;
    }

    int width() {
        return m_width;
    }

    int height() {
        return m_height;
    }

    int x() {
        return m_x;
    }

    int y() {
        return m_y;
{'fraction_non_alphanumeric': 0.09100169779286928, 'fraction_numerical': 0.06655348047538201, 'mean_word_length': 2.0371134020618555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6006538', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1014, 'n_words': 240}