<commit_before>angular.module('PaperUI', [ 'PaperUI.controllers', 'PaperUI.controllers.control', 'PaperUI.controllers.setup', 'PaperUI.controllers.configuration', 'PaperUI.controllers.extension', 'PaperUI.controllers.rules', 'PaperUI.services', 'PaperUI.services.rest', 'PaperUI.services.repositories', 'PaperUI.extensions', 'ngRoute', 'ngResource', 'ngMaterial', 'ngMessages' ]).config([ '$routeProvider', '$httpProvider', 'globalConfig', function($routeProvider, httpProvider, globalConfig) {
    $routeProvider.when('/control', {
        templateUrl : 'partials/control.html',
        controller : 'ControlPageController',
        title : 'Control',
        simpleHeader : true
    }).when('/setup', {
        redirectTo : '/inbox/search'
    }).when('/inbox', {
        redirectTo : '/inbox/search'
    }).when('/inbox/setup', {
        redirectTo : '/inbox/setup/bindings'
    }).when('/inbox/search', {
        templateUrl : 'partials/setup.html',
        controller : 'InboxController',
        title : 'Inbox'
    }).when('/inbox/manual-setup/choose', {
        templateUrl : 'partials/setup.html',
        controller : 'ManualSetupChooseController',
        title : 'Inbox'
    }).when('/inbox/manual-setup/configure/:thingTypeUID', {
        templateUrl : 'partials/setup.html',
        controller : 'ManualSetupConfigureController',
        title : 'Inbox'
    }).when('/inbox/setup/bindings', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/search/:bindingId', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/thing-types/:bindingId', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/add/:thingTypeUID', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/configuration', {
        redirectTo : '/configuration/bindings'
    }).when('/configuration/bindings', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/services', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/groups', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things/view/:thingUID', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things/edit/:thingUID', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/extensions', {
        templateUrl : 'partials/extensions.html',
        controller : 'ExtensionPageController',
        title : 'Extensions'
    }).when('/rules', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/new', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/view/:ruleUID', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/configure/:ruleUID', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/preferences', {
        templateUrl : 'partials/preferences.html',
        controller : 'PreferencesPageController',
        title : 'Preferences'
    });
    if (globalConfig.defaultRoute) {
        $routeProvider.otherwise({
            redirectTo : globalConfig.defaultRoute
        });
    } else {
        $routeProvider.otherwise({
            redirectTo : '/control'
        });
    }
} ]).directive('editableitemstate', function() {
    return function($scope, $element) {
        $element.context.addEventListener('focusout', function(e) {
            $scope.sendCommand($($element).html());
        });
    };
}).directive('onFinishRender', function($timeout) {
    return {
        restrict : 'A',
        link : function(scope, element, attr) {
            if (scope.$last === true) {
                $timeout(function() {
                    scope.$emit('ngRepeatFinished');
                });
            }
        }
    }
}).directive('isrequired', function() {
    return {
        restrict : 'A',
        require : 'ngModel',
        link : function(scope, element, attrs, ngModel) {

            element[0].addEventListener('click', function() {
                scope.$watch(attrs.ngModel, function(value) {
                    if ((value === undefined || value == "") && attrs.isrequired){element.addClass('border-invalid');} else {element.removeClass('border-invalid');}
                });
            });

        }
    };
}).run([ '$location', '$rootScope', 'globalConfig', function($location, $rootScope, globalConfig) {
    var original = $location.path;<commit_msg>Paper UI: app.js refers removed groups configuration<commit_after>angular.module('PaperUI', [ 'PaperUI.controllers', 'PaperUI.controllers.control', 'PaperUI.controllers.setup', 'PaperUI.controllers.configuration', 'PaperUI.controllers.extension', 'PaperUI.controllers.rules', 'PaperUI.services', 'PaperUI.services.rest', 'PaperUI.services.repositories', 'PaperUI.extensions', 'ngRoute', 'ngResource', 'ngMaterial', 'ngMessages' ]).config([ '$routeProvider', '$httpProvider', 'globalConfig', function($routeProvider, httpProvider, globalConfig) {
    $routeProvider.when('/control', {
        templateUrl : 'partials/control.html',
        controller : 'ControlPageController',
        title : 'Control',
        simpleHeader : true
    }).when('/setup', {
        redirectTo : '/inbox/search'
    }).when('/inbox', {
        redirectTo : '/inbox/search'
    }).when('/inbox/setup', {
        redirectTo : '/inbox/setup/bindings'
    }).when('/inbox/search', {
        templateUrl : 'partials/setup.html',
        controller : 'InboxController',
        title : 'Inbox'
    }).when('/inbox/manual-setup/choose', {
        templateUrl : 'partials/setup.html',
        controller : 'ManualSetupChooseController',
        title : 'Inbox'
    }).when('/inbox/manual-setup/configure/:thingTypeUID', {
        templateUrl : 'partials/setup.html',
        controller : 'ManualSetupConfigureController',
        title : 'Inbox'
    }).when('/inbox/setup/bindings', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/search/:bindingId', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/thing-types/:bindingId', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/inbox/setup/add/:thingTypeUID', {
        templateUrl : 'partials/setup.html',
        controller : 'SetupWizardController',
        title : 'Inbox'
    }).when('/configuration', {
        redirectTo : '/configuration/bindings'
    }).when('/configuration/bindings', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/services', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things/view/:thingUID', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/configuration/things/edit/:thingUID', {
        templateUrl : 'partials/configuration.html',
        controller : 'ConfigurationPageController',
        title : 'Configuration'
    }).when('/extensions', {
        templateUrl : 'partials/extensions.html',
        controller : 'ExtensionPageController',
        title : 'Extensions'
    }).when('/rules', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/new', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/view/:ruleUID', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/rules/configure/:ruleUID', {
        templateUrl : 'partials/rules.html',
        controller : 'RulesPageController',
        title : 'Rules'
    }).when('/preferences', {
        templateUrl : 'partials/preferences.html',
        controller : 'PreferencesPageController',
        title : 'Preferences'
    });
    if (globalConfig.defaultRoute) {
        $routeProvider.otherwise({
            redirectTo : globalConfig.defaultRoute
        });
    } else {
        $routeProvider.otherwise({
            redirectTo : '/control'
        });
    }
} ]).directive('editableitemstate', function() {
    return function($scope, $element) {
        $element.context.addEventListener('focusout', function(e) {
            $scope.sendCommand($($element).html());
        });
    };
}).directive('onFinishRender', function($timeout) {
    return {
        restrict : 'A',
        link : function(scope, element, attr) {
            if (scope.$last === true) {
                $timeout(function() {
                    scope.$emit('ngRepeatFinished');
                });
            }
        }
    }
}).directive('isrequired', function() {
    return {
        restrict : 'A',
        require : 'ngModel',
        link : function(scope, element, attrs, ngModel) {

            element[0].addEventListener('click', function() {
                scope.$watch(attrs.ngModel, function(value) {
                    if ((value === undefined || value == "") && attrs.isrequired) {
                        element.addClass('border-invalid');
                    } else {
                        element.removeClass('border-invalid');
                    }
                });
            });

        }
    };
}).run([ '$location', '$rootScope', 'globalConfig', function($location, $rootScope, globalConfig) {
    var original = $location.path;
{'fraction_non_alphanumeric': 0.15544464609800362, 'fraction_numerical': 0.00018148820326678765, 'mean_word_length': 2.591072010426849, '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': '5562326', 'n_tokens_mistral': 2937, 'n_tokens_neox': 2896, 'n_words': 479}