<commit_before>(function() {
	'use strict';
	/**
	 * (en)RealtimeWebsocketService 
	 * @ko RealtimeWebsocketService
	 * @group Service
	 * @name RealtimeWebsocketService
	 * @class
	 */
	pinpointApp.constant( "RealtimeWebsocketServiceConfig", {
		wsUrl: "agent/activeThread.pinpointws",
		wsTimeout: 10000, //ms
		retryTimeout: 3000,
		maxRetryCount: 1
	});
	
	pinpointApp.service( "RealtimeWebsocketService", [ "RealtimeWebsocketServiceConfig", function(cfg) {

		var connectTime = null;
	    var lastReceiveTime = null;
    	var webSocket = null;
    	var bIsOpenConnection = false;
    	var refInterval = null;
    	var oHandlers;
		var retryCount = 0;
		var pagingSize = 30;

	    this.open = function( handlers ) {
	    	webSocket = null;
	    	oHandlers = handlers;
        	if ( angular.isDefined( WebSocket ) ) {<commit_msg>[#3287] Use 'ws://' for 'http://' and 'wss://' for 'https://'<commit_after>(function() {
	'use strict';
	/**
	 * (en)RealtimeWebsocketService 
	 * @ko RealtimeWebsocketService
	 * @group Service
	 * @name RealtimeWebsocketService
	 * @class
	 */
	pinpointApp.constant( "RealtimeWebsocketServiceConfig", {
		wsUrl: "agent/activeThread.pinpointws",
		wsTimeout: 10000, //ms
		retryTimeout: 3000,
		maxRetryCount: 1
	});
	
	pinpointApp.service( "RealtimeWebsocketService", [ "RealtimeWebsocketServiceConfig", function(cfg) {

		var connectTime = null;
	    var lastReceiveTime = null;
    	var webSocket = null;
    	var bIsOpenConnection = false;
    	var refInterval = null;
    	var oHandlers;
		var retryCount = 0;
		var pagingSize = 30;
		var protocol = "http";

	    this.open = function( handlers, currentProtocol ) {
	    	webSocket = null;
	    	oHandlers = handlers;
	    	protocol = currentProtocol === "http" ? "ws" : "wss";
        	if ( angular.isDefined( WebSocket ) ) {
{'fraction_non_alphanumeric': 0.12183020948180816, 'fraction_numerical': 0.016538037486218304, 'mean_word_length': 3.4814814814814814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3140121', 'n_tokens_mistral': 659, 'n_tokens_neox': 593, 'n_words': 135}