<commit_before><?php
    $mediaPath = Config::get('cms.storage.media.path', Config::get('system.storage.media.path', '/storage/app/media'));
?>
<div
    class="layout-absolute"
    data-control="menu-item-editor"
    data-alias="<?= $this->alias ?>"
    data-item-properties="<?= e($itemProperties) ?>"
    data-storage-media-path="<?= Url::to($mediaPath) ?>"
>
    <div class="control-scrollbar" data-control="scrollbar">
        <div class="control-treeview treeview-light"
            data-control="treeview"
            id="<?= $this->getId('item-list') ?>"
        >
            <?= $this->makePartial('items', ['items' => $items]) ?>
        </div>
    </div>

    <script type="text/template" data-editor-template>
        <?= $this->makePartial('editortemplate') ?>
    </script>
<commit_msg>Use makeEditorTemplate helper<commit_after><?php
    $mediaPath = Config::get('cms.storage.media.path', Config::get('system.storage.media.path', '/storage/app/media'));
    list($editorTemplate, $editorScripts) = $this->makeEditorTemplate();
?>
<div
    class="layout-absolute"
    data-control="menu-item-editor"
    data-alias="<?= $this->alias ?>"
    data-item-properties="<?= e($itemProperties) ?>"
    data-storage-media-path="<?= Url::to($mediaPath) ?>"
>
    <div class="control-scrollbar" data-control="scrollbar">
        <div class="control-treeview treeview-light"
            data-control="treeview"
            id="<?= $this->getId('item-list') ?>"
        >
            <?= $this->makePartial('items', ['items' => $items]) ?>
        </div>
    </div>

    <script type="text/template" data-editor-template>
        <?= $editorTemplate ?>
    </script>
    
    <?= $editorScripts ?>

{'fraction_non_alphanumeric': 0.21188934667451442, 'fraction_numerical': 0.0, 'mean_word_length': 3.2183622828784118, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 42, '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': '7548973', 'n_tokens_mistral': 535, 'n_tokens_neox': 543, 'n_words': 72}