<commit_before>{% extends 'base.html' %}
{% load staticfiles %}

{% block title %}{{ account_name }} / {{ repo.name }}{% endblock %}

{% block css %}
<link rel="stylesheet" type="text/css" href='{% static "css/viz.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/leaflet.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/MarkerCluster.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/MarkerCluster.Default.css" %}'>
{% endblock %}

{% block js %}
<script id='form_id' type='text/plain'>{{ sid }}</script>
<script id='user' type='text/plain'>{{ user.username }}</script>
<script>
	document.cdn = '{% static "" %}'
	document.initial_data = {{data|safe}};
</script>
<script data-main='{% static "js/viz/main" %}' src='{% static 'js/vendor/require-jquery.js' %}'></script>

<!-- Chart viz -->
<script src='{% static "js/vendor/d3.v3.min.js" %}'></script>
{% endblock %}

{% block content %}
<div class='container'>
	<div class='row'>
		<div class='span12'>
			<div id='privacy'>
				<div>
					{% if repo.is_public %}
						<i class='icon-unlock'></i>&nbsp;PUBLIC
					{% else %}
						<i class='icon-lock'></i>&nbsp;PRIVATE
					{% endif %}
				</div>
			</div>
			<h3>
				<div class='pull-right'>
					<a class='btn' href='/api/v1/data/{{ sid }}?format=csv&amp;user={{account.username}}'>
						<i class='icon-download'></i> Download All Data
					</a>
				</div>
				{% if account.username %}
					<a href='{% url "user_dashboard" username=account.username %}'>{{ account.username }}</a> /
				{% else %}
					<a href='{% url "organization_dashboard" org=account.name %}'>{{ account.name }}</a> /
				{% endif %}
				<div class='btn-group'>
					<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>
						{{ repo.name }}
						<span class='caret'></span>
					</a>
					<ul class='dropdown-menu'>
						<li>
							<a href='/api/v1/repos/{{ sid }}?format=json&amp;user={{ account }}'>
								Download as JSON
							</a>
						</li>
						<li>
							<a href='/api/v1/repos/{{ sid }}?format=xform&amp;user={{ account }}'>
								Download as XForm
							</a>
						</li>
					</ul>
				</div>
			</h3>
			{% if repo.description %}
			<div class='well well-small'>
				{{ repo.description }}
			</div>
			{% endif %}
		</div>
	</div>
