<commit_before>{capture assign='pageTitle'}{$articleContent->title}{/capture}

{capture assign='contentHeader'}
	<header class="contentHeader articleContentHeader">
		<div class="contentHeaderTitle">
			<h1 class="contentTitle">{$articleContent->title}</h1>
			<div class="contentHeaderDescription">
				{$articleContent->getArticle()->getCategory()->getTitle()}
			</div>
			<ul class="inlineList contentHeaderMetaData articleMetaData">
				<li>
					<span class="icon icon16 fa-user"></span>
					{if $article->userID}
						<a href="{link controller='User' id=$article->userID title=$article->username}{/link}" class="userLink" data-user-id="{@$article->userID}">{$article->username}</a>
					{else}
						{$article->username}
					{/if}
				</li>
				
				<li>
					<span class="icon icon16 fa-clock-o"></span>
					{@$article->time|time}
				</li>
				
				<li>
					<span class="icon icon16 fa-comments"></span>
					{lang}wcf.article.articleComments{/lang}
				</li>
				
				<li>
					<span class="icon icon16 fa-eye"></span>
					{lang}wcf.article.articleViews{/lang}
				</li>
				
				<li class="articleLikesBadge"></li>
			</ul>
		</div>
		
		{hascontent}
			<nav class="contentHeaderNavigation">
				<ul>
					{content}
						{if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle')}<li><a href="{link controller='ArticleEdit' id=$article->articleID isACP=true}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.edit{/lang}</span></a></li>{/if}
						{event name='contentHeaderNavigation'}
					{/content}
				</ul>
			</nav>
		{/hascontent}
	</header>
{/capture}

{capture assign='headContent'}
	{if $article->isMultilingual}
		{foreach from=$article->getLanguageLinks() item='langArticleContent'}
			{if $langArticleContent->getLanguage()}
				<link rel="alternate" hreflang="{$langArticleContent->getLanguage()->languageCode}" href="{$langArticleContent->getLink()}" />
			{/if}
		{/foreach}
	{/if}
{/capture}

{include file='header'}

{if $articleContent->getImage()}
	<section class="section">
		<figure class="articleImage">
			<div class="articleImageWrapper">{@$articleContent->getImage()->getThumbnailTag('large')}</div>
			{if $articleContent->getImage()->caption}
				<figcaption>{$articleContent->getImage()->caption}</figcaption>
			{/if}
		</figure>
	</section>
{/if}

<section class="section articleContent"
         data-object-id="{@$article->articleID}"
         data-object-type="com.woltlab.wcf.likeableArticle" data-like-liked="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->liked}{/if}" data-like-likes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->likes}{else}0{/if}" data-like-dislikes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->dislikes}{else}0{/if}" data-like-users='{ {if $articleLikeData[$article->articleID]|isset}{implode from=$articleLikeData[$article->articleID]->getUsers() item=likeUser}"{@$likeUser->userID}": "{$likeUser->username|encodeJSON}"{/implode}{/if} }' data-user-id="{@$article->userID}"
>
	<div class="htmlContent">
		{if $articleContent->teaser}
			<p class="articleTeaser">{$articleContent->teaser}</p>
		{/if}
	
		{@$articleContent->getFormattedContent()}
	</div>
	
	{if !$tags|empty}
		<ul class="tagList articleTagList">
			{foreach from=$tags item=tag}
				<li><a href="{link controller='Tagged' object=$tag}objectType=com.woltlab.wcf.article{/link}" class="articleTag">{$tag->name}</a></li>
			{/foreach}
		</ul>
	{/if}
	
	<div class="articleLikesSummery"></div>
	
	<ul class="articleLikeButtons buttonGroup"></ul>
	
	{if $article->isMultilingual}
		{foreach from=$article->getLanguageLinks() item='langArticleContent'}
			{if $langArticleContent->getLanguage() && $langArticleContent->languageID != $articleContent->languageID}
				<a href="{$langArticleContent->getLink()}">{$langArticleContent->getLanguage()->languageName}</a>
			{/if}
		{/foreach}
	{/if}
	
	{if ENABLE_SHARE_BUTTONS}
		<section class="section jsOnly">
			<h2 class="sectionTitle">{lang}wcf.message.share{/lang}</h2>
			
			{include file='shareButtons'}
		</section>
	{/if}
</section>

{if ARTICLE_SHOW_ABOUT_AUTHOR}
	<div class="section articleAboutAuthor">
		<h2 class="sectionTitle">{lang}wcf.article.aboutAuthor{/lang}</h2>
		
		<div class="box128">
			<span class="articleAboutAuthorAvatar">{@$article->getUserProfile()->getAvatar()->getImageTag(128)}</span>
			
			<div>
				<div class="articleAboutAuthorText">{$article->getUserProfile()->aboutMe}</div>
				<commit_msg>Hide about box if 'about me' text is empty<commit_after>{capture assign='pageTitle'}{$articleContent->title}{/capture}

