<commit_before>{% extends 'base.html' %}
{% load buttons %}
{% load custom_links %}
{% load static %}
{% load helpers %}
{% load plugins %}

{% block header %}
    <div class="row noprint">
        <div class="col-sm-8 col-md-9">
            <ol class="breadcrumb">
                {% if virtualmachine.cluster %}
                    <li><a href="{{ virtualmachine.cluster.get_absolute_url }}">{{ virtualmachine.cluster }}</a></li>
                {% endif %}
                <li>{{ virtualmachine }}</li>
            </ol>
        </div>
        <div class="col-sm-4 col-md-3">
            <form action="{% url 'virtualization:virtualmachine_list' %}" method="get">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="Search virtual machines" />
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-primary">
                            <span class="fa fa-search"></span>
                        </button>
                    </span>
                </div>
            </form>
        </div>
    </div>
    <div class="pull-right noprint">
        {% plugin_buttons virtualmachine %}
        {% if perms.virtualization.add_virtualmachine %}
            {% clone_button virtualmachine %}
        {% endif %}
        {% if perms.virtualization.change_virtualmachine %}
            {% edit_button virtualmachine %}
        {% endif %}
        {% if perms.virtualization.delete_virtualmachine %}
            {% delete_button virtualmachine %}
        {% endif %}
    </div>
    <h1>{% block title %}{{ virtualmachine }}{% endblock %}</h1>
    {% include 'inc/created_updated.html' with obj=virtualmachine %}
    <div class="pull-right noprint">
        {% custom_links virtualmachine %}
    </div>
    <ul class="nav nav-tabs">
        <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
            <a href="{{ virtualmachine.get_absolute_url }}">Virtual Machine</a>
        </li>
        {% if perms.extras.view_configcontext %}
            <li role="presentation"{% if active_tab == 'config-context' %} class="active"{% endif %}>
                <a href="{% url 'virtualization:virtualmachine_configcontext' pk=virtualmachine.pk %}">Config Context</a>
            </li>
        {% endif %}
        {% if perms.extras.view_objectchange %}
            <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
                <a href="{% url 'virtualization:virtualmachine_changelog' pk=virtualmachine.pk %}">Change Log</a>
            </li><commit_msg>Add "add interfaces" button to virtual machine view<commit_after>{% extends 'base.html' %}
{% load buttons %}
{% load custom_links %}
{% load static %}
{% load helpers %}
{% load plugins %}

{% block header %}
    <div class="row noprint">
        <div class="col-sm-8 col-md-9">
            <ol class="breadcrumb">
                {% if virtualmachine.cluster %}
                    <li><a href="{{ virtualmachine.cluster.get_absolute_url }}">{{ virtualmachine.cluster }}</a></li>
                {% endif %}
                <li>{{ virtualmachine }}</li>
            </ol>
        </div>
        <div class="col-sm-4 col-md-3">
            <form action="{% url 'virtualization:virtualmachine_list' %}" method="get">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="Search virtual machines" />
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-primary">
                            <span class="fa fa-search"></span>
                        </button>
                    </span>
                </div>
            </form>
        </div>
    </div>
    <div class="pull-right noprint">
        {% if perms.virtualization.add_vminterface %}
            <a href="{% url 'virtualization:vminterface_add' %}?virtual_machine={{ virtualmachine.pk }}&return_url={{ virtualmachine.get_absolute_url }}" class="btn btn-primary">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add Interfaces
            </a>
        {% endif %}
        {% plugin_buttons virtualmachine %}
        {% if perms.virtualization.add_virtualmachine %}
            {% clone_button virtualmachine %}
        {% endif %}
        {% if perms.virtualization.change_virtualmachine %}
            {% edit_button virtualmachine %}
        {% endif %}
        {% if perms.virtualization.delete_virtualmachine %}
            {% delete_button virtualmachine %}
        {% endif %}
    </div>
    <h1>{% block title %}{{ virtualmachine }}{% endblock %}</h1>
    {% include 'inc/created_updated.html' with obj=virtualmachine %}
    <div class="pull-right noprint">
        {% custom_links virtualmachine %}
    </div>
    <ul class="nav nav-tabs">
        <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
            <a href="{{ virtualmachine.get_absolute_url }}">Virtual Machine</a>
        </li>
        {% if perms.extras.view_configcontext %}
            <li role="presentation"{% if active_tab == 'config-context' %} class="active"{% endif %}>
                <a href="{% url 'virtualization:virtualmachine_configcontext' pk=virtualmachine.pk %}">Config Context</a>
            </li>
        {% endif %}
        {% if perms.extras.view_objectchange %}
            <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
                <a href="{% url 'virtualization:virtualmachine_changelog' pk=virtualmachine.pk %}">Change Log</a>
            </li>
{'fraction_non_alphanumeric': 0.15810834656784895, 'fraction_numerical': 0.0021175224986765486, 'mean_word_length': 2.1177117711771176, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '7053729', 'n_tokens_mistral': 1721, 'n_tokens_neox': 1539, 'n_words': 338}