<commit_before>{% extends "atmo/base.html" %}
{% load staticfiles %}

{% block body_attrs %}data-refresh-url="{{ request.build_absolute_uri }}"{% endblock %}

{% block content %}
<div class="row">
  <div class="col-sm-12">
    <div class="page-header">
      <h2>
        Spark Cluster
        <small>For custom data analysis, terminated after 24 hours.</small>
      </h2>
    </div>
    <div class="btn-group pull-right">
      {% for clusters_filter in clusters_filters %}
      <a href="{% url 'dashboard' %}?clusters={{ clusters_filter }}"
         class="btn btn-sm btn-default{% if clusters_shown == clusters_filter %} active{% endif %}"
         >{{ clusters_filter|capfirst }}</a>
      {% endfor %}
    </div>
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>Cluster</th>
          <th>Size</th>
          <th>Start date</th>
          <th>Status</th>
        </tr>
      </thead>
      <tbody>
        {% for cluster in clusters %}
        <tr>
          <td><a href="{{ cluster.get_absolute_url }}">{{ cluster.identifier }}</a></td>
          <td>{{ cluster.size }}</td>
          <td>{{ cluster.start_date }}</td>
          <td>{{ cluster.most_recent_status }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
    {% if not clusters %}<p class="text-left">No clusters to show.</p>{% endif %}
    <a href="{% url 'clusters-new' %}" class="btn btn-sm btn-default pull-right" title="Launch Spark cluster">
      <span class="glyphicon glyphicon-play" aria-hidden="true"></span> Launch
    </a>
  </div>
</div>
<div class="row">
  <div class="col-sm-12">
    <div class="page-header">
      <h2>
        Spark Jobs
        <small>Periodic Spark analyses with results in Amazon S3.</small>
      </h2>
    </div>
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>Identifier</th>
          <th>Result visibility</th>
          <th>Cluster size</th>
          <th>Run interval</th>
          <th>Job timeout</th>
          <th>Start date</th>
          <th>End date</th>
        </tr>
      </thead>
      <tbody>
        {% for spark_job in spark_jobs %}
        <tr>
          <td><a href="{{ spark_job.get_absolute_url }}">{{ spark_job.identifier }}</a></td>
          <td>{{ spark_job.result_visibility }}</td>
          <td>{{ spark_job.size }}</td>
          <td>{{ spark_job.get_interval_in_hours_display }}</td>
          <td>{% if spark_job.job_timeout %}{{ spark_job.job_timeout }}h{% else %}n/a{% endif %}</td>
          <td>{{ spark_job.start_date }}</td>
          <td>{{ spark_job.end_date|default:"n/a" }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
    {% if not spark_jobs %}<p class="text-center">No scheduled jobs to show.</p>{% endif %}
    <a href="{% url 'jobs-new' %}" class="btn btn-sm btn-default pull-right" title="Schedule a Spark analysis">
        <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span> Schedule
    </a>
  </div>
</div>
{% endblock %}
<commit_msg>Bug 1316048 - Reorder dashboard button groups and hide header description on small screens<commit_after>{% extends "atmo/base.html" %}
{% load staticfiles %}

{% block body_attrs %}data-refresh-url="{{ request.build_absolute_uri }}"{% endblock %}

{% block content %}
<div class="row">
  <div class="col-sm-12">
    <div class="page-header">
      <h2>
        Spark Clusters
        <small class="hidden-xs hidden-sm">Custom data analysis, terminated after 24 hours.</small>
        <div class="btn-group">
          {% for clusters_filter in clusters_filters %}
          <a href="{% url 'dashboard' %}?clusters={{ clusters_filter }}"
          class="btn btn-sm btn-default{% if clusters_shown == clusters_filter %} active{% endif %}"
          >{{ clusters_filter|capfirst }}</a>
          {% endfor %}
        </div>
        <a href="{% url 'clusters-new' %}" class="btn btn-sm btn-default" title="Launch a Spark cluster">
          <span class="glyphicon glyphicon-play" aria-hidden="true"></span> Launch
        </a>
      </h2>
    </div>
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>Cluster</th>
          <th>Size</th>
          <th>Start date</th>
          <th>Status</th>
        </tr>
      </thead>
      <tbody>
        {% for cluster in clusters %}
        <tr>
          <td><a href="{{ cluster.get_absolute_url }}">{{ cluster.identifier }}</a></td>
          <td>{{ cluster.size }}</td>
          <td>{{ cluster.start_date }}</td>
          <td>{{ cluster.most_recent_status }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
    {% if not clusters %}<p class="text-left">No clusters to show.</p>{% endif %}
  </div>
</div>
<div class="row">
  <div class="col-sm-12">
    <div class="page-header">
      <h2>
        Spark Jobs
        <small class="hidden-xs hidden-sm">Periodic Spark analyses.</small>
        <a href="{% url 'jobs-new' %}" class="btn btn-sm btn-default" title="Schedule a Spark analysis">
          <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span> Schedule
        </a>
      </h2>

    </div>
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>Identifier</th>
          <th>Result visibility</th>
          <th>Cluster size</th>
          <th>Run interval</th>
          <th>Job timeout</th>
          <th>Start date</th>
          <th>End date</th>
        </tr>
      </thead>
      <tbody>
        {% for spark_job in spark_jobs %}
        <tr>
          <td><a href="{{ spark_job.get_absolute_url }}">{{ spark_job.identifier }}</a></td>
          <td>{{ spark_job.result_visibility }}</td>
          <td>{{ spark_job.size }}</td>
          <td>{{ spark_job.get_interval_in_hours_display }}</td>
          <td>{% if spark_job.job_timeout %}{{ spark_job.job_timeout }}h{% else %}n/a{% endif %}</td>
          <td>{{ spark_job.start_date }}</td>
          <td>{{ spark_job.end_date|default:"n/a" }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
    {% if not spark_jobs %}<p class="text-left">No scheduled jobs to show.</p>{% endif %}
  </div>
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.18520900321543407, 'fraction_numerical': 0.0045016077170418, 'mean_word_length': 2.293276866066702, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 211, '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': '4638361', 'n_tokens_mistral': 2146, 'n_tokens_neox': 1984, 'n_words': 470}