<commit_before><div id="container" class="grid">
    <div id="content">
        <h2>Latest Messages</h2>

        <div id="messageContainer" data-poll="post:*" data-poll-id="{$posts[0].id}">
            {foreach $posts as $post}
                <div class="msg">
                    <img src="./assets/images/avatar.png" class="avatar">
                    <div class="msgContent">
                        <span class="name">{$post.name}</span>
                        <span class="pseudo">@{$post.pseudo}</span>
                        <br/>
                        <p class="message">
                            {$post.message}
                        </p>
                        <br/>
                        <span class="time">some time ago</span>
                    </div>
                    <div class="clear"></div>
                </div>
            {/foreach}
        </div><commit_msg>Front: handle no post case<commit_after><div id="container" class="grid">
    <div id="content">
        <h2>Latest Messages</h2>

        <div id="messageContainer" data-poll="post:*" data-poll-id="{if isset($posts[0])}{$posts[0].id}{else}0{/if}">
            {foreach $posts as $post}
                <div class="msg">
                    <img src="./assets/images/avatar.png" class="avatar">
                    <div class="msgContent">
                        <span class="name">{$post.name}</span>
                        <span class="pseudo">@{$post.pseudo}</span>
                        <br/>
                        <p class="message">
                            {$post.message}
                        </p>
                        <br/>
                        <span class="time">some time ago</span>
                    </div>
                    <div class="clear"></div>
                </div>
            {/foreach}
        </div>
{'fraction_non_alphanumeric': 0.15997830802603036, 'fraction_numerical': 0.004338394793926247, 'mean_word_length': 1.1478463329452853, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '7432498', 'n_tokens_mistral': 501, 'n_tokens_neox': 472, 'n_words': 88}