<commit_before>{% extends 'base.html' %}
{% load i18n %}
{% load sources_extras %}

{% block main %}

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"/>

<script type="text/javascript" src="https://cdn.datatables.net/r/bs-3.3.5/jqc-1.11.3,dt-1.10.8/datatables.min.js"></script>

<script type="text/javascript" src="https://cdn.datatables.net/responsive/1.0.7/js/dataTables.responsive.min.js"></script>

<script type="text/javascript">
    $(document).ready(function(){
        $('#sources').DataTable({
            responsive: true, 
            details: true,
            "order": [[ 1, "asc" ]]
            // "columns":
            //     { "width": "20%" },
            //     null,
            //     null,
            //     null,
            //     null
            // ]
        });
    });
</script>
<div class="jumbotron">
    <h1 class="display-3">{% trans 'Find Sources' %}</h1>
    <p class="lead">
        {% blocktrans %}
            Search or <a href="/join">join</a> this database of experts to include more underrepresented voices and perspectives in your science, health and environment work on deadline.
        {% endblocktrans %}
</p>
</div>
{% if results.count == 0 %}
    <p class="leader">{% trans 'Sources coming soon!' %}</p>
{% else %}
<div class="main-content">
    <table id="sources" class="display responsive stripe lead" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>{% trans 'First name' %}</th>
                <th>{% trans 'Last name' %}</th>
                <th>{% trans 'Type of expert' %}</th>
                <th>{% trans 'Expertise' %}</th>
                <th>{% trans 'Organization' %}</th>
                <th>{% trans 'Time zone' %}</th>
                <!--
                {% for field in field_list %}
                    <th>{{ field }}</th>
                {% endfor %}  -->
            </tr>
        </thead>
        <tbody>
            {% for result in results %}
                <tr>
                    <td>
                        <a href="{% url 'source' slug=result.slug %}">
                            {{ result.first_name }}
                        </a>
                    </td>                    
                    <td>
                        <a href="{% url 'source' slug=result.slug %}">
                            {{ result.last_name }}
                        </a>
                    </td>
                    <td>{{ result.type_of_expert }}</td>
                    <td>{{ result.expertise }}</td>
                    <td>{{ result.organization }}</td>
                    <td>{{ result.timezone|timezone_format }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endif %}
{% endblock %}<commit_msg>add language column to results page<commit_after>{% extends 'base.html' %}
{% load i18n %}
{% load sources_extras %}

{% block main %}

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"/>

<script type="text/javascript" src="https://cdn.datatables.net/r/bs-3.3.5/jqc-1.11.3,dt-1.10.8/datatables.min.js"></script>

<script type="text/javascript" src="https://cdn.datatables.net/responsive/1.0.7/js/dataTables.responsive.min.js"></script>

<script type="text/javascript">
    $(document).ready(function(){
        $('#sources').DataTable({
            responsive: true, 
            details: true,
            "order": [[ 1, "asc" ]]
            // "columns":
            //     { "width": "20%" },
            //     null,
            //     null,
            //     null,
            //     null
            // ]
        });
    });
</script>
<div class="jumbotron">
    <h1 class="display-3">{% trans 'Find Sources' %}</h1>
    <p class="lead">
        {% blocktrans %}
            Search or <a href="/join">join</a> this database of experts to include more underrepresented voices and perspectives in your science, health and environment work on deadline.
        {% endblocktrans %}
</p>
</div>
{% if results.count == 0 %}
    <p class="leader">{% trans 'Sources coming soon!' %}</p>
{% else %}
<div class="main-content">
    <table id="sources" class="display responsive stripe lead" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>{% trans 'First name' %}</th>
                <th>{% trans 'Last name' %}</th>
                <th>{% trans 'Type of expert' %}</th>
                <th>{% trans 'Expertise' %}</th>
                <th>{% trans 'Organization' %}</th>
                <th>{% trans 'Language(s)' %}</th>
                <th>{% trans 'Time zone' %}</th>
                <!--
                {% for field in field_list %}
                    <th>{{ field }}</th>
                {% endfor %}  -->
            </tr>
        </thead>
        <tbody>
            {% for result in results %}
                <tr>
                    <td>
                        <a href="{% url 'source' slug=result.slug %}">
                            {{ result.first_name }}
                        </a>
                    </td>                    
                    <td>
                        <a href="{% url 'source' slug=result.slug %}">
                            {{ result.last_name }}
                        </a>
                    </td>
                    <td>{{ result.type_of_expert }}</td>
                    <td>{{ result.expertise }}</td>
                    <td>{{ result.organization }}</td>
                    <td>{{ result.language }}</td>
                    <td>{{ result.timezone|timezone_format }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.17965217391304347, 'fraction_numerical': 0.011130434782608696, 'mean_word_length': 1.4062761506276151, 'pattern_counts': {'":': 6, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 6, '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': '477479', 'n_tokens_mistral': 1823, 'n_tokens_neox': 1631, 'n_words': 374}