<commit_before>{% extends 'base.html' %}

{% block header %}
<link rel="stylesheet" href="/static/css/series-detail.css">
<link rel="stylesheet" href="/static/highlight/default.css">
<script src="/static/highlight/highlight.pack.js"></script>
<link rel="stylesheet" href="/static/css/colorbox.css">
<script src="/static/js/jquery.colorbox-min.js"></script>
{% endblock %}

{% block content %}

<div class="series-detail" id="top"></div>

<div class="col-lg-12">
<h2>{{ series.subject }}</h2>
<div class="series-header-info">
            <span class="message-author" title="{{ series.sender_full_name }}">
                {{ series.sender_display_name }}
	    </span> posted <span class="patch-count">
		    {{ series.total_patches }}
		    patch{% if series.total_patches != 1 %}es{% endif %}
	    </span> <span class="message-age" title="{{ series.date }}">
		    {{ series.age }} ago</span>
  <ul id="series-links">
    <li>
      <span class="fa fa-download"></span> <a
        href="/{{ project }}/{{ series.message_id }}/mbox">Download series mbox</a></li>
    </li>
    {% for op in series.extra_links %}
    <li>
      <span class="fa fa-{% if op.icon %}{{ op.icon }}{% else %}question{% endif %}"></span>
        {{ op.html }}</li>
    {% endfor %}
  </ul>
</div>

{% if series.extra_ops %}
<div id="detail-ops">
  <ul>
    {% for op in series.extra_ops %}
    <li>
      <span class="fa fa-{% if op.icon %}{{ op.icon }}{% else %}question{% endif %}"></span><a
        href="{{ op.url }}">{{ op.title }}</a></li>
    {% endfor %}
  </ul>
</div>
{% endif %}

<div class="status">
{% if series.num_patches < series.total_patches %}
<div class="status-content status-alert">
   <span class="fa fa-lg fa-warning"></span>
   <div>Only {{ series.num_patches }} patches received!</div>
</div>
{% endif %}
{% for status in series.extra_status %}
 <div class="status-content{% if status.kind %} status-{{ status.kind }}{% endif %}">
 {% if status.icon %}<span class="fa fa-lg fa-{{ status.icon }}"></span>
 {% elif status.kind == "running" %} <span class="fa fa-lg fa-refresh fa-spin"></span>
 {% elif status.kind == "alert" %} <span class="fa fa-lg fa-warning"></span>
 {% elif status.kind == "good" %} <span class="fa fa-lg fa-check"></span>{% endif %}
 <div>{{ status.html }}</div>
 {% if status.extra %}
  <div class="status-extra" id="{{status.id}}">{{ status.extra }}</div>
 {% endif %}
</div>
{% endfor %}
</div>
</div>

<div id="pre-fixed"></div>
<div class="col-lg-2">
    <div id="fixed" class="list-group">
        <a href="#" class="list-group-item" id="btn-expand-all">Expand all</a>
        <a href="#" class="list-group-item" id="btn-fold-all">Fold all</a>
    </div>
</div>
<div class="col-lg-10">
    {% if series.get_diff_stat %}
    <div class="panel panel-default">
        <div class="panel-heading panel-toggler" onclick="patchew_toggler_onclick(this)">
        Changeset
        </div>
        <div class="panel-body panel-collapse collapse in">
            <pre class="body-full">{{ series.get_diff_stat }}</pre>
        </div>
    </div>
    {% endif %}

    <div id="thread">
    {% for msg in messages %}
        <div class="panel panel-default message reply-lvl-{{ msg.indent_level }}">
            <div class="panel-heading panel-toggler" onclick="patchew_toggler_onclick(this)">
                    <h3 class="panel-title">
                        {{ msg.subject }}
                    </h3>

                    <div class="message-info">
                        Posted by
                        <span class="message-author" title="{{ msg.sender_full_name }}">
                            {{ msg.sender_display_name }}</span>
                        <span class="message-age" title="{{ msg.date }}">
                            {{ msg.get_age }}
                        </span>
                        ago
                    </div>
            </div>
            <div class="panel-body panel-collapse collapse">
                {% if msg.is_patch %}
                <pre class="body-full"><code class="diff">{{ msg.get_body }}</code></pre>
                {% else %}<commit_msg>move diffstat to top panel<commit_after>{% extends 'base.html' %}

