<commit_before>{% extends "base.html" %}
{% load staticfiles %}
{% block title %}New York City Council Members{% endblock %}
{% block content %}

    <div class="row-fluid">
        <div class="col-sm-12">
            <h2>New York City Council Members</h2>
            <hr />
            <table class='table' id='council-members'>
                <thead>
                    <tr>
                        <th>Council Member</th>
                        <th>District</th>
                        <th>Recent Legislation</th>
                    </tr>
                </thead>
                <tbody>
                    {% for post in city_council.posts.all %}
                        <tr>
                            <td>
                                <a href="/person/{{post.memberships.first.person.ocd_id}}">
                                    {{post.memberships.first.person.name}}
                                </a>
                            </td>
                            <td>{{post.label}}</td>
                            <td></td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}
{% block extra_js %}
    <script src="{% static 'js/jquery.dataTables.min.js' %}"></script>
    <script src="{% static 'js/jquery.dataTables.sorting.js' %}"></script>
    <script src="{% static 'js/dataTables.bootstrap.js' %}"></script>

    <script>
        $("#council-members").DataTable({
            "info": false,
            "searching": false,
            "bLengthChange": false,
            "paging": false,
            "aaSorting": [ [1,'asc'] ],
            "aoColumns": [
                null,
                { "sType": "num-html" },
                null
            ]
        });
    </script>
{% endblock %}<commit_msg>handling vancant seats closes #11<commit_after>{% extends "base.html" %}
{% load staticfiles %}
{% block title %}New York City Council Members{% endblock %}
{% block content %}

    <div class="row-fluid">
        <div class="col-sm-12">
            <h2>New York City Council Members</h2>
            <hr />
            <table class='table' id='council-members'>
                <thead>
                    <tr>
                        <th>Council Member</th>
                        <th>District</th>
                        <th>Recent Legislation</th>
                    </tr>
                </thead>
                <tbody>
                    {% for post in city_council.posts.all %}
                        <tr>
                            <td>
                                {% if post.memberships.first %}
                                    <a href="/person/{{post.memberships.first.person.ocd_id}}">
                                        {{post.memberships.first.person.name}}
                                    </a>
                                {% else %}
                                    Vacant
                                {% endif %}
                            </td>
                            <td>{{post.label}}</td>
                            <td></td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}
{% block extra_js %}
    <script src="{% static 'js/jquery.dataTables.min.js' %}"></script>
    <script src="{% static 'js/jquery.dataTables.sorting.js' %}"></script>
    <script src="{% static 'js/dataTables.bootstrap.js' %}"></script>

    <script>
        $("#council-members").DataTable({
            "info": false,
            "searching": false,
            "bLengthChange": false,
            "paging": false,
            "aaSorting": [ [1,'asc'] ],
            "aoColumns": [
                null,
                { "sType": "num-html" },
                null
            ]
        });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.14825282631038025, 'fraction_numerical': 0.003083247687564234, 'mean_word_length': 1.006701030927835, 'pattern_counts': {'":': 14, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5922019', 'n_tokens_mistral': 1116, 'n_tokens_neox': 983, 'n_words': 197}