<commit_before>{% load i18n sizeformat %}
{% load url from future %}

<div class="info row-fluid detail">
  <div class="span4">
    <h4>{% trans "About" %}</h4>
    <hr class="header_rule">
    <dl>
      <dt>{% trans "Name" %}</dt>
      <dd>{{ flavor.name|default:_("None") }}</dd>
      <dt>{% trans "Classes" %}</dt>
      <dd>
        {% for resource_class in flavor.resource_classes %}
          <dd><a href="{% url 'horizon:infrastructure:resource_management:resource_classes:detail' resource_class.id%}">{{ resource_class.name }}</a></dd>
        {% endfor %}
      </dd>
      <dt>{% trans "Instances" %}</dt>
      <dd>{{ flavor.running_virtual_machines }}</dd>
    </dl>
  </div>

  <div class="span4">
    <h4>{% trans "Specification" %}</h4>
    <hr class="header_rule">
    <dl>
      <dt>{% trans "VCPU" %}</dt>
      <dd>{{ flavor.cpu.value }}</dd>
      <dt>{% trans "RAM" %}</dt>
      <dd>{{ flavor.memory.value }} {{ flavor.memory.unit }}</dd>
      <dt>{% trans "Root Disk" %}</dt>
      <dd>{{ flavor.storage.value }} {{ flavor.storage.unit }}</dd>
      <dt>{% trans "Ephemeral Disk" %}</dt>
      <dd>{{ flavor.ephemeral_disk.value }} {{ flavor.ephemeral_disk.unit }}</dd>
      <dt>{% trans "Swap Disk" %}</dt>
      <dd>{{ flavor.swap_disk.value }} {{ flavor.swap_disk.unit }}</dd>
    </dl>
  </div>

  <div class="span4">
    <h4>{% trans "Capacities" %}</h4>
    <hr class="header_rule">
    <table class="capacities">
      <tr>
        <td class="capacity_label">{% trans "CPU" %}:</td>
        <td>
          <div id="cpu_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.cpu.value }}"
               data-capacity-used="{{ flavor.cpu.usage }}"
               data-average-capacity-used="{{ flavor.cpu.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="cpu">{{ flavor.cpu.usage }}/{{ flavor.cpu.value }} {{ flavor.cpu.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "RAM" %}:</td>
        <td>
          <div id="ram_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.memory.value }}"
               data-capacity-used="{{ flavor.memory.usage }}"
               data-average-capacity-used="{{ flavor.memory.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ram">{{ flavor.memory.usage }}/{{ flavor.memory.value }} {{ flavor.memory.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Root Disk" %}:</td>
        <td>
          <div id="root_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.storage.value }}"
               data-capacity-used="{{ flavor.storage.usage }}"
               data-average-capacity-used="{{ flavor.storage.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="root_disk">{{ flavor.storage.usage }}/{{ flavor.storage.value }} {{ flavor.storage.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Ephemeral Disk" %}:</td>
        <td>
          <div id="ephemeral_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.ephemeral_disk.value }}"
               data-capacity-used="{{ flavor.ephemeral_disk.usage }}"
               data-average-capacity-used="{{ flavor.ephemeral_disk.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ephemeral_disk">{{ flavor.ephemeral_disk.usage }}/{{ flavor.ephemeral_disk.value }} {{ flavor.ephemeral_disk.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Swap Disk" %}:</td>
        <td>
          <div id="swap_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.swap_disk.value }}"
               data-capacity-used="{{ flavor.swap_disk.usage }}"
               data-average-capacity-used="{{ flavor.swap_disk.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ephemeral_disk">{{ flavor.swap_disk.usage }}/{{ flavor.swap_disk.value }} {{ flavor.swap_disk.unit }}</a>
        </td>
      </tr>
    </table>
  </div>
</div>

<div class="info row-fluid detail">
  <div class="span12">
    <h4>{% trans "Active Instances" %}</h4>
    <hr class="header_rule">
    <table class="chart">
      <tr>
        <td>
          <div data-chart-type="line_chart" data-url="{% url 'horizon:infrastructure:resource_management:flavors:active_instances_data' flavor.id%}" data-series="active_instances"></div>
        </td>
      </tr>
    </table>
  </div>
</div>
<commit_msg>Remove list of Resource Classes from Flavor detail page<commit_after>{% load i18n sizeformat %}
{% load url from future %}

<div class="info row-fluid detail">
  <div class="span4">
    <h4>{% trans "About" %}</h4>
    <hr class="header_rule">
    <dl>
      <dt>{% trans "Name" %}</dt>
      <dd>{{ flavor.name|default:_("None") }}</dd>
      <dt>{% trans "Instances" %}</dt>
      <dd>{{ flavor.running_virtual_machines }}</dd>
    </dl>
  </div>

  <div class="span4">
    <h4>{% trans "Specification" %}</h4>
    <hr class="header_rule">
    <dl>
      <dt>{% trans "VCPU" %}</dt>
      <dd>{{ flavor.cpu.value }}</dd>
      <dt>{% trans "RAM" %}</dt>
      <dd>{{ flavor.memory.value }} {{ flavor.memory.unit }}</dd>
      <dt>{% trans "Root Disk" %}</dt>
      <dd>{{ flavor.storage.value }} {{ flavor.storage.unit }}</dd>
      <dt>{% trans "Ephemeral Disk" %}</dt>
      <dd>{{ flavor.ephemeral_disk.value }} {{ flavor.ephemeral_disk.unit }}</dd>
      <dt>{% trans "Swap Disk" %}</dt>
      <dd>{{ flavor.swap_disk.value }} {{ flavor.swap_disk.unit }}</dd>
    </dl>
  </div>

  <div class="span4">
    <h4>{% trans "Capacities" %}</h4>
    <hr class="header_rule">
    <table class="capacities">
      <tr>
        <td class="capacity_label">{% trans "CPU" %}:</td>
        <td>
          <div id="cpu_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.cpu.value }}"
               data-capacity-used="{{ flavor.cpu.usage }}"
               data-average-capacity-used="{{ flavor.cpu.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="cpu">{{ flavor.cpu.usage }}/{{ flavor.cpu.value }} {{ flavor.cpu.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "RAM" %}:</td>
        <td>
          <div id="ram_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.memory.value }}"
               data-capacity-used="{{ flavor.memory.usage }}"
               data-average-capacity-used="{{ flavor.memory.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ram">{{ flavor.memory.usage }}/{{ flavor.memory.value }} {{ flavor.memory.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Root Disk" %}:</td>
        <td>
          <div id="root_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.storage.value }}"
               data-capacity-used="{{ flavor.storage.usage }}"
               data-average-capacity-used="{{ flavor.storage.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="root_disk">{{ flavor.storage.usage }}/{{ flavor.storage.value }} {{ flavor.storage.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Ephemeral Disk" %}:</td>
        <td>
          <div id="ephemeral_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.ephemeral_disk.value }}"
               data-capacity-used="{{ flavor.ephemeral_disk.usage }}"
               data-average-capacity-used="{{ flavor.ephemeral_disk.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ephemeral_disk">{{ flavor.ephemeral_disk.usage }}/{{ flavor.ephemeral_disk.value }} {{ flavor.ephemeral_disk.unit }}</a>
        </td>
      </tr>
      <tr>
        <td class="capacity_label">{% trans "Swap Disk" %}:</td>
        <td>
          <div id="swap_disk_capacity_usage"
               class="capacity_bar"
               data-chart-type="capacity_bar_chart"
               data-capacity-limit="{{ flavor.swap_disk.value }}"
               data-capacity-used="{{ flavor.swap_disk.usage }}"
               data-average-capacity-used="{{ flavor.swap_disk.average }}">
          </div>
        </td>
        <td>
          <a href="#" data-chart-type="modal_line_chart" data-url="/infrastructure/resource_management/racks/usage_data" data-series="ephemeral_disk">{{ flavor.swap_disk.usage }}/{{ flavor.swap_disk.value }} {{ flavor.swap_disk.unit }}</a>
        </td>
      </tr>
    </table>
  </div>
</div>

<div class="info row-fluid detail">
  <div class="span12">
    <h4>{% trans "Active Instances" %}</h4>
    <hr class="header_rule">
    <table class="chart">
      <tr>
        <td>
          <div data-chart-type="line_chart" data-url="{% url 'horizon:infrastructure:resource_management:flavors:active_instances_data' flavor.id%}" data-series="active_instances"></div>
        </td>
      </tr>
    </table>
  </div>
</div>

{'fraction_non_alphanumeric': 0.18945420906567992, 'fraction_numerical': 0.0027752081406105457, 'mean_word_length': 2.37632729544035, 'pattern_counts': {'":': 0, '<': 263, '<?xml version=': 0, '>': 263, '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': '3640063', 'n_tokens_mistral': 3575, 'n_tokens_neox': 3460, 'n_words': 606}