<commit_before>'use strict';
var mixer = require('../mixin/mixer'),
    errorMessage = require('../factory/errorMessage');

var createMessage = errorMessage.create,
    errorTypes = errorMessage.types;

/**
 * View interface
 * @class View
 * @mixes Delegator
 * @param {View} parent - Parent view
 */
var View = tui.util.defineClass(/* @lends View.prototype */{
    init: function(parent, $wrapper) {
        /**
         * jQuery Element
         * @type {jQuery}
         */
        this.$wrapper = $wrapper;

        this.setParent(parent);
    },


    /**
     * Get image name
     * @returns {ImageEditor}
     */
    getEditor: function() {
        if (this === this.getRoot()) {
            return this.editor;
        }

        return this.getRoot().getEditor();
    },

    /**
     * Return jquery element
     * @returns {jQuery}<commit_msg>refactor: remove "getEditor" in view.js<commit_after>'use strict';
var mixer = require('../mixin/mixer'),
    errorMessage = require('../factory/errorMessage');

var createMessage = errorMessage.create,
    errorTypes = errorMessage.types;

/**
 * View interface
 * @class View
 * @mixes Delegator
 * @param {View} parent - Parent view
 */
var View = tui.util.defineClass(/* @lends View.prototype */{
    init: function(parent, $wrapper) {
        /**
         * jQuery Element
         * @type {jQuery}
         */
        this.$wrapper = $wrapper;

        this.setParent(parent);
    },

    /**
     * Return jquery element
     * @returns {jQuery}
{'fraction_non_alphanumeric': 0.14920424403183025, 'fraction_numerical': 0.0, 'mean_word_length': 2.3019693654266957, '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': '3481994', 'n_tokens_mistral': 448, 'n_tokens_neox': 437, 'n_words': 103}