<commit_before>#parse("header.tpl") #parse("menu.tpl")

<div class="container">
	<div class="content">

		#if($invitations && !$invitations.isEmpty())
		<div id="invitations" class="alert alert-info">

			#if($invitations.size() == 1)
			<h3>You have 1 new invitation awaiting...</h3>
			#else
			<h3>You have $invitations.size() new invitations awaiting...</h3>
			#end

			<table class="table table-condensed">
				<tbody>
					#foreach($invitation in $invitations)
					<tr>
						<td>${invitation.getProject().getName()}
							<div class="btn-panel">
								<a class="btn btn-mini btn-success">Join project</a>
								<a class="btn btn-mini btn-danger">Ignore</a>
							</div>
						</td>
					</tr>
					#end
				</tbody>
			</table>
		</div>
		#end

		<div class="page-head">
			<h3>Your projects</h3>
			<a id="enroll-to-course" class="btn btn-primary">Enroll to course</a>
			<a id="create-new-project" class="btn btn-primary" style="margin-right: 10px;">Create personal project</a>
		</div>
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>Project name</th>
				</tr>
			</thead>
			<tbody>
				#foreach($project in $projects)
				<tr>
					<td><a href="/project/${project.id}">$project.getName()</a></td>
				</tr>
				#end
			</tbody>
		</table>
	</div>
</div>

<div id="create-new-project-modal" class="modal hide fade">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h3>Create a new project</h3>
	</div>
	<div class="step-1">
		<div class="modal-body">
			<form id="create-new-project-form" class="form-horizontal">
				<div class="control-group">
					<label class="control-label" for="project-name">Project name</label>
					<div class="controls">
						<input type="text" id="project-name" placeholder="Project name" />
						<img src="/img/loader.gif" class="loader hide" />
						<div class="hide help-block"></div>
					</div>
				</div>
			</form>
		</div>
		<div class="modal-footer">
			<a href="#" id="cancel-create-new-project-modal" class="btn" data-dismiss="modal">Cancel</a>
			<a href="#" id="provision-new-project" class="btn btn-primary">Create project</a>
		</div>
	</div>
	<div class="step-2 hide">
		<div class="modal-body"><commit_msg>Create a first-time welcom div for the dashboard<commit_after>#parse("header.tpl") #parse("menu.tpl")

<div class="container">
	<div class="content">

		#if($invitations && !$invitations.isEmpty())
		<div id="invitations" class="alert alert-info">

			#if($invitations.size() == 1)
			<h3>You have 1 new invitation awaiting...</h3>
			#else
			<h3>You have $invitations.size() new invitations awaiting...</h3>
			#end

			<table class="table table-condensed">
				<tbody>
					#foreach($invitation in $invitations)
					<tr>
						<td>${invitation.getProject().getName()}
							<div class="btn-panel">
								<a class="btn btn-mini btn-success">Join project</a>
								<a class="btn btn-mini btn-danger">Ignore</a>
							</div>
						</td>
					</tr>
					#end
				</tbody>
			</table>
		</div>
		#end

		<div class="page-head">
			<h3>Your projects</h3>
			<a id="enroll-to-course" class="btn btn-primary">Enroll to course</a>
			<a id="create-new-project" class="btn btn-primary" style="margin-right: 10px;">Create personal project</a>
		</div>
		#if(!$projects.isEmpty())
		<table class="table table-striped table-bordered table-hover" id="$projects.size()">
			<thead>
				<tr>
					<th>Project name</th>
				</tr>
			</thead>
			<tbody>
				#foreach($project in $projects)
				<tr>
					<td><a href="/project/${project.id}">$project.getName()</a></td>
				</tr>
				#end
			</tbody>
		</table>
		#else
		<div class="well">
			<h1>Welcome to DevHub!</h1>
			<p>You're not registered to any projects yet. To start, create your own project, enroll for a course, or accept an inventation to another project.</p>
		</div>
		#end
	</div>
</div>

<div id="create-new-project-modal" class="modal hide fade">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h3>Create a new project</h3>
	</div>
	<div class="step-1">
		<div class="modal-body">
			<form id="create-new-project-form" class="form-horizontal">
				<div class="control-group">
					<label class="control-label" for="project-name">Project name</label>
					<div class="controls">
						<input type="text" id="project-name" placeholder="Project name" />
						<img src="/img/loader.gif" class="loader hide" />
						<div class="hide help-block"></div>
					</div>
				</div>
			</form>
		</div>
		<div class="modal-footer">
			<a href="#" id="cancel-create-new-project-modal" class="btn" data-dismiss="modal">Cancel</a>
			<a href="#" id="provision-new-project" class="btn btn-primary">Create project</a>
		</div>
	</div>
	<div class="step-2 hide">
		<div class="modal-body">
{'fraction_non_alphanumeric': 0.20105927887553474, 'fraction_numerical': 0.006111224281931147, 'mean_word_length': 3.463636363636364, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, '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': '5146021', 'n_tokens_mistral': 2086, 'n_tokens_neox': 1709, 'n_words': 374}