<commit_before>#ifndef FPNODE_H
#define FPNODE_H

#include <QHash>
#include <QDebug>
#include <QMetaType>
#include <QString>

#include "typedefs.h"

class FPNode {
public:
    FPNode(Item = Item());
    ~FPNode();

    // Accessors.
    bool isRoot() const { return this->item.id == ROOT_ITEMID; }
    bool isLeaf() const { return this->children.size() == 0; }
    Item getItem() const { return this->item; }
    ItemID getItemID() const { return this->item.id; }<commit_msg>Minor code improvement.<commit_after>#ifndef FPNODE_H
#define FPNODE_H

#include <QHash>
#include <QDebug>
#include <QMetaType>
#include <QString>

#include "typedefs.h"

class FPNode {
public:
    FPNode(Item item = Item());
    ~FPNode();

    // Accessors.
    bool isRoot() const { return this->item.id == ROOT_ITEMID; }
    bool isLeaf() const { return this->children.size() == 0; }
    Item getItem() const { return this->item; }
    ItemID getItemID() const { return this->item.id; }
{'fraction_non_alphanumeric': 0.15233160621761657, 'fraction_numerical': 0.002072538860103627, 'mean_word_length': 3.8059701492537314, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '1271070', 'n_tokens_mistral': 351, 'n_tokens_neox': 334, 'n_words': 89}