<commit_before>Imcms.define(
    "imcms-image-editor-factory",
    [
        "imcms-image-editor-right-side-builder", "imcms-image-editor-left-side-builder",
        "imcms-image-editor-body-head-builder", "imcms-i18n-texts", "imcms-bem-builder"
    ],
    function (rightSideBuilder, leftSideBuilder, bodyHeadBuilder, texts, BEM) {

        texts = texts.editors.image;

        function buildRightSide(opts) {
            return rightSideBuilder.build(opts);
        }

        function buildLeftSide(opts) {
            return leftSideBuilder.build(opts);
        }

        function buildBodyHead(opts) {
            return bodyHeadBuilder.build(opts);
        }

        return {
            buildEditor: function (opts) {
                var $rightSidePanel = buildRightSide(opts);
                var $bodyHead = buildBodyHead(opts);
                var $leftSide = buildLeftSide(opts);

                return new BEM({
                    block: "imcms-image_editor",
                    elements: {
                        "head": opts.imageWindowBuilder.buildHead(texts.title),
                        "image-characteristics": $bodyHead,
                        "left-side": $leftSide,
                        "right-side": $rightSidePanel
                    }
                }).buildBlockStructure("<div>", {"class": "imcms-editor-window"});
            }
        }
    }
);<commit_msg>IMCMS-233 - Apply new UI to the admin panel and editors: - Cleanup.<commit_after>Imcms.define(
    "imcms-image-editor-factory",
    [
        "imcms-image-editor-right-side-builder", "imcms-image-editor-left-side-builder",
        "imcms-image-editor-body-head-builder", "imcms-i18n-texts", "imcms-bem-builder"
    ],
    function (rightSideBuilder, leftSideBuilder, bodyHeadBuilder, texts, BEM) {

        texts = texts.editors.image;

        return {
            buildEditor: function (opts) {
                var $bodyHead = bodyHeadBuilder.build(opts);
                var $rightSidePanel = rightSideBuilder.build(opts);
                var $leftSide = leftSideBuilder.build(opts);

                return new BEM({
                    block: "imcms-image_editor",
                    elements: {
                        "head": opts.imageWindowBuilder.buildHead(texts.title),
                        "image-characteristics": $bodyHead,
                        "left-side": $leftSide,
                        "right-side": $rightSidePanel
                    }
                }).buildBlockStructure("<div>", {"class": "imcms-editor-window"});
            }
        }
    }
);
{'fraction_non_alphanumeric': 0.12006196746707978, 'fraction_numerical': 0.002711076684740511, 'mean_word_length': 1.685031185031185, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, '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': '2773635', 'n_tokens_mistral': 745, 'n_tokens_neox': 687, 'n_words': 112}