<commit_before>{% extends 'base.html' %}
{% load humanize %}
{% block content %}
  <section id="profile">
    <div class="page-header">
      <!-- <img src='{{ content_user.profile.gravatar }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' /> -->
	<h3>
	  <div style='vertical-align: middle'>      
	  <img src='{{ content_user.profile.gravatar }}' alt='' width='20' height='20' /> 
	  <a href="/{{content_user.username}}/">{{ content_user.username }}</a> /
	  </div>
	</h3>
      <h1>    
	<span style='color: #999;'>{{ xform.id_string }}</span>
      </h1>
    </div> 
    <div class="row">
      <div class="span11">
        <h3>Title</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <input type="text" id="title"class="xxlarge present" disabled="" rows="3" value="{{ xform.title }}" />
                {% if is_owner %}
                    <a id="title_edit" data-id="title" href="" class="btn small bind-edit">edit</a>
                    <a id="title_save" data-id="title" style="display:none" href="" class="btn small primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">save</a>
                {% endif %}
            </form>
            </div>
        </div>
        <h3>Description</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <textarea id="description" class="xxlarge present" disabled="" rows="3" name="textarea">{% if xform.description %}{{ xform.description }}{% else %}None{% endif %}</textarea>
                {% if is_owner %}
                    <a id="description_edit" data-id="description" href="" class="btn small bind-edit">edit</a>
                    <a id="description_save" data-id="description" style="display:none" href="" class="btn small primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">save</a>
                {% endif %}
            </form>
            </div>
        </div>
        <h3>Source</h3>
        <div class="clearfix"><commit_msg>show id_string when logged in, edit name in header<commit_after>{% extends 'base.html' %}
{% load humanize %}
{% block content %}
  <section id="profile">
    <div class="page-header">
      <!-- <img src='{{ content_user.profile.gravatar }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' /> -->
	<h3>
	  <div style='vertical-align: middle'>      
	  <img src='{{ content_user.profile.gravatar }}' alt='' width='20' height='20' /> 
	  <a href="/{{content_user.username}}/">{{ content_user.username }}</a> /
	  </div>
	</h3>
    <h1>    
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <input type="text" id="title"class="xxlarge present header" disabled="" rows="3" value="{{ xform.title }}" />
                {% if is_owner %}
                    <a id="title_edit" data-id="title" href="" class="btn small bind-edit">edit</a>
                    <a id="title_save" data-id="title" style="display:none" href="" class="btn small primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">save</a>
                {% endif %}
            </form>
            </div>
        </div>
    </h1>
    </div> 
    <div class="row">
      <div class="span11">
        {% if is_owner %}
            <h4>Form ID: {{ xform.id_string }}</h4>
        {% endif %}
        <h3>Description</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <textarea id="description" class="xxlarge present" disabled="" rows="3" name="textarea">{% if xform.description %}{{ xform.description }}{% else %}None{% endif %}</textarea>
                {% if is_owner %}
                    <a id="description_edit" data-id="description" href="" class="btn small bind-edit">edit</a>
                    <a id="description_save" data-id="description" style="display:none" href="" class="btn small primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">save</a>
                {% endif %}
            </form>
            </div>
        </div>
        <h3>Source</h3>
        <div class="clearfix">
{'fraction_non_alphanumeric': 0.18778383287920072, 'fraction_numerical': 0.011580381471389645, 'mean_word_length': 2.243740795287187, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '1325733', 'n_tokens_mistral': 1441, 'n_tokens_neox': 1327, 'n_words': 293}