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

        {if="isset($id)"}
            <h4>{$id}</h4>
        {/if}

        {if="$gateways->isNotEmpty() && !isset($conference)"}
            <div>
                <div class="select">
                    <select onchange="RoomsUtils_ajaxDiscoGateway(this.value)">
                        <option value="">{$c->__('rooms.default_room')}</option>
                        {loop="$gateways"}
                            <option value="{$value->server}">
                                {$value->name}
                                {if="$value->identities()->first()"}
                                    ({$value->identities()->first()->type})
                                {/if}
                            </option>
                        {/loop}
                    </select>
                </div>
                <label>{$c->__('rooms.type_room')}</label>
            </div>
        {/if}

        <div id="gateway_rooms"></div>

        <datalist id="suggestions">
        </datalist>

        {if="$create"}
            <div>
                <ul class="list middle fill">
                    <li>
                        <span class="primary icon gray">
                            <i class="material-icons">people_alt</i>
                        </span>
                        <span class="control">
                            <div class="radio">
                                <input name="type" value="groupchat"
                                    id="type_groupchat" type="radio"
                                    checked>
                                <label for="type_groupchat"></label>
                            </div>
                        </span>
                        <div>
                            <p>{$c->__('room.group_chat')}</p>
                            <p>{$c->__('room.group_chat_text')}</p>
                        </div>
                    </li>
                    <li>
                        <span class="primary icon gray">
                            <i class="material-icons">wifi_tethering</i>
                        </span>
                        <span class="control">
                            <div class="radio">
                                <input name="type" value="channel"
                                    id="type_channel" type="radio">
                                <label for="type_channel"></label><commit_msg>Hide gateways on Chatroom creation<commit_after><section>
    <form name="bookmarkmucadd">
        {if="$create"}
            <h3>{$c->__('rooms.create')}</h3>
        {else}
            {if="isset($conference)"}
                <h3>{$c->__('rooms.edit')}</h3>
            {else}
                <h3>{$c->__('rooms.join')}</h3>
            {/if}
        {/if}

        {if="isset($id)"}
            <h4>{$id}</h4>
        {/if}

        {if="!$create"}
            {if="$gateways->isNotEmpty() && !isset($conference)"}
                <div>
                    <div class="select">
                        <select onchange="RoomsUtils_ajaxDiscoGateway(this.value)">
                            <option value="">{$c->__('rooms.default_room')}</option>
                            {loop="$gateways"}
                                <option value="{$value->server}">
                                    {$value->name}
                                    {if="$value->identities()->first()"}
                                        ({$value->identities()->first()->type})
                                    {/if}
                                </option>
                            {/loop}
                        </select>
                    </div>
                    <label>{$c->__('rooms.type_room')}</label>
                </div>
            {/if}

            <div id="gateway_rooms"></div>

            <datalist id="suggestions">
            </datalist>
        {/if}

        {if="$create"}
            <div>
                <ul class="list middle fill">
                    <li>
                        <span class="primary icon gray">
                            <i class="material-icons">people_alt</i>
                        </span>
                        <span class="control">
                            <div class="radio">
                                <input name="type" value="groupchat"
                                    id="type_groupchat" type="radio"
                                    checked>
                                <label for="type_groupchat"></label>
                            </div>
                        </span>
                        <div>
                            <p>{$c->__('room.group_chat')}</p>
                            <p>{$c->__('room.group_chat_text')}</p>
                        </div>
                    </li>
                    <li>
                        <span class="primary icon gray">
                            <i class="material-icons">wifi_tethering</i>
                        </span>
                        <span class="control">
                            <div class="radio">
                                <input name="type" value="channel"
                                    id="type_channel" type="radio">
                                <label for="type_channel"></label>
{'fraction_non_alphanumeric': 0.14800215015230245, 'fraction_numerical': 0.002866869736606343, 'mean_word_length': 0.8594270486342438, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6798971', 'n_tokens_mistral': 1414, 'n_tokens_neox': 1343, 'n_words': 195}