<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Wobscale.chat password reset</title>
    <script>
      
    </script>
  </head>
  <body>
    <h1>So, you forgot your password</h1>

    <h2> {{ notice }} </h2>

    <form method="POST">
      Username: <br>
      <input type="text" name="username" /><br>
      Forgot password token: <br>
      <input type="text" name="token" /><br>
      New Password: <br>
      <input type="text" name="password" /><br>
      <input type="submit" name="submit" />
    </form>
  </body>
</html>
<commit_msg>html: allow pre-creating links for a user+token<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Wobscale.chat password reset</title>
  </head>
  <body>
    <h1>So, you forgot your password</h1>

    <h2> {{ notice }} </h2>

    <form method="POST">
      Username (in the form @user:wobscale.chat): <br>
      <input id="username" type="text" name="username" /><br>
      Forgot password token: <br>
      <input id="token" type="text" name="token" /><br>
      New Password: <br>
      <input id="password" type="text" name="password" /><br>
      <input type="submit" name="submit" />
    </form>
    <script>
      (function() {
        "use strict";

        // Hash of the format @username:wobscale.chat/reset-token
        var hash = location.hash.substr(1);
        if(hash.length > 0) {
          var parts = hash.split("/")
          if(parts.length == 2) {
            document.querySelector("#username").value = parts[0];
            document.querySelector("#token").value = parts[1];
          } else {
            document.querySelector("#token").value = token;
          }
        }
      })()
    </script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.18, 'fraction_numerical': 0.007647058823529412, 'mean_word_length': 2.4156626506024095, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 58, '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': '3257032', 'n_tokens_mistral': 573, 'n_tokens_neox': 554, 'n_words': 134}