<commit_before>{assign var=opensec value='n'}

{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}

{section name=ix loop=$channels}
{assign var=cname value=$channels[ix].menulabel}
{if $channels[ix].type eq 's'}
{if $opensec eq 'y'}</div>{/if}
<div class="separator">

{if $feature_menusfolderstyle eq 'y'}
<a class='separator' href="javascript:icntoggle('{$channels[ix].menulabel}');"><img src="img/icons/fo.gif" border="0" name="{$channels[ix].menulabel}icn" alt=''/></a>&nbsp;
{else}<a class='separator' href="javascript:toggle('{$channels[ix].menulabel}');">[-]</a>{/if} 
<a href="{$channels[ix].url}" class="separator">{tr}{$channels[ix].name}{/tr}</a>
{if $feature_menusfolderstyle ne 'y'}<a class='separator' href="javascript:toggle('{$channels[ix].menulabel}');">[+]</a>{/if} 
</div>
{assign var=opensec value='y'}
<div {if $menu_info.type eq 'd' and $smarty.cookies.$cname ne 'o'}style="display:none;"{/if} id='{$channels[ix].menulabel}'>
{else}
<div>&nbsp;<a href="{$channels[ix].url}" class="linkmenu">{tr}{$channels[ix].name}{/tr}</a></div>
{/if}
{/section}
{if $opensec eq 'y'}</div>{/if}

{else}
{section name=ix loop=$channels}
{if $channels[ix].type eq 's'}
<div class="separator"><a class='separator' href="{$channels[ix].url}">{tr}{$channels[ix].name}{/tr}</a></div>
{else}
<div>&nbsp;<a href="{$channels[ix].url}" class="linkmenu">{tr}{$channels[ix].name}{/tr}</a></div>
{/if}
{/section}
{/if}

{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
<script language='Javascript' type='text/javascript'>
{section name=ix loop=$channels}
{if $channels[ix].type eq 's'}{if $feature_menusfolderstyle eq 'y'}
setfolderstate('{$channels[ix].menulabel}');
{/if}{/if}
{/section}
</script>
{/if}
<commit_msg>made that you can close a section with only one click because proper style definition<commit_after>{assign var=opensec value='n'}

{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}

{section name=ix loop=$channels}
{assign var=cname value=$channels[ix].menulabel}
{if $channels[ix].type eq 's'}
{if $opensec eq 'y'}</div>{/if}
<div class="separator">

{if $feature_menusfolderstyle eq 'y'}
<a class='separator' href="javascript:icntoggle('{$channels[ix].menulabel}');"><img src="img/icons/fo.gif" border="0" name="{$channels[ix].menulabel}icn" alt=''/></a>&nbsp;
{else}<a class='separator' href="javascript:toggle('{$channels[ix].menulabel}');">[-]</a>{/if} 
<a href="{$channels[ix].url}" class="separator">{tr}{$channels[ix].name}{/tr}</a>
{if $feature_menusfolderstyle ne 'y'}<a class='separator' href="javascript:toggle('{$channels[ix].menulabel}');">[+]</a>{/if} 
</div>
{assign var=opensec value='y'}
<div {if $menu_info.type eq 'd' and $smarty.cookies.$cname ne 'o'}style="display:none;"{else}style="display:block;"{/if} id='{$channels[ix].menulabel}'>
{else}
<div>&nbsp;<a href="{$channels[ix].url}" class="linkmenu">{tr}{$channels[ix].name}{/tr}</a></div>
{/if}
{/section}
{if $opensec eq 'y'}</div>{/if}

{else}
{section name=ix loop=$channels}
{if $channels[ix].type eq 's'}
<div class="separator"><a class='separator' href="{$channels[ix].url}">{tr}{$channels[ix].name}{/tr}</a></div>
{else}
<div>&nbsp;<a href="{$channels[ix].url}" class="linkmenu">{tr}{$channels[ix].name}{/tr}</a></div>
{/if}
{/section}
{/if}

{if $menu_info.type eq 'e' or $menu_info.type eq 'd'}
<script language='Javascript' type='text/javascript'>
{section name=ix loop=$channels}
{if $channels[ix].type eq 's'}{if $feature_menusfolderstyle eq 'y'}
setfolderstate('{$channels[ix].menulabel}');
{/if}{/if}
{/section}
</script>
{/if}

{'fraction_non_alphanumeric': 0.26002258610954265, 'fraction_numerical': 0.000564652738565782, 'mean_word_length': 8.01526717557252, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '6247628', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1367, 'n_words': 252}