<commit_before>(function() {
	'use strict';
	
	pinpointApp.directive('serverListDirective', [ '$timeout', '$window', '$filter', 'helpContentTemplate', 'helpContentService', function ($timeout, $window, $filter, helpContentTemplate, helpContentService) {
            return {
                restrict: 'A',
                link: function postLink(scope, element) {
                	var bInitialized = false;
                	var bIsNode = false;
                	var $element = jQuery(element);
                	var showModal = function() {
                		$element.modal({});
                	};
                	$element.on('show.bs.modal', function() {
                		var $$window = jQuery($window);
                		$element.css("left", -(( $$window.width() / 2 ) - ( $element.find(".modal-dialog").width() / 2 ) - 20 ) * 2 + "px" );
                		$element.find(".modal-body").css("height", $$window.height() * 0.7 );
                		$element.find(".server-wrapper").css("height", $$window.height() * 0.7 - 70 );
                	});
                	$element.on('hide.bs.modal', function() {
                		//console.log( "hide" );
                	});
                	
                	var getFirstInstanceOfServer = function( list ) {<commit_msg>Adjust server list popup position<commit_after>(function() {
	'use strict';
	
	pinpointApp.directive('serverListDirective', [ '$timeout', '$window', '$filter', 'helpContentTemplate', 'helpContentService', function ($timeout, $window, $filter, helpContentTemplate, helpContentService) {
            return {
                restrict: 'A',
                link: function postLink(scope, element) {
                	var bInitialized = false;
                	var bIsNode = false;
                	var $element = jQuery(element);
                	var showModal = function() {
                		$element.modal({});
                	};
                	$element.on('show.bs.modal', function() {
                		var $$window = jQuery($window);
                		var sidebarWidth = 422;
                		var windowWidth = $$window.width();
                		var modalWidth = $element.find(".modal-dialog").width();
                		var mainWidth = windowWidth - sidebarWidth;
                		var sideWidth = (windowWidth - modalWidth) / 2;
                		if ( mainWidth >= modalWidth ) {
                			$element.css("left", -( sidebarWidth - sideWidth + (mainWidth - modalWidth) / 2) * 2 + "px" );
                		}
                		$element.find(".modal-body").css("height", $$window.height() * 0.7 );
                		$element.find(".server-wrapper").css("height", $$window.height() * 0.7 - 70 );
                	});
                	$element.on('hide.bs.modal', function() {
                		//console.log( "hide" );
                	});
                	
                	var getFirstInstanceOfServer = function( list ) {
{'fraction_non_alphanumeric': 0.14910468319559228, 'fraction_numerical': 0.007920110192837466, 'mean_word_length': 1.59375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1693472', 'n_tokens_mistral': 790, 'n_tokens_neox': 760, 'n_words': 151}