<commit_before>{% extends g.theme.master %}

{% block title %}{{user.display_name}} / Special API Keys{% endblock %}

{% block header %}Special API Keys Management{% endblock %}

{% block extra_css %}
    <link rel="stylesheet" type="text/css"
          href="{{g.app_static('css/user_profile.css')}}"/>
{% endblock %}


{% block content %}
<form method="POST">
Username: <input name="for_user" type="text" value="{{for_user}}"><br />
Capabilities (JSON): <input name="caps" type="text" value="{{caps}}"><br />
Expiration date: <input name="expires" type="text" value="{{expires}}"><br />
<input type="submit" value="Save">
</form>

<table>
<tr>
<th>API Key</th>
<th>Username</th>
<th>Expiration Date</th>
<th>Capabilities</th>
</tr>
{% for token in token_list %}
<tr>
<td>{{token.api_key}}</td>
<td>{{token.user.username}}</td><commit_msg>[#1128] Show also secret key in special tokens list.<commit_after>{% extends g.theme.master %}

{% block title %}{{user.display_name}} / Special API Keys{% endblock %}

{% block header %}Special API Keys Management{% endblock %}

{% block extra_css %}
    <link rel="stylesheet" type="text/css"
          href="{{g.app_static('css/user_profile.css')}}"/>
{% endblock %}


{% block content %}
<form method="POST">
Username: <input name="for_user" type="text" value="{{for_user}}"><br />
Capabilities (JSON): <input name="caps" type="text" value="{{caps}}"><br />
Expiration date: <input name="expires" type="text" value="{{expires}}"><br />
<input type="submit" value="Save">
</form>

<table>
<tr>
<th>API Key</th>
<th>Secret Key</th>
<th>Username</th>
<th>Expiration Date</th>
<th>Capabilities</th>
</tr>
{% for token in token_list %}
<tr>
<td>{{token.api_key}}</td>
<td>{{token.secret_key}}</td>
<td>{{token.user.username}}</td>
{'fraction_non_alphanumeric': 0.23233465234595818, 'fraction_numerical': 0.0022611644997173543, 'mean_word_length': 5.704545454545454, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '4557240', 'n_tokens_mistral': 651, 'n_tokens_neox': 599, 'n_words': 140}