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

        GalleryService.getAvailableGalleries()
        .then(function(res) {
            $scope.galleries = res.data;
        });
        
        $scope.toggleNav = function() {
            $mdSidenav('left').toggle();
        }

        // open sidenav on page loading
        $timeout(function() {
            $mdSidenav('left').open();
        });

        $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'                
            }
        }<commit_msg>request fullscreen mode on first click<commit_after>(function() {
    'use strict';
    
    var galleryController = function($scope, GalleryService, $mdSidenav, $mdPanel, $timeout) {
        $scope.currentDir = "";
        $scope.currentFilter = "";
        $scope.loading = false;

        GalleryService.getAvailableGalleries()
        .then(function(res) {
            $scope.galleries = res.data;
        });
        
        $scope.toggleNav = function() {
            $mdSidenav('left').toggle();
        }

        // open sidenav on page loading
        $timeout(function() {
            $mdSidenav('left').open();
        });

        $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();

            document.documentElement.webkitRequestFullscreen();
        }

        $scope.getBackgroundImage = function(path) {
            return {
                'background-image': 'url(\"' + path + '\")',
                'background-repeat': 'no-repeat',
                'background-size': '100% auto'                
            }
        }
{'fraction_non_alphanumeric': 0.1371580547112462, 'fraction_numerical': 0.0022796352583586625, 'mean_word_length': 1.4792843691148776, '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': '3813643', 'n_tokens_mistral': 723, 'n_tokens_neox': 693, 'n_words': 114}