<commit_before>{% load get_attachment %}
{% load is_image %}
<li id="comment{{ comment.id }}" class="comment-item padded" itemscope itemtype="http://schema.org/Comment">
	<a id="{{ comment.id }}"></a>
	<div class="comment-item-inner">
		<div class="comment-item-header">
			<div class="comment-item-permalink">
				<time datetime="{{ comment.meta.created|date:"c" }}" itemprop="dateCreated"></time>
				<span style="color:#eee">&bull;</span>
				{% if hide_permalink %}
					<a href="{% url 'single-comment' comment.id %}"><span class="sprite sprite-format-link" itemprop="discussionUrl"></span></a>
				{% else %}
				<a href="{% url 'single-comment' comment.id %}" itemprop="discussionUrl">#{{ forloop.counter|add:pagination.offset }}</a>
				{% endif %}
			</div>
			<div class="comment-item-author" itemprop="author" itemscope itemtype="http://schema.org/Person">
			{% if comment.meta.created_by %}
				<a href="{% url 'single-profile' comment.meta.created_by.id %}" itemprop="url"><img src="{% if 'gravatar' in comment.meta.created_by.avatar %}{{comment.meta.created_by.avatar}}{% elif 'files' in comment.meta.created_by.avatar %}https://{{site.subdomain_key}}.microco.sm{{comment.meta.created_by.avatar}}{% else %}/static/img/avatar.gif{% endif %}" alt="Avatar for {{ comment.meta.created_by.profile_name | safe }}" align="left" class="gravatar" itemprop="image" /> <strong class="comment-item-author-name" itemprop="name">{{ comment.meta.created_by.profile_name | safe | truncatechars:25 }}</strong></a>
				{% endif %}

				{% if comment.in_reply_to %}
				<span class="comment-item-in-reply-to" itemprop="mentions" itemscope itemtype="http://schema.org/Comment">
					<span class="sprite sprite-arrow-forward"></span>
					in reply to
					<a href="{% url 'incontext-comment' comment.in_reply_to %}" itemprop="url">@{{ comment.meta.links.inReplyToAuthor.title | safe }}</a>
				</span>
				{% endif %}
			</div>
		</div>
		<div class="comment-item-body" itemprop="text">
			{{ comment.html|safe }}

			{% if attachments %}
				{% get_attachment comment.id as comment_attachments %}
				{% if comment_attachments %}
					<ul class="comment-item-body-attachments">
					{% for attachment in comment_attachments.items %}
						{# template_tags/is_image.py #}
							{% if attachment.file_ext|is_image %}<commit_msg>in reply to links go to the comment, profile links go to the profile<commit_after>{% load get_attachment %}
{% load is_image %}
<li id="comment{{ comment.id }}" class="comment-item padded" itemscope itemtype="http://schema.org/Comment">
	<a id="{{ comment.id }}"></a>
	<div class="comment-item-inner">
		<div class="comment-item-header">
			<div class="comment-item-permalink">
				<time datetime="{{ comment.meta.created|date:"c" }}" itemprop="dateCreated"></time>
				<span style="color:#eee">&bull;</span>
				{% if hide_permalink %}
					<a href="{% url 'single-comment' comment.id %}"><span class="sprite sprite-format-link" itemprop="discussionUrl"></span></a>
				{% else %}
				<a href="{% url 'single-comment' comment.id %}" itemprop="discussionUrl">#{{ forloop.counter|add:pagination.offset }}</a>
				{% endif %}
			</div>
			<div class="comment-item-author" itemprop="author" itemscope itemtype="http://schema.org/Person">
			{% if comment.meta.created_by %}
				<a href="{% url 'single-profile' comment.meta.created_by.id %}" itemprop="url"><img src="{% if 'gravatar' in comment.meta.created_by.avatar %}{{comment.meta.created_by.avatar}}{% elif 'files' in comment.meta.created_by.avatar %}https://{{site.subdomain_key}}.microco.sm{{comment.meta.created_by.avatar}}{% else %}/static/img/avatar.gif{% endif %}" alt="Avatar for {{ comment.meta.created_by.profile_name | safe }}" align="left" class="gravatar" itemprop="image" /> <strong class="comment-item-author-name" itemprop="name">{{ comment.meta.created_by.profile_name | safe | truncatechars:25 }}</strong></a>
				{% endif %}

				{% if comment.in_reply_to %}
				<span class="comment-item-in-reply-to" itemprop="mentions" itemscope itemtype="http://schema.org/Comment">
					<span class="sprite sprite-arrow-forward"></span>
					<a href="{% url 'incontext-comment' comment.in_reply_to %}" itemprop="url">in reply to</a> <a href="{{ comment.meta.links.inReplyToAuthor.href | safe }}">@{{ comment.meta.links.inReplyToAuthor.title | safe }}</a>
				</span>
				{% endif %}
			</div>
		</div>
		<div class="comment-item-body" itemprop="text">
			{{ comment.html|safe }}

			{% if attachments %}
				{% get_attachment comment.id as comment_attachments %}
				{% if comment_attachments %}
					<ul class="comment-item-body-attachments">
					{% for attachment in comment_attachments.items %}
						{# template_tags/is_image.py #}
							{% if attachment.file_ext|is_image %}
{'fraction_non_alphanumeric': 0.1953371140516698, 'fraction_numerical': 0.0008401596303297626, 'mean_word_length': 4.543655413271246, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 2, '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': '7045671', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1531, 'n_words': 294}