</div>
<div class='container' id='viz'>
	<div class='row'>
		<div class='span12'>
			<ul id='viz_options' class='nav nav-tabs'>
				<li id='raw_btn' class='active'>
					<a href='#' data-type='raw'>
						<div><i class='icon-list'></i></div>
						<div>Raw</div>
					</a>
				</li>
				<li id='map_btn' class='disabled'>
					<a href='#' data-type='map'>
						<div><i class='icon-map-marker'></i></div>
						<div>Map</div>
					</a>
				</li>
				<li id='line_btn'>
					<a href='#' data-type='line'>
						<div><i class='icon-signal'></i></div>
						<div>Analytics</div>
					</a>
				</li>
				{% if 'delete_repository' in permissions %}
				<li>
					<a href='#' data-type='settings'>
						<div><i class='icon-cog'></i></div>
						<div>Settings</div>
					</a>
				</li>
				<li>
					<a href='#' data-type='share'>
						<div><i class='icon-group'></i></div>
						<div>Share Data</div>
					</a>
				</li>
				{% endif %}
			</ul>
		</div>
	</div>
	<div class='row viz viz-active' id='raw_viz'>
		<div class='span12' style='margin-bottom:16px;'>
			<div class='pull-right'>
				<label>
					<input id='test' type='checkbox'>
					Has Photos
				</label>
			</div>
			View as:&nbsp;
			<div class='btn-group'>
				<button data-type='list' class='btn active'>
					<i class='icon-align-justify'></i>&nbsp;List
				</button>
				<button data-type='grid' class='btn'>
					<i class='icon-th-large'></i>&nbsp;Grid
				</button>
			</div>
		</div>
		<div class='span12 active' id='raw_list'>
			<table id="raw_table" class="table table-striped table-bordered">
				<thead><tr></tr></thead>
				<tbody>
					<tr><td>Loading data...</td></tr>
				</tbody>
			</table>
		</div>
		<div class='span12' id='raw_grid' style='display:none;position:relative;'></div>
	</div>
	<div class='row viz' id='map_viz'>
		<div class='span12'>
			<div id='time_select' style='display:none;'>
				<input type='range' id='fps' min='1' max='10'/>
				<input type='range' id='playtime' step='10' min='10' max='300'/> <br />
			</div>

			<div id='time_static'>
				<a href='#' id='static_btn' data-type='map' class='btn'>
					<i class='icon-map-marker'></i>Static
				</a>
			</div>

			<div id='cumulative'>
				<input id='cumulativeCheck' type="checkbox">Cumulative
			</div>

			<div id='cluster'>
				<input id='clusterCheck' type="checkbox">Show Clusters
			</div>

			<div >
				Time Constraint: <input type="text" name="tc" id = "tc_input">
				Day: <input type ="radio"  name="const" value ="day" checked="checked"/>
				hour: <input type="radio" name="const"  value ="hour"/>
				minute: <input type="radio" name="const" value ="minute"/>
				<input type="submit" value="submit" class='btn'id ='time_c'>
				Date: <input type ="radio" name="time" value = "date" checked="checked"/>
				Time stamp: <input type ="radio" name="time" value = "timestamp"/>
			</div>

			<div>
				<a href='#' id='clear' data-type='map' class='btn'>Clear Lines</a>
			</div>
		</div>
		<div class='span12' id='map'></div>

		<div class='offset1 span10' style='clear:both;margin-top:16px;'>
			<div id='current_time' style='text-align:center;'></div>
			<div id='progress_bar' class='progress progress-striped'>
				<div class='bar'></div>
			</div>
		</div>
		<div id='playback-controls'>
			<div class='span3'>
				<input type='date' id='start_date'><br>
				Start Date
			</div>
			<div class='span6'>
				<div class="btn-group">
					<button id='auto_step' class='btn'><i class='icon-retweet'></i></button>
					<button id='pause' class='btn'><i class='icon-play'></i></button><commit_msg>Hide map playback controls that aren't being used  for now<commit_after>{% extends 'base.html' %}
{% load staticfiles %}

{% block title %}{{ account_name }} / {{ repo.name }}{% endblock %}

{% block css %}
<link rel="stylesheet" type="text/css" href='{% static "css/viz.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/leaflet.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/MarkerCluster.css" %}'>
<link rel="stylesheet" type="text/css" href='{% static "css/MarkerCluster.Default.css" %}'>
{% endblock %}

{% block js %}
<script id='form_id' type='text/plain'>{{ sid }}</script>
<script id='user' type='text/plain'>{{ user.username }}</script>
<script>
	document.cdn = '{% static "" %}'
	document.initial_data = {{data|safe}};
</script>
<script data-main='{% static "js/viz/main" %}' src='{% static 'js/vendor/require-jquery.js' %}'></script>

<!-- Chart viz -->
<script src='{% static "js/vendor/d3.v3.min.js" %}'></script>
{% endblock %}

{% block content %}
<div class='container'>
	<div class='row'>
		<div class='span12'>
			<div id='privacy'>
				<div>
					{% if repo.is_public %}
						<i class='icon-unlock'></i>&nbsp;PUBLIC
					{% else %}
						<i class='icon-lock'></i>&nbsp;PRIVATE
					{% endif %}
				</div>
			</div>
			<h3>
				<div class='pull-right'>
					<a class='btn' href='/api/v1/data/{{ sid }}?format=csv&amp;user={{account.username}}'>
						<i class='icon-download'></i> Download All Data
					</a>
				</div>
				{% if account.username %}
					<a href='{% url "user_dashboard" username=account.username %}'>{{ account.username }}</a> /
				{% else %}
					<a href='{% url "organization_dashboard" org=account.name %}'>{{ account.name }}</a> /
				{% endif %}
				<div class='btn-group'>
					<a class='btn dropdown-toggle' data-toggle='dropdown' href='#'>
						{{ repo.name }}
						<span class='caret'></span>
					</a>
					<ul class='dropdown-menu'>
						<li>
							<a href='/api/v1/repos/{{ sid }}?format=json&amp;user={{ account }}'>
								Download as JSON
							</a>
						</li>
						<li>
							<a href='/api/v1/repos/{{ sid }}?format=xform&amp;user={{ account }}'>
								Download as XForm
							</a>
						</li>
					</ul>
				</div>
			</h3>
			{% if repo.description %}
			<div class='well well-small'>
				{{ repo.description }}
			</div>
			{% endif %}
		</div>
	</div>
