<commit_before>{#
    <ul>
        <li class="header">{{ gallery.type }} Galleries</li>
        {% for gallery in galleries %}
            <li>
                <a href="{{ path('KunstmaanMediaBundle_gallery_show', { 'id': gallery.id, 'slug': gallery.slug }) }}">{{gallery.name }}</a>
             </li>

            {% for child in gallery.children %}
                    <li>
                        <a href="{{ path('KunstmaanMediaBundle_gallery_show', { 'id': child.id, 'slug': child.slug }) }}">{{child.name }}</a>
                    </li>
            {% endfor %}
        {% else %}
            <li>No {{ gallery.type }} galleries</li>
        {% endfor %}

    </ul>
<ul>
		{% set newmediagallery = "media."~gallery.type~".gallery.new" %}
        <li class="header"><a href="{{ path('KunstmaanMediaBundle_' ~ gallery.type ~ 'gallery_create') }}">{{ newmediagallery |trans }}</a></li>
    </ul> #}
    
<aside class="sidebar"> 
	    	{#<div class="search_wrp"> 
	    		<input type="text" id="searchVal" value="" /> 
	    		<button id="search" class="btn search"><img src="{{ asset('bundles/kunstmaanadmin/img/icons/search.png') }}" alt="Search" /></button> 
	    	</div>#}     
    <div id="mediatree">
    	{% for key,gals in galleries %}
    		<ul>
	    			{% for child in gals %}
		                {% include 'KunstmaanMediaBundle:Folder:shownode.html.twig' %}
		            {% endfor %}<commit_msg>fix treesearch<commit_after>{#
    <ul>
        <li class="header">{{ gallery.type }} Galleries</li>
        {% for gallery in galleries %}
            <li>
                <a href="{{ path('KunstmaanMediaBundle_gallery_show', { 'id': gallery.id, 'slug': gallery.slug }) }}">{{gallery.name }}</a>
             </li>

            {% for child in gallery.children %}
                    <li>
                        <a href="{{ path('KunstmaanMediaBundle_gallery_show', { 'id': child.id, 'slug': child.slug }) }}">{{child.name }}</a>
                    </li>
            {% endfor %}
        {% else %}
            <li>No {{ gallery.type }} galleries</li>
        {% endfor %}

    </ul>
<ul>
		{% set newmediagallery = "media."~gallery.type~".gallery.new" %}
        <li class="header"><a href="{{ path('KunstmaanMediaBundle_' ~ gallery.type ~ 'gallery_create') }}">{{ newmediagallery |trans }}</a></li>
    </ul> #}
    
<aside class="sidebar"> 
    <div class="search_wrp">
        <form id="mediatreeform">
	        <input type="text" id="searchVal" value="" />
            <button id="search" class="btn search"><img src="{{ asset('bundles/kunstmaanadmin/img/icons/search.png') }}" alt="Search" /></button>
        </form>
    </div>
    <div id="mediatree">
    	{% for key,gals in galleries %}
    		<ul>
	    			{% for child in gals %}
		                {% include 'KunstmaanMediaBundle:Folder:shownode.html.twig' %}
		            {% endfor %}
{'fraction_non_alphanumeric': 0.1959412176347096, 'fraction_numerical': 0.0, 'mean_word_length': 2.131434830230011, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '7059677', 'n_tokens_mistral': 998, 'n_tokens_neox': 909, 'n_words': 180}