<commit_before>(function(){
	"use strict";
	_gaq.push(['_trackPageview']);
	
	var myVersion = parseInt(chrome.runtime.getManifest().version, 10);

	$(document).on("ready", function(){
		// Load previously stored configs
		ConfigManager.load();
		KC3Meta.init("../../data/");
		KC3Translation.execute();
		
		// Show next version
		$(".schedule span.version").text(myVersion+1);
		
		// Show estimated time until next update
		$.ajax({
			dataType: "json",
			url: "https://raw.githubusercontent.com/dragonjet/KC3Kai/master/update?v="+((new Date()).getTime()),
			success: function(data, textStatus, request){
				if(myVersion < parseInt(data.version, 10)){
					version = data.version;
					setupUpdateTime(
						new Date(request.getResponseHeader('Date')),
						new Date(data.time)
					);
				}else{
					$(".schedule").html( KC3Meta.term("MenuOnLatest") );
				}
			}
		});
		
		// Play via API Link
		$("#play_cc").on('click', function(){
			function go_play_via_api(){
				localStorage.extract_api = false;
				localStorage.dmmplay = false;
				window.open("../game/api.html", "kc3kai_game");
			}
			if( typeof chrome.cookies == 'undefined' ){
				go_play_via_api()
			}else{
				chrome.cookies.set({
					url: "http://www.dmm.com",
					name: "ckcy",
					value: "1",
					domain: ".dmm.com",
					expirationDate: Math.ceil((new Date("Sun, 09 Feb 2019 09:00:09 GMT")).getTime()/1000),
					path: '/netgame/',
				}, function(cookie){
					go_play_via_api();
				});
			}
		});
		
		// Refresh API Link
		$("#get_api").on('click', function(){
			_gaq.push(['_trackEvent', "Refresh API", 'clicked']);
			function go_refresh_api(){
				localStorage.extract_api = true;
				localStorage.dmmplay = false;
				window.open("http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/", "kc3kai_game");
			}
			if( typeof chrome.cookies == 'undefined' ){
				go_refresh_api()
			}else{
				chrome.cookies.set({
					url: "http://www.dmm.com",
					name: "ckcy",
					value: "1",
					domain: ".dmm.com",
					expirationDate: Math.ceil((new Date("Sun, 09 Feb 2019 09:00:09 GMT")).getTime()/1000),
					path: '/netgame/',
				}, function(cookie){
					go_refresh_api();
				});
			}
		});
		
		// Play DMM Website
		$("#play_dmm").on('click', function(){
			localStorage.extract_api = false;
			localStorage.dmmplay = true;
			window.open("../game/web.html", "kc3kai_game");<commit_msg>added semicolon<commit_after>(function(){
	"use strict";
	_gaq.push(['_trackPageview']);
	
	var myVersion = parseInt(chrome.runtime.getManifest().version, 10);

	$(document).on("ready", function(){
		// Load previously stored configs
		ConfigManager.load();
		KC3Meta.init("../../data/");
		KC3Translation.execute();
		
		// Show next version
		$(".schedule span.version").text(myVersion+1);
		
		// Show estimated time until next update
		$.ajax({
			dataType: "json",
			url: "https://raw.githubusercontent.com/dragonjet/KC3Kai/master/update?v="+((new Date()).getTime()),
			success: function(data, textStatus, request){
				if(myVersion < parseInt(data.version, 10)){
					version = data.version;
					setupUpdateTime(
						new Date(request.getResponseHeader('Date')),
						new Date(data.time)
					);
				}else{
					$(".schedule").html( KC3Meta.term("MenuOnLatest") );
				}
			}
		});
		
		// Play via API Link
		$("#play_cc").on('click', function(){
			function go_play_via_api(){
				localStorage.extract_api = false;
				localStorage.dmmplay = false;
				window.open("../game/api.html", "kc3kai_game");
			}
			if( typeof chrome.cookies == 'undefined' ){
				go_play_via_api();
			}else{
				chrome.cookies.set({
					url: "http://www.dmm.com",
					name: "ckcy",
					value: "1",
					domain: ".dmm.com",
					expirationDate: Math.ceil((new Date("Sun, 09 Feb 2019 09:00:09 GMT")).getTime()/1000),
					path: '/netgame/',
				}, function(cookie){
					go_play_via_api();
				});
			}
		});
		
		// Refresh API Link
		$("#get_api").on('click', function(){
			_gaq.push(['_trackEvent', "Refresh API", 'clicked']);
			function go_refresh_api(){
				localStorage.extract_api = true;
				localStorage.dmmplay = false;
				window.open("http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/", "kc3kai_game");
			}
			if( typeof chrome.cookies == 'undefined' ){
				go_refresh_api();
			}else{
				chrome.cookies.set({
					url: "http://www.dmm.com",
					name: "ckcy",
					value: "1",
					domain: ".dmm.com",
					expirationDate: Math.ceil((new Date("Sun, 09 Feb 2019 09:00:09 GMT")).getTime()/1000),
					path: '/netgame/',
				}, function(cookie){
					go_refresh_api();
				});
			}
		});
		
		// Play DMM Website
		$("#play_dmm").on('click', function(){
			localStorage.extract_api = false;
			localStorage.dmmplay = true;
			window.open("../game/web.html", "kc3kai_game");
{'fraction_non_alphanumeric': 0.19304857621440535, 'fraction_numerical': 0.021775544388609715, 'mean_word_length': 3.183012259194396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '3677990', 'n_tokens_mistral': 2136, 'n_tokens_neox': 1653, 'n_words': 294}