<commit_before><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Files
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
defined('KOOWA') or die( 'Restricted access' ); ?>

<?= @helper('behavior.mootools'); ?>
<?= @helper('behavior.keepalive'); ?>
<?= @helper('behavior.tooltip'); ?>

<?= @helper('behavior.modal'); ?>

<style src="media://system/css/mootree.css" />
<style src="media://com_files/css/files.css" />

<? if (version_compare(JVERSION, '1.7.0', '<')): ?>
<script src="media://com_files/js/delegation.js" />
<script src="media://com_files/js/uri.js" />
<? endif; ?>
<script src="media://com_files/js/history/history.js" />
<script src="media://com_files/js/history/history.adapter.mootools.js" />
<script src="media://com_files/js/history/history.html4.js" />

<script src="media://com_files/js/ejs/ejs.js" />

<script src="media://lib_koowa/js/koowa.js" />
<script src="media://system/js/mootree.js" />
<script src="media://com_files/js/spin.min.js" />

<script src="media://com_files/js/files.utilities.js" />
<script src="media://com_files/js/files.state.js" />
<script src="media://com_files/js/files.template.js" />
<script src="media://com_files/js/files.grid.js" />
<script src="media://com_files/js/files.tree.js" />
<script src="media://com_files/js/files.row.js" />
<script src="media://com_files/js/files.paginator.js" />

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

if (SqueezeBox.open === undefined) {
	SqueezeBox = $extend(SqueezeBox, {
		open: function(subject, options) {
			this.initialize();

			if (this.element != null) this.trash();
			this.element = document.id(subject) || false;

			this.setOptions($merge(this.presets, options || {}));

			if (this.element && this.options.parse) {
				var obj = this.element.getProperty(this.options.parse);
				if (obj && (obj = JSON.decode(obj, this.options.parseSecure))) this.setOptions(obj);
			}
			this.url = ((this.element) ? (this.element.get('href')) : subject) || this.options.url || '';

			this.assignOptions();

			var handler = handler || this.options.handler;
			if (handler) return this.setContent(handler, this.parsers[handler].call(this, true));
			var ret = false;
			return this.parsers.some(function(parser, key) {
				var content = parser.call(this);
				if (content) {
					ret = this.setContent(key, content);
					return true;
				}
				return false;
			}, this);
		},
		trash: function() {
			this.element = this.asset = null;
			this.content.empty();
			this.options = {};
			this.removeEvents().setOptions(this.presets).callChain();
		}
	});
}

/* Joomla! 1.5 fix */
if(!SqueezeBox.handlers.clone) {
	SqueezeBox.handlers.adopt = function(a){return a;}
}
window.addEvent('domready', function(){
	if(!SqueezeBox.fx.win) {
		SqueezeBox.fx.win = SqueezeBox.fx.window;
	}
});
</script><commit_msg>test #47 solving issue where toggling the uploads modal would make the uploader dissappear on the 3rd attempt.<commit_after><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Files
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
defined('KOOWA') or die( 'Restricted access' ); ?>

<?= @helper('behavior.mootools'); ?>
<?= @helper('behavior.keepalive'); ?>
<?= @helper('behavior.tooltip'); ?>

<?= @helper('behavior.modal'); ?>

<style src="media://system/css/mootree.css" />
<style src="media://com_files/css/files.css" />

<? if (version_compare(JVERSION, '1.7.0', '<')): ?>
<script src="media://com_files/js/delegation.js" />
<script src="media://com_files/js/uri.js" />
<? endif; ?>
<script src="media://com_files/js/history/history.js" />
<script src="media://com_files/js/history/history.adapter.mootools.js" />
<script src="media://com_files/js/history/history.html4.js" />

<script src="media://com_files/js/ejs/ejs.js" />

<script src="media://lib_koowa/js/koowa.js" />
<script src="media://system/js/mootree.js" />
<script src="media://com_files/js/spin.min.js" />

<script src="media://com_files/js/files.utilities.js" />
<script src="media://com_files/js/files.state.js" />
<script src="media://com_files/js/files.template.js" />
<script src="media://com_files/js/files.grid.js" />
<script src="media://com_files/js/files.tree.js" />
<script src="media://com_files/js/files.row.js" />
<script src="media://com_files/js/files.paginator.js" />

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

if (SqueezeBox.open === undefined) {
	SqueezeBox = $extend(SqueezeBox, {
		open: function(subject, options) {
			this.initialize();

			if (this.element != null) this.close();
			this.element = document.id(subject) || false;

			this.setOptions($merge(this.presets, options || {}));

			if (this.element && this.options.parse) {
				var obj = this.element.getProperty(this.options.parse);
				if (obj && (obj = JSON.decode(obj, this.options.parseSecure))) this.setOptions(obj);
			}
			this.url = ((this.element) ? (this.element.get('href')) : subject) || this.options.url || '';

			this.assignOptions();

			var handler = handler || this.options.handler;
			if (handler) return this.setContent(handler, this.parsers[handler].call(this, true));
			var ret = false;
			return this.parsers.some(function(parser, key) {
				var content = parser.call(this);
				if (content) {
					ret = this.setContent(key, content);
					return true;
				}
				return false;
			}, this);
		}
	});
}

/* Joomla! 1.5 fix */
if(!SqueezeBox.handlers.clone) {
	SqueezeBox.handlers.adopt = function(a){return a;}
}
window.addEvent('domready', function(){
	if(!SqueezeBox.fx.win) {
		SqueezeBox.fx.win = SqueezeBox.fx.window;
	}
});
</script>
{'fraction_non_alphanumeric': 0.20759493670886076, 'fraction_numerical': 0.004219409282700422, 'mean_word_length': 3.9219269102990033, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 61, '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': '5833076', 'n_tokens_mistral': 2281, 'n_tokens_neox': 2133, 'n_words': 332}