<commit_before>
function Variable (name) {
    var _this = this;

    this.getReadNode = function (contextLevel, source) {
        return createVariableRead(_this, contextLevel, source);
    };

    this.getSuperReadNode = function (contextLevel, holderClass, classSide, source) {
        return createSuperRead(
            _this, contextLevel, holderClass, classSide, source);
    };
}

function Argument(name, index) {
    Variable.call(this, name);

    this.toString = function () {
        return "Argument(" + name + ")";
    };

    this.isSelf = function () {
        return "self" == name || "$blockSelf" == name;
    }
}

function Local(name) {
    Variable.call(this, name);

    this.toString = function () {
        return "Local(" + name + ")";
    };

    this.getWriteNode = function (contextLevel, valueExpr, source) {
        return createVariableWrite(this, contextLevel, valueExpr, source);
    }
}
<commit_msg>Added getIndex getter<commit_after>
function Variable (name) {
    var _this = this;

    this.getReadNode = function (contextLevel, source) {
        return createVariableRead(_this, contextLevel, source);
    };

    this.getSuperReadNode = function (contextLevel, holderClass, classSide, source) {
        return createSuperRead(
            _this, contextLevel, holderClass, classSide, source);
    };
}

function Argument(name, index) {
    Variable.call(this, name);

    this.toString = function () {
        return "Argument(" + name + ")";
    };

    this.isSelf = function () {
        return "self" == name || "$blockSelf" == name;
    };

    this.getIndex = function () {
        return index;
    };
}

function Local(name) {
    Variable.call(this, name);

    this.toString = function () {
        return "Local(" + name + ")";
    };

    this.getWriteNode = function (contextLevel, valueExpr, source) {
        return createVariableWrite(this, contextLevel, valueExpr, source);
    }
}

{'fraction_non_alphanumeric': 0.13061435209086217, 'fraction_numerical': 0.0, 'mean_word_length': 2.852882703777336, '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': '334005', 'n_tokens_mistral': 570, 'n_tokens_neox': 550, 'n_words': 134}