<commit_before>KC3.prototype.Listener  = {
	
	/* Start listening to Chrome Network Logs
	-------------------------------------------------------*/
	init: function(){
		var self = this;
		chrome.devtools.network.onRequestFinished.addListener(function(request){
			// if(app.Dashboard.state == "reload_panel"){ return false; }
			self.onReceived(request);
		});
	},
	
	
	/* New Network Log Received
	-------------------------------------------------------*/
	onReceived: function(request){
		var indexOfkcs1, indexOfkcs2;
		
		// If request is an API Call
		indexOfkcs1 = request.request.url.indexOf("/kcsapi/");
		if (indexOfkcs1 > -1){
			this.handleApiCall(
				request.request.url.substring(indexOfkcs1+8), // API function name
				request // full request-response details
			);
			return true;
		} else {
            // Clear Quest Overlay when going to to Furniture Room
            if (request.request.url.indexOf("/kcs/resources/image/furniture/") >= 0 ) {
                chrome.runtime.sendMessage({
                    game:"kancolle",
                    type:"game",
                    action:"clear_overlays"
                }, function(response){});
            }
        }<commit_msg>changed spaces to tabs<commit_after>KC3.prototype.Listener  = {
	
	/* Start listening to Chrome Network Logs
	-------------------------------------------------------*/
	init: function(){
		var self = this;
		chrome.devtools.network.onRequestFinished.addListener(function(request){
			// if(app.Dashboard.state == "reload_panel"){ return false; }
			self.onReceived(request);
		});
	},
	
	
	/* New Network Log Received
	-------------------------------------------------------*/
	onReceived: function(request){
		var indexOfkcs1, indexOfkcs2;
		
		// If request is an API Call
		indexOfkcs1 = request.request.url.indexOf("/kcsapi/");
		if (indexOfkcs1 > -1){
			this.handleApiCall(
				request.request.url.substring(indexOfkcs1+8), // API function name
				request // full request-response details
			);
			return true;
		} else {
			// Clear Quest Overlay when going to to Furniture Room
			if (request.request.url.indexOf("/kcs/resources/image/furniture/") >= 0 ) {
				chrome.runtime.sendMessage({
					game:"kancolle",
					type:"game",
					action:"clear_overlays"
				}, function(response){});
			}
		}
{'fraction_non_alphanumeric': 0.21518438177874186, 'fraction_numerical': 0.0078091106290672455, 'mean_word_length': 1.9564102564102563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1866721', 'n_tokens_mistral': 748, 'n_tokens_neox': 644, 'n_words': 137}