<commit_before>{% extends "base.html" %}
{% block title %}
{{ resource }} &ndash; Contact Resource Maintainer &ndash; META-SHARE
{% endblock %}
{% block content %}
<h2>Contact Resource Maintainer</h2>
<div class="content_box">
  <form class="form_helper" action="{% url metashare.repository.views.download_contact resource.storage_object.identifier %}" method="post">
    <table>
	  <tr>
        <th><label>Resource name</label></th><td class="readonly">{{ resource }}</td>
	  </tr>
      <tr>
        <th><label>Resource contact name{{ resourceContactName|pluralize }}</label></th><td class="readonly">{{ resourceContactName|join:", " }}</td>
	  </tr>
      <tr>
        <th><label>Resource contact email{{ resourceContactEmail|pluralize }}</label></th><td class="readonly">{{ resourceContactEmail|join:", " }}</td>
	  </tr>
      <tr>
        <th><label>Your username</label></th><td class="readonly">{{ user.username }}</td>
      </tr>
      <tr>
        <th><label>Your name</label></th><td class="readonly">{{ user.first_name }} {{ user.last_name }}</td>
      </tr>
      {{ form.as_table }}
	  <tr><th></th><td><input class="button middle_button" type="submit" value="Send" /></td></tr>
	  <tr><th><a href="javascript:history.back();"><input type="button" class="span-6 button middle_button" value="&laquo;&nbsp;Resource Download" /></a></th><td></td></tr>
    </table>
  </form>
</div>
{% endblock %}
<commit_msg>modify form for non registered users<commit_after>{% extends "base.html" %}
{% block title %}
    {{ resource }} &ndash; Contact Resource Maintainer &ndash; META-SHARE
{% endblock %}
{% block content %}
    <h2>Contact Resource Maintainer</h2>
    <div class="content_box">
        <form class="form_helper"
              action="{% url metashare.repository.views.download_contact resource.storage_object.identifier %}"
              method="post">
            <table>
                <tr>
                    <th><label>Resource name</label></th>
                    <td class="readonly">{{ resource }}</td>
                </tr>
                <tr>
                    <th><label>Resource contact name{{ resourceContactName|pluralize }}</label></th>
                    <td class="readonly">{{ resourceContactName|join:", " }}</td>
                </tr>
                <tr>
                    <th><label>Resource contact email{{ resourceContactEmail|pluralize }}</label></th>
                    <td class="readonly">{{ resourceContactEmail|join:", " }}</td>
                </tr>
                {% if request.user.is_authenticated %}
                    <tr>
                        <th><label>Your username</label></th>
                        <td class="readonly">{{ user.username }}</td>
                    </tr>
                {% endif %}
                <tr>{% if request.user.is_authenticated %}
                    <th><label>Your name</label></th>
                    <td class="readonly">{{ user.first_name }} {{ user.last_name }}</td>
                {% endif %}
                </tr>
                {{ form.as_table }}
                <tr>
                    <th></th>
                    <td><input class="button middle_button" type="submit" value="Send"/></td>
                </tr>
                <tr>
                    <th><a href="javascript:history.back();"><input type="button" class="span-6 button middle_button"
                                                                    value="&laquo;&nbsp;Resource Download"/></a></th>
                    <td></td>
                </tr>
            </table>
        </form>
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.18050541516245489, 'fraction_numerical': 0.0016662038322688142, 'mean_word_length': 2.031986531986532, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5028613', 'n_tokens_mistral': 1076, 'n_tokens_neox': 990, 'n_words': 200}