<commit_before><div ng-controller="WysiwygController"
     ng-base-url="<?= $this->basePath('/assets/admin/core/js/tinymce') ?>"
     ng-content-css="<?= $this->basePath('/assets/admin/core/css/admin42.min.css') ?>"
     ng-file-browser="<?= $this->url('admin/file-dialog') ?>"
     ng-file-browser-titles='{"file":"Media & Sitemap Browser","image":"Media Browser","media":"Media Browser"}'
     class="form-group<?= ($this->hasErrors) ? ' has-error has-feedback' : '' ?>">

    <label for="<?= $this->element->getName() ?>" class="col-sm-2 control-label">
        <?= $this->translate($this->element->getLabel(), 'admin') ?>
        <?php if ($this->element->hasAttribute('required')): ?>
            <abbr title="required">*</abbr>
        <?php endif; ?>
    </label>

    <div class="col-sm-10">

        <?= $this->formWysiwyg(
            $this->element->setAttributes(
                [
                    'class'                  => 'form-control',
                    'id'                     => uniqid('wysiwyg_'),
                    'data-ng-model'          => $this->admin()->generateAngularModelName($this->element->getName()),
                    'data-ng-initial'        => '',
                    'data-ui-tinymce'        => 'tinymceOptionsFull'
                ]
            )
        ) ?>

        <?php if ($this->hasErrors): ?>
            <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
            <ul class="list-unstyled text-danger">
                <?php foreach ($this->element->getMessages() as $message): ?>
                    <li><?= $message ?></li>
                <?php endforeach; ?>
            </ul>
        <?php endif; ?>
    </div>
</div>
<commit_msg>tinymce: unique model<commit_after><?php
$name = uniqid('wysiwyg_');
?>
<div ng-controller="WysiwygController"
     ng-base-url="<?= $this->basePath('/assets/admin/core/js/tinymce') ?>"
     ng-content-css="<?= $this->basePath('/assets/admin/core/css/admin42.min.css') ?>"
     ng-file-browser="<?= $this->url('admin/file-dialog') ?>"
     ng-file-browser-titles='{"file":"Media & Sitemap Browser","image":"Media Browser","media":"Media Browser"}'
     class="form-group<?= ($this->hasErrors) ? ' has-error has-feedback' : '' ?>">

    <label for="<?= $this->element->getName() ?>" class="col-sm-2 control-label">
        <?= $this->translate($this->element->getLabel(), 'admin') ?>
        <?php if ($this->element->hasAttribute('required')): ?>
            <abbr title="required">*</abbr>
        <?php endif; ?>
    </label>

    <div class="col-sm-10">

        <?= $this->formWysiwyg(
            $this->element->setAttributes(
                [
                    'class'                  => 'form-control',
                    'id'                     => $name,
                    'data-ng-model'          => $name,
                    'data-ng-initial'        => '',
                    'data-ui-tinymce'        => 'tinymceOptionsFull'
                ]
            )
        ) ?>

        <?php if ($this->hasErrors): ?>
            <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
            <ul class="list-unstyled text-danger">
                <?php foreach ($this->element->getMessages() as $message): ?>
                    <li><?= $message ?></li>
                <?php endforeach; ?>
            </ul>
        <?php endif; ?>
    </div>
</div>

{'fraction_non_alphanumeric': 0.20620972466315174, 'fraction_numerical': 0.0029291154071470417, 'mean_word_length': 1.8842905405405406, 'pattern_counts': {'":': 6, '<': 60, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2848465', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1010, 'n_words': 145}