<commit_before><div class="result">
  {% if group and (is_curator or request.user.is_superuser) and (request.user != profile.user) %}
    <form action="{{ url('groups:remove_member', group_pk=group.pk, user_pk=profile.pk) }}" method="GET">
      {{ csrf() }}
      <button type="submit" class="button remove">{{ _('Remove') }} <span>✖</span></button>
    </form>
    {% if profile.pending %}
      <form action="{{ url('groups:confirm_member', group_pk=group.pk, user_pk=profile.pk) }}" method="POST">
        {{ csrf() }}
        <button type="submit" class="status-pending">{{ _('Confirm Request') }}</span></button>
      </form>
    {% endif %}
  {% elif request.user.userprofile == profile and profile.pending %}
    <div class="status-pending">{{ _('Requested') }}</div>
  {% endif %}
  <div class="card">
    <div class="avatar">
      <span>
        <img class="profile-photo"
           src="{{ profile.get_photo_url('70x70') }}"
           alt="{{ _('Profile Photo') }}">
      </span>
    </div>
    <div class="details">
      <ul>
        <li>
          <h2>
            <a title="{{ profile.display_name }}" href="{{ url('phonebook:profile_view', profile.user.username) }}">
              {{ profile.display_name|truncate(20, True) }}
            </a>
          </h2>
        </li>
        {% if profile.email %}
          <li>
            <a title="{{ profile.display_name }}" href="{{ profile.email }}">
            <i class="icon-envelope"></i> {{ profile.email|truncate(20, True) }}
            </a>
          </li>
        {% endif %}
        {% if profile.user.username %}
          <li>
            <a title="{{ profile.display_name }}" href="{{ url('phonebook:profile_view', profile.user.username) }}">
              <i class="icon-user"></i> {{ profile.user.username|truncate(20, True) }}
            </a>
          </li>
        {% endif %}
      </ul>
    </div>
  </div>
</div><commit_msg>[Fix bug 964236] fixed email links and displayed IRC name as “IRC: ____” just as it shows on the full profile<commit_after><div class="result">
  {% if group and (is_curator or request.user.is_superuser) and (request.user != profile.user) %}
    <form action="{{ url('groups:remove_member', group_pk=group.pk, user_pk=profile.pk) }}" method="GET">
      {{ csrf() }}
      <button type="submit" class="button remove">{{ _('Remove') }} <span>✖</span></button>
    </form>
    {% if profile.pending %}
      <form action="{{ url('groups:confirm_member', group_pk=group.pk, user_pk=profile.pk) }}" method="POST">
        {{ csrf() }}
        <button type="submit" class="status-pending">{{ _('Confirm Request') }}</span></button>
      </form>
    {% endif %}
  {% elif request.user.userprofile == profile and profile.pending %}
    <div class="status-pending">{{ _('Requested') }}</div>
  {% endif %}
  <div class="card">
    <div class="avatar">
      <span>
        <img class="profile-photo"
           src="{{ profile.get_photo_url('70x70') }}"
           alt="{{ _('Profile Photo') }}">
      </span>
    </div>
    <div class="details">
      <ul>
        <li>
          <h2>
            <a title="{{ profile.display_name }}" href="{{ url('phonebook:profile_view', profile.user.username) }}">
              {{ profile.display_name|truncate(20, True) }}
            </a>
          </h2>
        </li>
        {% if profile.email %}
          <li>
            <a title="{{ profile.display_name }}" href="mailto:{{ profile.email }}">
            <i class="icon-envelope"></i> {{ profile.email|truncate(20, True) }}
            </a>
          </li>
        {% endif %}
        {% if profile.ircname %}
          <li>
            <span title="{{ profile.ircname }}">
              <i class="icon-comments-alt"></i>IRC: {{ profile.ircname|truncate(20, True) }}
            </span>
          </li>
        {% endif %}
      </ul>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.20501551189245087, 'fraction_numerical': 0.0077559462254395035, 'mean_word_length': 2.341105354058722, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '5626338', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1206, 'n_words': 249}