<commit_before>maria.View = function(model, controller) {
    maria.Node.call(this);
    this.setModelAndController(model, controller);
};

maria.Node.mixin(maria.View.prototype);

maria.View.prototype.destroy = function() {
    maria.purgeEventListener(this);
    this._model = null;
    if (this._controller) {
        this._controller.destroy();
        this._controller = null;
    }
    maria.Node.prototype.destroy.call(this);
};

maria.View.prototype.displayView = function() {
    // to be overridden by concrete view subclasses
};

maria.View.prototype.displayChildViews = function() {
    var node = this.firstChild;
    while (node) {
        node.display();
        node = node.nextSibling;
    }
};

maria.View.prototype.display = function() {
    this.displayView();
    this.displayChildViews();
};
<commit_msg>change so that setModel and setController can be overridden and the overridden methods are used when a model or controller are sent to the constructor<commit_after>maria.View = function(model, controller) {
    maria.Node.call(this);
    this.setModel(model);
    this.setController(controller);
};

maria.Node.mixin(maria.View.prototype);

maria.View.prototype.destroy = function() {
    maria.purgeEventListener(this);
    this._model = null;
    if (this._controller) {
        this._controller.destroy();
        this._controller = null;
    }
    maria.Node.prototype.destroy.call(this);
};

maria.View.prototype.displayView = function() {
    // to be overridden by concrete view subclasses
};

maria.View.prototype.displayChildViews = function() {
    var node = this.firstChild;
    while (node) {
        node.display();
        node = node.nextSibling;
    }
};

maria.View.prototype.display = function() {
    this.displayView();
    this.displayChildViews();
};

{'fraction_non_alphanumeric': 0.12944444444444445, 'fraction_numerical': 0.0, 'mean_word_length': 3.371359223300971, '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': '6044232', 'n_tokens_mistral': 550, 'n_tokens_neox': 547, 'n_words': 106}