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

{% block content %}

{% if vote %}
    <h1>{{ vote.title }}</h1>
{% endif %}

<div class="map map-eu" style="height: 520px; width: 680px;">
    <object type="image/svg+xml" data="{% url trends:recommendation_countries_map vote.id %}" type="image/svg+xml" width="680" height="520"></object>
</div>

<h2 class="collapsible collapsed">Score repartition</h2>
<center class="body">
<img src="{% url trends:group_proposal_score_stacked vote.id %}">

<img src="{% url trends:group_proposal_score_heatmap vote.id %}">
</center>

<br/>

{% regroup vote.recommendation_set.all by subject as subvotes %}

{% include "votes/legend.html" %}

<ul>
    {% for subvote in subvotes %}
    <li><b>{{ subvote.grouper }}</b>
    <ul>
        {% for v in subvote.list %}
        <li>
            <a href="{% url votes:recommendation vote.id v.id %}">{{ v.description }}</a>
            <ul class="{{ v.recommendation }} recommendation">
                <li><em>Part</em> : {{ v.part }}</li>
                {% if v.recommendation %}<li><em>Recommendation</em> : {{ v.recommendation }}</li>{% endif %}
                {% if v.weight %}<li><em>Weight</em> : {{ v.weight }}</li>{% endif %}
                <ul>
                  {% regroup v.vote_set.all by choice as result %}
                  {% for re in result %}
                  {% if re.grouper in "abstention-against-for" %}
                  <li><b><a
                      class="{% if v.recommendation == re.grouper %}ok{% else %}{% if re.grouper == "abstention" %}abstention{% else %}nok{% endif %}{% endif %}"<commit_msg>[fix] fix link to absent votes<commit_after>{% extends "base.html" %}

{% block content %}

{% if vote %}
    <h1>{{ vote.title }}</h1>
{% endif %}

<div class="map map-eu" style="height: 520px; width: 680px;">
    <object type="image/svg+xml" data="{% url trends:recommendation_countries_map vote.id %}" type="image/svg+xml" width="680" height="520"></object>
</div>

<h2 class="collapsible collapsed">Score repartition</h2>
<center class="body">
<img src="{% url trends:group_proposal_score_stacked vote.id %}">

<img src="{% url trends:group_proposal_score_heatmap vote.id %}">
</center>

<br/>

{% regroup vote.recommendation_set.all by subject as subvotes %}

{% include "votes/legend.html" %}

<ul>
    {% for subvote in subvotes %}
    <li><b>{{ subvote.grouper }}</b>
    <ul>
        {% for v in subvote.list %}
        <li>
            <a href="{% url votes:recommendation vote.id v.id %}">{{ v.description }}</a>
            <ul class="{{ v.recommendation }} recommendation">
                <li><em>Part</em> : {{ v.part }}</li>
                {% if v.recommendation %}<li><em>Recommendation</em> : {{ v.recommendation }}</li>{% endif %}
                {% if v.weight %}<li><em>Weight</em> : {{ v.weight }}</li>{% endif %}
                <ul>
                  {% regroup v.vote_set.all by choice as result %}
                  {% for re in result %}
                  {% if re.grouper in "absent-abstention-against-for" %}
                  <li><b><a
                      class="{% if v.recommendation == re.grouper %}ok{% else %}{% if re.grouper == "abstention" or re.grouper == "absent" %}abstention{% else %}nok{% endif %}{% endif %}"
{'fraction_non_alphanumeric': 0.1976672805402087, 'fraction_numerical': 0.009821976672805401, 'mean_word_length': 2.6783295711060946, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '404938', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1082, 'n_words': 258}