<commit_before>{% extends "logical/database/details/base.html" %}
{% load admin_static %}

{% block extrastyle %}
  {{ block.super }}
  <style type="text/css">
    .resize_button {
        margin-left: 20px
    }

    .bold_red {
      color: red;
    }
  </style>
{% endblock %}

{% block tab %}
<fieldset class="module aligned ">
  {% if available_patches %}
  <div class="control-group">
    <div class="control-label"><label>Patch upgrade:</label></div>
    <div class="controls">
      {% if retry_patch %}
      <select id="id_target_patch_retry" name="target_patch_retry" disabled="true">
        {% for engine_patch in available_patches %}
          {% if engine_patch == retry_patch.target_patch %}
          <option value="{{engine_patch.id}}" selected>{{engine_patch.full_version}}</option>
          {% endif %}
        {% endfor %}
      </select>
      <button data-toggle="modal" class="btn btn-warning" id="upgrade_patch_retry_btn" data-target="#upgrade_patch_retry">Retry</button>
      {% else %}
      <select id="id_target_patch" name="target_patch">
        {% for engine_patch in available_patches %}<commit_msg>Implementing html to migration plan<commit_after>{% extends "logical/database/details/base.html" %}
{% load admin_static %}

{% block extrastyle %}
  {{ block.super }}
  <style type="text/css">
    .resize_button {
        margin-left: 20px
    }

    .bold_red {
      color: red;
    }
  </style>
{% endblock %}

{% block tab %}
<fieldset class="module aligned ">
  {% if available_plans_for_migration %}
  <div class="control-group">
    <div class="control-label"><label>Plan migration:</label></div>
    <div class="controls">
      {% if retry_migrate_plan %}
      <select id="id_target_migrate_plan_retry" name="target_migrate_plan_retry" disabled="true">
        {% for plan in available_migration_plans %}
          {% if plan == retry_migrate_plan %}
          <option value="{{plan.id}}" selected>{{ plan }}</option>
          {% endif %}
        {% endfor %}
      </select>
      <button data-toggle="modal" class="btn btn-warning" id="migrate_plan_retry_btn" data-target="#migrate_plan_retry">Retry</button>
      {% else %}
      <select id="id_target_plan_retry" name="target_patch">
        {% for plan in available_plans_for_migration %}
          <option value="{{plan.id}}">{{ plan }}</option>
        {% endfor %}
      </select>
      <button data-toggle="modal" class="btn btn-primary" id="migrate_plan_btn" data-target="#upgrade_patch">Migrate Plan</button>
      {% endif %}
    </div>
  </div>
  {% endif %}
  {% if available_patches %}
  <div class="control-group">
    <div class="control-label"><label>Patch upgrade:</label></div>
    <div class="controls">
      {% if retry_patch %}
      <select id="id_target_patch_retry" name="target_patch_retry" disabled="true">
        {% for engine_patch in available_patches %}
          {% if engine_patch == retry_patch.target_patch %}
          <option value="{{engine_patch.id}}" selected>{{engine_patch.full_version}}</option>
          {% endif %}
        {% endfor %}
      </select>
      <button data-toggle="modal" class="btn btn-warning" id="upgrade_patch_retry_btn" data-target="#upgrade_patch_retry">Retry</button>
      {% else %}
      <select id="id_target_patch" name="target_patch">
        {% for engine_patch in available_patches %}
{'fraction_non_alphanumeric': 0.16046442393569516, 'fraction_numerical': 0.0011908306043465317, 'mean_word_length': 3.324324324324324, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '3403691', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1039, 'n_words': 195}