<commit_before>{% extends 'infrastructure/base.html' %}
{% load i18n %}
{% load url from future %}

{% block css %}
  {{block.super}}

  {% load compress %}
  {% compress css %}
  <link href='{{ STATIC_URL }}tuskar_boxes/scss/tuskar_boxes.scss' type='text/scss' media='screen' rel='stylesheet' />
  {% endcompress %}
{% endblock %}

{% block js %}
  {{ block.super }}
  <script src='{{ STATIC_URL }}tuskar_boxes/js/tuskar.boxes.js' type='text/javascript' charset='utf-8'></script>
  <script src='{{ STATIC_URL }}tuskar_boxes/js/tuskar.boxes_progress.js' type='text/javascript' charset='utf-8'></script>
{% endblock %}


{% block title %}{% trans 'My OpenStack Deployment' %}{% endblock %}

{% block page_header %}
  {% include 'horizon/common/_domain_page_header.html' with title=_('My OpenStack Deployment') %}
{% endblock page_header %}

{% block main %}
<div class="row">
  <div class="col-xs-4">
    {% if stack %}
      {% if stack.is_deleting or stack.is_deploying or stack.is_updating %}
        {% include "infrastructure/overview/deployment_progress.html" %}
      {% elif stack.is_delete_failed or stack.is_failed %}
        {% include "infrastructure/overview/deployment_failed.html" %}
      {% elif stack.is_deployed and not stack.is_initialized %}
        {% include "infrastructure/overview/deployment_initialize.html" %}
      {% else %}
        {% include "infrastructure/overview/deployment_live.html" %}
      {% endif %}
    {% else %}
      {% include "infrastructure/overview/deployment_plan.html" %}
    {% endif %}
  </div>
  <div class="col-xs-8">
    {% if stack %}
      {% if stack.is_deployed and stack.is_initialized %}
        {% include "tuskar_boxes/overview/role_nodes_live.html" %}
      {% else %}
        {% include "tuskar_boxes/overview/role_nodes_status.html" %}
      {% endif %}
    {% else %}
      {% include "tuskar_boxes/overview/role_nodes_edit.html" %}
    {% endif %}
  </div>
</div>

<div class="row">
  <div class="col-xs-12">
    {% if stack and stack.is_deployed and stack.is_initialized %}
        <h4>Nodes Distribution</h4>
        <div class="role-distribution">
            {% for role in roles %}
                {% if role.distribution %}
                <span class="role-{{ role.name|slugify }}">
                    {{ role.name|capfirst }}: {{ role.distribution }}%
                </span>
                {% endif %}
            {% endfor %}
        </div>
        {% include "tuskar_boxes/overview/_node_info.html" with nodes=nodes %}
    {% endif %}
  </div>
</div>

<script type="text/javascript">
(window.$ || window.addHorizonLoadEvent)(function () {
    $('div.boxes-node').popover({
        'trigger': 'hover',
        'placement': 'auto',
        'delay': 500,
        'html': true
    });
});
</script>

{% endblock %}
<commit_msg>Siwtch the 'validation' and 'roles' columns<commit_after>{% extends 'infrastructure/base.html' %}
{% load i18n %}
{% load url from future %}

{% block css %}
  {{block.super}}

  {% load compress %}
  {% compress css %}
  <link href='{{ STATIC_URL }}tuskar_boxes/scss/tuskar_boxes.scss' type='text/scss' media='screen' rel='stylesheet' />
  {% endcompress %}
{% endblock %}

{% block js %}
  {{ block.super }}
  <script src='{{ STATIC_URL }}tuskar_boxes/js/tuskar.boxes.js' type='text/javascript' charset='utf-8'></script>
  <script src='{{ STATIC_URL }}tuskar_boxes/js/tuskar.boxes_progress.js' type='text/javascript' charset='utf-8'></script>
{% endblock %}


{% block title %}{% trans 'My OpenStack Deployment' %}{% endblock %}

{% block page_header %}
  {% include 'horizon/common/_domain_page_header.html' with title=_('My OpenStack Deployment') %}
{% endblock page_header %}

{% block main %}
<div class="row">
  <div class="col-xs-8">
    {% if stack %}
      {% if stack.is_deployed and stack.is_initialized %}
        {% include "tuskar_boxes/overview/role_nodes_live.html" %}
      {% else %}
        {% include "tuskar_boxes/overview/role_nodes_status.html" %}
      {% endif %}
    {% else %}
      {% include "tuskar_boxes/overview/role_nodes_edit.html" %}
    {% endif %}
  </div>
  <div class="col-xs-4">
    {% if stack %}
      {% if stack.is_deleting or stack.is_deploying or stack.is_updating %}
        {% include "infrastructure/overview/deployment_progress.html" %}
      {% elif stack.is_delete_failed or stack.is_failed %}
        {% include "infrastructure/overview/deployment_failed.html" %}
      {% elif stack.is_deployed and not stack.is_initialized %}
        {% include "infrastructure/overview/deployment_initialize.html" %}
      {% else %}
        {% include "infrastructure/overview/deployment_live.html" %}
      {% endif %}
    {% else %}
      {% include "infrastructure/overview/deployment_plan.html" %}
    {% endif %}
  </div>
</div>

<div class="row">
  <div class="col-xs-12">
    {% if stack and stack.is_deployed and stack.is_initialized %}
        <h4>Nodes Distribution</h4>
        <div class="role-distribution">
            {% for role in roles %}
                {% if role.distribution %}
                <span class="role-{{ role.name|slugify }}">
                    {{ role.name|capfirst }}: {{ role.distribution }}%
                </span>
                {% endif %}
            {% endfor %}
        </div>
        {% include "tuskar_boxes/overview/_node_info.html" with nodes=nodes %}
    {% endif %}
  </div>
</div>

<script type="text/javascript">
(window.$ || window.addHorizonLoadEvent)(function () {
    $('div.boxes-node').popover({
        'trigger': 'hover',
        'placement': 'auto',
        'delay': 500,
        'html': true
    });
});
</script>

{% endblock %}

{'fraction_non_alphanumeric': 0.17411347517730497, 'fraction_numerical': 0.004609929078014184, 'mean_word_length': 2.890344827586207, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '2365513', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1786, 'n_words': 339}