<commit_before>
$(document).ready(function(){
	BrowserDetect.init();
	if((BrowserDetect.browser=='Explorer'&&parseInt(BrowserDetect.version)<9)||(BrowserDetect.browser=='Firefox'&&parseInt(BrowserDetect.version)<8)){
			
			$('.modal-body').hide();
			$('.modal-header').html('<h1>Welcome to the Digital Archive of Japan\'s 2011 Disasters</h1><br><h2>This site has been optimized for the latest versions of </h2><ul><li> <a href="http://www.microsoft.com/IE9" target="_blank">Internet Explorer</a></li><li> <a href="http://www.mozilla.org/" target="_blank">Firefox</a></li><li><a href="http://www.google.com/chrome" target="_blank">Chrome</a></li> <li><a href="http://www.apple.com/safari/" target="_blank">Safari</a></li></ul><h2>To view this site, please use the links above to update your browser.</h2><br>');
		
			
		}





});

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;<commit_msg>add browser test<commit_after>
$(document).ready(function(){
	BrowserDetect.init();
	if((BrowserDetect.browser=='Explorer'&&parseInt(BrowserDetect.version)<9)||(BrowserDetect.browser=='Firefox'&&parseInt(BrowserDetect.version)<88)){
			
			$('.modal-body').hide();
			$('.modal-header').html('<h1>Welcome to the Digital Archive of Japan\'s 2011 Disasters</h1><br><h2>This site has been optimized for the latest versions of </h2><ul><li> <a href="http://www.microsoft.com/IE9" target="_blank">Internet Explorer</a></li><li> <a href="http://www.mozilla.org/" target="_blank">Firefox</a></li><li><a href="http://www.google.com/chrome" target="_blank">Chrome</a></li> <li><a href="http://www.apple.com/safari/" target="_blank">Safari</a></li></ul><h2>To view this site, please use the links above to update your browser.</h2><br>');
		
			
		}





});

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
{'fraction_non_alphanumeric': 0.200920245398773, 'fraction_numerical': 0.01111963190184049, 'mean_word_length': 5.22673031026253, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '7294765', 'n_tokens_mistral': 952, 'n_tokens_neox': 849, 'n_words': 161}