<commit_before><?php
/*+
 * Tatoeba Project, free collaborative creation of languages corpuses project
 * Copyright (C) 2020  Tatoeba Project
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (empty($options)): ?>
    <dd><?= __('There are no sentences available') ?></dd>
<?php else: ?>
    <dd ng-init="<?= $model ?> = '<?= $options[0]['url'] ?>'">
        <p>
            <a ng-href="{{<?= $model ?>}}">{{<?= $model ?> | filename}}</a>
        </p>
        <md-radio-group ng-model="<?= $model ?>"
        ng-init="<?= $model ?>Select = '<?= $options[1]['url'] ?>'">
            <md-radio-button class="file-selection" value="<?= $options[0]['url'] ?>">
               <?= $options[0]['language'] ?>
            </md-radio-button>
            <div layout="row" layout-align="start center">
                <md-radio-button class="file-selection" ng-value="<?= $model ?>Select" flex="none">
                    Only sentences in
                </md-radio-button>
                <md-select class="file-selection" ng-model="<?= $model ?>Select"
                ng-change="<?= $model ?> = <?= $model ?>Select" flex="initial">
                    <?php foreach (array_slice($options, 1) as $option): ?>
                        <md-option value="<?= $option['url'] ?>">
                            <?= $option['language'] ?>
                        </md-option>
                    <?php endforeach; ?><commit_msg>Add ng-cloak directive to per-language files element<commit_after><?php
/*+
 * Tatoeba Project, free collaborative creation of languages corpuses project
 * Copyright (C) 2020  Tatoeba Project
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

if (empty($options)): ?>
    <dd><?= __('There are no sentences available') ?></dd>
<?php else: ?>
    <dd ng-init="<?= $model ?> = '<?= $options[0]['url'] ?>'" ng-cloak>
        <p>
            <a ng-href="{{<?= $model ?>}}">{{<?= $model ?> | filename}}</a>
        </p>
        <md-radio-group ng-model="<?= $model ?>"
        ng-init="<?= $model ?>Select = '<?= $options[1]['url'] ?>'">
            <md-radio-button class="file-selection" value="<?= $options[0]['url'] ?>">
               <?= $options[0]['language'] ?>
            </md-radio-button>
            <div layout="row" layout-align="start center">
                <md-radio-button class="file-selection" ng-value="<?= $model ?>Select" flex="none">
                    Only sentences in
                </md-radio-button>
                <md-select class="file-selection" ng-model="<?= $model ?>Select"
                ng-change="<?= $model ?> = <?= $model ?>Select" flex="initial">
                    <?php foreach (array_slice($options, 1) as $option): ?>
                        <md-option value="<?= $option['url'] ?>">
                            <?= $option['language'] ?>
                        </md-option>
                    <?php endforeach; ?>
{'fraction_non_alphanumeric': 0.16440677966101694, 'fraction_numerical': 0.004842615012106538, 'mean_word_length': 2.4339152119700747, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3096212', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1120, 'n_words': 385}