<commit_before>{% extends "site_base.html" %}
{% load i18n %}
{% load links %}
{% load laws_extra %}
{% load common_visual_elements %}
{% load activity_tags %}
{% load pagination_tags %}
{% load cache %}
{% block extratitle %}{{ object.name }}{% endblock %}
{% block keywords %}{{ object.name }}{% endblock %}
{% block extrahead %}
    <style>
        .action-actor { display: none; }
    </style>
    <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url member-activity-feed object.id %}">
{% endblock %}
{% block description %}{{ object.name }} - {% endblock %}
{% block nav-members %}class="selected"{% endblock %}
{% block messages %}
<span id="message_login">
    {% trans "You have to be logged in to enable the watch feature." %}<br>
    <a href="{% url login %}?next={{ request.get_full_path }}">{% trans "login" %}</a>
    {% trans "or" %}
    <a href="{% url register %}?next={{ request.get_full_path }}">{% trans "register" %}</a>
</span>
{% endblock %}

{% block subnav %}
    <a id="watch" class="button" href="."></a>
&bull;
    <a class="button" href="{% url member-list %}">{% trans "All Members" %}</a>
&bull;
<a class="button" href="{% url member-activity-feed object.id %}">{% trans "feed" %}</a>
{% endblock %}
{% block divcontent %}
{% cache 600 mks object.id request.page %}
    <h1> {{ object.name }} - <a class="bold-link" id="detail-{{ object.current_party.id }}" href="{% url party-detail object.current_party.id %}">{{ object.current_party.name }}</a></h1>
    <h2> {{ object.get_role }} </h2>
    <div class="member-details">
        <div class="member-photo"><img src="{{ object.img_url }}"/></div>
        <div>
            <h3> {% trans "Personal Information" %}</h3>
            <table id="member-info">
                <tr>
                    <td>{% trans "age" %}</td>
                    <td>{{ object.date_of_birth|timesince }}</td>
                </tr>
                {% if object.year_of_aliyah %}
                <tr>
                    <td>{% trans "year of aliyah" %}</td>
                    <td>{{ object.year_of_aliyah }}</td>
                </tr>
                {% endif %}
                <tr>
                    <td>{% trans "family status" %}</td>
                    <td>{{ object.family_status }}</td>
                </tr>
                <tr>
                    <td>{% trans "place of birth" %}</td>
                    <td>{{ object.place_of_birth }}</td>
                </tr>
                <tr>
                    <td>{% trans "place of residence" %}</td>
                    <td>{{ object.place_of_residence }}</td>
                </tr>
                <tr>
                    <td>{% trans "residence centrality" %}</td>
                    <td>{{ object.residence_centrality }}</td>
                </tr>
                <tr>
                    <td>{% trans "residence economy" %}</td>
                    <td>{{ object.residence_economy }}</td>
                </tr>

            </table>
        </div>

        <div>
            <h3>{% trans "Statistics" %}</h3>
            <table>
                <tr>
                    <td>{% trans "Number of votes" %}</td>
                    <td>{{ object.voting_statistics.votes_count }}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_votes_count }})</td>
                </tr>
                <tr>
                    <td>{% trans "Factional discipline" %}</td>
                    <td>{% if object.voting_statistics.discipline %}{{ object.voting_statistics.discipline }}%{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_discipline }})</td>
                </tr>
                <tr>
                    <td>{% if object.current_party.is_coalition %}{% trans "Coalition discipline" %}{% else %}{% trans 'Opposition discipline' %}{% endif %}</td>
                    <td>{% if object.voting_statistics.coalition_discipline %}{{ object.voting_statistics.coalition_discipline }}%{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_coalition_discipline }})</td>
                </tr>   
                <tr>
                    <td>{% trans "Average weekly hours" %}</td>
                    <td>{% if object.average_weekly_presence %}{{ object.average_weekly_presence }}{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                </tr>
                <tr>
                    <td>{% trans "Average number of committee meetings per month" %}</td>
                    <td>{{ object.committee_meetings_per_month }}</td>
                </tr>
                <tr>
                    <td>{% trans "Number of bills proposed" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=proposed">{{ bills_statistics.proposed }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills passed pre-vote" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=pre">{{ bills_statistics.pre }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills passed first vote" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=first">{{ bills_statistics.first }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills approved" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=approved">{{ bills_statistics.approved }}</a></td>
                </tr>       

            </table>
        </div>
        <div>
            <h3>{% trans "Proposed bills topics" %}</h3>
                <div class="tags cloud" style="max-width:25em">{% for tag in bills_tags %}<a href="{% url bill-tag tag=tag %}?member={{object.id}}" class="level{{ tag.font_size }}">{{ tag }}</a> {% endfor %}</div>
        </div>
        
        <div>
            <h3> {% trans "Contact Information" %}</h3>
            <table>
                <tr>
                    <td>{% trans "phone" %}</td>
                    <td>{{ object.phone }}</td>
                </tr>
                {% if object.fax %}
                    <tr>
                        <td>{% trans "fax" %}</td>
                        <td>{{ object.fax }}</td>
                    </tr>
                {% endif %}
                <tr>
                    <td>{% trans "e-mail address" %}</td>
                    <td><a class="bold-link" href="mailto:{{object.email}}">{{ object.email }}</a></td>
                </tr>
            </table>
        </div>
        <div>
            <h3>{% trans "Links" %}</h3>
                {% object_links object %}
        </div><commit_msg>inserted back stuff the merge accidentally took out.<commit_after>{% extends "site_base.html" %}
{% load i18n %}
{% load links %}
{% load laws_extra %}
{% load common_visual_elements %}
{% load activity_tags %}
{% load pagination_tags %}
{% load cache %}
{% block extratitle %}{{ object.name }}{% endblock %}
{% block keywords %}{{ object.name }}{% endblock %}
{% block extrahead %}
    <style>
        .action-actor { display: none; }
    </style>
    <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url member-activity-feed object.id %}">
{% endblock %}
{% block description %}{{ object.name }} - {% endblock %}
{% block nav-members %}class="selected"{% endblock %}
{% block messages %}
<span id="message_login">
    {% trans "You have to be logged in to enable the watch feature." %}<br>
    <a href="{% url login %}?next={{ request.get_full_path }}">{% trans "login" %}</a>
    {% trans "or" %}
    <a href="{% url register %}?next={{ request.get_full_path }}">{% trans "register" %}</a>
</span>
{% endblock %}

{% block subnav %}
    <a id="watch" class="button" href="."></a>
&bull;
    <a class="button" href="{% url member-list %}">{% trans "All Members" %}</a>
&bull;
<a class="button" href="{% url member-activity-feed object.id %}">{% trans "feed" %}</a>
{% endblock %}
{% block divcontent %}
{% cache 600 mks object.id request.page %}
    <h1> {{ object.name }} - <a class="bold-link" id="detail-{{ object.current_party.id }}" href="{% url party-detail object.current_party.id %}">{{ object.current_party.name }}</a></h1>
    <h2> {{ object.get_role }} </h2>
    <div class="member-details">
        <div class="member-photo"><img src="{{ object.img_url }}"/></div>
        <div>
            <h3> {% trans "Personal Information" %}</h3>
            <table id="member-info">
                <tr>
                    <td>{% trans "age" %}</td>
                    <td>{{ object.date_of_birth|timesince }}</td>
                </tr>
                {% if object.year_of_aliyah %}
                <tr>
                    <td>{% trans "year of aliyah" %}</td>
                    <td>{{ object.year_of_aliyah }}</td>
                </tr>
                {% endif %}
                <tr>
                    <td>{% trans "family status" %}</td>
                    <td>{{ object.family_status }}</td>
                </tr>
                <tr>
                    <td>{% trans "place of birth" %}</td>
                    <td>{{ object.place_of_birth }}</td>
                </tr>
                <tr>
                    <td>{% trans "place of residence" %}</td>
                    <td>{{ object.place_of_residence }}</td>
                </tr>
                <tr>
                    <td>{% trans "residence centrality" %}</td>
                    <td>{{ object.residence_centrality }}</td>
                </tr>
                <tr>
                    <td>{% trans "residence economy" %}</td>
                    <td>{{ object.residence_economy }}</td>
                </tr>

            </table>
        </div>

        <div>
            <h3>{% trans "Statistics" %}</h3>
            <table>
                <tr>
                    <td>{% trans "Number of votes" %}</td>
                    <td>{{ object.voting_statistics.votes_count }}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_votes_count }})</td>
                </tr>
                <tr>
                    <td>{% trans "Factional discipline" %}</td>
                    <td>{% if object.voting_statistics.discipline %}{{ object.voting_statistics.discipline }}%{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_discipline }})</td>
                </tr>
                <tr>
                    <td>{% if object.current_party.is_coalition %}{% trans "Coalition discipline" %}{% else %}{% trans 'Opposition discipline' %}{% endif %}</td>
                    <td>{% if object.voting_statistics.coalition_discipline %}{{ object.voting_statistics.coalition_discipline }}%{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                    <td>({% trans 'Last 30 days' %}: {{ object|recent_coalition_discipline }})</td>
                </tr>   
                <tr>
                    <td>{% trans "Average weekly hours" %}</td>
                    <td>{% if object.average_weekly_presence %}{{ object.average_weekly_presence }}{% else %}{% trans 'Not enough data' %}{% endif %}</td>
                </tr>
                <tr>
                    <td>{% trans "Average number of committee meetings per month" %}</td>
                    <td>{{ object.committee_meetings_per_month }}</td>
                </tr>
                <tr>
                    <td>{% trans "Number of bills proposed" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=proposed">{{ bills_statistics.proposed }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills passed pre-vote" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=pre">{{ bills_statistics.pre }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills passed first vote" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=first">{{ bills_statistics.first }}</a></td>
                </tr>
                <tr>
                    <td>{% trans "Bills approved" %}</td>
                    <td><a href="{% url bill-list %}?member={{object.id}}&stage=approved">{{ bills_statistics.approved }}</a></td>
                </tr>       

            </table>
        </div>
        <div>
            <h3>{% trans "Proposed bills topics" %}</h3>
                <div class="tags cloud" style="max-width:25em">{% for tag in bills_tags %}<a href="{% url bill-tag tag=tag %}?member={{object.id}}" class="level{{ tag.font_size }}">{{ tag }}</a> {% endfor %}</div>
        </div>
        <div>
            <h3> {% trans "Topics" %}</h3>
            <table >
                <tr>
                    <td>{% trans "Proposed bills topics" %}</td>
                    <td  style="max-width:25em"><div class="tags cloud">{% for tag in bills_tags %}<a href="{% url bill-tag tag=tag %}?member={{object.id}}" class="level{{ tag.font_size }}">{{ tag }}</a> {% endfor %}</div></td>
                </tr>           
            </table>
        </div>        
        <div>
            <h3> {% trans "Contact Information" %}</h3>
            <table>
                <tr>
                    <td>{% trans "phone" %}</td>
                    <td>{{ object.phone }}</td>
                </tr>
                {% if object.fax %}
                    <tr>
                        <td>{% trans "fax" %}</td>
                        <td>{{ object.fax }}</td>
                    </tr>
                {% endif %}
                <tr>
                    <td>{% trans "e-mail address" %}</td>
                    <td><a class="bold-link" href="mailto:{{object.email}}">{{ object.email }}</a></td>
                </tr>
            </table>
        </div>
        <div>
            <h3>{% trans "Links" %}</h3>
                {% object_links object %}
        </div>
{'fraction_non_alphanumeric': 0.19176227463835246, 'fraction_numerical': 0.004133114800826623, 'mean_word_length': 1.600815418828762, 'pattern_counts': {'":': 0, '<': 391, '<?xml version=': 0, '>': 391, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3303952', 'n_tokens_mistral': 4586, 'n_tokens_neox': 4115, 'n_words': 1012}