<commit_before><div class="center">
    {if empty($error)}
        {* Main Post *}
        <div class="left">
            {{ $avatarDesign->get($post->username, $post->firstName, $post->sex, 64) }}<br />
            <p>
                <a
                    href="{{ $design->url('forum','forum','showpostbyprofile', $post->username) }}"
                    title="{lang "See %0%'s topics", $post->username}"
                    data-load="ajax">{lang "%0%'s topics", $post->username}
                </a>
            </p>
        </div>

        <p>
            {% Framework\Parse\Emoticon::init(
                Framework\Security\Ban\Ban::filterWord($post->message)
            ) %}
        </p>

        <div class="post-ident">
            <p class="small italic">
                {lang 'Posted on %0%', $dateTime->get($post->createdDate)->dateTime()}
                {if !empty($post->updatedDate)}
                    | <span class="post-edit">{lang 'Last Edited %0%', $dateTime->get($post->updatedDate)->dateTime()}</span>
                {/if}
            </p>
            <p>
                {{ $design->like($post->username, $post->firstName, $post->sex) }} | {{ $design->report($post->profileId, $post->username, $post->firstName, $post->sex) }}
            </p>
        </div>

        {if !empty($post->profileId) AND $is_admin_auth AND !UserCore::isAdminLoggedAs()}
            <p class="underline">
                <a href="{{ $design->url(PH7_ADMIN_MOD,'user','loginuseras',$post->profileId) }}" title="{lang 'Login As this User to edit their topic'}">{lang 'Login as this User'}</a>
            </p>
        {/if}

        <a class="btn btn-default btn-sm" rel="nofollow" href="{{ $design->url('forum', 'forum', 'reply', "$post->name,$post->forumId,$post->title,$post->topicId") }}" title="{lang 'Reply to the topic'}">{lang 'Reply'}</a>

        {if $is_user_auth AND $member_id == $post->profileId}
            | <a class="btn btn-default btn-sm" href="{{ $design->url('forum', 'forum', 'edittopic', "$post->name,$post->forumId,$post->title,$post->topicId") }}" title="{lang 'Edit your topic'}">{lang 'Edit'}</a> |  {{ $design->popupLinkConfirm(t('Delete Topic'), 'forum', 'forum', 'deletetopic', $post->topicId.'_'.$post->forumId.'_'.$post->name, 'btn btn-default btn-sm') }}
        {/if}

        {* Replies *}
        {if !empty($messages)}
            {each $msg in $messages}
                {{ $relative_url = Framework\Mvc\Router\Uri::get('forum', 'forum', 'post', "$post->name,$post->forumId,$post->title,$post->topicId") . '#' . $msg->messageId }}

                <div class="msg_content" id="{% $msg->messageId %}"><commit_msg>Add social media sharing on forum topic<commit_after><div class="center">
    {if empty($error)}
        {* Main Post *}
        <div class="left">
            {{ $avatarDesign->get($post->username, $post->firstName, $post->sex, 64) }}<br />
            <p>
                <a
                    href="{{ $design->url('forum','forum','showpostbyprofile', $post->username) }}"
                    title="{lang "See %0%'s topics", $post->username}"
                    data-load="ajax">{lang "%0%'s topics", $post->username}
                </a>
            </p>
        </div>

        <p>
            {% Framework\Parse\Emoticon::init(
                Framework\Security\Ban\Ban::filterWord($post->message)
            ) %}
        </p>

        <div class="post-ident">
            {{ $design->littleLikeApi() }}
            <p class="small italic">
                {lang 'Posted on %0%', $dateTime->get($post->createdDate)->dateTime()}
                {if !empty($post->updatedDate)}
                    | <span class="post-edit">{lang 'Last Edited %0%', $dateTime->get($post->updatedDate)->dateTime()}</span>
                {/if}
            </p>
            <p>
                {{ $design->like($post->username, $post->firstName, $post->sex) }} | {{ $design->report($post->profileId, $post->username, $post->firstName, $post->sex) }}
            </p>
        </div>

        {if !empty($post->profileId) AND $is_admin_auth AND !UserCore::isAdminLoggedAs()}
            <p class="underline">
                <a href="{{ $design->url(PH7_ADMIN_MOD,'user','loginuseras',$post->profileId) }}" title="{lang 'Login As this User to edit their topic'}">{lang 'Login as this User'}</a>
            </p>
        {/if}

        <a class="btn btn-default btn-sm" rel="nofollow" href="{{ $design->url('forum', 'forum', 'reply', "$post->name,$post->forumId,$post->title,$post->topicId") }}" title="{lang 'Reply to the topic'}">{lang 'Reply'}</a>

        {if $is_user_auth AND $member_id == $post->profileId}
            | <a class="btn btn-default btn-sm" href="{{ $design->url('forum', 'forum', 'edittopic', "$post->name,$post->forumId,$post->title,$post->topicId") }}" title="{lang 'Edit your topic'}">{lang 'Edit'}</a> |  {{ $design->popupLinkConfirm(t('Delete Topic'), 'forum', 'forum', 'deletetopic', $post->topicId.'_'.$post->forumId.'_'.$post->name, 'btn btn-default btn-sm') }}
        {/if}

        {* Replies *}
        {if !empty($messages)}
            {each $msg in $messages}
                {{ $relative_url = Framework\Mvc\Router\Uri::get('forum', 'forum', 'post', "$post->name,$post->forumId,$post->title,$post->topicId") . '#' . $msg->messageId }}

                <div class="msg_content" id="{% $msg->messageId %}">
{'fraction_non_alphanumeric': 0.21766561514195584, 'fraction_numerical': 0.002597884579699388, 'mean_word_length': 2.3624454148471616, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 156, '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': '5563185', 'n_tokens_mistral': 1748, 'n_tokens_neox': 1654, 'n_words': 311}