<commit_before><?php
/**
 * ownCloud - oauth2
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME>
 * @copyright <NAME> 2016
 */
?>
<div class="section" id="oauth2">
    <h2><?php p($l->t('OAuth 2.0')); ?></h2>

    <h3><?php p($l->t('Registered clients')); ?></h3>
    <table class="grid">
        <thead>
        <tr>
            <th id="headerName" scope="col"><?php p($l->t('Name')); ?></th>
            <th id="headerRedirectUri" scope="col"><?php p($l->t('Redirect URI')); ?></th>
            <th id="headerClientId" scope="col"><?php p($l->t('Client ID')); ?></th>
            <th id="headerSecret" scope="col"><?php p($l->t('Secret')); ?></th>
            <th id="headerRemove">&nbsp;</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><?php var_dump($_['clients'])?></td>
            <td>https://learnweb.de/cb</td>
            <td>12oindni2o2no1</td>
            <td>12io23bnfipo2poemncnwipe</td>
            <td><a class="action delete" href="#"><img class="svg action" src="/core/img/actions/delete.svg"></a></td>
        </tr>
        </tbody>
    </table>

    <h3><?php p($l->t('Add client')); ?></h3>
    <form action="../apps/oauth2/clients" method="post">
        <input id="name" name="name" type="text" placeholder="<?php p($l->t('Name')); ?>">
        <input id="redirect_uri" name="redirect_uri" type="url" placeholder="<?php p($l->t('Redirect URI')); ?>">
        <input type="submit" class="button" value="<?php p($l->t('Add')); ?>">
    </form>
</div><commit_msg>Update admin settings view<commit_after><?php
/**
 * ownCloud - oauth2
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME>
 * @copyright <NAME> 2016
 */
?>
<div class="section" id="oauth2">
    <h2><?php p($l->t('OAuth 2.0')); ?></h2>

    <h3><?php p($l->t('Registered clients')); ?></h3>
    <table class="grid">
        <thead>
        <tr>
            <th id="headerName" scope="col"><?php p($l->t('Name')); ?></th>
            <th id="headerRedirectUri" scope="col"><?php p($l->t('Redirect URI')); ?></th>
            <th id="headerClientId" scope="col"><?php p($l->t('Client ID')); ?></th>
            <th id="headerSecret" scope="col"><?php p($l->t('Secret')); ?></th>
            <th id="headerRemove">&nbsp;</th>
        </tr>
        </thead>
        <tbody>
            <?php foreach ($_['clients'] as $client) { ?>
                <tr>
                    <td><?php p($client->getName())?></td>
                    <td><?php p($client->getRedirectUri())?></td>
                    <td><?php p($client->getClientId())?></td>
                    <td><?php p($client->getClientSecret())?></td>
                    <td><a class="action delete" href="#"><img class="svg action" src="/core/img/actions/delete.svg"></a></td>
                </tr>
            <?php } ?>
        </tbody>
    </table>

    <h3><?php p($l->t('Add client')); ?></h3>
    <form action="../apps/oauth2/clients" method="post">
        <input id="name" name="name" type="text" placeholder="<?php p($l->t('Name')); ?>">
        <input id="redirect_uri" name="redirect_uri" type="url" placeholder="<?php p($l->t('Redirect URI')); ?>">
        <input type="submit" class="button" value="<?php p($l->t('Add')); ?>">
    </form>
</div>
{'fraction_non_alphanumeric': 0.2482311320754717, 'fraction_numerical': 0.012382075471698114, 'mean_word_length': 2.6134185303514377, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 152, 'https://': 1, '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': '5189751', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1142, 'n_words': 233}