<commit_before>{* Smarty *}
{*
    vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
    File: $Id$
*}
{foreach from=$tabbedblock_items item=tabbedblock_item}
    {if isset($tabbedblock_item.selected|smarty:nodefaults) && $tabbedblock_item.selected}
        {assign var="selected_id" value=$tabbedblock->parseURI($tabbedblock_item.uri)|replace:'/':'.'}
    {/if}
{/foreach}
<script type="text/javascript">
{literal}
    Request.HTML.implement({
        success : function(text) {
            var html    = this.processHTML(this.response.text);
            var scripts = html.getElements('script');

            scripts.each(function(script) {
                if (script.get('src') == null) {
                    return ;
                }
                if ($$('script[src='+script.get('src')+']').length < 1) {
                    Asset.javascript(script.get('src'));
                }
            });

            var options = this.options, response = this.response;
        
            response.html = text.stripScripts(function(script){
                response.javascript = script;
            });
            
            var temp = this.processHTML(response.html);
            
            response.tree = temp.childNodes;
            response.elements = temp.getElements('*');
            
            if (options.filter) response.tree = response.elements.filter(options.filter);
            if (options.update) $(options.update).empty().adopt(response.tree);
            if (options.evalScripts) $exec(response.javascript);
            
            this.onSuccess(response.tree, response.elements, response.html, response.javascript);
        }
    });
{/literal}
</script>
{if !isset($selected_id|smarty:nodefaults)}
    {assign var="selected_id" value='first'}
{/if}
{arag_load_script src="scripts/mootools.js"}
{arag_load_script src="scripts/mootools-more.js"}
{arag_load_script src="scripts/morphtabs1.4.js"}
{arag_header}
    <script type="text/javascript">
        //<![CDATA[
            {literal}
            window.addEvent('domready', function() {
            {/literal}
                var tabbedblock = new MorphTabs('tabbedblock', {literal}{{/literal}

                    changeTransition: {literal}{{/literal}
                                      transition: '{$transition|smarty:nodefaults|default:'linear'}',
                                      duration: '{$duration|smarty:nodefaults|default:fast}'
                                      {literal}}{/literal},
                    mouseOverClass:   '{$mouse_over_class|smarty:nodefaults|default:'over'}',
                    activateOnLoad:   '{$activate_on_load|smarty:nodefaults|default:$selected_id}',
                    useAjax:          {$use_ajax|smarty:nodefaults|default:'false'},
                    ajaxUrl:          '{$ajax_url|smarty:nodefaults|default:$tabbedblock->genURL('tabbedblock/frontend/tabcontroller/index/')}',
                    ajaxOptions:      {literal}{{/literal}method:'{$ajax_method|smarty:nodefaults|default:'get'}'{literal}, evalScripts: true}{/literal},
                    evalScripts:      true,
                    ajaxLoadingText:  '{$ajax_loading_text|smarty:nodefaults|default:'<div class="loading"><img src="/scripts/MoodalBox/img/loading.gif" alt="Loading..." width="47" height="39" \/><\/div>'}',
                    width:            '{$width|smarty:nodefaults|default:'auto'}',
                    height:           '{$height|smarty:nodefaults|default:'auto'}',
                    panelStartFx:     '{$panel_start_fx|smarty:nodefaults|default:"fade"}',
                    panelEndFx:       '{$panel_end_fx|smarty:nodefaults|default:"appear"}'
            {literal}
                });
            });
            {/literal}
        //]]>
    </script>
{/arag_header}
<div id="tabbedblock" dir="{dir}"><commit_msg>load morphtabs onLoad<commit_after>{* Smarty *}
{*
    vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
    File: $Id$
*}
{foreach from=$tabbedblock_items item=tabbedblock_item}
    {if isset($tabbedblock_item.selected|smarty:nodefaults) && $tabbedblock_item.selected}
        {assign var="selected_id" value=$tabbedblock->parseURI($tabbedblock_item.uri)|replace:'/':'.'}
    {/if}
{/foreach}
<script type="text/javascript">
{literal}
    Request.HTML.implement({
        success : function(text) {
            var html    = this.processHTML(this.response.text);
            var scripts = html.getElements('script');

            scripts.each(function(script) {
                if (script.get('src') == null) {
                    return ;
                }
                if ($$('script[src='+script.get('src')+']').length < 1) {
                    Asset.javascript(script.get('src'));
                }
            });

            var options = this.options, response = this.response;
        
            response.html = text.stripScripts(function(script){
                response.javascript = script;
            });
            
            var temp = this.processHTML(response.html);
            
            response.tree = temp.childNodes;
            response.elements = temp.getElements('*');
            
            if (options.filter) response.tree = response.elements.filter(options.filter);
            if (options.update) $(options.update).empty().adopt(response.tree);
            if (options.evalScripts) $exec(response.javascript);
            
            this.onSuccess(response.tree, response.elements, response.html, response.javascript);
        }
    });
{/literal}
</script>
{if !isset($selected_id|smarty:nodefaults)}
    {assign var="selected_id" value='first'}
{/if}
{arag_load_script src="scripts/mootools.js"}
{arag_load_script src="scripts/mootools-more.js"}
{arag_load_script src="scripts/morphtabs1.4.js"}
{arag_header}
    <script type="text/javascript">
        //<![CDATA[
            {literal}
            window.addEvent('load', function() {
            {/literal}
                var tabbedblock = new MorphTabs('tabbedblock', {literal}{{/literal}

                    changeTransition: {literal}{{/literal}
                                      transition: '{$transition|smarty:nodefaults|default:'linear'}',
                                      duration: '{$duration|smarty:nodefaults|default:fast}'
                                      {literal}}{/literal},
                    mouseOverClass:   '{$mouse_over_class|smarty:nodefaults|default:'over'}',
                    activateOnLoad:   '{$activate_on_load|smarty:nodefaults|default:$selected_id}',
                    useAjax:          {$use_ajax|smarty:nodefaults|default:'false'},
                    ajaxUrl:          '{$ajax_url|smarty:nodefaults|default:$tabbedblock->genURL('tabbedblock/frontend/tabcontroller/index/')}',
                    ajaxOptions:      {literal}{{/literal}method:'{$ajax_method|smarty:nodefaults|default:'get'}'{literal}, evalScripts: true}{/literal},
                    evalScripts:      true,
                    ajaxLoadingText:  '{$ajax_loading_text|smarty:nodefaults|default:'<div class="loading"><img src="/scripts/MoodalBox/img/loading.gif" alt="Loading..." width="47" height="39" \/><\/div>'}',
                    width:            '{$width|smarty:nodefaults|default:'auto'}',
                    height:           '{$height|smarty:nodefaults|default:'auto'}',
                    panelStartFx:     '{$panel_start_fx|smarty:nodefaults|default:"fade"}',
                    panelEndFx:       '{$panel_end_fx|smarty:nodefaults|default:"appear"}'
            {literal}
                });
            });
            {/literal}
        //]]>
    </script>
{/arag_header}
<div id="tabbedblock" dir="{dir}">
{'fraction_non_alphanumeric': 0.14889753566796368, 'fraction_numerical': 0.0023346303501945525, 'mean_word_length': 2.1563651248465003, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2227569', 'n_tokens_mistral': 2269, 'n_tokens_neox': 2190, 'n_words': 287}