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

{% block base_content %}

    <div class="container">
        <h1>My Bets</h1>

		<div class="container">
			<h3>Your Open Bets</h3>
			{% if your_open_bets %}
				<table class="table table-striped table-bordered table-condensed">
					<thead>
					  <tr>
						<th>Prop Bet</th>
						<th>Wager</th>
						<th>Max Bets</th>
						<th>Bets Remain</th>
						<th>End Date</th>
						<th>Remove</th>
					  </tr>
					</thead>
					<tbody>
					{% for bet in your_open_bets %}
						<tr>
							<td>{{ bet.prop_text }}</td>
							<td>${{ bet.prop_wager }}</td>
							<td>{{ bet.max_wagers }}</td>
							<td>{{ bet.remaining_wagers }}</td>
							<td>{{ bet.end_date|date:"M d Y H:i" }}</td>
							<td style="text-align: center; vertical-align: middle">
								<a href="#" data-href="/bets/remove_prop_bet?id={{ bet.id }}" data-target="#removeBet" data-toggle="modal" data-id="{{ bet.prop_text }}" title="Remove prop bet" class="btn btn-danger btn-sm open-RemoveBet">
									<span class="glyphicon glyphicon-remove"></span>
								</a>
							</td>
						</tr>
					{% endfor %}
					</tbody>
				</table>
			{% else %}
			<p>You don't have any open bets. Step right up and <a href="#place_bets" data-toggle="modal">place a bet.</a></p>
			{% endif %}
		</div>
		<div class="container">
			<h3>Your Active Bets</h3>
			{% if your_active_bets %}
				<table class="table table-striped table-bordered">
					<thead>
					  <tr>
						<th>Proposer</th>
						<th>Proposee</th>
						<th>Prop Bet</th>
						<th>Wager</th>
					  </tr>
					</thead>
					<tbody>
					{% for bet in your_active_bets %}
						<tr>
							<td>{{ bet.accepted_prop.user.get_full_name }}</td>
							<td>{{ bet.accepted_user.get_full_name }}</td>
							<td>{{ bet.accepted_prop.prop_text }}</td>
							<td>${{ bet.accepted_prop.prop_wager }}</td>
						</tr>
					{% endfor %}
					</tbody>
				</table>
			{% else %}
			<p>You don't have any active bets. How about accepting some <a href="/bets/open_bets">open bets?</a></p>
			{% endif %}
		</div>
    </div>


	<!-- Place Bets form modal --><commit_msg>fix comment typo<commit_after>{% extends "base.html" %}

{% block base_content %}

    <div class="container">
        <h1>My Bets</h1>

		<div class="container">
			<h3>Your Open Bets</h3>
			{% if your_open_bets %}
				<table class="table table-striped table-bordered table-condensed">
					<thead>
					  <tr>
						<th>Prop Bet</th>
						<th>Wager</th>
						<th>Max Bets</th>
						<th>Bets Remain</th>
						<th>End Date</th>
						<th>Remove</th>
					  </tr>
					</thead>
					<tbody>
					{% for bet in your_open_bets %}
						<tr>
							<td>{{ bet.prop_text }}</td>
							<td>${{ bet.prop_wager }}</td>
							<td>{{ bet.max_wagers }}</td>
							<td>{{ bet.remaining_wagers }}</td>
							<td>{{ bet.end_date|date:"M d Y H:i" }}</td>
							<td style="text-align: center; vertical-align: middle">
								<a href="#" data-href="/bets/remove_prop_bet?id={{ bet.id }}" data-target="#removeBet" data-toggle="modal" data-id="{{ bet.prop_text }}" title="Remove prop bet" class="btn btn-danger btn-sm open-RemoveBet">
									<span class="glyphicon glyphicon-remove"></span>
								</a>
							</td>
						</tr>
					{% endfor %}
					</tbody>
				</table>
			{% else %}
			<p>You don't have any open bets. Step right up and <a href="#place_bets" data-toggle="modal">place a bet.</a></p>
			{% endif %}
		</div>
		<div class="container">
			<h3>Your Active Bets</h3>
			{% if your_active_bets %}
				<table class="table table-striped table-bordered">
					<thead>
					  <tr>
						<th>Proposer</th>
						<th>Proposee</th>
						<th>Prop Bet</th>
						<th>Wager</th>
					  </tr>
					</thead>
					<tbody>
					{% for bet in your_active_bets %}
						<tr>
							<td>{{ bet.accepted_prop.user.get_full_name }}</td>
							<td>{{ bet.accepted_user.get_full_name }}</td>
							<td>{{ bet.accepted_prop.prop_text }}</td>
							<td>${{ bet.accepted_prop.prop_wager }}</td>
						</tr>
					{% endfor %}
					</tbody>
				</table>
			{% else %}
			<p>You don't have any active bets. How about accepting some <a href="/bets/open_bets">open bets?</a></p>
			{% endif %}
		</div>
    </div>


	<!-- Remove bet modal -->
{'fraction_non_alphanumeric': 0.1987781954887218, 'fraction_numerical': 0.002819548872180451, 'mean_word_length': 2.367879746835443, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, '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': '4430878', 'n_tokens_mistral': 2190, 'n_tokens_neox': 1567, 'n_words': 339}