<commit_before>{assign var="data" value=$item.data}
<article id="mlkshk-{$data.id}" class="item mlkshk">
	{assign var="event_type" value="saved"}
	{assign var="event_icon" value="user"}
	{assign var="event_label" value="saved on mlkshk"}
	<div class="event event-{$event_type} text-muted"><i class="glyphicon glyphicon-{$event_icon}"></i> <a href="{$cfg.abs_root_url|escape}{$item.user.username|escape}/" class="text-muted">{if $cfg.user.id == $item.user.id}you{else}{$item.user.username|escape}{/if}</a> {$event_label}</div>
	<div class="content">
		<h3>{$data.title|escape}</h3>
		{if $data.video_embed}
			{$data.video_embed}
		{elseif $data.has_gif}
			<a href="{$data.image_href|escape}" id="gif-{$data.id}" class="media-gif"><img src="{$data.poster_src|escape}" alt="{$data.title|escape}"><span class="label">gif</span></a>
			<script>
			{$data.javascript}
			</script>
		{else}
			<a href="{$data.image_href|escape}"><img src="{$data.image_src|escape}" alt="{$data.title|escape}"></a>
		{/if}
		<div class="description">{$item.data.description}</div>
	</div>
</article>
<commit_msg>:bookmark: better mlkshk item labeling<commit_after>{assign var="data" value=$item.data}
<article id="mlkshk-{$data.id}" class="item mlkshk">
	{if $item.filter == 'faves'}
		{assign var="event_type" value="fave"}
		{assign var="event_icon" value="star"}
		{assign var="event_action" value="faved"}
		{assign var="event_preposition" value="on"}
		{assign var="event_where" value="mlkshk"}
	{elseif $item.filter == 'user'}
		{assign var="event_type" value="saved"}
		{assign var="event_icon" value="user"}
		{assign var="event_action" value="saved"}
		{assign var="event_preposition" value="on"}
		{assign var="event_where" value="mlkshk"}
	{else}
		{assign var="event_type" value="saved"}
		{assign var="event_icon" value="user"}
		{assign var="event_action" value="saved"}
		{assign var="event_preposition" value="in"}
		{assign var="event_where" value=$item.filter}
	{/if}
	<div class="event event-{$event_type} text-muted"><i class="glyphicon glyphicon-{$event_icon}"></i> <a href="{$cfg.abs_root_url|escape}{$item.user.username|escape}/" class="text-muted">{if $cfg.user.id == $item.user.id}you{else}{$item.user.username|escape}{/if}</a> {$event_action|escape} {$event_preposition|escape} {$event_where|escape}</div>
	<div class="content">
		<h3>{$data.title|escape}</h3>
		{if $data.video_embed}
			{$data.video_embed}
		{elseif $data.has_gif}
			<a href="{$data.image_href|escape}" id="gif-{$data.id}" class="media-gif"><img src="{$data.poster_src|escape}" alt="{$data.title|escape}"><span class="label">gif</span></a>
			<script>
			{$data.javascript}
			</script>
		{else}
			<a href="{$data.image_href|escape}"><img src="{$data.image_src|escape}" alt="{$data.title|escape}"></a>
		{/if}
		<div class="description">{$item.data.description}</div>
	</div>
</article>

{'fraction_non_alphanumeric': 0.22851153039832284, 'fraction_numerical': 0.001397624039133473, 'mean_word_length': 6.779891304347826, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '6065077', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1055, 'n_words': 164}