<commit_before>(function( $ ) {
	'use strict';
	/**
	 * (en)serverListDirective 
	 * @ko serverListDirective
	 * @group Directive
	 * @name serverListDirective
	 * @class
	 */
	pinpointApp.directive( "serverListDirective", [ "$timeout", "$window", "AnalyticsService", "TooltipService",
		function ( $timeout, $window, analyticsService, tooltipService ) {
            return {
                restrict: "EA",
				replace: true,
				templateUrl: "features/serverList/serverList.html?v=" + G_BUILD_TIME,
				scope: {
					namespace: "@"
				},
                link: function(scope, element) {
					var bVisible = false;
					var bInitialized = false;
					var $element = $(element);
					scope.bIsNode = true;
					scope.hasScatter = false;
					scope.selectedAgent = "";
					/*

					tooltipService.init( "serverList" );
					*/
					function showLayer() {
						$element.animate({
							"right": 421
						}, 500, function() {});
					}
					function showChart( instanceName, histogram, timeSeriesHistogram ) {
						scope.selectedAgent = instanceName;
						scope.$broadcast('changedCurrentAgent.forServerList', instanceName );
						if ( bInitialized ) {
							scope.$broadcast('responseTimeSummaryChartDirective.updateData.forServerList', histogram);
							scope.$broadcast('loadChartDirective.updateData.forServerList', timeSeriesHistogram);
						} else {
							scope.$broadcast('responseTimeSummaryChartDirective.initAndRenderWithData.forServerList', histogram, '100%', '150px', false, true);
							scope.$broadcast('loadChartDirective.initAndRenderWithData.forServerList', timeSeriesHistogram, '100%', '220px', false, true);
							bInitialized = true;
						}
					}
					function setData(bIsNodeServer, node, oNavbarVoService) {
						scope.bIsNode = bIsNodeServer;
						scope.node = node;
						scope.oNavbarVoService = oNavbarVoService;
						scope.hasScatter = false;
						if ( bIsNodeServer ) {
							if ( node.isWas ) {
								scope.hasScatter = true;
							}
							scope.serverList = node.serverList;
							scope.bIsNode = true;
							if  ( scope.namespace === "forMain" ) {
								scope.$broadcast('scatterDirective.initializeWithNode.forServerList', node);
							} else {
								scope.$broadcast('scatterDirective.showByNode.forServerList', node);
							}

							$timeout(function() {
								var instanceName = $element.find( "._node input[type=radio][checked]" ).val();
								try {
									showChart(instanceName, scope.node.agentHistogram[instanceName], scope.node.agentTimeSeriesHistogram[instanceName]);
								}catch(e) {}
							});
						} else {
							scope.linkList = scope.node.sourceHistogram;
							scope.bIsNode = false;

							$timeout(function () {
								var instanceName = $element.find("._link input[type=radio][checked]").val();
								showChart( instanceName, scope.node.sourceHistogram[instanceName], scope.node.sourceTimeSeriesHistogram[instanceName]);<commit_msg>[#noissue] bug fix. send useless request.<commit_after>(function( $ ) {
	'use strict';
	/**
	 * (en)serverListDirective 
	 * @ko serverListDirective
	 * @group Directive
	 * @name serverListDirective
	 * @class
	 */
	pinpointApp.directive( "serverListDirective", [ "$timeout", "$window", "AnalyticsService", "TooltipService",
		function ( $timeout, $window, analyticsService, tooltipService ) {
            return {
                restrict: "EA",
				replace: true,
				templateUrl: "features/serverList/serverList.html?v=" + G_BUILD_TIME,
				scope: {
					namespace: "@"
				},
                link: function(scope, element) {
					var bVisible = false;
					var bInitialized = false;
					var $element = $(element);
					scope.bIsNode = true;
					scope.hasScatter = false;
					scope.selectedAgent = "";
					/*

					tooltipService.init( "serverList" );
					*/
					function showLayer() {
						$element.animate({
							"right": 421
						}, 500, function() {});
					}
					function showChart( instanceName, histogram, timeSeriesHistogram ) {
						scope.selectedAgent = instanceName;
						scope.$broadcast('changedCurrentAgent.forServerList', instanceName );
						if ( bInitialized ) {
							scope.$broadcast('responseTimeSummaryChartDirective.updateData.forServerList', histogram);
							scope.$broadcast('loadChartDirective.updateData.forServerList', timeSeriesHistogram);
						} else {
							scope.$broadcast('responseTimeSummaryChartDirective.initAndRenderWithData.forServerList', histogram, '100%', '150px', false, true);
							scope.$broadcast('loadChartDirective.initAndRenderWithData.forServerList', timeSeriesHistogram, '100%', '220px', false, true);
							bInitialized = true;
						}
					}
					function setData(bIsNodeServer, node, oNavbarVoService) {
						scope.bIsNode = bIsNodeServer;
						scope.node = node;
						scope.oNavbarVoService = oNavbarVoService;
						scope.hasScatter = false;
						if ( bIsNodeServer ) {
							scope.bIsNode = true;
							scope.serverList = node.serverList;
							if ( node.isWas ) {
								scope.hasScatter = true;
								if  ( scope.namespace === "forMain" ) {
									scope.$broadcast('scatterDirective.initializeWithNode.forServerList', node);
								} else {
									scope.$broadcast('scatterDirective.showByNode.forServerList', node);
								}
							}
							$timeout(function() {
								var instanceName = $element.find( "._node input[type=radio][checked]" ).val();
								try {
									showChart(instanceName, scope.node.agentHistogram[instanceName], scope.node.agentTimeSeriesHistogram[instanceName]);
								}catch(e) {}
							});
						} else {
							scope.linkList = scope.node.sourceHistogram;
							scope.bIsNode = false;

							$timeout(function () {
								var instanceName = $element.find("._link input[type=radio][checked]").val();
								showChart( instanceName, scope.node.sourceHistogram[instanceName], scope.node.sourceTimeSeriesHistogram[instanceName]);
{'fraction_non_alphanumeric': 0.12843569731930776, 'fraction_numerical': 0.006107906345436036, 'mean_word_length': 3.06551724137931, 'pattern_counts': {'":': 2, '<': 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': '7391406', 'n_tokens_mistral': 2369, 'n_tokens_neox': 1694, 'n_words': 292}