<commit_before>{* $Id$ *}
{*<div class="clearfix content">*}
{if $thread_style != 'commentStyle_headers'}
{*<div class="clearfix postbody-content">*}
	{$comment.parsed}
	{* <span class="signature"><!-- SIGNATURE --></span> *}
{*</div>*}
{/if}

{*</div>*}

{if $thread_style != 'commentStyle_headers' and count($comment.attachments) > 0}
<div class="attachments">
	{section name=ix loop=$comment.attachments}
	<a class="link" href="tiki-download_forum_attachment.php?attId={$comment.attachments[ix].attId}">
	{icon _id='attach' alt='{tr}Attachment{/tr}'}
	{$comment.attachments[ix].filename} ({$comment.attachments[ix].filesize|kbsize})</a>
	{if $tiki_p_admin_forum eq 'y'}
	<a class="link"
		{if $first eq 'y'}
		href="tiki-view_forum_thread.php?topics_offset={$smarty.request.topics_offset}{$topics_sort_mode_param}{$topics_find_param}{$topics_threshold_param}&amp;comments_offset={$smarty.request.topics_offset}{$thread_sort_mode_param}&amp;comments_threshold={$smarty.request.topics_threshold}{$comments_find_param}&amp;forumId={$forum_info.forumId}{$comments_per_page_param}&amp;comments_parentId={$comments_parentId}&amp;remove_attachment={$comment.attachments[ix].attId}"
		{else}
		href="tiki-view_forum_thread.php?topics_offset={$smarty.request.topics_offset}&amp;topics_sort_mode={$smarty.request.topics_sort_mode}&amp;topics_find={$smarty.request.topics_find}&amp;topics_threshold={$smarty.request.topics_threshold}&amp;comments_offset={$smarty.request.topics_offset}&amp;thread_sort_mode={$smarty.request.topics_sort_mode}&amp;comments_threshold={$smarty.request.topics_threshold}&amp;comments_find={$smarty.request.topics_find}&amp;forumId={$forum_info.forumId}&amp;comments_per_page={$comments_per_page}&amp;comments_parentId={$comments_parentId}&amp;remove_attachment={$comment.attachments[ix].attId}"
		{/if}
	>{icon _id='cross' alt='{tr}Remove{/tr}'}</a>
	{/if}
	<br />
	{/section}
{*</div>*}
{/if}<commit_msg>[FIX] forum: fix the html structure when posting in the forum with an attached file (with coelesce)<commit_after>{* $Id$ *}
{*<div class="clearfix content">*}
{if $thread_style != 'commentStyle_headers'}
{*<div class="clearfix postbody-content">*}
	{$comment.parsed}
	{* <span class="signature"><!-- SIGNATURE --></span> *}
{*</div>*}
{/if}

{*</div>*}

{if $thread_style != 'commentStyle_headers' and count($comment.attachments) > 0}
<div class="attachments">
	{section name=ix loop=$comment.attachments}
	<a class="link" href="tiki-download_forum_attachment.php?attId={$comment.attachments[ix].attId}">
	{icon _id='attach' alt='{tr}Attachment{/tr}'}
	{$comment.attachments[ix].filename} ({$comment.attachments[ix].filesize|kbsize})</a>
	{if $tiki_p_admin_forum eq 'y'}
	<a class="link"
		{if $first eq 'y'}
		href="tiki-view_forum_thread.php?topics_offset={$smarty.request.topics_offset}{$topics_sort_mode_param}{$topics_find_param}{$topics_threshold_param}&amp;comments_offset={$smarty.request.topics_offset}{$thread_sort_mode_param}&amp;comments_threshold={$smarty.request.topics_threshold}{$comments_find_param}&amp;forumId={$forum_info.forumId}{$comments_per_page_param}&amp;comments_parentId={$comments_parentId}&amp;remove_attachment={$comment.attachments[ix].attId}"
		{else}
		href="tiki-view_forum_thread.php?topics_offset={$smarty.request.topics_offset}&amp;topics_sort_mode={$smarty.request.topics_sort_mode}&amp;topics_find={$smarty.request.topics_find}&amp;topics_threshold={$smarty.request.topics_threshold}&amp;comments_offset={$smarty.request.topics_offset}&amp;thread_sort_mode={$smarty.request.topics_sort_mode}&amp;comments_threshold={$smarty.request.topics_threshold}&amp;comments_find={$smarty.request.topics_find}&amp;forumId={$forum_info.forumId}&amp;comments_per_page={$comments_per_page}&amp;comments_parentId={$comments_parentId}&amp;remove_attachment={$comment.attachments[ix].attId}"
		{/if}
	>{icon _id='cross' alt='{tr}Remove{/tr}'}</a>
	{/if}
	<br />
	{/section}
</div>
{/if}
{'fraction_non_alphanumeric': 0.18886629384850026, 'fraction_numerical': 0.0005083884087442806, 'mean_word_length': 11.258566978193146, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 33, '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': '4928217', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1447, 'n_words': 135}