<commit_before>(function($) {
	'use strict';
	/**
	 * (en)ConfigurationCtrl 
	 * @ko ConfigurationCtrl
	 * @group Controller
	 * @name ConfigurationCtrl
	 * @class
	 */
	pinpointApp.constant('ConfigurationConfig', {
	    menu: {
	    	GENERAL: "general",
	    	ALARM: "alarm",
	    	HELP: "help"
	    }
	});	

	pinpointApp.controller('ConfigurationCtrl', [ '$scope','$element', 'ConfigurationConfig', 'AnalyticsService',
	    function ($scope, $element, $constant, analyticsService) {

			$scope.selectMember = true;
			$scope.currentTab = $constant.menu.GENERAL;
			
			// define isGeneral(), isAlram()... func. 
			for( var menu in $constant.menu ) {
				(function( currentMenu ) {
					var funcName = "is" + currentMenu.substring(0, 1).toUpperCase() + currentMenu.substring(1).toLowerCase();
					$scope[funcName] = function() {
						return $scope.currentTab == $constant.menu[currentMenu];
					};
				})(menu);
			}
			
			$($element).on("hidden.bs.modal", function(e) {
				$scope.currentTab = $constant.menu.GENERAL;
				$scope.$broadcast("configuration.alarm.initClose");
				$scope.$broadcast("configuration.general.initClose");
			});
			
			$scope.setCurrentTab = function( tab ) {
				if ( $scope.currentTab == tab ) return;
				$scope.currentTab = tab;
				switch( tab ) {
					case $constant.menu.GENERAL:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_GENERAL );
						$scope.$broadcast( "general.configuration.show");
						break;
					case $constant.menu.ALARM:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_ALARM );
						$scope.$broadcast( "alarmUserGroup.configuration.show");
						break;
					case $constant.menu.HELP:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_HELP );
						break;
				}<commit_msg>bug fix.  cannot focus on input of select2 in modal<commit_after>(function($) {
	'use strict';
	/**
	 * (en)ConfigurationCtrl 
	 * @ko ConfigurationCtrl
	 * @group Controller
	 * @name ConfigurationCtrl
	 * @class
	 */
	pinpointApp.constant('ConfigurationConfig', {
	    menu: {
	    	GENERAL: "general",
	    	ALARM: "alarm",
	    	HELP: "help"
	    }
	});	

	pinpointApp.controller('ConfigurationCtrl', [ '$scope','$element', 'ConfigurationConfig', 'AnalyticsService',
	    function ($scope, $element, $constant, analyticsService) {

			$scope.selectMember = true;
			$scope.currentTab = $constant.menu.GENERAL;
			
			// define isGeneral(), isAlram()... func. 
			for( var menu in $constant.menu ) {
				(function( currentMenu ) {
					var funcName = "is" + currentMenu.substring(0, 1).toUpperCase() + currentMenu.substring(1).toLowerCase();
					$scope[funcName] = function() {
						return $scope.currentTab == $constant.menu[currentMenu];
					};
				})(menu);
			}
			$($element).on("show.bs.modal", function(e) {
				$(this).removeAttr("tabindex");
			});
			
			$($element).on("hidden.bs.modal", function(e) {
				$scope.currentTab = $constant.menu.GENERAL;
				$scope.$broadcast("configuration.alarm.initClose");
				$scope.$broadcast("configuration.general.initClose");
			});
			
			$scope.setCurrentTab = function( tab ) {
				if ( $scope.currentTab == tab ) return;
				$scope.currentTab = tab;
				switch( tab ) {
					case $constant.menu.GENERAL:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_GENERAL );
						$scope.$broadcast( "general.configuration.show");
						break;
					case $constant.menu.ALARM:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_ALARM );
						$scope.$broadcast( "alarmUserGroup.configuration.show");
						break;
					case $constant.menu.HELP:
						analyticsService.send( analyticsService.CONST.MAIN, analyticsService.CONST.CLK_HELP );
						break;
				}
{'fraction_non_alphanumeric': 0.153906659674882, 'fraction_numerical': 0.0018353434714210803, 'mean_word_length': 3.461988304093567, 'pattern_counts': {'":': 0, '<': 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': '3836522', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1158, 'n_words': 201}