<commit_before><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title> analyticsoverflow - tracking the activity on stackoverflow.com </title>

<meta http-equiv="REFRESH" content="300">

<script src='/js/mootools-1.2.4-core.js' type='text/javascript'></script>
<script src='/js/countdown.js' type='text/javascript'></script>

<script type='text/javascript'>
	var SoUi = {
		tags_visible: false,
		
		init: function() {
		},
		
		toggle_tags: function() {
			if(this.tags_visible == false) {
				this.show_tags();
			} else {
				this.hide_tags();
			}
			
			this.tags_visible = !this.tags_visible;
		},
		
		show_tags: function() {
			$$('.so-more-tags').each(function(e) {e.show();});
			$('so-st-link').innerHTML = 'less...'
		},
		
		hide_tags: function() {
			$$('.so-more-tags').each(function(e) {e.hide();});
			$('so-st-link').innerHTML = 'more...'
		}
	}
</script>

<script type='text/javascript'>
	var _rate_data = <%== count_data.to_json %>;
</script>

<link rel="stylesheet" href="/css/default.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="/css/so-count.css?v=2" type="text/css" media="screen, projection">

</head>

<body onload='SoUi.init();'>

<div class="wrapper">

<div class='so-header'>
	<div class='left'>
		<div class='so-site-select'>
			site: 
	<% 
		site_list.each_with_index do |site_item, i| 
			if site_item == cur_site
				puts "<span>#{site_item}</span>"
			else
				puts "<a href='?site=#{site_item}'>#{site_item}</a>"
			end
			
			print ' | '  if i != site_list.length-1
		end
	%>
			
		</div>
		
		<div class='so-title'>
			<a href='./'>analytics<b>overflow</b></a><% print "/<span style='color:gray'>#{so_tag_display}</span>" if so_tag != settings.all_tag %>
		</div>
	</div>
	
	<div class='so-tag-list'>
		view by tag: 

		<% 

		tag_index = popular_tags.index(so_tag)
		tag_index = -1 if tag_index.nil?
		
		popular_tags.each_with_index do |cur_tag, i|

			tag_attr = []
			tag_attr << "class='so-more-tags'" if i > settings.max_tags_default
			tag_attr << "style='display:none'" if i > settings.max_tags_default and tag_index <= settings.max_tags_default
				
			cur_tag_name = cur_tag['tag_name'].split('-', 3)[-1]
			cur_tag_site = cur_tag['site']
			%>

			<% if cur_tag_name == so_tag %>
				<%== "<span #{tag_attr.join(' ')}> #{cur_tag_name} </span>" %>
			<% elsif cur_tag == settings.all_tag %>
				<%== "<a #{tag_attr.join(' ')} href='/'> #{cur_tag_name} </a>" %><commit_msg>fix site list to use proper erb escaping<commit_after><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title> analyticsoverflow - tracking the activity on stackoverflow.com </title>

<meta http-equiv="REFRESH" content="300">

<script src='/js/mootools-1.2.4-core.js' type='text/javascript'></script>
<script src='/js/countdown.js' type='text/javascript'></script>

<script type='text/javascript'>
	var SoUi = {
		tags_visible: false,
		
		init: function() {
		},
		
		toggle_tags: function() {
			if(this.tags_visible == false) {
				this.show_tags();
			} else {
				this.hide_tags();
			}
			
			this.tags_visible = !this.tags_visible;
		},
		
		show_tags: function() {
			$$('.so-more-tags').each(function(e) {e.show();});
			$('so-st-link').innerHTML = 'less...'
		},
		
		hide_tags: function() {
			$$('.so-more-tags').each(function(e) {e.hide();});
			$('so-st-link').innerHTML = 'more...'
		}
	}
</script>

<script type='text/javascript'>
	var _rate_data = <%== count_data.to_json %>;
</script>

<link rel="stylesheet" href="/css/default.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="/css/so-count.css?v=2" type="text/css" media="screen, projection">

</head>

<body onload='SoUi.init();'>

<div class="wrapper">

<div class='so-header'>
	<div class='left'>
		<div class='so-site-select'>
			site: 
	<%
		s = ""
		site_list.each_with_index do |site_item, i| 
			if site_item == cur_site %>
				<span><%= site_item %></span>
			<% else %>
				<a href='/<%= site_item %>/'><%= site_item %></a>
			<% end %>
			
			<% if i != site_list.length-1 %>
				<%= ' | ' %>
			<% end %>

		<% end %>
			
		</div>
		
		<div class='so-title'>
			<a href='./'>analytics<b>overflow</b></a><% print "/<span style='color:gray'>#{so_tag_display}</span>" if so_tag != settings.all_tag %>
		</div>
	</div>
	
	<div class='so-tag-list'>
		view by tag: 

		<% 

		tag_index = popular_tags.index(so_tag)
		tag_index = -1 if tag_index.nil?
		
		popular_tags.each_with_index do |cur_tag, i|

			tag_attr = []
			tag_attr << "class='so-more-tags'" if i > settings.max_tags_default
			tag_attr << "style='display:none'" if i > settings.max_tags_default and tag_index <= settings.max_tags_default
				
			cur_tag_name = cur_tag['tag_name'].split('-', 3)[-1]
			cur_tag_site = cur_tag['site']
			%>

			<% if cur_tag_name == so_tag %>
				<%== "<span #{tag_attr.join(' ')}> #{cur_tag_name} </span>" %>
			<% elsif cur_tag == settings.all_tag %>
				<%== "<a #{tag_attr.join(' ')} href='/'> #{cur_tag_name} </a>" %>
{'fraction_non_alphanumeric': 0.21535433070866142, 'fraction_numerical': 0.004724409448818898, 'mean_word_length': 3.695933456561922, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 116, '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': '3904580', 'n_tokens_mistral': 2214, 'n_tokens_neox': 1916, 'n_words': 343}