<commit_before><?php
/**
 * Tatoeba Project, free collaborative creation of multilingual corpuses project
 * Copyright (C) 2015  <NAME>
 *
 * 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/>.
 */

$layout = isset($isSidebar) && $isSidebar ? 'column' : 'row';

echo $this->Form->create('AdvancedSearch', [
    'id' => 'advanced-search',
    'type' => 'get',
    'url' => [
        'controller' => 'sentences',
        'action' => 'search',
    ]
]);
?>

<?php if ($this->request->getParam("?")): ?>
    <md-divider>
        <md-button class="md-primary md-raised"
                    href="<?= $this->Url->build([
                        "controller" => "Sentences",
                        "action" => "advanced_search",
                        "?" => [],
                    ]);?>">
            <?= __('Clear') ?>
        </md-button>
        <i><?= __("This form has been filled by a template.")?></i>
    </md-divider>
    <md-divider></md-divider>
<?php endif; ?>

<div layout="column" ng-app="app" ng-cloak>
    <div layout="<?= $layout ?>">
        <div class="column-1" layout="column" flex>
            <?php /* @translators: section title in advanced search form */ ?>
            <h3><?= __('Sentences'); ?></h3>

            <md-input-container>
                <?php
                echo $this->Form->input('query', array(
                    'label' => __('Words:'),
                    'value' => $this->safeForAngular($query),
                    'lang' => '',
                    'dir' => 'auto',
                ));
                ?>
                <div class="hint"><?= __('Enter a word or a phrase') ?></div>
            </md-input-container>

            <div class="param" layout="<?= $layout ?>" layout-align="center"><commit_msg>Move clear button to right of template notification<commit_after><?php
/**
 * Tatoeba Project, free collaborative creation of multilingual corpuses project
 * Copyright (C) 2015  <NAME>
 *
 * 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/>.
 */

$layout = isset($isSidebar) && $isSidebar ? 'column' : 'row';

echo $this->Form->create('AdvancedSearch', [
    'id' => 'advanced-search',
    'type' => 'get',
    'url' => [
        'controller' => 'sentences',
        'action' => 'search',
    ]
]);
?>

<?php if ($this->request->getParam("?")): ?>
    <i><?= __("This form has been filled by a template.")?></i>
    <md-button class="md-primary md-raised"
                href="<?= $this->Url->build([
                    "controller" => "Sentences",
                    "action" => "advanced_search",
                    "?" => [],
                ]);?>">
        <?= __('Clear Form') ?>
    </md-button>
    <md-divider></md-divider>
<?php endif; ?>

<div layout="column" ng-app="app" ng-cloak>
    <div layout="<?= $layout ?>">
        <div class="column-1" layout="column" flex>
            <?php /* @translators: section title in advanced search form */ ?>
            <h3><?= __('Sentences'); ?></h3>

            <md-input-container>
                <?php
                echo $this->Form->input('query', array(
                    'label' => __('Words:'),
                    'value' => $this->safeForAngular($query),
                    'lang' => '',
                    'dir' => 'auto',
                ));
                ?>
                <div class="hint"><?= __('Enter a word or a phrase') ?></div>
            </md-input-container>

            <div class="param" layout="<?= $layout ?>" layout-align="center">
{'fraction_non_alphanumeric': 0.16036533559898045, 'fraction_numerical': 0.0033984706881903144, 'mean_word_length': 2.181756756756757, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 107, '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': '4220648', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1291, 'n_words': 423}