<commit_before>'use strict';

angular.module('arachne.controllers')

    .controller('EntityController', ['$rootScope', '$stateParams', 'searchService', '$scope', '$uibModal', 'Entity', '$location', 'arachneSettings', 'Catalog', 'CatalogEntry', 'authService', 'categoryService', 'Query', 'message',
        function ($rootScope, $stateParams, searchService, $scope, $uibModal, Entity, $location, arachneSettings, Catalog, CatalogEntry, authService, categoryService, Query, message) {

            $rootScope.hideFooter = false;

            $scope.user = authService.getUser();
            $scope.serverUri = "http://" + document.location.host + document.getElementById('baseLink').getAttribute("href");

            categoryService.getCategoriesAsync().then(function (categories) {
                $scope.categories = categories;
            });

            $scope.currentQuery = searchService.currentQuery();

            $scope.catalogEntries = [];
            $scope.activeCatalogEntry = $location.search().catalogEntry;

            $scope.go = function (path) {
                $location.url(path);
            };

            if (authService.getUser()) {
                $scope.catalogs = Catalog.query();
            }

            $scope.createEntry = function () {

                //TODO: Parse Sections in entry.text
                var createEntryPos = $uibModal.open({<commit_msg>removes unused catalogs request from entity controller<commit_after>'use strict';

angular.module('arachne.controllers')

    .controller('EntityController', ['$rootScope', '$stateParams', 'searchService', '$scope', '$uibModal', 'Entity', '$location', 'arachneSettings', 'Catalog', 'CatalogEntry', 'authService', 'categoryService', 'Query', 'message',
        function ($rootScope, $stateParams, searchService, $scope, $uibModal, Entity, $location, arachneSettings, Catalog, CatalogEntry, authService, categoryService, Query, message) {

            $rootScope.hideFooter = false;

            $scope.user = authService.getUser();
            $scope.serverUri = "http://" + document.location.host + document.getElementById('baseLink').getAttribute("href");

            categoryService.getCategoriesAsync().then(function (categories) {
                $scope.categories = categories;
            });

            $scope.currentQuery = searchService.currentQuery();

            $scope.catalogEntries = [];
            $scope.activeCatalogEntry = $location.search().catalogEntry;

            $scope.go = function (path) {
                $location.url(path);
            };

            $scope.createEntry = function () {

                //TODO: Parse Sections in entry.text
                var createEntryPos = $uibModal.open({
{'fraction_non_alphanumeric': 0.14096916299559473, 'fraction_numerical': 0.0, 'mean_word_length': 2.7952646239554317, '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': '5290809', 'n_tokens_mistral': 706, 'n_tokens_neox': 678, 'n_words': 137}