<commit_before>{% extends 'base_member.html' %}
{% block title %}Search members{% endblock %}

{% block css %}
<style>
    th {
        text-align: left;
    }
    input {
        width: 200px;
    }
    input[type="submit"] {
        width: auto;
    }
</style>
{% endblock %}

{% block body %}
<p>Search results for "{{ search_terms }}"<p>

<table>
<tr>
{% if show_edit_link %}<th>Select</th>{% endif %}
{% if show_delete_link %}<th>Delete</th>{% endif %}
<th>Member</th><th>Name</th><th>Email</th><th>Homepage</th><th>Postal address</th><th>Settlement</th><th>Postcode</th><th>Country</th><th>Telephone</th><th>Mobile telephone</th><th>Last updated</th><th>Refuse mailshot</th><th>Status</th></tr>
{% for member in members %}
<tr>
{% if show_edit_link %}<td><form method="get" action="{% url "edit-member" member.pk %}"><input type="submit" value="Edit"></form></td>{% endif %}
{% if show_delete_link %}<td><form method="post" action="{% url "delete-member" member.pk %}">{% csrf_token %}<input type="submit" value="Delete"></form></td>{% endif %}
<td>{{ member.number }}</td>
<td>{{ member.name|default_if_none:"-" }}</td>
<td>{% if member.email %}{{ member.email|urlize }}{% else %} - {% endif %}</td>
<td>{% if member.website %}{{ member.website|urlize }}{% else %} - {% endif %}</td>
<td>{{ member.address|default_if_none:"-" }}</td>
<td>{{ member.posttown|default_if_none:"-" }}</td>
<td>{{ member.postcode|default_if_none:"-" }}</td>
<td>{{ member.country|default_if_none:"-" }}</td>
<td>{{ member.phone|default_if_none:"-" }}</td>
<td>{{ member.altphone|default_if_none:"-" }}</td>
<td>{{ member.updated_at|date:"d/m/Y" }}</td>
<td>{{ member.mailout|yesno:"member removed self,,-"}}</td>
<td>{# there is no status! #}</td>
{% endfor %}
</table>

{% endblock %}<commit_msg>Fix sense of 'mailshot status' field in member search<commit_after>{% extends 'base_member.html' %}
{% block title %}Search members{% endblock %}

{% block css %}
<style>
    th {
        text-align: left;
    }
    input {
        width: 200px;
    }
    input[type="submit"] {
        width: auto;
    }
</style>
{% endblock %}

{% block body %}
<p>Search results for "{{ search_terms }}"<p>

<table>
<tr>
{% if show_edit_link %}<th>Select</th>{% endif %}
{% if show_delete_link %}<th>Delete</th>{% endif %}
<th>Member</th><th>Name</th><th>Email</th><th>Homepage</th><th>Postal address</th><th>Settlement</th><th>Postcode</th><th>Country</th><th>Telephone</th><th>Mobile telephone</th><th>Last updated</th><th>Refuse mailshot</th><th>Status</th></tr>
{% for member in members %}
<tr>
{% if show_edit_link %}<td><form method="get" action="{% url "edit-member" member.pk %}"><input type="submit" value="Edit"></form></td>{% endif %}
{% if show_delete_link %}<td><form method="post" action="{% url "delete-member" member.pk %}">{% csrf_token %}<input type="submit" value="Delete"></form></td>{% endif %}
<td>{{ member.number }}</td>
<td>{{ member.name|default_if_none:"-" }}</td>
<td>{% if member.email %}{{ member.email|urlize }}{% else %} - {% endif %}</td>
<td>{% if member.website %}{{ member.website|urlize }}{% else %} - {% endif %}</td>
<td>{{ member.address|default_if_none:"-" }}</td>
<td>{{ member.posttown|default_if_none:"-" }}</td>
<td>{{ member.postcode|default_if_none:"-" }}</td>
<td>{{ member.country|default_if_none:"-" }}</td>
<td>{{ member.phone|default_if_none:"-" }}</td>
<td>{{ member.altphone|default_if_none:"-" }}</td>
<td>{{ member.updated_at|date:"d/m/Y" }}</td>
<td>{{ member.mailout|yesno:",member removed self,-"}}</td>
<td>{# there is no status! #}</td>
{% endfor %}
</table>

{% endblock %}
{'fraction_non_alphanumeric': 0.26137624861265263, 'fraction_numerical': 0.001664816870144284, 'mean_word_length': 5.1835334476843915, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, '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': '7316464', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1312, 'n_words': 264}