<commit_before><%-- 
    Document   : applist
    Created on : 25 sept. 2015, 10:03:50
    Author     : Miguel
--%>

<%@include file="includes/header.jsp" %>

   <h1 class="pageTitle">${pageTitle}</h1>
   <button id="btnNewApp" class="btn btnRegisterNew btn-danger" type="button">Register new app</button>
   
   <table class="appsTable">
      <tr>
         <th>Name</th>
         <th>Description</th>
         <th>Api Key</th>
         <th>Users</th>
         <th></th>
      </tr>
      <c:forEach items="${apps}" var="apps">
         <tr>
            <td>${apps.name}</td>
            <td>${apps.description}</td>
            <td>${apps.apiKey}</td>
            <td><a href="userslist?app=${apps.id}&page=1">${apps.numberOfUsers}</a></td>
            <td class="appButtons">
            <button id="btnEdit${apps.id}" class="btn btn-default" type="button" onClick="window.location.replace('app?action=edit&app=${apps.id}');">Edit</button>
            <c:choose>
               <c:when test="${apps.active}">
                  <button id="btnStatus${apps.id}" class="btn btnStatus btn-success" type="button">Enabled</button>
               </c:when>
               <c:otherwise>
                  <button id="btnStatus${apps.id}" class="btn btnStatus btn-danger" type="button">Disabled</button>
               </c:otherwise>
            </c:choose>
         </td>
         </tr>
      </c:forEach>
   </table>

<%@include file="includes/footer.jsp" %><commit_msg>Edition de la page appslist.<commit_after><%-- 
    Document   : applist
    Created on : 25 sept. 2015, 10:03:50
    Author     : Miguel
--%>

<%@include file="includes/header.jsp" %>

   <h1 class="pageTitle">${pageTitle}</h1>
   <button id="btnNewApp" class="btn btnRegisterNew btn-danger" type="button" onClick="location.href='app?action=add';">Register new app</button>
   
   <table class="appsTable">
      <tr>
         <th>Name</th>
         <th>Description</th>
         <th>Api Key</th>
         <th>Users</th>
         <th></th>
      </tr>
      <c:forEach items="${apps}" var="apps">
         <tr>
            <td>${apps.name}</td>
            <td>${apps.description}</td>
            <td>${apps.apiKey}</td>
            <td><a href="userslist?app=${apps.id}&page=1">${apps.numberOfUsers}</a></td>
            <td class="appButtons">
               <button id="btnEdit${apps.id}" class="btn btn-default" type="submit" onClick="location.href='app?action=edit&app=${apps.id}';">Edit</button>
               <c:choose>
                  <c:when test="${apps.active}">
                     <button id="btnStatus${apps.id}" class="btn btnStatus btn-success" type="button">Enabled</button>
                  </c:when>
                  <c:otherwise>
                     <button id="btnStatus${apps.id}" class="btn btnStatus btn-danger" type="button">Disabled</button>
                  </c:otherwise>
               </c:choose>
            </td>
         </tr>
      </c:forEach>
   </table>

<%@include file="includes/footer.jsp" %>
{'fraction_non_alphanumeric': 0.19315159574468085, 'fraction_numerical': 0.00997340425531915, 'mean_word_length': 2.184126984126984, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '2362951', 'n_tokens_mistral': 987, 'n_tokens_neox': 936, 'n_words': 155}