<commit_before>{% extends 'wizard_base.html' %}
{% block title %}Add data - Geomancer {% endblock %}
{% block wizard_content %}
<h2>2. Add data</h2>
<form id="mance-form" role="form">
    {% for field_name, info in fields.items() %}
        <h4>Column to match on: <strong>{{field_name}}</strong></h4>

        {% for mancer in mancer_data %}
            <h3>{{mancer.name}} <small><a href='{{mancer.info_url}}' target='_blank'>{{mancer.info_url}}</a></small></h3>
            <p>{{mancer.description}}</p>
            <table class='table table-bordered table-striped'>
                <thead>
                    <tr>
                        <th>Select</th>
                        <th>Data from {{mancer.name}}</th>
                        <th>Columns that will be added</th>
                    </tr>
                </thead>
                <tbody>
                    {% for key, val in mancer['data_types'].items() %}
                        <tr class="table-row" data-table_id="{{ val.table_id }}">
                            <td>
                                <input type="checkbox" class="table-select" data-table_id="{{ val.table_id }}"
                                id="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}"
                                name="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}" />
                            </td>
                            <td>
                                <label for="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}">
                                    {{val.human_name}}
                                </label>
                            </td>
                            <td>
                                {% if val.count %}
                                <a href="javascript://" class="column-select" data-table_id="{{ val.table_id }}">
                                    <i class='fa fa-info-circle'></i>
                                    {{val.count}}
                                    {%- if val.count == 1 %} column
                                    {%- else %} columns
                                    {%- endif %}
                                </a>
                                {% endif %}
                            </td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        {% endfor %} <commit_msg>hiding data source in step 3 when no data available for the selected geography<commit_after>{% extends 'wizard_base.html' %}
{% block title %}Add data - Geomancer {% endblock %}
{% block wizard_content %}
<h2>2. Add data</h2>
<form id="mance-form" role="form">
    {% for field_name, info in fields.items() %}
        <h4>Column to match on: <strong>{{field_name}}</strong></h4>

        {% for mancer in mancer_data %}
            {% if mancer['data_types'].items() | length > 0 %}
                <h3>{{mancer.name}} <small><a href='{{mancer.info_url}}' target='_blank'>{{mancer.info_url}}</a></small></h3>
                <p>{{mancer.description}}</p>
                <table class='table table-bordered table-striped'>
                    <thead>
                        <tr>
                            <th>Select</th>
                            <th>Data from {{mancer.name}}</th>
                            <th>Columns that will be added</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for key, val in mancer['data_types'].items() %}
                            <tr class="table-row" data-table_id="{{ val.table_id }}">
                                <td>
                                    <input type="checkbox" class="table-select" data-table_id="{{ val.table_id }}"
                                    id="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}"
                                    name="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}" />
                                </td>
                                <td>
                                    <label for="{{ info.column_index }}-{{ info.geo_type }}-{{ key }}">
                                        {{val.human_name}}
                                    </label>
                                </td>
                                <td>
                                    {% if val.count %}
                                    <a href="javascript://" class="column-select" data-table_id="{{ val.table_id }}">
                                        <i class='fa fa-info-circle'></i>
                                        {{val.count}}
                                        {%- if val.count == 1 %} column
                                        {%- else %} columns
                                        {%- endif %}
                                    </a>
                                    {% endif %}
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            {% endif %}
        {% endfor %} 
{'fraction_non_alphanumeric': 0.1458168902920284, 'fraction_numerical': 0.003551696921862668, 'mean_word_length': 0.8970808383233533, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 92, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 29, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4026589', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1189, 'n_words': 246}