<commit_before><%@ include file="dashboardHeader.jsp" %>

<div class="btn-toolbar">
  <div class="btn-group">
    <a href="/cron/tweets" class="btn primary" id="twitterButton">Refresh all tweets</a>
    <a href="#" class="btn" id="newTruck">New Truck</a>&nbsp;
  </div>
  <div class="btn-group toggle-visibility" data-toggle="buttons-checkbox">
    <button id="inactiveButton" type="button" class="btn active">Inactive</button>
    <button id="muteButton" type="button" class="btn active">Muted</button>
  </div>
</div>
<h3>Active Trucks</h3>
<table class="table table-striped">
  <thead>
  <tr>
    <th>Truck</th>
    <th>Current Location</th>
    <th>Next Location</th>
    <th>Twittalyzer</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach var="truckStops" items="${trucks}">
    <c:if test="${truckStops.active}">

      <tr>
        <td><a href="/admin/trucks/${truckStops.truck.id}">${truckStops.truck.name}</a></td>
        <td><c:choose><c:when
            test="${!empty(truckStops.currentStop)}"><c:url value="/admin/locations"
                                                            var="locationUrl">
          <c:param name="q" value="${truckStops.currentStop.location.name}"/>
        </c:url><a
            href="${locationUrl}">${truckStops.currentStop.location.name}</a></c:when><c:otherwise>Not Active</c:otherwise></c:choose>
        </td>
        <td><c:choose><c:when
            test="${!empty(truckStops.nextStop)}"><c:url value="/admin/locations" var="locationUrl">
          <c:param name="q" value="${truckStops.nextStop.location.name}"/>
        </c:url><a
            href="${locationUrl}">${truckStops.nextStop.location.name}</a></c:when><c:otherwise>None</c:otherwise></c:choose>
        </td>
        <td><c:choose><c:when
            test="${truckStops.truck.usingTwittalyzer}"></c:when><c:otherwise><span
            class="label warning">off</span></c:otherwise></c:choose></td>
      </tr>
    </c:if>
  </c:forEach>
  </tbody>
</table>
<h3>Trucks That Are Inactive Today</h3>
<table class="table table-striped">
  <thead>
  <tr>
    <th>Truck</th>
    <th>Twittalyzer</th>
    <th>&nbsp;</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach var="truckStops" items="${trucks}">
    <c:if test="${!truckStops.active && !truckStops.truck.inactive}">
      <tr <c:if test="${truckStops.truck.muted}">class="muted"</c:if>>
        <td><a href="/admin/trucks/${truckStops.truck.id}">${truckStops.truck.name}</a></td><commit_msg>Added start and end time to truck list for current and next stops<commit_after><%@ include file="dashboardHeader.jsp" %>

<div class="btn-toolbar">
  <div class="btn-group">
    <a href="/cron/tweets" class="btn primary" id="twitterButton">Refresh all tweets</a>
    <a href="#" class="btn" id="newTruck">New Truck</a>&nbsp;
  </div>
  <div class="btn-group toggle-visibility" data-toggle="buttons-checkbox">
    <button id="inactiveButton" type="button" class="btn active">Inactive</button>
    <button id="muteButton" type="button" class="btn active">Muted</button>
  </div>
</div>
<h3>Active Trucks</h3>
<table class="table table-striped">
  <thead>
  <tr>
    <th>Truck</th>
    <th>Current Location</th>
    <th>Ends At</th>
    <th>Starts At</th>
    <th>Next Location</th>
    <th>Twittalyzer</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach var="truckStops" items="${trucks}">
    <c:if test="${truckStops.active}">

      <tr>
        <td><a href="/admin/trucks/${truckStops.truck.id}">${truckStops.truck.name}</a></td>
        <td>
          <c:choose>
          <c:when
              test="${!empty(truckStops.currentStop)}">
          <c:url value="/admin/locations"
                 var="locationUrl">
          <c:param name="q" value="${truckStops.currentStop.location.name}"/>
          </c:url> <a
            href="${locationUrl}">${truckStops.currentStop.location.name}</a></td>
        <td><joda:format value="${truckStops.currentStop.endTime}" style="-S"/></c:when><c:otherwise>
          Not Active
        </td>
        <td>&nbsp;</c:otherwise>
        </c:choose>

        </td>
        <td>
          <c:choose>
          <c:when
              test="${!empty(truckStops.nextStop)}">
          <c:url value="/admin/locations" var="locationUrl">
          <c:param name="q" value="${truckStops.nextStop.location.name}"/>
          </c:url> <joda:format value="${truckStops.nextStop.startTime}" style="-S"/></td>
        <td><a
            href="${locationUrl}">${truckStops.nextStop.location.name}</a></c:when>
          <c:otherwise>None</c:otherwise>
        </c:choose>
        </td>
        <td><c:choose><c:when
            test="${truckStops.truck.usingTwittalyzer}"></c:when><c:otherwise><span
            class="label warning">off</span></c:otherwise></c:choose></td>
      </tr>
    </c:if>
  </c:forEach>
  </tbody>
</table>
<h3>Trucks That Are Inactive Today</h3>
<table class="table table-striped">
  <thead>
  <tr>
    <th>Truck</th>
    <th>Twittalyzer</th>
    <th>&nbsp;</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach var="truckStops" items="${trucks}">
    <c:if test="${!truckStops.active && !truckStops.truck.inactive}">
      <tr <c:if test="${truckStops.truck.muted}">class="muted"</c:if>>
        <td><a href="/admin/trucks/${truckStops.truck.id}">${truckStops.truck.name}</a></td>
{'fraction_non_alphanumeric': 0.21588324488248672, 'fraction_numerical': 0.001516300227445034, 'mean_word_length': 3.1880952380952383, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4037963', 'n_tokens_mistral': 1948, 'n_tokens_neox': 1906, 'n_words': 269}