<commit_before>{* Smarty *}
{*  
    vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:             
    File: $Id$
*}

{if !isset($_loaded|smarty:nodefaults)}
    {assign var=_loaded value=True}
    <script type="text/javascript" src="{$arag_base_url|smarty:nodefaults}scripts/mootools.js"></script>    
    <script type="text/javascript" src="{$arag_base_url|smarty:nodefaults}scripts/plist.js"></script>
{/if}

{assign var=columns value=$plist->getColumns()}
{assign var=columnNames value=$plist->getColumnNames()}
{assign var=actions value=$plist->getActions()}
{assign var=group_actions value=$plist->getGroupActions()}
{assign var=virtualColumns value=$plist->getVirtualColumns()}
{assign var=pager value=$plist->getPager()}

{arag_block template="blank"}

    {if $plist->getResourceCount() > 0}

        {arag_form method="post" id="plist_$namespace" class="plist_form"}
            <table border="0" cellpadding="0" cellspacing="0" dir="{dir}" width="100%" class="plist" >
                <caption dir="{dir}">&nbsp;</caption>
                {if $plist->hasHeader() && count($columns) > 0}
                <tr>
                    {if count($group_actions) > 0}
                        <th class="plist_group_actions_col"><input type="checkbox" onclick="toggleCheckboxesStatus(this.checked, '{$namespace}');" /></th>
                    {/if}

                    {foreach from=$columnNames item=name}
                        {if isset($columns.$name|smarty:nodefaults) && !$columns.$name.hidden}
                            <th>{$columns.$name.label}</th>
                        {/if}
                    {/foreach}

                    {if count($actions) > 0}
                        <th colspan="{$plist->getActionsCount()}">Actions</th>
                    {/if}
                </tr>
                {/if}

                {foreach name=list from=$plist item=row key=key}
                    
                    {capture assign="class"}{cycle values="plist_odd,plist_even"}{/capture}
                    <tr class="{$class}" onmouseover="listMouseEvent(this, 'over', '{$class}')" onmouseout="listMouseEvent(this, 'out', '{$class}')" 
                        onclick="listMouseEvent(this, 'click', '{$class}')">

                    {assign var="onclick" value=""}
                    {if count($group_actions) > 0}
                        {assign var="parameter_name" value=$plist->getGroupActionParameterName()}
                        <td>
                            {if isset($row.$parameter_name|smarty:nodefaults)}
                                {assign var="onclick" value="onclick=\"toggleListCheckbox($('`$namespace``$parameter_name`_`$row.$parameter_name`'))\""}
                                <input type="checkbox" name="{$parameter_name}[]" value="{$row.$parameter_name}" 
                                       id="{$namespace}{$parameter_name}_{$row.$parameter_name}" />
                            {/if}
                        </td>
                    {/if}

                    {if is_array($row) && count($row) > 0}
                        {foreach from=$columnNames item=name}
                            {if count($columns) == 0 || (isset($columns.$name|smarty:nodefaults) && !$columns.$name.hidden && !$columns.$name.virtual)}
                                <td {$onclick|smarty:nodefaults}>{$row.$name|default:"&nbsp;"}</td>
                            {elseif isset($columns.$name|smarty:nodefaults) && $columns.$name.virtual}
                                <td {$onclick|smarty:nodefaults}>{$plist->callCallback($name, $row)}</td>
                            {/if}<commit_msg>'Actions' string, changed to a translateable string<commit_after>{* Smarty *}
{*  
    vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:             
    File: $Id$
*}

{if !isset($_loaded|smarty:nodefaults)}
    {assign var=_loaded value=True}
    <script type="text/javascript" src="{$arag_base_url|smarty:nodefaults}scripts/mootools.js"></script>    
    <script type="text/javascript" src="{$arag_base_url|smarty:nodefaults}scripts/plist.js"></script>
{/if}

{assign var=columns value=$plist->getColumns()}
{assign var=columnNames value=$plist->getColumnNames()}
{assign var=actions value=$plist->getActions()}
{assign var=group_actions value=$plist->getGroupActions()}
{assign var=virtualColumns value=$plist->getVirtualColumns()}
{assign var=pager value=$plist->getPager()}

{arag_block template="blank"}

    {if $plist->getResourceCount() > 0}

        {arag_form method="post" id="plist_$namespace" class="plist_form"}
            <table border="0" cellpadding="0" cellspacing="0" dir="{dir}" width="100%" class="plist" >
                <caption dir="{dir}">&nbsp;</caption>
                {if $plist->hasHeader() && count($columns) > 0}
                <tr>
                    {if count($group_actions) > 0}
                        <th class="plist_group_actions_col"><input type="checkbox" onclick="toggleCheckboxesStatus(this.checked, '{$namespace}');" /></th>
                    {/if}

                    {foreach from=$columnNames item=name}
                        {if isset($columns.$name|smarty:nodefaults) && !$columns.$name.hidden}
                            <th>{$columns.$name.label}</th>
                        {/if}
                    {/foreach}

                    {if count($actions) > 0}
                        <th colspan="{$plist->getActionsCount()}">_("Actions")</th>
                    {/if}
                </tr>
                {/if}

                {foreach name=list from=$plist item=row key=key}
                    
                    {capture assign="class"}{cycle values="plist_odd,plist_even"}{/capture}
                    <tr class="{$class}" onmouseover="listMouseEvent(this, 'over', '{$class}')" onmouseout="listMouseEvent(this, 'out', '{$class}')" 
                        onclick="listMouseEvent(this, 'click', '{$class}')">

                    {assign var="onclick" value=""}
                    {if count($group_actions) > 0}
                        {assign var="parameter_name" value=$plist->getGroupActionParameterName()}
                        <td>
                            {if isset($row.$parameter_name|smarty:nodefaults)}
                                {assign var="onclick" value="onclick=\"toggleListCheckbox($('`$namespace``$parameter_name`_`$row.$parameter_name`'))\""}
                                <input type="checkbox" name="{$parameter_name}[]" value="{$row.$parameter_name}" 
                                       id="{$namespace}{$parameter_name}_{$row.$parameter_name}" />
                            {/if}
                        </td>
                    {/if}

                    {if is_array($row) && count($row) > 0}
                        {foreach from=$columnNames item=name}
                            {if count($columns) == 0 || (isset($columns.$name|smarty:nodefaults) && !$columns.$name.hidden && !$columns.$name.virtual)}
                                <td {$onclick|smarty:nodefaults}>{$row.$name|default:"&nbsp;"}</td>
                            {elseif isset($columns.$name|smarty:nodefaults) && $columns.$name.virtual}
                                <td {$onclick|smarty:nodefaults}>{$plist->callCallback($name, $row)}</td>
                            {/if}
{'fraction_non_alphanumeric': 0.16372589249076733, 'fraction_numerical': 0.004103405826836274, 'mean_word_length': 2.0004103405826834, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 85, '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': '6876469', 'n_tokens_mistral': 2141, 'n_tokens_neox': 2013, 'n_words': 313}