<commit_before>{if="!$c->supported('anonymous') && $c->getView() != 'room'"}
    <ul class="list divided spaced middle {if="!$edit"}active{/if}">
        <li class="subheader" title="{$c->__('page.configuration')}">
            {if="$conferences != null"}
            <span class="control icon active gray" onclick="Rooms_ajaxDisplay({if="$edit"}false{else}true{/if});">
                {if="$edit"}
                    <i class="zmdi zmdi-check"></i>
                {else}
                    <i class="zmdi zmdi-settings"></i>
                {/if}
            </span>
            {/if}
            <p>
                <span class="info">{$conferences|count}</span>
                {$c->__('chatrooms.title')}
            </p>
        </li>
        {loop="$conferences"}
            {$connected = $value->connected}
            <li {if="!$edit"} data-jid="{$value->conference}" {/if}
                {if="$value->nick != null"} data-nick="{$value->nick}" {/if}
                class="room {if="$connected"}online{/if}"
                title="{$value->conference}">
                {$url = $value->getPhoto('s')}
                {if="$url"}
                    <span class="primary
                        {if="!$connected"}disabled{/if} icon bubble color
                        {$value->name|stringToColor}"
                        style="background-image: url({$url});">
                        <span data-key="chat|{$value->conference}" class="counter"></span>
                    </span>
                {else}<commit_msg>Hide the config button in Rooms if there's no conferences yet<commit_after>{if="!$c->supported('anonymous') && $c->getView() != 'room'"}
    <ul class="list divided spaced middle {if="!$edit"}active{/if}">
        <li class="subheader" title="{$c->__('page.configuration')}">
            {if="$conferences->isNotEmpty()"}
            <span class="control icon active gray" onclick="Rooms_ajaxDisplay({if="$edit"}false{else}true{/if});">
                {if="$edit"}
                    <i class="zmdi zmdi-check"></i>
                {else}
                    <i class="zmdi zmdi-settings"></i>
                {/if}
            </span>
            {/if}
            <p>
                <span class="info">{$conferences|count}</span>
                {$c->__('chatrooms.title')}
            </p>
        </li>
        {loop="$conferences"}
            {$connected = $value->connected}
            <li {if="!$edit"} data-jid="{$value->conference}" {/if}
                {if="$value->nick != null"} data-nick="{$value->nick}" {/if}
                class="room {if="$connected"}online{/if}"
                title="{$value->conference}">
                {$url = $value->getPhoto('s')}
                {if="$url"}
                    <span class="primary
                        {if="!$connected"}disabled{/if} icon bubble color
                        {$value->name|stringToColor}"
                        style="background-image: url({$url});">
                        <span data-key="chat|{$value->conference}" class="counter"></span>
                    </span>
                {else}
{'fraction_non_alphanumeric': 0.19569408740359898, 'fraction_numerical': 0.0, 'mean_word_length': 1.638135593220339, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 64, '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': '7192819', 'n_tokens_mistral': 902, 'n_tokens_neox': 854, 'n_words': 144}