<commit_before><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="standard_template/macros/page">
  <metal:fill fill-slot="body">

    <p tal:condition="not:data/openid_fields">
    This form allows "traditional" registration (using a password).
    Users who want to register with their OpenID (e.g. Google,
    myOpenID or Launchpad account) should follow one of the links
    to the right.
    </p>
    <form tal:attributes="action app/url_path" method="POST">
      <input type="hidden" name=":action" value="user" />
      <input type="hidden" name="name" tal:condition="not:data/new_user"
	     tal:attributes="value data/name"/>
      <tal:block tal:repeat="field data/openid_fields">
       <input type="hidden" tal:attributes="name python:field[0];value python:field[1].decode('utf-8')"/>
      </tal:block>
      <table class="form">
	<tr>
	  <th>Username:</th>
	  <td tal:condition="data/new_user"><input name="name" tal:attributes="value data/name"/></td>
	  <td tal:condition="not:data/new_user" tal:content="data/name"></td>
	</tr>
	<tal:block tal:condition="not:data/openid_fields">
	<tr>
	  <th>Password:</th>
	  <td><input type="password" name="password"/></td>
	</tr>
	<tr>
	  <th>Confirm:</th>
	  <td><input type="password" name="confirm" /></td>
	</tr>
        </tal:block>
        <tr tal:condition="data/openid">
          <th>OpenID:</th>
          <td tal:content="data/openid"/>
        </tr>
	<tr>
	  <th>Email Address:</th>
	  <td><input name="email" tal:attributes="value data/email" /></td>
	</tr>
	<tr>
	  <th>PGP Key ID (optional):</th>
	  <td><input name="gpg_keyid" tal:attributes="value data/gpg_keyid" />
          (This identifies a <a
          href="http://www.gnupg.org/documentation/howtos.html">PGP or GPG
          key</a>)
          </td>
	</tr>
	<tr>
	  <th></th>
	  <td><input type="submit" tal:attributes="value data/action" /></td>
	</tr>
      </table>
    </form>

    <tal:block tal:condition="data/new_user">
      <p>A confirmation email will be sent to the address you nominate above.</p>
      <p>To complete the registration process, visit the link indicated in the
      email.</p>
    </tal:block>

    <tal:block tal:condition="not:data/new_user">
      <form method="POST" tal:repeat="key data/sshkeys">
      <input type="hidden" name=":action" value="delkey" />
      <input type="hidden" name="id" tal:attributes="value key/id" />
      <textarea name="key" cols="50" rows="4" readonly="1" tal:content="key/key"/>
      <input type="submit" value="Delete this key"/>
      </form>
      <form method="POST">
      <input type="hidden" name=":action" value="addkey" />
      <textarea name="key" cols="50" rows="4"> </textarea>
      <input type="submit" value="Add SSH key"/>
      </form>
    </tal:block>

    <tal:block tal:condition="data/openids">
     <p>Your OpenIDs:</p>
     <ul>
       <li tal:repeat="curid data/openids"><span tal:replace="curid/id"/>
       <form method="POST">
        <input type="hidden" name=":action" value="dropid"/>
        <input type="hidden" name="openid" tal:attributes="value curid/id"/>
        <input type="submit" value="Drop this ID"/>
       </form><commit_msg>Add explicit form action to clear out :action parameter.<commit_after><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="standard_template/macros/page">
  <metal:fill fill-slot="body">

    <p tal:condition="not:data/openid_fields">
    This form allows "traditional" registration (using a password).
    Users who want to register with their OpenID (e.g. Google,
    myOpenID or Launchpad account) should follow one of the links
    to the right.
    </p>
    <form tal:attributes="action app/url_path" method="POST">
      <input type="hidden" name=":action" value="user" />
      <input type="hidden" name="name" tal:condition="not:data/new_user"
	     tal:attributes="value data/name"/>
      <tal:block tal:repeat="field data/openid_fields">
       <input type="hidden" tal:attributes="name python:field[0];value python:field[1].decode('utf-8')"/>
      </tal:block>
      <table class="form">
	<tr>
	  <th>Username:</th>
	  <td tal:condition="data/new_user"><input name="name" tal:attributes="value data/name"/></td>
	  <td tal:condition="not:data/new_user" tal:content="data/name"></td>
	</tr>
	<tal:block tal:condition="not:data/openid_fields">
	<tr>
	  <th>Password:</th>
	  <td><input type="password" name="password"/></td>
	</tr>
	<tr>
	  <th>Confirm:</th>
	  <td><input type="password" name="confirm" /></td>
	</tr>
        </tal:block>
        <tr tal:condition="data/openid">
          <th>OpenID:</th>
          <td tal:content="data/openid"/>
        </tr>
	<tr>
	  <th>Email Address:</th>
	  <td><input name="email" tal:attributes="value data/email" /></td>
	</tr>
	<tr>
	  <th>PGP Key ID (optional):</th>
	  <td><input name="gpg_keyid" tal:attributes="value data/gpg_keyid" />
          (This identifies a <a
          href="http://www.gnupg.org/documentation/howtos.html">PGP or GPG
          key</a>)
          </td>
	</tr>
	<tr>
	  <th></th>
	  <td><input type="submit" tal:attributes="value data/action" /></td>
	</tr>
      </table>
    </form>

    <tal:block tal:condition="data/new_user">
      <p>A confirmation email will be sent to the address you nominate above.</p>
      <p>To complete the registration process, visit the link indicated in the
      email.</p>
    </tal:block>

    <tal:block tal:condition="not:data/new_user">
      <form tal:attributes="action app/url_path" method="POST" tal:repeat="key data/sshkeys">
      <input type="hidden" name=":action" value="delkey" />
      <input type="hidden" name="id" tal:attributes="value key/id" />
      <textarea name="key" cols="50" rows="4" readonly="1" tal:content="key/key"/>
      <input type="submit" value="Delete this key"/>
      </form>
      <form tal:attributes="action app/url_path" method="POST">
      <input type="hidden" name=":action" value="addkey" />
      <textarea name="key" cols="50" rows="4"> </textarea>
      <input type="submit" value="Add SSH key"/>
      </form>
    </tal:block>

    <tal:block tal:condition="data/openids">
     <p>Your OpenIDs:</p>
     <ul>
       <li tal:repeat="curid data/openids"><span tal:replace="curid/id"/>
       <form method="POST">
        <input type="hidden" name=":action" value="dropid"/>
        <input type="hidden" name="openid" tal:attributes="value curid/id"/>
        <input type="submit" value="Drop this ID"/>
       </form>
{'fraction_non_alphanumeric': 0.1893098977092638, 'fraction_numerical': 0.005474715458867598, 'mean_word_length': 3.438618925831202, 'pattern_counts': {'":': 8, '<': 201, '<?xml version=': 2, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, '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': '3999607', 'n_tokens_mistral': 2423, 'n_tokens_neox': 2326, 'n_words': 501}