<commit_before>{% extends "base.html" %}

{% block content %}
<h1>{{ wager.name }}</h1>
<section>
	<h1>Invite a friend</h1>
	<div class="instructions">
		<p>Send your friends a link to this page and they'll be able to enter your wager!</p>
	</div>
	<div class="slug">http://{{ ROOT_URL }}/{{ wager.slug }}/</div>
	<nav>
		<a title="Copy to clipboard" href="#" class="copy button">Copy to clipboard</span></a>
		<a title="Share on Twitter" href="http://twitter.com/share?url=http%3A%2F%2F{{ ROOT_URL }}%2F{{ wager.slug }}%2F&amp;text=Join%20my%20Oscar%20wager!" class="twitter button">Share <span class="visuallyhidden">it on twitter</span></a>
	</nav>
</section>
<section>
	<h1>Enter the wager</h1>
	<div class="instructions">
		<p>After entering your name you'll be asked to make your predictions for the winners in the 24 award categories.</p>
	</div>
	<form method="post">
		<label>
			<span>Your name <strong>(required)</strong></span>
			<input type="text" name="name" />
		</label>
		<label>
			<span>Your email address <strong>(required)</strong></span>
			<input type="text" name="email" />
		</label>
		<button type="submit">Pick your winners</button><commit_msg>Displaying errors when user information is not entered correctly.<commit_after>{% extends "base.html" %}

{% block content %}
<h1>{{ wager.name }}</h1>
<section>
	<h1>Invite a friend</h1>
	<div class="instructions">
		<p>Send your friends a link to this page and they'll be able to enter your wager!</p>
	</div>
	<div class="slug">http://{{ ROOT_URL }}/{{ wager.slug }}/</div>
	<nav>
		<a title="Copy to clipboard" href="#" class="copy button">Copy to clipboard</span></a>
		<a title="Share on Twitter" href="http://twitter.com/share?url=http%3A%2F%2F{{ ROOT_URL }}%2F{{ wager.slug }}%2F&amp;text=Join%20my%20Oscar%20wager!" class="twitter button">Share <span class="visuallyhidden">it on twitter</span></a>
	</nav>
</section>
<section>
	<h1>Enter the wager</h1>
	<div class="instructions">
		<p>After entering your name you'll be asked to make your predictions for the winners in the 24 award categories.</p>
	</div>
	<form method="post">
		<label>
			<span>Your name <strong>(required)</strong></span>
			<input type="text" name="name" />
		</label>
		{% if user_form.name.errors %}
		<ul class="errors">
		    {% for error in user_form.name.errors %}
		    <li>
		        {{ error|escape}}
		    </li>
		    {% endfor %}
		</ul>
		{% endif %}
		<label>
			<span>Your email address <strong>(required)</strong></span>
			<input type="text" name="email" />
		</label>
		{% if user_form.email.errors %}
		<ul class="errors">
		    {% for error in user_form.email.errors %}
		    <li>
		        {{ error|escape}}
		    </li>
		    {% endfor %}
		</ul>
		{% endif %}
		<button type="submit">Pick your winners</button>
{'fraction_non_alphanumeric': 0.1934673366834171, 'fraction_numerical': 0.013639626704953339, 'mean_word_length': 4.161111111111111, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '634668', 'n_tokens_mistral': 1079, 'n_tokens_neox': 978, 'n_words': 259}