<commit_before><?php
/**
 * @version     $Id: behavior.php 1051 2009-07-13 22:08:57Z Johan $
 * @package     Koowa_Template
 * @subpackage  Helper
 * @copyright   Copyright (C) 2007 - 2012 <NAME>. All rights reserved.
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Template Tabs Behavior Helper
 *
 * @author      <NAME> <<EMAIL>>
 * @package     Koowa_Template
 * @subpackage  Helper
 * @uses        KArrayHelper
 */
class KTemplateHelperTabs extends KTemplateHelperBehavior
{
    /**
     * Creates a pane and creates the javascript object for it
     *
     * @param   array   An optional array with configuration options
     * @return  string  Html
     */
    public function startPane( $config = array() )
    {
        $config = new KConfig($config);
        $config->append(array(
            'id'      => 'pane',
            'attribs' => array(),
            'options' => array()
        ));

        $html  = '';

        // Load the necessary files if they haven't yet been loaded
        if (!isset(self::$_loaded['tabs']))
        {
            $html .= '<script src="media://lib_koowa/js/tabs.js" />';
            $this->_loaded['tabs'] = true;
        }

        $id      = strtolower($config->id);
        $attribs = KHelperArray::toString($config->attribs);
        //Don't pass an empty array as options
        $options = $config->options->toArray() ? ', '.$config->options : '';

        $html .= "
            <script>
                window.addEvent('domready', function(){ new Koowa.Tabs('tabs-".$id."'".$options."); });
            </script>";

        $html .= '<dl class="tabs" id="tabs-'.$id.'" '.$attribs.'>';
        return $html;
    }

    /**
     * Ends the pane
     *
     * @param   array   An optional array with configuration options
     * @return  string  Html
     */
    public function endPane($config = array())
    {
        return '</dl>';
    }<commit_msg>E_STRICT fixes<commit_after><?php
/**
 * @version     $Id: behavior.php 1051 2009-07-13 22:08:57Z Johan $
 * @package     Koowa_Template
 * @subpackage  Helper
 * @copyright   Copyright (C) 2007 - 2012 <NAME>. All rights reserved.
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Template Tabs Behavior Helper
 *
 * @author      <NAME> <<EMAIL>>
 * @package     Koowa_Template
 * @subpackage  Helper
 * @uses        KArrayHelper
 */
class KTemplateHelperTabs extends KTemplateHelperBehavior
{
    /**
     * Creates a pane and creates the javascript object for it
     *
     * @param   array   An optional array with configuration options
     * @return  string  Html
     */
    public function startPane( $config = array() )
    {
        $config = new KConfig($config);
        $config->append(array(
            'id'      => 'pane',
            'attribs' => array(),
            'options' => array()
        ));

        $html  = '';

        // Load the necessary files if they haven't yet been loaded
        if (!isset(self::$_loaded['tabs']))
        {
            $html .= '<script src="media://lib_koowa/js/tabs.js" />';
            self::$_loaded['tabs'] = true;
        }

        $id      = strtolower($config->id);
        $attribs = KHelperArray::toString($config->attribs);
        //Don't pass an empty array as options
        $options = $config->options->toArray() ? ', '.$config->options : '';

        $html .= "
            <script>
                window.addEvent('domready', function(){ new Koowa.Tabs('tabs-".$id."'".$options."); });
            </script>";

        $html .= '<dl class="tabs" id="tabs-'.$id.'" '.$attribs.'>';
        return $html;
    }

    /**
     * Ends the pane
     *
     * @param   array   An optional array with configuration options
     * @return  string  Html
     */
    public function endPane($config = array())
    {
        return '</dl>';
    }
{'fraction_non_alphanumeric': 0.1567334516865331, 'fraction_numerical': 0.013695155972609688, 'mean_word_length': 1.9856169568508706, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 42, 'https://': 0, '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': '2131065', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1161, 'n_words': 293}