<commit_before>(function() {
    'use strict';
    
    var galleryController = function($scope, GalleryService, $mdSidenav, $mdPanel, $controller) {
        $scope.currentDir = "";
        $scope.currentFilter = "";
        $scope.loading = false;

        GalleryService.getAvailableGalleries()
        .then(function(res) {
            $scope.galleries = res.data;
        });
        
        $scope.toggleNav = function() {
            $mdSidenav('left').toggle();
        }
        
        $scope.getFiles = function(dir) {
            GalleryService.getFiles(dir)
            .then(function(res) {
                $scope.files = res.data;
                $scope.currentDir = dir;
                $scope.loading = false;
            });
            
            $scope.files = null;
            $scope.loading = true;
            $mdSidenav('left').toggle();
        }

        $scope.getBackgroundImage = function(path) {
            return {
                'background-image': 'url(\"' + path + '\")',
                'background-repeat': 'no-repeat',
                'background-size': '100% auto'                
            }
        }

        $scope.showPanel = function(file) {
            $mdPanel.open({
                attachTo: angular.element(document.body),
                controller: fgalleryglobals.panelController,    // mortal sin done because of reasons
                                                                // 'PanelController' doesn't work (but it should)
                                                                // Feel free to send a PR if you know do this the right way
                controllerAs: 'ctrl',
                disableParentScroll: true,
                templateUrl: 'views/panel.html',
                hasBackdrop: true,
                panelClass: 'photo-panel',
                position: $mdPanel.newPanelPosition().absolute().center(),
                trapFocus: true,
                zIndex: 150,
                clickOutsideToClose: false, // will enable it, just have to figure out why sometimes it doesn't work
                escapeToClose: false,
                focusOnOpen: true,
                fileObject: file
            });
        }
    };
    
    angular.module('fgallery-controllers').controller(
        'GalleryController',
        [ '$scope', 'GalleryService', '$mdSidenav', '$mdPanel', '$controller', galleryController ]
    );
})();<commit_msg>Removed useless dependency<commit_after>(function() {
    'use strict';
    
    var galleryController = function($scope, GalleryService, $mdSidenav, $mdPanel) {
        $scope.currentDir = "";
        $scope.currentFilter = "";
        $scope.loading = false;

        GalleryService.getAvailableGalleries()
        .then(function(res) {
            $scope.galleries = res.data;
        });
        
        $scope.toggleNav = function() {
            $mdSidenav('left').toggle();
        }
        
        $scope.getFiles = function(dir) {
            GalleryService.getFiles(dir)
            .then(function(res) {
                $scope.files = res.data;
                $scope.currentDir = dir;
                $scope.loading = false;
            });
            
            $scope.files = null;
            $scope.loading = true;
            $mdSidenav('left').toggle();
        }

        $scope.getBackgroundImage = function(path) {
            return {
                'background-image': 'url(\"' + path + '\")',
                'background-repeat': 'no-repeat',
                'background-size': '100% auto'                
            }
        }

        $scope.showPanel = function(file) {
            $mdPanel.open({
                attachTo: angular.element(document.body),
                controller: fgalleryglobals.panelController,    // mortal sin done because of reasons
                                                                // 'PanelController' doesn't work (but it should)
                                                                // Feel free to send a PR if you know do this the right way
                controllerAs: 'ctrl',
                disableParentScroll: true,
                templateUrl: 'views/panel.html',
                hasBackdrop: true,
                panelClass: 'photo-panel',
                position: $mdPanel.newPanelPosition().absolute().center(),
                trapFocus: true,
                zIndex: 150,
                clickOutsideToClose: false, // will enable it, just have to figure out why sometimes it doesn't work
                escapeToClose: false,
                focusOnOpen: true,
                fileObject: file
            });
        }
    };
    
    angular.module('fgallery-controllers').controller(
        'GalleryController',
        [ '$scope', 'GalleryService', '$mdSidenav', '$mdPanel', galleryController ]
    );
})();
{'fraction_non_alphanumeric': 0.11420325706039992, 'fraction_numerical': 0.0024737167594310453, 'mean_word_length': 1.377266046055855, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6701683', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1159, 'n_words': 250}