<commit_before>{if $feature_categories eq 'y'}
<tr><td class="formcolor">{tr}categorize{/tr}</td><td class="formcolor">
[<a class="link" href="javascript:show('categorizator');">{tr}show categories{/tr}</a>
|<a class="link" href="javascript:hide('categorizator');">{tr}hide categories{/tr}</a>]
<div id="categorizator" {if $cat_categorize eq 'n'}style="display:none;"{else}style="display:block;"{/if}>
<select name="cat_categories[]" multiple="multiple" size="5">
{section name=ix loop=$categories}
<option value="{$categories[ix].categId}" {if $categories[ix].incat eq 'y'}selected="selected"{/if}>{$categories[ix].name}</option>
{/section}
</select>
{tr}categorize this object{/tr}:<input type="checkbox" name="cat_categorize" {if $cat_categorize eq 'y'}checked="checked"{/if}/><br/>
{if $tiki_p_admin_categories eq 'y'}<a href="tiki-admin_categories.php" class="link">{tr}Admin categories{/tr}</a>{/if}
</div>
</td></tr>
{/if}<commit_msg>Don't show categories row if no categories defined and no admin rights, if admin and no cats -- just show the admin link<commit_after>{if $feature_categories eq 'y' and (count($categories) gt 0 or $tiki_p_admin_categories eq 'y')}
<tr>
 <td class="formcolor">{tr}categorize{/tr}</td>
 <td class="formcolor">
  [<a class="link" href="javascript:show('categorizator');">{tr}show categories{/tr}</a>
  |<a class="link" href="javascript:hide('categorizator');">{tr}hide categories{/tr}</a>]
  <div id="categorizator" {if $cat_categorize eq 'n'}style="display:none;"{else}style="display:block;"{/if}>
  {if count($categories) gt 0}
   <select name="cat_categories[]" multiple="multiple" size="5">
   {section name=ix loop=$categories}
    <option value="{$categories[ix].categId}" {if $categories[ix].incat eq 'y'}selected="selected"{/if}>{$categories[ix].name}</option>
   {/section}
   </select>
   {tr}categorize this object{/tr}:
    <input type="checkbox" name="cat_categorize" {if $cat_categorize eq 'y'}checked="checked"{/if}/><br/>
  {else}
    No categories defined <br/>
  {/if}
  {if $tiki_p_admin_categories eq 'y'}
    <a href="tiki-admin_categories.php" class="link">{tr}Admin categories{/tr}</a>
  {/if}
  </div>
  </td>
</tr>
{/if}{* $feature_categories eq 'y' *}
{'fraction_non_alphanumeric': 0.21760722347629796, 'fraction_numerical': 0.0018058690744920992, 'mean_word_length': 7.207407407407407, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '1337521', 'n_tokens_mistral': 804, 'n_tokens_neox': 810, 'n_words': 157}