<commit_before><?php

use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $author \common\models\Author */

$this->title = 'Codices :: ' . Yii::t('codices', 'Author Details');
$this->params = [
    'title' => Yii::t('codices', 'Author Details')
];

$provider = new ArrayDataProvider([
    'allModels' => $author->books,
    'pagination' => false,
    'sort' => false,
    'key' => function() {
        return false;
    }]);
?>

<div class="btn-group pull-right">
    <a class="btn btn-default" href="<?= Url::to(['authors/index']) ?>"><i class="fa fa-list"></i></a>
    <a class="btn btn-primary" href="<?= Url::to(['authors/update', 'id' => $author->id]) ?>"><i class="fa fa-pencil"></i></a>
    <a class="btn btn-success" href="<?= Url::to(['authors/create']) ?>"><i class="fa fa-plus"></i></a>
</div>

<div class="clearfix"></div><br />

<div class="table-responsive">
    <table class="table table-striped table-bordered">
        <tr>
            <th>#</th>
            <td><?= $author->id ?></td>
            <td rowspan="4" class="text-center" style="width: 180px;">
                <?php if (($url = $author->photoURL)) { ?>
                    <img class="img-rounded preview" src="<?= $url ?>">
                <?php } ?>
            </td>
        </tr>

        <tr><th><?= Yii::t('codices', 'Name') ?></th><td><?= $author->fullName ?></td></tr>

        <tr>
            <th><?= Yii::t('codices', 'Website/URL') ?></th>
            <td>
                <?php if ($author->url) { ?>
                    <a href="<?= $author->url ?>" target="_blank"><?= $author->url ?> <i class="fa fa-external-link"></i></a>
                <?php }  ?>
            </td>
        </tr>

        <tr><th><?= Yii::t('codices', 'Biography') ?></th><td><?= $author->biography ?></td></tr>
    </table>
</div>

<div class="table-responsive">
    <h6><?= Yii::t('codices', 'Books written by the author') ?></h6><commit_msg>Fixes rogue space.<commit_after><?php

use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $author \common\models\Author */

$this->title = 'Codices :: ' . Yii::t('codices', 'Author Details');
$this->params = [
    'title' => Yii::t('codices', 'Author Details')
];

$provider = new ArrayDataProvider([
    'allModels' => $author->books,
    'pagination' => false,
    'sort' => false,
    'key' => function() {
        return false;
    }]);
?>

<div class="btn-group pull-right">
    <a class="btn btn-default" href="<?= Url::to(['authors/index']) ?>"><i class="fa fa-list"></i></a>
    <a class="btn btn-primary" href="<?= Url::to(['authors/update', 'id' => $author->id]) ?>"><i class="fa fa-pencil"></i></a>
    <a class="btn btn-success" href="<?= Url::to(['authors/create']) ?>"><i class="fa fa-plus"></i></a>
</div>

<div class="clearfix"></div><br />

<div class="table-responsive">
    <table class="table table-striped table-bordered">
        <tr>
            <th>#</th>
            <td><?= $author->id ?></td>
            <td rowspan="4" class="text-center" style="width: 180px;">
                <?php if (($url = $author->photoURL)) { ?>
                    <img class="img-rounded preview" src="<?= $url ?>">
                <?php } ?>
            </td>
        </tr>

        <tr><th><?= Yii::t('codices', 'Name') ?></th><td><?= $author->fullName ?></td></tr>

        <tr>
            <th><?= Yii::t('codices', 'Website/URL') ?></th>
            <td>
                <?php if ($author->url) { ?>
                    <a href="<?= $author->url ?>" target="_blank"><?= $author->url ?> <i class="fa fa-external-link"></i></a>
                <?php } ?>
            </td>
        </tr>

        <tr><th><?= Yii::t('codices', 'Biography') ?></th><td><?= $author->biography ?></td></tr>
    </table>
</div>

<div class="table-responsive">
    <h6><?= Yii::t('codices', 'Books written by the author') ?></h6>
{'fraction_non_alphanumeric': 0.25975, 'fraction_numerical': 0.003, 'mean_word_length': 2.588340807174888, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 183, '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': '1537623', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1405, 'n_words': 285}