<commit_before>/** @jsx React.DOM */
"use strict";

var $ = require("jquery");
var attachFastClick = require("fastclick");
require("foundation");

var search = require("./search.jsx");

module.exports = function () {

	// foundation setup
	$(document).foundation();

	// add fast click event listener to reduce delay of mobile "clicks" 
	attachFastClick(document.body);

	// exec search setup script
	search();

	// does the following only after DOM completely loads
	// if the url contains an anchor
	$(document).ready(function(){          
		if (window.location.hash) {
			var anchor = window.location.hash;
			window.location.hash = anchor;
		}
	});
};

<commit_msg>fix IE9 console error by defining console<commit_after>/** @jsx React.DOM */
"use strict";

var $ = require("jquery");
var attachFastClick = require("fastclick");
require("foundation");

var search = require("./search.jsx");

module.exports = function () {

	// foundation setup
	$(document).foundation();

	// add fast click event listener to reduce delay of mobile "clicks" 
	attachFastClick(document.body);

	// exec search setup script
	search();

	// add console, console.log, and console.warn if they don't exist, for IE9
	if (!(window.console && console.log && console.warn)) {
		window.console = {
			log: function(){},
			debug: function(){},
			info: function(){},
			warn: function(){},
			error: function(){}
		};
	}

	// does the following only after DOM completely loads
	// if the url contains an anchor
	$(document).ready(function(){          
		if (window.location.hash) {
			var anchor = window.location.hash;
			window.location.hash = anchor;
		}
	});
};


{'fraction_non_alphanumeric': 0.15328467153284672, 'fraction_numerical': 0.0012165450121654502, 'mean_word_length': 3.6207865168539324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2849006', 'n_tokens_mistral': 516, 'n_tokens_neox': 478, 'n_words': 148}