<commit_before>{% extends "base.html" %}

{% load humanize %}
{% load naturaltimediff %}
{% load pagination_tags %}

{% block content %}

<div class="corporation_info">
	<h1>{{ corporation.name }}</h1>

        <ul>
        <li><b>Member Count:</b> {{ corporation.member_count }}</li>
        <li><b>Known Members:</b> {{ corporation.eveplayercharacter_set.count }}</li>
        {% if view_members %}
        <li><b>Members with API Keys:</b> {{ corporation.api_keys }}</li>
        <li><b>API Coverage:</b> {{ corporation.api_key_coverage|floatformat:2 }}%</li>
        {% endif %}
        </ul>

        {% if view_members %}
        <table>
        <tr><th>Name</th><th>Join Date</th><th>API Key?</th></tr>
        {% autopaginate members 10 %}
        {% for char in members %}
        <tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td><td>{{ char.corporation_date }}</td><td>{% if char.eveaccount_set.count %}Yes{% else %}<span style="color: red;">No</span>{% endif %}</td></tr>
        {% endfor %}
        </table>
        {% paginate %}
        {% endif %}

</div>

{% endblock %}<commit_msg>Added more fields to the corporate view<commit_after>{% extends "base.html" %}

{% load humanize %}
{% load naturaltimediff %}
{% load pagination_tags %}

{% block content %}

<div class="corporation_info">
	<h1>{{ corporation.name }}</h1>

        <ul>
        <li><b>Member Count:</b> {{ corporation.member_count }}</li>
        <li><b>Known Members:</b> {{ corporation.eveplayercharacter_set.count }}</li>
        {% if view_members %}
        <li><b>Members with API Keys:</b> {{ corporation.api_keys }}</li>
        <li><b>API Coverage:</b> {{ corporation.api_key_coverage|floatformat:2 }}%</li>
        {% endif %}
        </ul>

        {% if view_members %}
        <table>
        <tr><th>Name</th><th>Skillpoints</th><th>Join Date</th><th>Director?</th><th>Roles?</th><th>API Key?</th></tr>
        {% autopaginate members 20 %}
        {% for char in members %}
        <tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td><td>{% if char.total_sp %}{{ char.total_sp|intcomma }} SP{% endif %}</td><td>{{ char.corporation_date }}</td><td>{% if char.director %}Yes{% endif %}</td><td>{% if char.eveaccount_set.count %}{% if char.roles.count %}Yes{% else %}No{% endif %}{% endif %}<td>{% if char.eveaccount_set.count %}Yes{% else %}<span style="color: red;">No</span>{% endif %}</td></tr>
        {% endfor %}
        </table>
        {% paginate %}
        {% endif %}

</div>

{% endblock %}
{'fraction_non_alphanumeric': 0.22383379067032536, 'fraction_numerical': 0.003920031360250882, 'mean_word_length': 3.037974683544304, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, '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': '2971042', 'n_tokens_mistral': 960, 'n_tokens_neox': 849, 'n_words': 179}