<commit_before>{% extends 'frames/base.html' %} 
{% load i18n static %}

{% block title %} Cindy - register {% endblock %} 

{% block content %} 

<form action="" method="post">
<div> {% if error_message %} <strong>{{ error_message }}</strong> {% endif %} </div>
{% csrf_token %}
<div>{{ form.as_p }}</div>
<div><input type="submit" value={% trans 'Confirm' %}></div>

<input type="hidden" name="next" value="{{ next }}" />
</form>

{# Assumes you setup the password_reset view in your URLconf #}
{#<p><a href="{% url 'password_reset' %}">Lost password?</a></p>#}

{% endblock %} <commit_msg>Add preview to profile edit page<commit_after>{% extends 'frames/base.html' %} 
{% load i18n static %}

{% block title %} Cindy - register {% endblock %} 

{% block script %}
$(document).ready(function() {
  require(['marked'], function(marked){
    marked.setOptions({tables: false})
    $("#profile_preview")[0].innerHTML = marked($("#id_profile").val());

    $("#id_profile").on('input', function(){
      $("#profile_preview")[0].innerHTML = marked($("#id_profile").val());
    });
  });
});
{% endblock %}

{% block content %} 

<form action="" method="post">
<div> {% if error_message %} <strong>{{ error_message }}</strong> {% endif %} </div>
{% csrf_token %}
<div style="width:50%;">{{ form.as_p }}</div>
<div id="profile_preview"></div>
<div><input type="submit" value={% trans 'Confirm' %}></div>

<input type="hidden" name="next" value="{{ next }}" />
</form>

{# Assumes you setup the password_reset view in your URLconf #}
{#<p><a href="{% url 'password_reset' %}">Lost password?</a></p>#}

{% endblock %} 
{'fraction_non_alphanumeric': 0.24317617866004962, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 5.0411985018726595, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '6335030', 'n_tokens_mistral': 588, 'n_tokens_neox': 529, 'n_words': 134}