<commit_before><!DOCTYPE html>
<html>
<head>
    <script>
        parent.$(function() {
            if (parent.relations['{{ relation }}'] != undefined) {
                parent.relations['{{ relation }}'].loadOptions();
                parent.relations['{{ relation }}'].addOption('{{ id }}');

                parent.relations['{{ relation }}'].getModal().modal('hide');
            }
        });
    </script><commit_msg>Close the window when a tinyMCE editor is used when adding a new content item.<commit_after><!DOCTYPE html>
<html>
<head>
    <script>
        /**
         * @type object|null
         */
        var tinymce = top.tinymce;
        if ('undefined' != typeof(tinymce)) {
            tinymce.activeEditor.windowManager.close();
        }

        /**
         * @type object|null
         */
        var relations = parent.relations;
        if ('undefined' != typeof(relations)) {
            parent.$(function() {
                if (parent.relations['{{ relation }}'] != undefined) {
                    parent.relations['{{ relation }}'].loadOptions();
                    parent.relations['{{ relation }}'].addOption('{{ id }}');

                    parent.relations['{{ relation }}'].getModal().modal('hide');
                }
            });
        }
    </script>
{'fraction_non_alphanumeric': 0.17528957528957528, 'fraction_numerical': 0.0, 'mean_word_length': 1.7870967741935484, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6605049', 'n_tokens_mistral': 353, 'n_tokens_neox': 325, 'n_words': 72}