<commit_before>/* Copyright (c) 2013 https://github.com/Naftoreiclag/
 *
 * Distributed under the MIT License (referring to license referred to at http://opensource.org/licenses/mit-license.html)
 * See accompanying file LICENSE
 */

#ifndef NODE_H
#define NODE_H

/* Nodes. THE COMMENTS ARE SUPER CREEPY!!!
 *
 */

#include <string>

typedef unsigned char NodeType;

#define NT_EXPANSE          0x02
#define NT_WORLD            0x03
#define NT_AREA             0x04
#define NT_ENTITY           0x05
#define NT_PORTAL           0x06
#define NT_SCRIPT           0x07
#define NT_PLAYERSCRIPT     0x08
#define NT_STRINGVALUE      0x09
#define NT_LONGVALUE        0x0A
#define NT_INTVALUE         0x0B
#define NT_SHORTVALUE       0x0C
#define NT_BYTEVALUE        0x0D

#ifdef DEBUG
//#define private public
#endif // DEBUG

class Node
{
    protected:
        Node(std::string name, NodeType nodeType, Node* parent);
    public:
        // Name
        std::string getName();

        //
        Node* getChild(std::string name);

        //
        NodeType getType();

        //<commit_msg>Fixed NT_INTVALUE spelling<commit_after>/* Copyright (c) 2013 https://github.com/Naftoreiclag/
 *
 * Distributed under the MIT License (referring to license referred to at http://opensource.org/licenses/mit-license.html)
 * See accompanying file LICENSE
 */

#ifndef NODE_H
#define NODE_H

/* Nodes. THE COMMENTS ARE SUPER CREEPY!!!
 *
 */

#include <string>

typedef unsigned char NodeType;

#define NT_EXPANSE          0x02
#define NT_WORLD            0x03
#define NT_AREA             0x04
#define NT_ENTITY           0x05
#define NT_PORTAL           0x06
#define NT_SCRIPT           0x07
#define NT_PLAYERSCRIPT     0x08
#define NT_STRINGVALUE      0x09
#define NT_LONGVALUE        0x0A
#define NT_INTEGERVALUE     0x0B
#define NT_SHORTVALUE       0x0C
#define NT_BYTEVALUE        0x0D

#ifdef DEBUG
//#define private public
#endif // DEBUG

class Node
{
    protected:
        Node(std::string name, NodeType nodeType, Node* parent);
    public:
        // Name
        std::string getName();

        //
        Node* getChild(std::string name);

        //
        NodeType getType();

        //
{'fraction_non_alphanumeric': 0.08671839342765861, 'fraction_numerical': 0.032861706983112735, 'mean_word_length': 2.367127496159754, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '465618', 'n_tokens_mistral': 744, 'n_tokens_neox': 692, 'n_words': 198}