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

{% block namespaces %}
xmlns:powder="http://www.w3.org/2007/05/powder#"
{% endblock %}

{% block header %}
<link about="" typeof="ccnet:Registration" />
<link about="{{work.url}}" typeof="cc:Work" />
{% endblock %}

{% block head_title %}{{ work.title }} -{% endblock %}

{% block page_header %}
Work Registration
{% endblock %}
{% block page_icon_class %}works{% endblock %}

{% block extra_nav %}
   {% ifequal user work.owner_user %}
   <li><a href="{% url edit_content work.id %}">edit</a></li>
   <li><a href="{% url delete_content work.id %}">delete</a></li>
   {% endifequal %}
{% endblock %}

{% block body %}

<h2 about="{{work.url}}" property="dct:title"
    rel="sioc:has_owner" rev="sioc:owner_of"
    resource="{{ work.owner.get_absolute_url }}">{{work.title}}</h2>
<h3><a rel="sioc:parent_of" rev="sioc:has_parent" 
       href="{{work.url}}">{{work.url}}</a></h3>
{% if work.constrained %}
<ul class="work_constraints" rel="powder:iriset">
  {% for c in work.constraints.all %}
  <li property="powder:{{c.mode}}regex">{{c.regex}}</li>
  {% endfor %}
</ul>
{% endif %}

<ul class="work_fields">
  <li>
    <span class="field_label">Registered By:</span> 
    <a rel="dct:creator sioc:has_owner" rev="sioc:owner_of"
       href="{{work.owner.get_absolute_url}}">{{ work.owner.display_name }}</a>
  </li>

  <li>
    <span class="field_label">Registered:</span> 
    <span property="dct:created" datatype="xsd:date">{{ work.registered }}</span>
  </li>

  <li><commit_msg>Don't show raw regexes.<commit_after>{% extends "base.html" %}

{% block namespaces %}
xmlns:powder="http://www.w3.org/2007/05/powder#"
{% endblock %}

{% block header %}
<link about="" typeof="ccnet:Registration" />
<link about="{{work.url}}" typeof="cc:Work" />
{% endblock %}

{% block head_title %}{{ work.title }} -{% endblock %}

{% block page_header %}
Work Registration
{% endblock %}
{% block page_icon_class %}works{% endblock %}

{% block extra_nav %}
   {% ifequal user work.owner_user %}
   <li><a href="{% url edit_content work.id %}">edit</a></li>
   <li><a href="{% url delete_content work.id %}">delete</a></li>
   {% endifequal %}
{% endblock %}

{% block body %}

<h2 about="{{work.url}}" property="dct:title"
    rel="sioc:has_owner" rev="sioc:owner_of"
    resource="{{ work.owner.get_absolute_url }}">{{work.title}}</h2>
<h3><a rel="sioc:parent_of" rev="sioc:has_parent" 
       href="{{work.url}}">{{work.url}}</a></h3>
{% if work.constrained %}
<ul class="work_constraints" rel="powder:iriset">
  <li>Includes all works beginning with this URL
  {% if work.has_leading_glob %}
  {% for c in work.constraints.all %}
  <span property="powder:{{c.mode}}regex" content="{{c.regex}}" />
  {% endfor %}
  {% endif %}
</ul>
{% endif %}

<ul class="work_fields">
  <li>
    <span class="field_label">Registered By:</span> 
    <a rel="dct:creator sioc:has_owner" rev="sioc:owner_of"
       href="{{work.owner.get_absolute_url}}">{{ work.owner.display_name }}</a>
  </li>

  <li>
    <span class="field_label">Registered:</span> 
    <span property="dct:created" datatype="xsd:date">{{ work.registered }}</span>
  </li>

  <li>
{'fraction_non_alphanumeric': 0.22727272727272727, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 4.67921146953405, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '352887', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1143, 'n_words': 213}