<commit_before>{% extends 'admin.twig' %}

{% block content %}

    <h2>Performance and config information</h2>
    
    <h3>Config paths</h3>
    <table class="dataTable entityTable">
        <tr>
            <th>Section</th>
            <th>Setting</th>
        </tr>
        {% for name,path in paths %}
            <tr>
                <td>{{ name }}</td>
                <td>{{ path }}</td>
            </tr>
        {% endfor %}
    </table>
    
    <h3>Settings</h3>
    <table class="dataTable">
        <tr>
            <th>Section</th>
            <th>Setting</th>
            <th>Global</th>
            <th>Common</th>
            <th>Local</th>
            <th>Used</th>
            <th>Recommended</th>
        </tr>
        
        {% for section,settings in results %}
            
            {% for setting in settings %}
                <tr>
                    <td>{{ setting.section }}</td>
                    <td>{{ setting.setting }}</td>
                    <td>{{ setting.global }}</td>
                    <td>{{ setting.common }}</td>
                    <td>{{ setting.local }}</td>
                    
                    {% set color %}
                        {% if setting.used != setting.recommended %}
                            background-color: red;
                        {% endif %}
                    {% endset %}
                    
                    <td style="{{ color }}">{{ setting.used }}</td>
                    
                     {% set color %}
                        {% if setting.used != setting.recommended %}
                            background-color: green;
                        {% endif %}
                    {% endset %}
                    <td style="{{ color }}">{{ setting.recommended }}</td>
                </tr>
            {% endfor %}
           
        {% endfor %}
        
     </table>
    
    <h3>Plugins</h3>
    <table class="dataTable">
        <tr>
            <th>Name</th>
            <th>Is installed?</th>
            <th>Real</th>
            <th>Recommended</th>
        </tr>
            
        {% for plugin in plugins %}
            <tr>
                <td>{{ plugin.name }}</td>
                <td>{{ plugin.isInstalled }}</td>
                
                {% set color %}
                    {% if plugin.current != plugin.recommended %}
                        background-color: red;
                    {% endif %}
                {% endset %}
                <td style="{{ color }}">{{ plugin.current }}</td>
                
                 {% set color %}
                    {% if plugin.current != plugin.recommended %}<commit_msg>Update index.twig<commit_after>{% extends 'admin.twig' %}

{% block content %}

    <h2>Performance and config information</h2>
    
    <h3>Config paths</h3>
    <table class="dataTable entityTable">
        <tr>
            <th>Section</th>
            <th>Setting</th>
        </tr>
        {% for name,path in paths %}
            <tr>
                <td>{{ name }}</td>
                <td>{{ path }}</td>
            </tr>
        {% endfor %}
    </table>
    
    <h3>Settings</h3>
    <table class="dataTable">
        <tr>
            <th>Section</th>
            <th>Setting</th>
            <th>Global</th>
            <th>Common</th>
            <th>Local</th>
            <th>Used</th>
            <th>Recommended</th>
            <th>Type</th>
            <th>Link</th>
            <th>Description</th>
        </tr>
        
        {% for section,settings in results %}
            
            {% for setting in settings %}
                <tr>
                    <td>{{ setting.section }}</td>
                    <td>{{ setting.setting }}</td>
                    <td>{{ setting.global }}</td>
                    <td>{{ setting.common }}</td>
                    <td>{{ setting.local }}</td>
                    
                    {% set color %}
                        {% if setting.used != setting.recommended %}
                            background-color: red;
                        {% endif %}
                    {% endset %}
                    
                    <td style="{{ color }}">{{ setting.used }}</td>
                    
                     {% set color %}
                        {% if setting.used != setting.recommended %}
                            background-color: green;
                        {% endif %}
                    {% endset %}
                    <td style="{{ color }}">{{ setting.recommended }}</td>
                    
                    <td>{{ setting.type }}</td>
                    {% if setting.link != '' %}
                        <td><a href="{{ setting.link }}">View</a></td>
                    {% endif %}
                    
                    <td>{{ setting.description }}</td>
                </tr>
            {% endfor %}
           
        {% endfor %}
        
     </table>
    
    <h3>Plugins</h3>
    <table class="dataTable">
        <tr>
            <th>Name</th>
            <th>Is installed?</th>
            <th>Real</th>
            <th>Recommended</th>
        </tr>
            
        {% for plugin in plugins %}
            <tr>
                <td>{{ plugin.name }}</td>
                <td>{{ plugin.isInstalled }}</td>
                
                {% set color %}
                    {% if plugin.current != plugin.recommended %}
                        background-color: red;
                    {% endif %}
                {% endset %}
                <td style="{{ color }}">{{ plugin.current }}</td>
                
                 {% set color %}
                    {% if plugin.current != plugin.recommended %}
{'fraction_non_alphanumeric': 0.151589671526436, 'fraction_numerical': 0.002810468997013877, 'mean_word_length': 0.9145931405514459, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, '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': '1961345', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1413, 'n_words': 297}