<commit_before>{% load i18n %}
{% load l10n %}

{% if request.instance_supports_ecobenefits %}
<div {% if not hidecounts %}id="benefit-values"{% endif %} class="benefit-values panel-inner">
    {% with plot_benefits=benefits.plot %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.totals %}
      {% if not hide_summary and plot_benefits %}
        <div class="benefit-value-title">{% trans "Tree Benefits"%}</div>
      {% endif %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.energy icon='flash-1' %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.stormwater icon='tint' %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.airquality icon='cloud' %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.co2 %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.co2storage %}
    {% endwith %}

    {% with resource_benefits=benefits.resource %}
      {% if not hide_summary and request.instance.has_resources and resource_benefits %}
        <div class="benefit-value-title">{{ term.Resource.singular }} {% trans "Benefits" %}</div>
      {% endif %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.stormwater icon='tint' %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.runoff_reduced icon='tint' %}
      {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.usage_reduced icon='tint' %}
    {% endwith %}

    {% if not hide_summary and not hidecounts %}
    <div class="benefit-tree-count">
      {% with has_resources=request.instance.has_resources plot_basis=basis.plot resource_basis=basis.resource %}
        {% blocktrans with used=plot_basis.n_objects_used total=plot_basis.n_total %}
        Based on {{ used }} out of {{ total }} total trees{% endblocktrans %}{% if not has_resources %}.{% endif %}
        {% if has_resources %}
          {% blocktrans with used=resource_basis.n_objects_used total=resource_basis.n_total resources=term.Resource.plural.lower %}
            and {{ used }} out of {{ total }} total {{ resources }}.
          {% endblocktrans %}
        {% endif %}
      {% endwith %}

    </div>
    {% endif %}
</div>
{% endif %}
{% if not hidecounts %}
<div id="tree-and-planting-site-counts">
  {% localize on %}
  <span id="tree-count">{{ basis.plot.n_total }}</span> {{ tree_count_label }}
  <span id="planting-site-count">{{ basis.plot.n_plots }}</span> {{ plot_count_label }}
  {% if request.instance.has_resources and basis.resource %}
    {% with resource_count=basis.resource.n_total %}
      <span id="resource-count">{{ resource_count }}</span>
      {% if resource_count == 1 %}
        {{ term.Resource.singular.lower }}
      {% else %}
        {{ term.Resource.plural.lower }}
      {% endif %}
    {% endwith %}
  {% endif %}

  {% endlocalize %}
</div>
{% endif %}<commit_msg>Reformat template<commit_after>{% load i18n %}
{% load l10n %}

{% if request.instance_supports_ecobenefits %}
    <div {% if not hidecounts %}id="benefit-values"{% endif %} class="benefit-values panel-inner">
        {% with plot_benefits=benefits.plot %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.totals %}
            {% if not hide_summary and plot_benefits %}
                <div class="benefit-value-title">{% trans "Tree Benefits"%}</div>
            {% endif %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.energy icon='flash-1' %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.stormwater icon='tint' %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.airquality icon='cloud' %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.co2 %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=plot_benefits.co2storage %}
        {% endwith %}

        {% with resource_benefits=benefits.resource %}
            {% if not hide_summary and request.instance.has_resources and resource_benefits %}
                <div class="benefit-value-title">{{ term.Resource.singular }} {% trans "Benefits" %}</div>
            {% endif %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.stormwater icon='tint' %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.runoff_reduced icon='tint' %}
            {% include "treemap/partials/benefit_value_row.html" with benefit=resource_benefits.usage_reduced icon='tint' %}
        {% endwith %}

        {% if not hide_summary and not hidecounts %}
            <div class="benefit-tree-count">
                {% with has_resources=request.instance.has_resources plot_basis=basis.plot resource_basis=basis.resource %}
                    {% blocktrans with used=plot_basis.n_objects_used total=plot_basis.n_total %}
                        Based on {{ used }} out of {{ total }} total trees{% endblocktrans %}{% if not has_resources %}.{% endif %}
                    {% if has_resources %}
                        {% blocktrans with used=resource_basis.n_objects_used total=resource_basis.n_total resources=term.Resource.plural.lower %}
                            and {{ used }} out of {{ total }} total {{ resources }}.
                        {% endblocktrans %}
                    {% endif %}
                {% endwith %}

            </div>
        {% endif %}
    </div>
{% endif %}
{% if not hidecounts %}
    <div id="tree-and-planting-site-counts">
        {% localize on %}
            <span id="tree-count">{{ basis.plot.n_total }}</span> {{ tree_count_label }}
            <span id="planting-site-count">{{ basis.plot.n_plots }}</span> {{ plot_count_label }}
            {% if request.instance.has_resources and basis.resource %}
                {% with resource_count=basis.resource.n_total %}
                    <span id="resource-count">{{ resource_count }}</span>
                    {% if resource_count == 1 %}
                        {{ term.Resource.singular.lower }}
                    {% else %}
                        {{ term.Resource.plural.lower }}
                    {% endif %}
                {% endwith %}
            {% endif %}

        {% endlocalize %}
    </div>
{% endif %}
{'fraction_non_alphanumeric': 0.1416819012797075, 'fraction_numerical': 0.002437538086532602, 'mean_word_length': 2.8035921205098493, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '257252', 'n_tokens_mistral': 2232, 'n_tokens_neox': 1913, 'n_words': 355}