<commit_before>package ru.spbau.mit.dbmsau.syntax.ast;

import ru.spbau.mit.dbmsau.syntax.LexerUtils;


public class TerminalNode extends ASTNode {
    protected Object value;
    protected Integer token;

    public TerminalNode(Object value, Integer token, Integer leftLine, Integer leftColumn, Integer rightLine, Integer rightColumn) {
        this.value = value;
        this.leftColumn = leftColumn;
        this.leftLine = leftLine;
        this.rightColumn = rightColumn;
        this.rightLine = rightLine;

        this.token = token;
    }

    public TerminalNode(Object value, Integer token, Integer leftLine, Integer leftColumn, Integer length) {
        this.value = value;
        this.leftColumn = leftColumn;
        this.leftLine = leftLine;
        this.rightColumn = leftColumn + length;
        this.rightLine = leftLine;

        this.token = token;
    }

    public TerminalNode(Object value) {
        this.value = value;
    }
<commit_msg>Integer optimization<commit_after>package ru.spbau.mit.dbmsau.syntax.ast;

import ru.spbau.mit.dbmsau.syntax.LexerUtils;


public class TerminalNode extends ASTNode {
    protected Object value;
    protected int token;

    public TerminalNode(Object value, int token, int leftLine, int leftColumn, int rightLine, int rightColumn) {
        this.value = value;
        this.leftColumn = leftColumn;
        this.leftLine = leftLine;
        this.rightColumn = rightColumn;
        this.rightLine = rightLine;

        this.token = token;
    }

    public TerminalNode(Object value, int token, int leftLine, int leftColumn, int length) {
        this.value = value;
        this.leftColumn = leftColumn;
        this.leftLine = leftLine;
        this.rightColumn = leftColumn + length;
        this.rightLine = leftLine;

        this.token = token;
    }

    public TerminalNode(Object value) {
        this.value = value;
    }

{'fraction_non_alphanumeric': 0.08328940432261465, 'fraction_numerical': 0.0, 'mean_word_length': 2.6782945736434107, 'pattern_counts': {'":': 0, '<': 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': '1791215', 'n_tokens_mistral': 552, 'n_tokens_neox': 527, 'n_words': 139}