<commit_before><section>
    <form name="bookmarkmucadd">
        {if="isset($conference)"}
            <h3>{$c->__('rooms.edit')}</h3>
        {else}
            <h3>{$c->__('rooms.add')}</h3>
        {/if}

        <div>
            <input
                {if="isset($conference)"}
                    value="{$conference->conference}" disabled
                {elseif="isset($id)"}
                    value="{$id}" disabled
                {/if}
                name="jid"
                {if="isset($info)"}
                    placeholder="chatroom@{$info->server}"
                {else}
                    placeholder="<EMAIL>"
                {/if}
                type="email"
                required />
            <label>{$c->__('chatrooms.id')}</label>
        </div>
        <div>
            <input
                {if="isset($conference)"}
                    value="{$conference->name}"
                {elseif="isset($info)"}
                    value="{$info->name}"
                {/if}
                name="name"
                placeholder="{$c->__('chatrooms.name_placeholder')}"
                required />
            <label>{$c->__('chatrooms.name')}</label>
        </div>
        <div>
            <input
                {if="isset($conference) && !empty($conference->nick)"}
                    value="{$conference->nick}"
                {else}
                    value="{$username}"
                {/if}
                name="nick"
                placeholder="{$username}"/>
            <label>{$c->__('chatrooms.nickname')}</label>
        </div>
        <div>
            <ul class="list thick">
                <li>
                    <span class="primary">
                        <div class="checkbox">
                            <input
                                {if="isset($conference) && $conference->autojoin"}
                                    checked
                                {/if}
                                type="checkbox"
                                id="autojoin"
                                name="autojoin"/>
                            <label for="autojoin"></label>
                        </div>
                    </span>
                    <p class="normal line">{$c->__('chatrooms.autojoin')}</p>
                </li>
            </ul>
        </div>
    </section>
    <div>
        <button class="button flat" onclick="Dialog_ajaxClear()">
            {$c->__('button.cancel')}
        </button>
        {if="isset($conference)"}
            <button
                class="button flat"
                onclick="Rooms_ajaxChatroomAdd(MovimUtils.parseForm('bookmarkmucadd'));">
                {$c->__('button.edit')}
            </button>
        {else}
            <button
                class="button flat"
                onclick="Rooms_ajaxChatroomAdd(MovimUtils.parseForm('bookmarkmucadd'));">
                {$c->__('button.add')}<commit_msg>Small UI fix in the _rooms_add form<commit_after><section>
    <form name="bookmarkmucadd">
        {if="isset($conference)"}
            <h3>{$c->__('rooms.edit')}</h3>
        {else}
            <h3>{$c->__('rooms.add')}</h3>
        {/if}

        <div>
            <input
                {if="isset($conference)"}
                    value="{$conference->conference}" disabled
                {elseif="isset($id)"}
                    value="{$id}" disabled
                {/if}
                name="jid"
                {if="isset($info)"}
                    placeholder="chatroom@{$info->server}"
                {else}
                    placeholder="<EMAIL>"
                {/if}
                type="email"
                required />
            <label>{$c->__('chatrooms.id')}</label>
        </div>
        <div>
            <input
                {if="isset($conference)"}
                    value="{$conference->name}"
                {elseif="isset($info)"}
                    value="{$info->name}"
                {/if}
                name="name"
                placeholder="{$c->__('chatrooms.name_placeholder')}"
                required />
            <label>{$c->__('chatrooms.name')}</label>
        </div>
        <div>
            <input
                {if="isset($conference) && !empty($conference->nick)"}
                    value="{$conference->nick}"
                {else}
                    value="{$username}"
                {/if}
                name="nick"
                placeholder="{$username}"/>
            <label>{$c->__('chatrooms.nickname')}</label>
        </div>
        <div>
            <ul class="list thick">
                <li>
                    <span class="primary">
                        <div class="checkbox">
                            <input
                                {if="isset($conference) && $conference->autojoin"}
                                    checked
                                {/if}
                                type="checkbox"
                                id="autojoin"
                                name="autojoin"/>
                            <label for="autojoin"></label>
                        </div>
                    </span>
                    <p></p>
                    <p class="normal">{$c->__('chatrooms.autojoin')}</p>
                </li>
            </ul>
        </div>
    </section>
    <div>
        <button class="button flat" onclick="Dialog_ajaxClear()">
            {$c->__('button.cancel')}
        </button>
        {if="isset($conference)"}
            <button
                class="button flat"
                onclick="Rooms_ajaxChatroomAdd(MovimUtils.parseForm('bookmarkmucadd'));">
                {$c->__('button.edit')}
            </button>
        {else}
            <button
                class="button flat"
                onclick="Rooms_ajaxChatroomAdd(MovimUtils.parseForm('bookmarkmucadd'));">
                {$c->__('button.add')}
{'fraction_non_alphanumeric': 0.15736211840107944, 'fraction_numerical': 0.0013493000505987519, 'mean_word_length': 1.0561719833564494, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 127, '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': '2113926', 'n_tokens_mistral': 1587, 'n_tokens_neox': 1499, 'n_words': 203}