<commit_before>#ifndef OPERATORS_H_INCLUDED
#define OPERATORS_H_INCLUDED

#include "main.h"
#include "modules/memory.h"
#include <cmath>
#include <vector>

struct variableToken; //Forward declared from core

namespace operators
{
    typedef number_type(*operPtr)(number_type,number_type);
    typedef number_type(*assigmentPtr)(memory* mem,std::string name, number_type);
    enum operationType{NOT_SET,ASSIGN,MATH};

    struct interpreter_operator
    {

        operPtr oper;
        assigmentPtr assign;
        char operChar;
        short baseWheight;
        operationType operType;
        interpreter_operator(operPtr opr, char symbol, short wheight);
        interpreter_operator(assigmentPtr assign, char symbol, short wheight);
        interpreter_operator();
    };

   typedef std::vector<interpreter_operator> vec_operators;

    class operators_interface
    {
        vec_operators _operators;
        unsigned int lastOffset;
        public:
        void load(vec_operators oprs);
        void load(interpreter_operator tok);
        operators_interface();
        void getOperators();
        bool inArray(char opr);
        interpreter_operator getCurrent();
    };
    extern vec_operators std_operators;



}
#endif // OPERATORS_H_INCLUDED

<commit_msg>Squashed 'lib headers/' changes from 27d7251..470e75f<commit_after>#ifndef OPERATORS_H_INCLUDED
#define OPERATORS_H_INCLUDED

#include "main.h"
#include "modules/memory.h"
#include <cmath>
#include <vector>

struct variableToken; //Forward declared from core

namespace operators
{
    typedef number_type(*operPtr)(number_type,number_type);
    typedef number_type(*assigmentPtr)(memory* mem,std::string name, number_type);
    enum operationType{NOT_SET,ASSIGN,MATH};

    struct interpreter_operator
    {
		union
		{
			operPtr oper;
			assigmentPtr assign;
		};
        char operChar;
        short baseWheight;
        operationType operType;
        interpreter_operator(operPtr opr, char symbol, short wheight);
        interpreter_operator(assigmentPtr assign, char symbol, short wheight);
        interpreter_operator();
    };

   typedef std::vector<interpreter_operator> vec_operators;

    class operators_interface
    {
        vec_operators _operators;
        unsigned int lastOffset;
        public:
        void load(vec_operators oprs);
        void load(interpreter_operator tok);
        operators_interface();
        void getOperators();
        bool inArray(char opr);
        interpreter_operator getCurrent();
    };
    extern vec_operators std_operators;



}
#endif // OPERATORS_H_INCLUDED


{'fraction_non_alphanumeric': 0.08160123171670516, 'fraction_numerical': 0.004234026173979984, 'mean_word_length': 3.457975986277873, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1523571', 'n_tokens_mistral': 794, 'n_tokens_neox': 778, 'n_words': 174}