<commit_before>(function(angular) {
    "use strict";
    angular.module('EscreeningDashboardApp.services.assessmentVariable').directive('mheHideDropdownMenu', ['$document', function($document) {
        return {
            restrict: 'A',
            link: function(scope, elem, attr, ctrl) {
                elem.bind('click', function(e) {
                    e.stopPropagation();
                });
                $document.bind('click', function() {
                    scope.$apply(attr.mheHideDropdownMenu);
                })
            }
        }
    }]);

    angular.module('EscreeningDashboardApp.services.assessmentVariable').directive('mheAssessmentVarDropdownMenuDir', [function() {
        return {
            restrict: 'EA',
            scope: {
                guid: '='
            },
            transclude: true,
            controller: ['$scope', '$rootScope', 'limitToWithEllipsisFilter', function ($scope, $rootScope, limitToWithEllipsisFilter) {
                var toggleAssessmentVariableSelectionTable = function() {
                    $scope.showAssessmentVariableSelectionTable = ($scope.showAssessmentVariableSelectionTable)? false: true;
                };
                //$scope.guid = "assessment-variable-menu-" + new Date().getTime();
                $scope.showAssessmentVariableSelectionTable = false;

                $scope.displayAssessmentVariableSelectionTable = function (){
                    toggleAssessmentVariableSelectionTable();
                };
                $scope.hideDropDownMenu = function (){
                    $scope.showAssessmentVariableSelectionTable = false;
                };

                $rootScope.$on('closeAssessmentVariableMenuRequested', function(event, data) {
                    if(!Object.isDefined(data)) {
                        throw new BytePushers.exceptions.NullPointerException("data parameter can not be undefined or null.");
                    }

                    if($scope.guid === data.guid) {
                        if(!Object.isDefined(data.selectedVariableName)){
                            throw new BytePushers.exceptions.NullPointerException("data.selectedVariableName parameter can not be undefined or null.");<commit_msg>#660 - removed unnecessary comments.<commit_after>(function(angular) {
    "use strict";
    angular.module('EscreeningDashboardApp.services.assessmentVariable').directive('mheHideDropdownMenu', ['$document', function($document) {
        return {
            restrict: 'A',
            link: function(scope, elem, attr, ctrl) {
                elem.bind('click', function(e) {
                    e.stopPropagation();
                });
                $document.bind('click', function() {
                    scope.$apply(attr.mheHideDropdownMenu);
                })
            }
        }
    }]);

    angular.module('EscreeningDashboardApp.services.assessmentVariable').directive('mheAssessmentVarDropdownMenuDir', [function() {
        return {
            restrict: 'EA',
            scope: {
                guid: '='
            },
            transclude: true,
            controller: ['$scope', '$rootScope', 'limitToWithEllipsisFilter', function ($scope, $rootScope, limitToWithEllipsisFilter) {
                var toggleAssessmentVariableSelectionTable = function() {
                    $scope.showAssessmentVariableSelectionTable = ($scope.showAssessmentVariableSelectionTable)? false: true;
                };

                $scope.showAssessmentVariableSelectionTable = false;

                $scope.displayAssessmentVariableSelectionTable = function (){
                    toggleAssessmentVariableSelectionTable();
                };
                $scope.hideDropDownMenu = function (){
                    $scope.showAssessmentVariableSelectionTable = false;
                };

                $rootScope.$on('closeAssessmentVariableMenuRequested', function(event, data) {
                    if(!Object.isDefined(data)) {
                        throw new BytePushers.exceptions.NullPointerException("data parameter can not be undefined or null.");
                    }

                    if($scope.guid === data.guid) {
                        if(!Object.isDefined(data.selectedVariableName)){
                            throw new BytePushers.exceptions.NullPointerException("data.selectedVariableName parameter can not be undefined or null.");
{'fraction_non_alphanumeric': 0.1076923076923077, 'fraction_numerical': 0.0006787330316742081, 'mean_word_length': 1.957190635451505, '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': '6352458', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1016, 'n_words': 166}