<commit_before><template name="budgetDashboard">
	{{!-- Public budgets message --}}
	{{#unless currentUser}}
	<div class="center aligned sixteen wide column">
		<div class="ui info message">
			<div class="header">
				<i class="info circle icon"></i>
				You're viewing public budgets. <a href="{{pathFor 'atSignIn'}}">Sign in</a> or <a href="{{pathFor 'atSignUp'}}">sign up</a> to view your own private budgets.
			</div>
		</div>
	</div>
	{{/unless}}
	{{!-- Budget sidebar --}}
	<div class="six wide column">
		<div class="ui large vertical fluid pointing menu">
			<div class="item">
			{{!-- New Budget --}}
				<form id="newBudget">
					<div class="ui fluid icon input">
						<input type="text" placeholder="New budget" name="title" required="required">
						<i class="money icon"></i>
					</div>
				</form>
			</div>
			{{!-- Budget list --}}
			{{#each budgets}}
				<a href="{{pathFor 'budgetDashboard'}}" class="{{routeEq '_id' _id 'active blue'}} item">
					<div class="ui {{colorByNumber balance}} label">{{formatMoney balance}}</div>
					{{title}}
				</a>
			{{/each}}
			<div class="header item">
				<strong><em>Balance</em></strong>
				<div class="ui large {{colorByNumber currentUser.profile.balance}} label">
					{{formatMoney currentUser.profile.balance}}
				</div>
			</div>
		</div>
		<div class="ui yellow center aligned segment">
			<p><strong>Pro tip:</strong> Leave the date of a Transaction blank and it will be saved with today's date and time.</p>
		</div>
	</div>

	{{!-- Current Budget detail --}}
	<div class="ten wide column">
	{{!-- Render dashboard only if a budget exists --}}
	{{#if title}}
	{{!-- Tab navigation --}}
		<div id="budgetTabs" class="ui top attached tabular menu">
			<a id="transactionsTab" class="active item">
				<i class="list layout icon"></i>
				Transactions
			</a>
			<a id="statsTab" class="item" onclick="javascript:alert('Coming soon!')">
				<i class="bar chart icon"></i>
				Stats
			</a>
		</div>
		{{!-- Transactions --}}
		<div class="ui bottom attached segment">
			<h1 id="budgetTitle" class="ui header">
				{{title}}
				<div class="{{colorByNumber balance}} sub header">{{formatMoney balance}}</div>
			</h1>
			<a id="removeBudget" class="ui top right attached label">
				<i class="remove circle icon"></i>Delete budget
			</a>
			{{!-- New Transaction --}}
			<h3 class="ui header">Add transaction</h3><commit_msg>Add a comment header for the Pro tip section.<commit_after><template name="budgetDashboard">
	{{!-- Public budgets message --}}
	{{#unless currentUser}}
	<div class="center aligned sixteen wide column">
		<div class="ui info message">
			<div class="header">
				<i class="info circle icon"></i>
				You're viewing public budgets. <a href="{{pathFor 'atSignIn'}}">Sign in</a> or <a href="{{pathFor 'atSignUp'}}">sign up</a> to view your own private budgets.
			</div>
		</div>
	</div>
	{{/unless}}
	{{!-- Budget sidebar --}}
	<div class="six wide column">
		<div class="ui large vertical fluid pointing menu">
			<div class="item">
			{{!-- New Budget --}}
				<form id="newBudget">
					<div class="ui fluid icon input">
						<input type="text" placeholder="New budget" name="title" required="required">
						<i class="money icon"></i>
					</div>
				</form>
			</div>
			{{!-- Budget list --}}
			{{#each budgets}}
				<a href="{{pathFor 'budgetDashboard'}}" class="{{routeEq '_id' _id 'active blue'}} item">
					<div class="ui {{colorByNumber balance}} label">{{formatMoney balance}}</div>
					{{title}}
				</a>
			{{/each}}
			<div class="header item">
				<strong><em>Balance</em></strong>
				<div class="ui large {{colorByNumber currentUser.profile.balance}} label">
					{{formatMoney currentUser.profile.balance}}
				</div>
			</div>
		</div>
		{{!-- Pro tip --}}
		<div class="ui yellow center aligned segment">
			<p><strong>Pro tip:</strong> Leave the date of a Transaction blank and it will be saved with today's date and time.</p>
		</div>
	</div>

	{{!-- Current Budget detail --}}
	<div class="ten wide column">
	{{!-- Render dashboard only if a budget exists --}}
	{{#if title}}
	{{!-- Tab navigation --}}
		<div id="budgetTabs" class="ui top attached tabular menu">
			<a id="transactionsTab" class="active item">
				<i class="list layout icon"></i>
				Transactions
			</a>
			<a id="statsTab" class="item" onclick="javascript:alert('Coming soon!')">
				<i class="bar chart icon"></i>
				Stats
			</a>
		</div>
		{{!-- Transactions --}}
		<div class="ui bottom attached segment">
			<h1 id="budgetTitle" class="ui header">
				{{title}}
				<div class="{{colorByNumber balance}} sub header">{{formatMoney balance}}</div>
			</h1>
			<a id="removeBudget" class="ui top right attached label">
				<i class="remove circle icon"></i>Delete budget
			</a>
			{{!-- New Transaction --}}
			<h3 class="ui header">Add transaction</h3>
{'fraction_non_alphanumeric': 0.19518221124150711, 'fraction_numerical': 0.0016471072678608193, 'mean_word_length': 3.574387947269303, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '3618212', 'n_tokens_mistral': 1831, 'n_tokens_neox': 1529, 'n_words': 469}