<commit_before><?
/**
 * @package     Nooku_Components
 * @subpackage  Ckeditor
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<?= @template('com:files.view.files.initialize.html'); ?>

<script src="media://files/js/files.compact.js" />

<script>
    Files.sitebase = '<?= $sitebase; ?>';
    Files.base     = '<?= $base; ?>';
    Files.token    = '<?= $token; ?>';

    window.addEvent('domready', function() {
        var config = <?= json_encode($state->config); ?>,
            options = {
                state: {
                    defaults: {
                        limit: 0,
                        offset: 0
                    }
                },
                editor: <?= json_encode($state->editor); ?>,
                tree: {
                    theme: 'media://files/images/mootree.png'
                },
                types: <?= json_encode($state->types); ?>,
                container: <?= json_encode($state->container ? $state->container : null); ?>,

            };
        options = $extend(options, config);

        Files.app = new Files.Compact.App(options);

        $$('#tabs-pane_insert dt').addEvent('click', function(){
            setTimeout(function(){window.fireEvent('refresh');}, 300);
        });
    });
</script>

<?= @template('templates_compact.html');?>

<div id="files-compact" class="tabs tabs-horizontal">
    <div class="tab">
        <input type="radio" id="tab-1" name="tab-group-1" checked="">
        <label for="tab-1"><?= @text('Insert') ?></label>
        <div id="files-insert" class="content">
            <div id="files-tree-container">
                <div id="files-tree"></div>
            </div>
            <div id="files-grid"></div>
            <div id="details">
                <div id="files-preview"></div>
            </div>
        </div>
    </div>
    <div class="tab">
        <input type="radio" id="tab-2" name="tab-group-1">
        <label for="tab-2"><?= @text('Upload') ?></label>
        <div class="content"><commit_msg>Typo re #386<commit_after><?
/**
 * @package     Nooku_Components
 * @subpackage  Ckeditor
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<?= @template('com:files.view.files.initialize.html'); ?>

<script src="media://files/js/files.compact.js" />

<script>
    Files.sitebase = '<?= $sitebase; ?>';
    Files.base     = '<?= $base; ?>';
    Files.token    = '<?= $token; ?>';

    window.addEvent('domready', function() {
        var config = <?= json_encode($state->config); ?>,
            options = {
                state: {
                    defaults: {
                        limit: 0,
                        offset: 0
                    }
                },
                editor: <?= json_encode($state->editor); ?>,
                tree: {
                    theme: 'media://files/images/mootree.png'
                },
                types: <?= json_encode($state->types); ?>,
                container: <?= json_encode($state->container ? $state->container : null); ?>
            };
        options = $extend(options, config);

        Files.app = new Files.Compact.App(options);

        $$('#tabs-pane_insert dt').addEvent('click', function(){
            setTimeout(function(){window.fireEvent('refresh');}, 300);
        });
    });
</script>

<?= @template('templates_compact.html');?>

<div id="files-compact" class="tabs tabs-horizontal">
    <div class="tab">
        <input type="radio" id="tab-1" name="tab-group-1" checked="">
        <label for="tab-1"><?= @text('Insert') ?></label>
        <div id="files-insert" class="content">
            <div id="files-tree-container">
                <div id="files-tree"></div>
            </div>
            <div id="files-grid"></div>
            <div id="details">
                <div id="files-preview"></div>
            </div>
        </div>
    </div>
    <div class="tab">
        <input type="radio" id="tab-2" name="tab-group-1">
        <label for="tab-2"><?= @text('Upload') ?></label>
        <div class="content">
{'fraction_non_alphanumeric': 0.1968121968121968, 'fraction_numerical': 0.009933009933009933, 'mean_word_length': 1.8789893617021276, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '4666525', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1290, 'n_words': 223}