<commit_before><%= javascript_include_tag "rickshaw" %>
<%= javascript_include_tag "underscore.min" %>
<%= stylesheet_link_tag    "graphs_stacked" %>
<script src="/assets/graphs/stacked.js"></script>

<div class="col-md-10" style="padding-bottom: 10px; padding-top: 40px">
        <div id="chart_container">
		<div class="axis0" id="axis0">
			<div class="stub stub_left" id="axis0_stub"></div>
		</div>
		<div class="chart"  id="chart"></div>
		<% (1..@metrics.length-1).each do |n| %>
			<div class="axis1" id="axis<%=n%>" style="left: <%= 700 + 40 * n %>px" >
				<div class="stub stub_right" id="axis<%=n%>_stub"></div>
			</div>
		<% end %>
		<div class="x_axis" id="x_axis"></div>
		<div class="slider" id="slider"></div>
		<div class="legend legend-indent" id="legend"></div>
        </div>
</div>

<script>
	var data = []
	metrics =  []
	<% @metrics.each do |m| %>
		metrics.push("<%= m %>")
	<%end%>
	data = getMetrics(metrics)
</script>
<commit_msg>Add waiting spinner for stacked graphs<commit_after><%= javascript_include_tag "rickshaw" %>
<%= javascript_include_tag "underscore.min" %>

<%= stylesheet_link_tag    "graphs_stacked" %>
<script src="/assets/graphs/stacked.js"></script>
<script src="/assets/graphs/util.js"></script>

<div class="col-md-10" style="padding-bottom: 10px; padding-top: 40px">
        <div id="chart_container">
		<div class="axis0" id="axis0">
			<div class="stub stub_left" id="axis0_stub"></div>
		</div>
		<div class="chart"  id="chart"></div>
		<% (1..@metrics.length-1).each do |n| %>
			<div class="axis1" id="axis<%=n%>" style="left: <%= 700 + 40 * n %>px" >
				<div class="stub stub_right" id="axis<%=n%>_stub"></div>
			</div>
		<% end %>
		<div class="x_axis" id="x_axis"></div>
		<div class="slider" id="slider"></div>
		<div class="legend legend-indent" id="legend"></div>
        </div>
</div>

<script>
	var data = []
	metrics =  []
	<% @metrics.each do |m| %>
		metrics.push("<%= m %>")
	<%end%>

	renderWaiting("chart")
	data = getMetrics(metrics)
</script>

{'fraction_non_alphanumeric': 0.23313492063492064, 'fraction_numerical': 0.016865079365079364, 'mean_word_length': 4.378666666666667, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7567867', 'n_tokens_mistral': 868, 'n_tokens_neox': 758, 'n_words': 148}