<commit_before><label class="control-label">{_ Sync databases _}</label>
{% with m.config.mod_ginger_adlib.databases.list as current %}
    {% for database in m.ginger_adlib.listdatabases %}
        {% with database.database|first as database_name %}
            {% with "adlib_database_" ++ database.database|first as input_id %}
                <div class="checkbox">
                    <label for="{{ input_id }}">
                        <input type="checkbox" name="adlib_database" id="{{ input_id }}" value="{{ database_name }}"{% if current|index_of:database_name > 0 %} checked="checked"{% endif %}/>
                        {% wire id=input_id postback={toggle_database database=database_name} delegate=`m_ginger_adlib` %}
                        {{ database_name }}
                    </label>
                </div>
            {% endwith %}
        {% endwith %}
    {% endfor %}

{% endwith %}<commit_msg>[adlib] Only try to list databases if URL is configured<commit_after>{% if m.config.mod_ginger_adlib.url %}
    <label class="control-label">{_ Sync databases _}</label>
    {% with m.config.mod_ginger_adlib.databases.list as current %}
        {% for database in m.ginger_adlib.listdatabases %}
            {% with database.database|first as database_name %}
                {% with "adlib_database_" ++ database.database|first as input_id %}
                    <div class="checkbox">
                        <label for="{{ input_id }}">
                            <input type="checkbox" name="adlib_database" id="{{ input_id }}" value="{{ database_name }}"{% if current|index_of:database_name > 0 %} checked="checked"{% endif %}/>
                            {% wire id=input_id postback={toggle_database database=database_name} delegate=`m_ginger_adlib` %}
                            {{ database_name }}
                        </label>
                    </div>
                {% endwith %}
            {% endwith %}
        {% endfor %}
    {% endwith %}
{% endif %}
{'fraction_non_alphanumeric': 0.13977955911823647, 'fraction_numerical': 0.001002004008016032, 'mean_word_length': 2.0770416024653313, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '6741915', 'n_tokens_mistral': 596, 'n_tokens_neox': 522, 'n_words': 115}