<commit_before>    <script language="JavaScript">
    <!-- Begin

	// This is a handy little function for seeing what properties an object has
	function showProperties ( obj ) {
		var result = "";

		for ( var i in obj ) {
			result += "o." + i + " = " + obj[i] + "<BR>\n";
		}
		document.write ( result );
	}


    function checkForm() {
		var frm = document.forms[0];
		var errors = "";

		// checks
		if ( frm.name.value == "" ) errors += "You must specify the person's name.\n";
		if ( frm.email.value == "" ) errors += "You must specify the E-mail address.\n";
		if ( frm.institution.value == "" ) errors += "You must specify the institution.\n";
		if ( frm.country.value == "" ) errors += "You must specify the country.\n";

		if ( frm.is_authorizer[0].checked ) {
			if ( frm.plaintext.value == "" ) errors += "Authorizers must have a password.\n";
		}

		// Report errors
		if ( errors != "" ) {
			errors = "   !!! Errors detected !!!   \n" + 
					 "---------------------------------------\n\n" +
					 errors + "\n" +
					 "---------------------------------------\n\n" +
					 "See the tip sheet for instructions.";
			alert ( errors );
			return false;
		} 
		return true;
	}

    //  End -->
    </script>

<form action="admin.pl" method="POST" onSubmit="return checkForm();">
<input type=hidden name="action" value="processPerson%%type%%">
<input id="person_no" type="hidden">


<div align="center">
<h2>Person Form</h2>
<table border=0 cellpadding=4 cellspacing=1 bgcolor="Silver">

<tr>
	<td bgcolor="White">Name: *<BR><font size="1">e.g. <NAME></font></td>
	<td bgcolor="White"><input id="name" type="text" maxlength="64"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Reversed Name:</td>
	<td bgcolor="White"><input id="reversed_name" type="text" value="" maxlength="64"></td>
</tr>
<tr>
	<td bgcolor="White">Password: </td>
	<td bgcolor="White"><input id="plaintext" type="text" value="" maxlength="20"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>E-mail address: *</td>
	<td bgcolor="White"><input id="email" type="text" value="" size="30" maxlength="255"></td>
</tr>
<tr>
	<td bgcolor="White">Institution: </td>
	<td bgcolor="White"><input id="institution" type="text" value="" size="30" maxlength="80"></td>
</tr>
<tr>
	<td bgcolor="White">Country: </td>
	<td bgcolor="White"><input id="country" type="text" value="" size="30" maxlength="80"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Is authorizer?</td>
	<td bgcolor="White">
		<input id="is_authorizer" type="radio" name="is_authorizer" value="1"> Yes
		<input id="is_authorizer" type="radio" name="is_authorizer" value="0" checked> No
	</td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Is active?</td>
	<td bgcolor="White">
		<input id="active" type="radio" name="active" value="1" checked> Yes
		<input id="active" type="radio" name="active" value="0"> No
	</td>
</tr>

<tr>
	<td bgcolor="White" rowspan="7" valign="top">Groups:</td>
</tr>
<tr><td bgcolor="White"><input id="marine_invertebrate" type="checkbox" name="marine_invertebrate" value="1"> Marine Invertebrate</td></tr>
<tr><td bgcolor="White"><input id="micropaleontology" type="checkbox" name="micropaleontology" value="1"> micropaleontology</td></tr>
<tr><td bgcolor="White"><input id="PACED" type="checkbox" name="PACED" value="1"> PACED</td></tr>
<tr><td bgcolor="White"><input id="paleobotany" type="checkbox" name="paleobotany" value="1"> Paleobotany</td></tr>
<tr><td bgcolor="White"><input id="taphonomy" type="checkbox" name="taphonomy" value="1"> Taphonomy</td></tr>
<tr><td bgcolor="White"><input id="vertebrate" type="checkbox" name="vertebrate" value="1"> Vertebrate</td></tr>

<tr>
	<td bgcolor="White" colspan="2" align="center">
	<input type="submit" value="%%type%% person">	
	</td>
</tr>
</table>
</div>

<p align="center">* == required field</p>

