<commit_before><!DOCTYPE html>
<html lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="base.macros['base']">

<tal:block metal:fill-slot="header-title">Applications</tal:block>

<tal:block metal:fill-slot="content">

  <div tal:condition="authorized_apps" tal:omit-tag="">
  <h1>Authorized Applications</h1>
  <ul>
    <li tal:repeat="app authorized_apps">${app.name} <a href="">Revoke</a></li>
  </ul>
  </div>

  <h1>Developer Applications</h1>
  <ul>
    <li tal:repeat="app applications"><a href="${request.route_path('oauth2_application_view', app=app._id)}">${app.name} (${app.main_url})</a></li>
  </ul>

  <p><a href="${request.route_path('oauth2_application_new')}">Register new application</a></p>

</tal:block>

</html><commit_msg>Better styling for the applications page<commit_after><!DOCTYPE html>
<html lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="base.macros['base']">

<tal:block metal:fill-slot="header-title">Applications</tal:block>

<tal:block metal:fill-slot="content">

  <div tal:condition="authorized_apps" tal:omit-tag="">
  <h2>Authorized Applications</h2>
  <ul>
    <li tal:repeat="app authorized_apps">${app.name} <a href="">Revoke</a></li>
  </ul>
  </div>

  <h2>Developer Applications</h2>

  <table class="table table-stripped table-bordered">
    <thead>
      <th>Name</th>
      <th>Main URL</th>
      <th>Callback URL</th>
      <th>Client Id</th>
      <th>Client Secret</th>
    </thead>
    <tbody>
      <tr tal:repeat="app applications">
        <td><a href="${request.route_path('oauth2_application_view', app=app._id)}">${app.name}</a></td>
        <td>${app.main_url}</td>
        <td>${app.callback_url}</td>
        <td>${app.client_id}</td>
        <td>${app.client_secret}</td>
      </tr>
    </tbody>
  </table>

  <p><a class="btn" href="${request.route_path('oauth2_application_new')}">Register new application</a></p>

</tal:block>

</html>
{'fraction_non_alphanumeric': 0.2146621945376138, 'fraction_numerical': 0.005749880210828941, 'mean_word_length': 4.2727272727272725, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2645950', 'n_tokens_mistral': 797, 'n_tokens_neox': 759, 'n_words': 106}