<commit_before><html>

<head>
	<title>Add Permission</title>
</head>

<body>
<div class="body">
	<div class="dialog">

		<h1>Add Permission</h1>

		<g:form action='addPermission'>
			<g:hiddenField name='contactId' value='${contact.id}' />

			<table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">

				<tr>
					<td alignment="right" width="20%">Contact:</td>
					<td width="60%">${contact}</td>
				</tr>

				<tr>

					<td alignment="right" width="20%">Recipient:</td>
					<td width="20%">
						<g:select name='recipient' from='${recipients}' value='${command.recipient}'
						          noSelection="['': '-- please select --']"/>
					</td>
					<td width="60%">
						<font color="red"><c:out value="${status.errorMessage}"/></font>
					</td>

					</td>
					<td width="60%">
						<font color="red"><g:fieldError bean='${command}' field='recipient' /></font>
					</td>
				</tr>

				<tr>

					<td alignment="right" width="20%">Permission:</td>
					<td width="20%">
						<g:select name='permission' from='${permissions}' value='${command.permission}'
						          optionKey='key' optionValue='value' />
					</td>
					<td width="60%">
						<font color="red"><g:fieldError bean='${command}' field='permission' /></font>
					</td>
				</tr>
			</table>

			<br/>

			<g:hasErrors bean='${command}'><commit_msg>Solved bug which was preventing edit permissions.<commit_after><html>

<head>
	<title>Add Permission</title>
</head>

<body>
<div class="body">
	<div class="dialog">

		<h1>Add Permission</h1>

		<g:form action='addPermission'>
			<g:hiddenField name='contactId' value='${contact.id}' />

			<table width="95%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">

				<tr>
					<td alignment="right" width="20%">Contact:</td>
					<td width="60%">${contact}</td>
				</tr>

				<tr>

					<td alignment="right" width="20%">Recipient:</td>
					<td width="20%">
						<g:select name='recipient' from='${recipients}' value='${command.recipient}'
						          noSelection="['': '-- please select --']"/>
					</td>
					<td width="60%">
						<font color="red"><c:out value="${status?.errorMessage}"/></font>
					</td>

					</td>
					<td width="60%">
						<font color="red"><g:fieldError bean='${command}' field='recipient' /></font>
					</td>
				</tr>

				<tr>

					<td alignment="right" width="20%">Permission:</td>
					<td width="20%">
						<g:select name='permission' from='${permissions}' value='${command.permission}'
						          optionKey='key' optionValue='value' />
					</td>
					<td width="60%">
						<font color="red"><g:fieldError bean='${command}' field='permission' /></font>
					</td>
				</tr>
			</table>

			<br/>

			<g:hasErrors bean='${command}'>
{'fraction_non_alphanumeric': 0.23336968375136313, 'fraction_numerical': 0.019629225736095966, 'mean_word_length': 3.260061919504644, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '3735705', 'n_tokens_mistral': 1251, 'n_tokens_neox': 930, 'n_words': 177}