{capture assign='contentHeader'}
	<header class="contentHeader articleContentHeader">
		<div class="contentHeaderTitle">
			<h1 class="contentTitle">{$articleContent->title}</h1>
			<div class="contentHeaderDescription">
				{$articleContent->getArticle()->getCategory()->getTitle()}
			</div>
			<ul class="inlineList contentHeaderMetaData articleMetaData">
				<li>
					<span class="icon icon16 fa-user"></span>
					{if $article->userID}
						<a href="{link controller='User' id=$article->userID title=$article->username}{/link}" class="userLink" data-user-id="{@$article->userID}">{$article->username}</a>
					{else}
						{$article->username}
					{/if}
				</li>
				
				<li>
					<span class="icon icon16 fa-clock-o"></span>
					{@$article->time|time}
				</li>
				
				<li>
					<span class="icon icon16 fa-comments"></span>
					{lang}wcf.article.articleComments{/lang}
				</li>
				
				<li>
					<span class="icon icon16 fa-eye"></span>
					{lang}wcf.article.articleViews{/lang}
				</li>
				
				<li class="articleLikesBadge"></li>
			</ul>
		</div>
		
		{hascontent}
			<nav class="contentHeaderNavigation">
				<ul>
					{content}
						{if $__wcf->getSession()->getPermission('admin.content.article.canManageArticle')}<li><a href="{link controller='ArticleEdit' id=$article->articleID isACP=true}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.article.edit{/lang}</span></a></li>{/if}
						{event name='contentHeaderNavigation'}
					{/content}
				</ul>
			</nav>
		{/hascontent}
	</header>
{/capture}

{capture assign='headContent'}
	{if $article->isMultilingual}
		{foreach from=$article->getLanguageLinks() item='langArticleContent'}
			{if $langArticleContent->getLanguage()}
				<link rel="alternate" hreflang="{$langArticleContent->getLanguage()->languageCode}" href="{$langArticleContent->getLink()}" />
			{/if}
		{/foreach}
	{/if}
{/capture}

{include file='header'}

{if $articleContent->getImage()}
	<section class="section">
		<figure class="articleImage">
			<div class="articleImageWrapper">{@$articleContent->getImage()->getThumbnailTag('large')}</div>
			{if $articleContent->getImage()->caption}
				<figcaption>{$articleContent->getImage()->caption}</figcaption>
			{/if}
		</figure>
	</section>
{/if}

<section class="section articleContent"
         data-object-id="{@$article->articleID}"
         data-object-type="com.woltlab.wcf.likeableArticle" data-like-liked="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->liked}{/if}" data-like-likes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->likes}{else}0{/if}" data-like-dislikes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->dislikes}{else}0{/if}" data-like-users='{ {if $articleLikeData[$article->articleID]|isset}{implode from=$articleLikeData[$article->articleID]->getUsers() item=likeUser}"{@$likeUser->userID}": "{$likeUser->username|encodeJSON}"{/implode}{/if} }' data-user-id="{@$article->userID}"
>
	<div class="htmlContent">
		{if $articleContent->teaser}
			<p class="articleTeaser">{$articleContent->teaser}</p>
		{/if}
	
		{@$articleContent->getFormattedContent()}
	</div>
	
	{if !$tags|empty}
		<ul class="tagList articleTagList">
			{foreach from=$tags item=tag}
				<li><a href="{link controller='Tagged' object=$tag}objectType=com.woltlab.wcf.article{/link}" class="articleTag">{$tag->name}</a></li>
			{/foreach}
		</ul>
	{/if}
	
	<div class="articleLikesSummery"></div>
	
	<ul class="articleLikeButtons buttonGroup"></ul>
	
	{if $article->isMultilingual}
		{foreach from=$article->getLanguageLinks() item='langArticleContent'}
			{if $langArticleContent->getLanguage() && $langArticleContent->languageID != $articleContent->languageID}
				<a href="{$langArticleContent->getLink()}">{$langArticleContent->getLanguage()->languageName}</a>
			{/if}
		{/foreach}
	{/if}
	
	{if ENABLE_SHARE_BUTTONS}
		<section class="section jsOnly">
			<h2 class="sectionTitle">{lang}wcf.message.share{/lang}</h2>
			
			{include file='shareButtons'}
		</section>
	{/if}
</section>

{if ARTICLE_SHOW_ABOUT_AUTHOR && $article->getUserProfile()->aboutMe}
	<div class="section articleAboutAuthor">
		<h2 class="sectionTitle">{lang}wcf.article.aboutAuthor{/lang}</h2>
		
		<div class="box128">
			<span class="articleAboutAuthorAvatar">{@$article->getUserProfile()->getAvatar()->getImageTag(128)}</span>
			
			<div>
				<div class="articleAboutAuthorText">{$article->getUserProfile()->aboutMe}</div>
				
{'fraction_non_alphanumeric': 0.2017845624596861, 'fraction_numerical': 0.005160180606321221, 'mean_word_length': 5.298578199052133, 'pattern_counts': {'":': 2, '<': 167, '<?xml version=': 0, '>': 291, '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': '2999670', 'n_tokens_mistral': 3577, 'n_tokens_neox': 3075, 'n_words': 425}