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

{% block content %}
  <section id="profile">
    <div class="page-header">
      <img src='{{ content_user_gravatar_img_link }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' />
      <h1>
        {{ content_user.username }}
        <span style='color:#DDD; font-weight:100'>&nbsp;/&nbsp;</span>
        {{ xform.id_string }}
      </h1>
    </div>
    <div class="row">
      <div class="span10">
    {% if location  %}
        <p>Location: {{ location }}</p>
    {% endif %}
    {% if profile.home_page %}
        <p>Website: <a href="{{ profile.home_page }}">{{ profile.home_page }}</a></p>
    {% endif %}
    {% if profile.twitter %}
        <p>Twitter: <a href="http://www.twitter.com/{{ profile.twitter }}">@{{ profile.twitter }}</a></p>
    {% endif %}
        <p>Member since: {{ content_user.date_joined|date:"F j, Y" }}</p>
      </div>
    </div> 
    <hr>
    <div class="row">
      <div class="span16">
        <h3>Description: {{ xform.id_string }}</h3>
        <a href="{% url download_xform content_user.username xform.id_string %}">
            <button class="btn small success">form.xls</button>
        </a>
    <hr>
    <h3>Data
    {% if xform.shared_data %}
        <span class="label notice">PUBLIC</span>
    </h3>
        <ul>
            <li>
                <a href="{% url odk_viewer.views.csv_export content_user.username xform.id_string %}">
                    <button class="btn small">csv</button>
                </a>
            </li>
            <li>
                <a href="{% url odk_viewer.views.xls_export content_user.username xform.id_string %}">
                    <button class="btn small">xls</button>
                </a>
            </li>
            <li>
                <a href="{% url odk_viewer.views.map xform.id_string %}">
                    <button class="btn small info">Map &raquo;</button>
                </a>
            </li>
        </ul>
    {% else %}
        <span class="label warning">PRIVATE</span>
    </h3>
    {% endif %}
    </div> 
  </section><commit_msg>form view<commit_after>{% extends 'base.html' %}

{% block content %}
  <section id="profile">
    <div class="page-header">
      <img src='{{ content_user_gravatar_img_link }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' />
      <h1>
        {{ content_user.username }}
        <span style='color:#DDD; font-weight:100'>&nbsp;/&nbsp;</span>
        {{ xform.id_string }}
      </h1>
    </div> 
    <hr>
    <div class="row">
      <div class="span16">
        <h3>Description:</h3>
        <p>
            {% if xform.description %}
                {{ xform.description }}
            {% else %}
                None
            {% endif %}
            <div style="display:hidden">
            </div>
            <a id="description_edit" href="" class="btn small primary">edit</a>
        </p>
        <a href="{% url download_xform content_user.username xform.id_string %}">
            <button class="btn small success">form.xls</button>
        </a>
    <hr>
    <h3>Form Data
    {% if xform.shared_data %}
        <span class="label notice">PUBLIC</span>
    </h3>
        <ul>
            <li>
                <a href="{% url odk_viewer.views.csv_export content_user.username xform.id_string %}">
                    <button class="btn small">csv</button>
                </a>
            </li>
            <li>
                <a href="{% url odk_viewer.views.xls_export content_user.username xform.id_string %}">
                    <button class="btn small">xls</button>
                </a>
            </li>
            <li>
                <a href="{% url odk_viewer.views.map xform.id_string %}">
                    <button class="btn small info">Map &raquo;</button>
                </a>
            </li>
        </ul>
    {% else %}
        <span class="label warning">PRIVATE</span>
    </h3>
    {% endif %}
    </div> 
  </section>
{'fraction_non_alphanumeric': 0.17713284963722792, 'fraction_numerical': 0.009507130347760821, 'mean_word_length': 1.8075842696629214, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '946419', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1263, 'n_words': 250}