<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>Shrunk</title>

	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">	
	<link rel="stylesheet" href="{{ url_for('static', filename='css/shrunk.css') }}">
	<link rel="icon" type="image/ico" href="{{ url_for('static', filename='img/favicon.ico') }}">
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
	<script src="{{ url_for('static', filename='js/shrunk.js') }}"></script>
  </head>
  <body>
	<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#">
                                  <img alt="Rutgers" src="{{ url_for('static', filename='img/RU_LOGOTYPE_REVWHITE.png') }}" width="175px">
				</a>
			</div>

			<form class="search-bar navbar-form">
				<div class="form-group" style="display:inline;">
					<div class="input-group" style="display:table;">
						<input class="form-control" name="search" placeholder="Search for link or paste a link to add" autocomplete="off" autofocus="autofocus" type="text">
						<span class="input-group-addon" style="width:1%;"><span class="glyphicon glyphicon-search"></span></span>
					</div>
				</div>
			</form>

		</div>
	</nav>
	<div class="container">
		<div class="tool-box col-xs-12 col-sm-2">
			<div class="container">
				<div class="netID">
					<!-- TODO Handle the case when no one's logged in. -->
					{{ current_user.netid }}
				</div>
				<div class="log-out">
					<a href="{{ url_for('logout') }}">Log out</a>
				</div>
				<div class="group-select">
					<div class="btn-group">
						<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
							My Links <span class="caret"></span>
						</button>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#">Group A</a></li>
							<li><a href="#">Group 2</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>

		<div class="links-box col-xs-12 col-sm-8 col-sm-offset-1">
			{% for link in links %}
				<article class="link-group clearfix">
					<div class="link-info">
						<a href="{{ link['url'] }}" class="title">
							{% if link['title'] %}
								{{ link['title'] }}
							{% else %}
								{{ link['_id'] }}
							{% endif %}
						</a>
						<div class="short-link">
							<a href="http://rutge.rs/{{ link['_id'] }}">http://rutge.rs/{{ link['_id'] }}</a>
						</div>
						<div class="date">
							{{ formattime(link['timeCreated']) }}
						</div>
						<div class="bottom-row">
							Views: {{ link['visits'] }}
						</div>
					</div>
					<div class="hover-controls">
						<div onClick="delete_link('{{ link['_id'] }}')">
							<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                                                </div>
					</div>
				</article>
			{% else %}
				<article class="link-group clearfix">
					<a href="#" class="title">
						shRUnk
					</a>
					<div class="bottom-row">
						The official Rutgers University URL shortener. Use the navigation bar above to start adding links.
					</div>
				</article>
			{% endfor %}
		</div>

	</div>
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
	<script src="http://underscorejs.org/underscore-min.js"></script>
	<script src="http://backbonejs.org/backbone-min.js"></script>
  </body>
</html>
<commit_msg>Add "logged in" check to template<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>Shrunk</title>

	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">	
	<link rel="stylesheet" href="{{ url_for('static', filename='css/shrunk.css') }}">
	<link rel="icon" type="image/ico" href="{{ url_for('static', filename='img/favicon.ico') }}">
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
	<script src="{{ url_for('static', filename='js/shrunk.js') }}"></script>
  </head>
  <body>
	<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#">
                                  <img alt="Rutgers" src="{{ url_for('static', filename='img/RU_LOGOTYPE_REVWHITE.png') }}" width="175px">
				</a>
			</div>

			<form class="search-bar navbar-form">
				<div class="form-group" style="display:inline;">
					<div class="input-group" style="display:table;">
						<input class="form-control" name="search" placeholder="Search for link or paste a link to add" autocomplete="off" autofocus="autofocus" type="text">
						<span class="input-group-addon" style="width:1%;"><span class="glyphicon glyphicon-search"></span></span>
					</div>
				</div>
			</form>

		</div>
	</nav>
	<div class="container">
		<div class="tool-box col-xs-12 col-sm-2">
			<div class="container">
			{% if current_user.netid %}
				<div class="netID">
					<!-- TODO Handle the case when no one's logged in. -->
					{{ current_user.netid }}
				</div>
                                <div class="add-link">
					<a href="{{ url_for('add_link') }}">Add a Link</a>
                                </div>
				<div class="log-out">
					<a href="{{ url_for('logout') }}">Log Out</a>
				</div>
			{% else %}
				<div class="log-out">
					<a href="{{ url_for('login') }}">Log In</a>
				</div>
			{% endif %}
			</div>
		</div>

		<div class="links-box col-xs-12 col-sm-8 col-sm-offset-1">
			{% for link in links %}
				<article class="link-group clearfix">
					<div class="link-info">
						<a href="{{ link['url'] }}" class="title">
							{% if link['title'] %}
								{{ link['title'] }}
							{% else %}
								{{ link['_id'] }}
							{% endif %}
						</a>
						<div class="short-link">
							<a href="http://rutge.rs/{{ link['_id'] }}">http://rutge.rs/{{ link['_id'] }}</a>
						</div>
						<div class="date">
							{{ formattime(link['timeCreated']) }}
						</div>
						<div class="bottom-row">
							Views: {{ link['visits'] }}
						</div>
					</div>
					<div class="hover-controls">
						<a onClick="delete_link('{{ link['_id'] }}')">
							<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                                                </a>
					</div>
				</article>
			{% else %}
				<article class="link-group clearfix">
					<a href="#" class="title">
						shRUnk
					</a>
					<div class="bottom-row">
						The official Rutgers University URL shortener. Use the navigation bar above to start adding links.
					</div>
				</article>
			{% endfor %}
		</div>

	</div>
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
	<script src="http://underscorejs.org/underscore-min.js"></script>
	<script src="http://backbonejs.org/backbone-min.js"></script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.21007211254285377, 'fraction_numerical': 0.008393427119044804, 'mean_word_length': 2.9495798319327733, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 225, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2105227', 'n_tokens_mistral': 3488, 'n_tokens_neox': 2797, 'n_words': 611}