<commit_before>//node.hpp
#ifndef _NODE_H
#define _NODE_H


#include <vector>


class Node{

    private:
        union Content{
            double idX;     //var
            double value;   //const
            int function;   //func1 ou func2
        };

        Content C;
        int tipo; //recebe o índice do content

        Node *left;
        Node *right;

    public:
        Node(bool copy = false);
        ~Node();

        double eval(double x);
        void print_node_d();
        Node *get_copy();
        int get_type();
};

#endif
<commit_msg>1.3 Atualizado Eval e adicionado ChangeNumberOfSub<commit_after>//node.hpp
#ifndef _NODE_H
#define _NODE_H


#include <vector>

#include "utils.hpp"

class Node{

    private:
        union Content{
            double idX;     //var
            double value;   //const
            int function;   //func1 ou func2
        };

        Content C;
        int tipo; //recebe o índice do content

        Node *left;
        Node *right;

    public:
        Node(bool copy = false);
        ~Node();

        double eval(utils::DataPoint p);
        void print_node_d();
        Node *get_copy();
        int get_type();
        void changeNumberOfSubtreesTo(int quantity);
};

#endif

{'fraction_non_alphanumeric': 0.09596344249809596, 'fraction_numerical': 0.00456968773800457, 'mean_word_length': 1.446927374301676, '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': '597766', 'n_tokens_mistral': 426, 'n_tokens_neox': 383, 'n_words': 112}