<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="/static/pure/pure-min.css">
		<link rel="stylesheet" href="/static/pure/grids-responsive-min.css">
		<link rel="stylesheet" href="/static/style.css">
		<title>📩 Envelopes</title>
	</head>
	<body>
		<div class="e-container">
			<div>
			Total Delta: <span class="{{ .TotalDelta.Cls }}">{{ prettyDisplay .TotalDelta.Val }}</span>
			</div>
			<table class="pure-table" id="envelopes">
				<thead>
					<tr>
						<td>Name</td>
						<td>Balance</td>
						<td>Target</td>
						<td>Difference</td>
						<td>Update</td>
						<td>Delete</td>
					</tr>
				</thead>
				<tbody>
				{{ range .Envelopes }}
				{{ $delta := delta .Balance .Target }}
				<tr>
					<form class="pure-form" action="/update" method="post">
						<input type="hidden" name="env-name" value="{{ .Name }}">
						<td><input type="text" size="13" name="env-new-name" value="{{ .Name }}"></td>
						<td><input type="number" name="env-balance" value="{{ prettyDisplay .Balance }}"></td>
						<td><input type="number" name="env-target" value="{{ prettyDisplay .Target }}"></td>
						<td><span class="{{index $delta 0}}">{{index $delta 1}}</td>
						<td><button type="submit" class="pure-button pure-button-primary">U</button></td>
					</form>
					<td><a class="pure-button button-danger" href="/delete?name={{ .Name }}">X</a></td>
				</tr>
				{{ end }}
				</tbody>
			</table>
		</div>
		<div class="e-container">
			<form class="pure-form" action="/update" method="post">
				<fieldset>
					<input type="text" size="13" name="env-name" placeholder="Name" autofocus>
					<input type="number" min="0" step="any" name="env-balance" placeholder="Balance">
					<input type="number" min="0" step="any" name="env-target" placeholder="Target">
					<button type="submit" class="pure-button pure-button-primary">Add new envelope</button>
				</fieldset><commit_msg>Allow fractional values in envelope list<commit_after><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="/static/pure/pure-min.css">
		<link rel="stylesheet" href="/static/pure/grids-responsive-min.css">
		<link rel="stylesheet" href="/static/style.css">
		<title>📩 Envelopes</title>
	</head>
	<body>
		<div class="e-container">
			<div>
			Total Delta: <span class="{{ .TotalDelta.Cls }}">{{ prettyDisplay .TotalDelta.Val }}</span>
			</div>
			<table class="pure-table" id="envelopes">
				<thead>
					<tr>
						<td>Name</td>
						<td>Balance</td>
						<td>Target</td>
						<td>Difference</td>
						<td>Update</td>
						<td>Delete</td>
					</tr>
				</thead>
				<tbody>
				{{ range .Envelopes }}
				{{ $delta := delta .Balance .Target }}
				<tr>
					<form class="pure-form" action="/update" method="post">
						<input type="hidden" name="env-name" value="{{ .Name }}">
						<td><input type="text" size="13" name="env-new-name" value="{{ .Name }}"></td>
						<td><input type="number" step="any" min="0" name="env-balance" value="{{ prettyDisplay .Balance }}"></td>
						<td><input type="number" step="any" min="0" name="env-target" value="{{ prettyDisplay .Target }}"></td>
						<td><span class="{{index $delta 0}}">{{index $delta 1}}</td>
						<td><button type="submit" class="pure-button pure-button-primary">U</button></td>
					</form>
					<td><a class="pure-button button-danger" href="/delete?name={{ .Name }}">X</a></td>
				</tr>
				{{ end }}
				</tbody>
			</table>
		</div>
		<div class="e-container">
			<form class="pure-form" action="/update" method="post">
				<fieldset>
					<input type="text" size="13" name="env-name" placeholder="Name" autofocus>
					<input type="number" min="0" step="any" name="env-balance" placeholder="Balance">
					<input type="number" min="0" step="any" name="env-target" placeholder="Target">
					<button type="submit" class="pure-button pure-button-primary">Add new envelope</button>
				</fieldset>
{'fraction_non_alphanumeric': 0.2235265346050379, 'fraction_numerical': 0.005380288579114698, 'mean_word_length': 3.7119815668202767, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '3584639', 'n_tokens_mistral': 1728, 'n_tokens_neox': 1392, 'n_words': 288}