{% block header %}
<link rel="stylesheet" href="/static/css/series-detail.css">
<link rel="stylesheet" href="/static/highlight/default.css">
<script src="/static/highlight/highlight.pack.js"></script>
<link rel="stylesheet" href="/static/css/colorbox.css">
<script src="/static/js/jquery.colorbox-min.js"></script>
{% endblock %}

{% block content %}

<div class="series-detail" id="top"></div>

<div class="col-lg-12">
<h2>{{ series.subject }}</h2>
<div class="series-header-info">
            <span class="message-author" title="{{ series.sender_full_name }}">
                {{ series.sender_display_name }}
	    </span> posted <span class="patch-count">
		    {{ series.total_patches }}
		    patch{% if series.total_patches != 1 %}es{% endif %}
	    </span> <span class="message-age" title="{{ series.date }}">
		    {{ series.age }} ago</span>
  <ul id="series-links">
    <li>
      <span class="fa fa-download"></span> <a
        href="/{{ project }}/{{ series.message_id }}/mbox">Download series mbox</a></li>
    </li>
    {% for op in series.extra_links %}
    <li>
      <span class="fa fa-{% if op.icon %}{{ op.icon }}{% else %}question{% endif %}"></span>
        {{ op.html }}</li>
    {% endfor %}
  </ul>
</div>

{% if series.extra_ops %}
<div id="detail-ops">
  <ul>
    {% for op in series.extra_ops %}
    <li>
      <span class="fa fa-{% if op.icon %}{{ op.icon }}{% else %}question{% endif %}"></span><a
        href="{{ op.url }}">{{ op.title }}</a></li>
    {% endfor %}
  </ul>
</div>
{% endif %}

<div class="status">
{% if series.num_patches < series.total_patches %}
<div class="status-content status-alert">
   <span class="fa fa-lg fa-warning"></span>
   <div>Only {{ series.num_patches }} patches received!</div>
</div>
{% endif %}
{% for status in series.extra_status %}
 <div class="status-content{% if status.kind %} status-{{ status.kind }}{% endif %}">
 {% if status.icon %}<span class="fa fa-lg fa-{{ status.icon }}"></span>
 {% elif status.kind == "running" %} <span class="fa fa-lg fa-refresh fa-spin"></span>
 {% elif status.kind == "alert" %} <span class="fa fa-lg fa-warning"></span>
 {% elif status.kind == "good" %} <span class="fa fa-lg fa-check"></span>{% endif %}
 <div>{{ status.html }}</div>
 {% if status.extra %}
  <div class="status-extra" id="{{status.id}}">{{ status.extra }}</div>
 {% endif %}
</div>
{% endfor %}

{% if series.get_diff_stat %}
<div class="panel-body">
    <pre class="body-full">{{ series.get_diff_stat }}</pre>
</div>
{% endif %}
</div>
</div>

<div id="pre-fixed"></div>
<div class="col-lg-2">
    <div id="fixed" class="list-group">
        <a href="#" class="list-group-item" id="btn-expand-all">Expand all</a>
        <a href="#" class="list-group-item" id="btn-fold-all">Fold all</a>
    </div>
</div>

<div class="col-lg-10">
    <div id="thread">
    {% for msg in messages %}
        <div class="panel panel-default message reply-lvl-{{ msg.indent_level }}">
            <div class="panel-heading panel-toggler" onclick="patchew_toggler_onclick(this)">
                    <h3 class="panel-title">
                        {{ msg.subject }}
                    </h3>

                    <div class="message-info">
                        Posted by
                        <span class="message-author" title="{{ msg.sender_full_name }}">
                            {{ msg.sender_display_name }}</span>
                        <span class="message-age" title="{{ msg.date }}">
                            {{ msg.get_age }}
                        </span>
                        ago
                    </div>
            </div>
            <div class="panel-body panel-collapse collapse">
                {% if msg.is_patch %}
                <pre class="body-full"><code class="diff">{{ msg.get_body }}</code></pre>
                {% else %}
{'fraction_non_alphanumeric': 0.2097963263776084, 'fraction_numerical': 0.0024990628514307135, 'mean_word_length': 2.4967234600262125, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 203, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2626030', 'n_tokens_mistral': 2740, 'n_tokens_neox': 2523, 'n_words': 563}