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

{% block content %}
  <p>Paste <span id="profileURL">{{ profile_url }}</span> into your hacker news profile, replacing username with your hacker news username.</p>
  <form action="" method="post">{% csrf_token %}
    {{ form.as_p }}
    <p><input type="submit" value="register" /></p>
  </form>
{% endblock %}

{% block extra_head %}
<script>
$(function(){
  var el = $('#profileURL');
  var url = el.text();
  var baseUrl = url.substr(0,url.lastIndexOf('/',url.length-2) + 1);

  $('#id_hn_username').keyup(function(){
    el.text(baseUrl + this.value + '/');
  });
});

</script>
{% endblock %}<commit_msg>Moved stuff around in register.html so it makes more sense.<commit_after>{% extends "base.html" %}

{% block content %}
  <form action="" method="post">{% csrf_token %}
    {{ form.as_p }}
    <p>Paste <span id="profileURL">{{ profile_url }}</span> into your hacker news profile, replacing username with your hacker news username.</p>
    <p><input type="submit" value="register" /></p>
  </form>
{% endblock %}

{% block extra_head %}
<script>
$(function(){
  var el = $('#profileURL');
  var url = el.text();
  var baseUrl = url.substr(0,url.lastIndexOf('/',url.length-2) + 1);

  $('#id_hn_username').keyup(function(){
    el.text(baseUrl + this.value + '/');
  });
});

</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.2166172106824926, 'fraction_numerical': 0.004451038575667656, 'mean_word_length': 4.188461538461539, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '112840', 'n_tokens_mistral': 481, 'n_tokens_neox': 452, 'n_words': 113}