<commit_before>/*
*  Directives
*/
// Sidenav
angular.module('app.directives', [])
    .directive('siteSidenav', function () {
        var SidenavController = function ($scope, $mdSidenav) {
            console.info('Successfully loaded!');

            $scope.main = [
                { url: 'https://chan4077.github.io', title: 'Main', icon: 'home' },
                { url: 'https://chan4077.github.io/about', title: 'About Me', icon: 'account-box' },
                { url: 'https://chan4077.github.io/blog', title: 'Blog', icon: 'blogger' },
                { url: 'https://chan4077.github.io/media', title: 'Social Media', icon: 'google-plus' },
                { url: 'https://chan4077.github.io/angular', title: 'Angular', icon: 'angular' },
            ];
            $scope.other = [
                { url: 'https://github.com/Chan4077/chan4077.github.io', title: 'Project Page', icon: 'github-circle' },
                { url: 'https://chan4077.github.io/preferences', title: 'Preferences', icon: 'settings' },
                { url: 'https://chan4077.github.io/help', title: 'Get Help', icon: 'help-circle' },
                { url: 'https://chan4077.github.io/beta', title: 'Beta', icon: ''}
            ];
            $scope.projects = [
                { url: 'https://chan4077.github.io/projects', title: 'Projects', icon: '' },
                { url: 'https://chan4077.github.io/MyFirstApp', title: 'MyFirstApp', icon: '' },
                { url: 'https://chan4077.github.io/icons', title: 'Icons', icon: '' }
            ]
            // Toggle left sidenav
            $scope.openLeftMenu = function () {
                $mdSidenav('left').toggle();
            }
        };
        return {
            restrict: 'E',
            templateUrl: '/templates/sidenav.html',
            transclude: true,
            controller: SidenavController
        };
    })
    // Toolbar
    .directive('siteToolbar', function () {
        return {
            restrict: 'E',
            templateUrl: '/templates/toolbar.html',
            transclude: true,
            controller: function ToolbarController($scope, $location, $mdDialog, $mdToast) {
                console.info('Loaded!');
                if ($location.path().indexOf('beta') > -1) {
                    $scope.title = 'Beta';
                } else if ($location.path().indexOf('beta/blog.html') > -1) {
                    $scope.title = 'Beta Blog';
                } else if ($location.path().indexOf('help') > -1) {<commit_msg>feat(sidenav) - Add md-video project<commit_after>/*
*  Directives
*/
// Sidenav
angular.module('app.directives', [])
    .directive('siteSidenav', function () {
        var SidenavController = function ($scope, $mdSidenav) {
            console.info('Successfully loaded!');

            $scope.main = [
                { url: 'https://chan4077.github.io', title: 'Main', icon: 'home' },
                { url: 'https://chan4077.github.io/about', title: 'About Me', icon: 'account-box' },
                { url: 'https://chan4077.github.io/blog', title: 'Blog', icon: 'blogger' },
                { url: 'https://chan4077.github.io/media', title: 'Social Media', icon: 'google-plus' },
                { url: 'https://chan4077.github.io/angular', title: 'Angular', icon: 'angular' },
            ];
            $scope.other = [
                { url: 'https://github.com/Chan4077/chan4077.github.io', title: 'Project Page', icon: 'github-circle' },
                { url: 'https://chan4077.github.io/preferences', title: 'Preferences', icon: 'settings' },
                { url: 'https://chan4077.github.io/help', title: 'Get Help', icon: 'help-circle' },
                { url: 'https://chan4077.github.io/beta', title: 'Beta', icon: ''}
            ];
            $scope.projects = [
                { url: 'https://chan4077.github.io/projects', title: 'Projects', icon: '' },
                { url: 'https://chan4077.github.io/MyFirstApp', title: 'MyFirstApp', icon: '' },
                { url: 'https://chan4077.github.io/icons', title: 'Icons', icon: '' },
                { url: 'https://chan4077.github.io/md-video', title: 'md-video', icon: 'play'}
            ]
            // Toggle left sidenav
            $scope.openLeftMenu = function () {
                $mdSidenav('left').toggle();
            }
        };
        return {
            restrict: 'E',
            templateUrl: '/templates/sidenav.html',
            transclude: true,
            controller: SidenavController
        };
    })
    // Toolbar
    .directive('siteToolbar', function () {
        return {
            restrict: 'E',
            templateUrl: '/templates/toolbar.html',
            transclude: true,
            controller: function ToolbarController($scope, $location, $mdDialog, $mdToast) {
                console.info('Loaded!');
                if ($location.path().indexOf('beta') > -1) {
                    $scope.title = 'Beta';
                } else if ($location.path().indexOf('beta/blog.html') > -1) {
                    $scope.title = 'Beta Blog';
                } else if ($location.path().indexOf('help') > -1) {
{'fraction_non_alphanumeric': 0.1763675296865875, 'fraction_numerical': 0.022191940821491143, 'mean_word_length': 1.8215266337177376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 25, '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': '3348310', 'n_tokens_mistral': 1591, 'n_tokens_neox': 1493, 'n_words': 281}