<commit_before>"""Eval an abstract syntax tree."""
from Runtime import Utils

BEHAVIOUR_DEFAULT = "default"  # do nothing special
BEHAVIOUR_BREAK = "break"
BEHAVIOUR_CONTINUE = "continue"
BEHAVIOUR_RETURN = "return"  # return, but reset to nothing

DATA_INTEGER = "Integer"  # Any integer number
DATA_FLOAT = "Float"  # Any floating point number
DATA_BOOLEAN = "Boolean"  # true / false
DATA_STRING = "String"  # Any string value
DATA_FUNCTION = "Function"
DATA_NONE = "None"  # None / null value
DATA_LIST = "List"
DATA_MAPS = "Map"
DATA_SET = "Set"

_SEQUENCE = "sequence"
_CONDITIONAL = "conditional"
_BRANCH = "branch"
_LOOP = "loop"
_RETURN = "return"
_BREAK = "break"
_CONTINUE = "continue"
_FUNCTION = "function"
_OPERATOR = "operator"
_IDENTIFIER = "identifier"
_LITERAL = "literal"


def store_value(t, v):
    """Create a storage with a stored type and value."""
    return {"type": t, "value": v}


def store_none():
    """Create a storage with no value."""
    return store_value(DATA_NONE, None)


def operator_add_exec(context, params):
    """Add operator function."""
    return store_value(DATA_INTEGER, 0)


def operator_subtract_exec(context, params):
    """Subtract operator function."""
    return store_value(DATA_INTEGER, 0)

OPERATOR_ADD = {
    "name": "add",
    "precedence": 4,
    "binding": "left",
    "symbol": "+",
    "execution": operator_add_exec,
}
OPERATOR_SUBTRACT = {
    "name": "subtract",
    "precedence": 4,
    "binding": "left",
    "symbol": "-",
    "execution": operator_subtract_exec,
}


class Node:
    """A node in the abstract syntax tree."""<commit_msg>Remove operators from Executors module<commit_after>"""Eval an abstract syntax tree."""
from Runtime import Utils

BEHAVIOUR_DEFAULT = "default"  # do nothing special
BEHAVIOUR_BREAK = "break"
BEHAVIOUR_CONTINUE = "continue"
BEHAVIOUR_RETURN = "return"  # return, but reset to nothing

DATA_INTEGER = "Integer"  # Any integer number
DATA_FLOAT = "Float"  # Any floating point number
DATA_BOOLEAN = "Boolean"  # true / false
DATA_STRING = "String"  # Any string value
DATA_FUNCTION = "Function"
DATA_NONE = "None"  # None / null value
DATA_LIST = "List"
DATA_MAPS = "Map"
DATA_SET = "Set"

_SEQUENCE = "sequence"
_CONDITIONAL = "conditional"
_BRANCH = "branch"
_LOOP = "loop"
_RETURN = "return"
_BREAK = "break"
_CONTINUE = "continue"
_FUNCTION = "function"
_OPERATOR = "operator"
_IDENTIFIER = "identifier"
_LITERAL = "literal"


def store_value(t, v):
    """Create a storage with a stored type and value."""
    return {"type": t, "value": v}


def store_none():
    """Create a storage with no value."""
    return store_value(DATA_NONE, None)



class Node:
    """A node in the abstract syntax tree."""
{'fraction_non_alphanumeric': 0.13024282560706402, 'fraction_numerical': 0.0014716703458425313, 'mean_word_length': 4.459839357429719, 'pattern_counts': {'":': 14, '<': 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': '466503', 'n_tokens_mistral': 936, 'n_tokens_neox': 914, 'n_words': 275}