<commit_before><!DOCTYPE html>
<html>
<head>
  <title>iOSFU</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Bootstrap -->
  <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <nav class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
      <!-- Left -->
      <a class="navbar-brand" href="/">
        iOSFU
      </a>
      <ul class="nav navbar-nav">
        {% for category in categories %}
        <li class="{% if current.category == category %}active{% endif %} dropdown">
          {% if categories[category]|length == 1 %}
          <a href="/{{ category }}/{{ categories[category][0].id }}">{{ categories[category][0].name }}</a>
          {% else %}
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ category|title }} <i class="caret"></i></a>
          <ul class="dropdown-menu">
            {% for panel in categories[category] %}
            <li {% if current.panel.id == panel.id %}class="active"{% endif %}><a href="/{{ category }}/{{ panel.id }}/">{{ panel.name }}</a></li>
            {% endfor %}
          </ul>
          {% endif %}
        </li>
        {% endfor %}
      </ul>
      
      <!-- Right -->
      <p class="navbar-text navbar-right">
        {% if session.backup %}
          {{ session.backup }}
        {% else %}
          No backup selected
        {% endif %}
      </p>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            Change  <b class="caret"></b>
          </a>
          <!-- Backup list -->
          <ul class="dropdown-menu text-right">
            {% for backup_id in backups %}
            <li>
              {% if backups[backup_id].valid %}
              <a href="/backup/{{ backup_id }}/">{{ backup_id }}</a>
              {% else %}
              <a href="/backup/{{ backup_id }}/" data-toggle="tooltip" title="This backup seems invalid" data-placement="left">
                {{ backup_id }} 
                <span class="glyphicon glyphicon-exclamation-sign text-danger"></span>
              </a>
              {% endif %}
            </li>
            {% endfor %}
          </ul>
        </li>
      </ul>
    </div>
  </nav>

  <div class="container">
  {% with messages = get_flashed_messages(with_categories=true) %}
    {% if messages %}
      {% for category, message in messages %}
        <div class="alert alert-{{ category }}">{{ message }}</div>
      {% endfor %}
    {% endif %}
  {% endwith %}
    <ol class="breadcrumb">
      <li><a href="/">iOSFU</a></li>
      {% if current.category %}
      <li><a href="/{{ current.category }}/">{{ current.category|title }}</a></li>
      {% endif %}
      {% if current.panel %}
      <li class="active">
        <a href="/{{ current.category }}/{{ current.panel.id }}/">{{ current.panel.name }}</a><commit_msg>Categories hidden when no backup is selected. Invalid backup can’t be selected.<commit_after><!DOCTYPE html>
<html>
<head>
  <title>iOSFU</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Bootstrap -->
  <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <nav class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
      <!-- Left -->
      <a class="navbar-brand" href="/">
        iOSFU
      </a>
      <ul class="nav navbar-nav">
        {% if session.backup %}
          {% for category in categories %}
          <li class="{% if current.category == category %}active{% endif %} dropdown">
            {% if categories[category]|length == 1 %}
            <a href="/{{ category }}/{{ categories[category][0].id }}">{{ categories[category][0].name }}</a>
            {% else %}
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ category|title }} <i class="caret"></i></a>
            <ul class="dropdown-menu">
              {% for panel in categories[category] %}
              <li {% if current.panel.id == panel.id %}class="active"{% endif %}><a href="/{{ category }}/{{ panel.id }}/">{{ panel.name }}</a></li>
              {% endfor %}
            </ul>
            {% endif %}
          </li>
          {% endfor %}
        {% else %}
        <li><a href="#">Select a backup to show plugin categories</a></li>
        {% endif %}
      </ul>
      
      <!-- Right -->
      <p class="navbar-text navbar-right">
        {% if session.backup %}
          {{ session.backup }}
        {% endif %}
      </p>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            Backup <b class="caret"></b>
          </a>
          <!-- Backup list -->
          <ul class="dropdown-menu text-right">
            {% for backup_id in backups %}
            <li>
              {% if backups[backup_id].valid %}
              <a href="/backup/{{ backup_id }}/">{{ backup_id }}</a>
              {% else %}
              <a href="#" data-toggle="tooltip" title="This backup seems invalid" data-placement="left">
                {{ backup_id }} 
                <span class="glyphicon glyphicon-exclamation-sign text-danger"></span>
              </a>
              {% endif %}
            </li>
            {% endfor %}
          </ul>
        </li>
      </ul>
    </div>
  </nav>

  <div class="container">
  {% with messages = get_flashed_messages(with_categories=true) %}
    {% if messages %}
      {% for category, message in messages %}
        <div class="alert alert-{{ category }}">{{ message }}</div>
      {% endfor %}
    {% endif %}
  {% endwith %}
    <ol class="breadcrumb">
      <li><a href="/">iOSFU</a></li>
      {% if current.category %}
      <li><a href="/{{ current.category }}/">{{ current.category|title }}</a></li>
      {% endif %}
      {% if current.panel %}
      <li class="active">
        <a href="/{{ current.category }}/{{ current.panel.id }}/">{{ current.panel.name }}</a>
{'fraction_non_alphanumeric': 0.20490045941807045, 'fraction_numerical': 0.004287901990811639, 'mean_word_length': 2.053295932678822, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 159, 'https://': 4, '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': '798974', 'n_tokens_mistral': 2137, 'n_tokens_neox': 1936, 'n_words': 425}