</form><commit_msg>added divergence times group<commit_after><html>
<head>
<title>Add a new person</title>
<link href="admin/admin.css" rel="stylesheet" type="text/css" rev="text/css">
</head>
<body>

    <script language="JavaScript">
    <!-- Begin

	// This is a handy little function for seeing what properties an object has
	function showProperties ( obj ) {
		var result = "";

		for ( var i in obj ) {
			result += "o." + i + " = " + obj[i] + "<BR>\n";
		}
		document.write ( result );
	}


    function checkForm() {
		var frm = document.forms[0];
		var errors = "";

		// checks
		if ( frm.name.value == "" ) errors += "You must specify the person's name.\n";
		if ( frm.email.value == "" ) errors += "You must specify the E-mail address.\n";
		if ( frm.institution.value == "" ) errors += "You must specify the institution.\n";
		if ( frm.country.value == "" ) errors += "You must specify the country.\n";

		if ( frm.is_authorizer[0].checked ) {
			if ( frm.plaintext.value == "" ) errors += "Authorizers must have a password.\n";
		}

		// Report errors
		if ( errors != "" ) {
			errors = "   !!! Errors detected !!!   \n" + 
					 "---------------------------------------\n\n" +
					 errors + "\n" +
					 "---------------------------------------\n\n" +
					 "See the tip sheet for instructions.";
			alert ( errors );
			return false;
		} 
		return true;
	}

    //  End -->
    </script>

<form action="admin.pl" method="POST" onSubmit="return checkForm();">
<input type=hidden name="action" value="processPerson%%type%%">
<input id="person_no" type="hidden">


<div align="center">
<h2>Add a new person</h2>
<table border=0 cellpadding=4 cellspacing=1 bgcolor="Silver">

<tr>
	<td bgcolor="White">Name: *<BR><font size="1">e.g. <NAME></font></td>
	<td bgcolor="White"><input id="name" type="text" maxlength="64"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Reversed Name:</td>
	<td bgcolor="White"><input id="reversed_name" type="text" value="" maxlength="64"></td>
</tr>
<tr>
	<td bgcolor="White">Password: </td>
	<td bgcolor="White"><input id="plaintext" type="text" value="" maxlength="20"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>E-mail address: *</td>
	<td bgcolor="White"><input id="email" type="text" value="" size="30" maxlength="255"></td>
</tr>
<tr>
	<td bgcolor="White">Institution: </td>
	<td bgcolor="White"><input id="institution" type="text" value="" size="30" maxlength="80"></td>
</tr>
<tr>
	<td bgcolor="White">Country: </td>
	<td bgcolor="White"><input id="country" type="text" value="" size="30" maxlength="80"></td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Is authorizer?</td>
	<td bgcolor="White">
		<input id="is_authorizer" type="radio" name="is_authorizer" value="1"> Yes
		<input id="is_authorizer" type="radio" name="is_authorizer" value="0" checked> No
	</td>
</tr>
<tr>
	<td bgcolor="White" nowrap>Is active?</td>
	<td bgcolor="White">
		<input id="active" type="radio" name="active" value="1" checked> Yes
		<input id="active" type="radio" name="active" value="0"> No
	</td>
</tr>

<tr>
	<td bgcolor="White" rowspan="8" valign="top">Groups:</td>
</tr>
<tr><td bgcolor="White"><input id="divergence" type="checkbox" name="divergence" value="1"> Divergence times</td></tr>
<tr><td bgcolor="White"><input id="marine_invertebrate" type="checkbox" name="marine_invertebrate" value="1"> Marine Invertebrate</td></tr>
<tr><td bgcolor="White"><input id="micropaleontology" type="checkbox" name="micropaleontology" value="1"> Micropaleontology</td></tr>
<tr><td bgcolor="White"><input id="PACED" type="checkbox" name="PACED" value="1"> PACED</td></tr>
<tr><td bgcolor="White"><input id="paleobotany" type="checkbox" name="paleobotany" value="1"> Paleobotany</td></tr>
<tr><td bgcolor="White"><input id="taphonomy" type="checkbox" name="taphonomy" value="1"> Taphonomy</td></tr>
<tr><td bgcolor="White"><input id="vertebrate" type="checkbox" name="vertebrate" value="1"> Vertebrate</td></tr>

<tr>
	<td bgcolor="White" colspan="2" align="center">
	<input type="submit" value="%%type%% person">	
	</td>
</tr>
</table>
</div>

<p align="center">* == required field</p>

</form>

</body>
</html>

{'fraction_non_alphanumeric': 0.23685869154166142, 'fraction_numerical': 0.009958401613513173, 'mean_word_length': 4.360810810810811, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 251, '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': '7353920', 'n_tokens_mistral': 2972, 'n_tokens_neox': 2731, 'n_words': 660}