<commit_before><?php

defined('C5_EXECUTE') or die("Access Denied.");

Loader::element('calendar/header', array(
    'calendar' => $calendar,
    'calendars' => $calendars,
    'mode' => 'list',
));
$topic_id = Request::getInstance()->get('topic_id');
?>

<form method="get" action="<?=$view->action('search')?>">
<div class="form-group">
    <label class="control-label" for="query"><?=t('Search')?></label>
    <div class="input-group">
        <?=$form->text('query', array('placeholder' => t('Keywords')))?>

            <div class="input-group-btn">

                <?php if (isset($topics) && is_array($topics)) { ?>

                    <select data-select="bootstrap" name="topic_id">
                        <option value=""><?=t('All Categories')?></option>
                        <?php foreach($topics as $topic_node) { ?>
                            <option <?php if ($topic_id == $topic_node->getTreeNodeID()) { ?>selected<?php } ?> value="<?= $topic_node->getTreeNodeID() ?>"><?= h($topic_node->getTreeNodeDisplayName('html')) ?></option>
                        <?php } ?>
                    </select>

                <?php } ?>

                <button type="submit" class="btn btn-default"><?=t('Search')?></button>

            </div><commit_msg>Fix #6647<commit_after><?php

defined('C5_EXECUTE') or die("Access Denied.");

Loader::element('calendar/header', array(
    'calendar' => $calendar,
    'calendars' => $calendars,
    'mode' => 'list',
));
$topic_id = Request::getInstance()->get('topic_id');
?>

<form method="get" action="<?=$view->action('search')?>">
<div class="form-group">
    <label class="control-label" for="query"><?=t('Search')?></label>
    <div class="input-group">
        <?=$form->text('query', array('placeholder' => t('Keywords')))?>

            <div class="input-group-btn" style="z-index: 501;">

                <?php if (isset($topics) && is_array($topics)) { ?>

                    <select data-select="bootstrap" name="topic_id">
                        <option value=""><?=t('All Categories')?></option>
                        <?php foreach($topics as $topic_node) { ?>
                            <option <?php if ($topic_id == $topic_node->getTreeNodeID()) { ?>selected<?php } ?> value="<?= $topic_node->getTreeNodeID() ?>"><?= h($topic_node->getTreeNodeDisplayName('html')) ?></option>
                        <?php } ?>
                    </select>

                <?php } ?>

                <button type="submit" class="btn btn-default"><?=t('Search')?></button>

            </div>
{'fraction_non_alphanumeric': 0.2235708692247455, 'fraction_numerical': 0.003523884103367267, 'mean_word_length': 2.603667136812412, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 81, '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': '1213465', 'n_tokens_mistral': 773, 'n_tokens_neox': 754, 'n_words': 126}