<commit_before>{* $Id$ *}
{if $prefs.feature_use_minified_scripts == 'y'}{assign var=minified value='.min'}{assign var=minidir value='minified'}{else}{assign var=minified value=''}{assign var=minidir value=''}{/if}
<!--  start jquery-tiki -->
<script type="text/javascript" src="lib/jquery/jquery{$minified}.js"></script>
<script type="text/javascript" src="lib/jquery_tiki/tiki-jquery.js"></script>{* add {$minified} later if $minify_scripts_on_the_fly *}

{* fade out remark boxes on a click to save user space *}
<script type="text/javascript">
<!--//--><![CDATA[//><!--
{literal}
	$jq(document.body).ready(function() {
		$jq("div.rbox").css("position","relative");
		$jq("div.rbox").append('{/literal}{icon _id='cross' alt='{tr}Close{/tr}' title='{tr}Click to fade this out{/tr}' style='position: absolute; top: 0; right: 0'}{literal}');
		$jq("div.rbox img.icon").hover(function() {
			$jq(this).css("cursor","crosshair");
			$jq(this).attr("title","{/literal}{tr}Click to fade this out{/tr}{literal}");
			$jq(this).click(function() {
				$jq(this).parent().fadeOut(1000);
			});
		});
	});
{/literal}
//--><!]]>
</script>

{if $prefs.feature_jquery_ui eq 'y' or $prefs.feature_jquery_tooltips eq 'y' or $prefs.feature_jquery_autocomplete eq 'y' or $prefs.feature_jquery_superfish eq 'y' or $prefs.feature_jquery_reflection eq 'y' or $prefs.feature_jquery_cycle eq 'y'}
<script type="text/javascript">
<!--//--><![CDATA[//><!--
// Save $ if it's used for moo {* note: add plugins between this block and the Restore $ *}
{literal}var $old; if ($) {$old = $;} $ = $jq;{/literal}
//--><!]]>
</script>
{if $prefs.feature_jquery_ui eq 'y'}{* TODO optimise so not including all - maybe - one day *}
<script type="text/javascript" src="lib/jquery/jquery-ui/ui/{$minidir}/jquery-ui{$minified}.js"></script>
<link rel="stylesheet" href="lib/jquery/jquery-ui/themes/{$prefs.feature_jquery_ui_theme}/jquery-ui.css" />
{/if}
{if $prefs.feature_jquery_tooltips eq 'y'}
<script type="text/javascript" src="lib/jquery/cluetip/lib/jquery.hoverIntent.js"></script>
<script type="text/javascript" src="lib/jquery/cluetip/lib/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="lib/jquery/cluetip/jquery.cluetip.js"></script>
<link rel="stylesheet" href="lib/jquery/cluetip/jquery.cluetip.css" type="text/css" /> 
{/if}
{if $prefs.feature_jquery_autocomplete eq 'y'}<commit_msg>[FIX] Colorbox includes now inside "jQuery operating not in compatilibity mode" section so needed to add test for feature_shadowbox to it.<commit_after>{* $Id$ *}
{if $prefs.feature_use_minified_scripts == 'y'}{assign var=minified value='.min'}{assign var=minidir value='minified'}{else}{assign var=minified value=''}{assign var=minidir value=''}{/if}
<!--  start jquery-tiki -->
<script type="text/javascript" src="lib/jquery/jquery{$minified}.js"></script>
<script type="text/javascript" src="lib/jquery_tiki/tiki-jquery.js"></script>{* add {$minified} later if $minify_scripts_on_the_fly *}

{* fade out remark boxes on a click to save user space *}
<script type="text/javascript">
<!--//--><![CDATA[//><!--
{literal}
	$jq(document.body).ready(function() {
		$jq("div.rbox").css("position","relative");
		$jq("div.rbox").append('{/literal}{icon _id='cross' alt='{tr}Close{/tr}' title='{tr}Click to fade this out{/tr}' style='position: absolute; top: 0; right: 0'}{literal}');
		$jq("div.rbox img.icon").hover(function() {
			$jq(this).css("cursor","crosshair");
			$jq(this).attr("title","{/literal}{tr}Click to fade this out{/tr}{literal}");
			$jq(this).click(function() {
				$jq(this).parent().fadeOut(1000);
			});
		});
	});
{/literal}
//--><!]]>
</script>

{if $prefs.feature_jquery_ui eq 'y' or $prefs.feature_jquery_tooltips eq 'y' or $prefs.feature_jquery_autocomplete eq 'y' or $prefs.feature_jquery_superfish eq 'y' or $prefs.feature_jquery_reflection eq 'y' or $prefs.feature_jquery_cycle eq 'y' or $prefs.feature_shadowbox eq 'y'}
<script type="text/javascript">
<!--//--><![CDATA[//><!--
// Save $ if it's used for moo {* note: add plugins between this block and the Restore $ *}
{literal}var $old; if ($) {$old = $;} $ = $jq;{/literal}
//--><!]]>
</script>
{if $prefs.feature_jquery_ui eq 'y'}{* TODO optimise so not including all - maybe - one day *}
<script type="text/javascript" src="lib/jquery/jquery-ui/ui/{$minidir}/jquery-ui{$minified}.js"></script>
<link rel="stylesheet" href="lib/jquery/jquery-ui/themes/{$prefs.feature_jquery_ui_theme}/jquery-ui.css" />
{/if}
{if $prefs.feature_jquery_tooltips eq 'y'}
<script type="text/javascript" src="lib/jquery/cluetip/lib/jquery.hoverIntent.js"></script>
<script type="text/javascript" src="lib/jquery/cluetip/lib/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="lib/jquery/cluetip/jquery.cluetip.js"></script>
<link rel="stylesheet" href="lib/jquery/cluetip/jquery.cluetip.css" type="text/css" /> 
{/if}
{if $prefs.feature_jquery_autocomplete eq 'y'}
{'fraction_non_alphanumeric': 0.2178237921234267, 'fraction_numerical': 0.00243605359317905, 'mean_word_length': 5.667117726657645, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '4794807', 'n_tokens_mistral': 1856, 'n_tokens_neox': 1754, 'n_words': 341}