</div>
<div class='container' id='viz'>
	<div class='row'>
		<div class='span12'>
			<ul id='viz_options' class='nav nav-tabs'>
				<li id='raw_btn' class='active'>
					<a href='#' data-type='raw'>
						<div><i class='icon-list'></i></div>
						<div>Raw</div>
					</a>
				</li>
				<li id='map_btn' class='disabled'>
					<a href='#' data-type='map'>
						<div><i class='icon-map-marker'></i></div>
						<div>Map</div>
					</a>
				</li>
				<li id='line_btn'>
					<a href='#' data-type='line'>
						<div><i class='icon-signal'></i></div>
						<div>Analytics</div>
					</a>
				</li>
				{% if 'delete_repository' in permissions %}
				<li>
					<a href='#' data-type='settings'>
						<div><i class='icon-cog'></i></div>
						<div>Settings</div>
					</a>
				</li>
				<li>
					<a href='#' data-type='share'>
						<div><i class='icon-group'></i></div>
						<div>Share Data</div>
					</a>
				</li>
				{% endif %}
			</ul>
		</div>
	</div>
	<div class='row viz viz-active' id='raw_viz'>
		<div class='span12' style='margin-bottom:16px;'>
			<div class='pull-right'>
				<label>
					<input id='test' type='checkbox'>
					Has Photos
				</label>
			</div>
			View as:&nbsp;
			<div class='btn-group'>
				<button data-type='list' class='btn active'>
					<i class='icon-align-justify'></i>&nbsp;List
				</button>
				<button data-type='grid' class='btn'>
					<i class='icon-th-large'></i>&nbsp;Grid
				</button>
			</div>
		</div>
		<div class='span12 active' id='raw_list'>
			<table id="raw_table" class="table table-striped table-bordered">
				<thead><tr></tr></thead>
				<tbody>
					<tr><td>Loading data...</td></tr>
				</tbody>
			</table>
		</div>
		<div class='span12' id='raw_grid' style='display:none;position:relative;'></div>
	</div>
	<div class='row viz' id='map_viz'>
		<div class='span12' style='display:none;'>
			<div id='time_select'>
				<input type='range' id='fps' min='1' max='10'/>
				<input type='range' id='playtime' step='10' min='10' max='300'/> <br />
			</div>

			<div id='cumulative'>
				<input id='cumulativeCheck' type="checkbox">Cumulative
				<input id='clusterCheck' type="checkbox">Show Clusters
			</div>

			<div >
				Time Constraint: <input type="text" name="tc" id = "tc_input">
				Day: <input type ="radio"  name="const" value ="day" checked="checked"/>
				hour: <input type="radio" name="const"  value ="hour"/>
				minute: <input type="radio" name="const" value ="minute"/>
				<input type="submit" value="submit" class='btn'id ='time_c'>
				Date: <input type ="radio" name="time" value = "date" checked="checked"/>
				Time stamp: <input type ="radio" name="time" value = "timestamp"/>
  				<a href='#' id='clear' data-type='map' class='btn'>Clear Lines</a>
			</div>
		</div>

		<div class='span12' id='map'></div>

		<div class='offset1 span10' style='clear:both;margin-top:16px;'>
			<div id='current_time' style='text-align:center;'></div>
			<div id='progress_bar' class='progress progress-striped'>
				<div class='bar'></div>
			</div>
		</div>
		<div id='playback-controls'>
			<div class='span3'>
				<input type='date' id='start_date'><br>
				Start Date
			</div>
			<div class='span6'>
				<div class="btn-group">
					<button id='auto_step' class='btn'><i class='icon-retweet'></i></button>
					<button id='pause' class='btn'><i class='icon-play'></i></button>
{'fraction_non_alphanumeric': 0.23362388884094243, 'fraction_numerical': 0.006904289289721239, 'mean_word_length': 3.2760147601476013, 'pattern_counts': {'":': 0, '<': 411, '<?xml version=': 0, '>': 411, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4253996', 'n_tokens_mistral': 5343, 'n_tokens_neox': 4222, 'n_words': 886}