<commit_before><?
/**
 * Belgian Police Web Platform - Bin Component
 *
 * @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		https://github.com/belgianpolice/internet-platform
 */
?>

<? $site = escape(object('application')->getCfg('site' )) ?>

<script src="assets://application/js/jquery.js" />
<script src="assets://application/components/select2/select2.js" />
<script src="assets://application/js/ie7.js" condition="if lte IE 7" />

<h1 class="article__header"><?= escape($params->get('page_title')); ?></h1>

<script data-inline>
    $(document).ready(function() {
        function format(item) { return item.title; };
        $("#autocomplete__streets").select2({
            placeholder: "<?= translate('Search your street') ?> ...",
            minimumInputLength: 3,
            ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
                url: "?view=streets&format=json",
                dataType: 'json',
                data: function (term) {
                    return {<commit_msg>re #743 - Installed select2 using Bower and updated to v3.4.8<commit_after><?
/**
 * Belgian Police Web Platform - Bin Component
 *
 * @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		https://github.com/belgianpolice/internet-platform
 */
?>

<? $site = escape(object('application')->getCfg('site' )) ?>

<script src="assets://application/js/jquery.js" />
<style src="assets://application/components/select2/select2.css" />
<script src="assets://application/components/select2/select2.js" />
<script src="assets://application/js/ie7.js" condition="if lte IE 7" />

<h1 class="article__header"><?= escape($params->get('page_title')); ?></h1>

<script data-inline>
    $(document).ready(function() {
        function format(item) { return item.title; };
        $("#autocomplete__streets").select2({
            placeholder: "<?= translate('Search your street') ?> ...",
            minimumInputLength: 3,
            ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
                url: "?view=streets&format=json",
                dataType: 'json',
                data: function (term) {
                    return {
{'fraction_non_alphanumeric': 0.1701158940397351, 'fraction_numerical': 0.018625827814569538, 'mean_word_length': 3.014950166112957, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 30, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '7661804', 'n_tokens_mistral': 748, 'n_tokens_neox': 710, 'n_words': 159}