<commit_before>var app = angular.module('testApp', ['ngMaterial']);
// Config
app.config(function ($mdThemingProvider) {
    $mdThemingProvider.theme('default')
        .primaryPalette('green')
        .accentPalette('purple');
});
app.controller('MainController', function ($scope, $mdSidenav, $mdDialog) {
    $scope.openLeftMenu = function () {
        $mdSidenav('left').toggle();
    };
    $scope.oriFeedback = {
        name: "",
        email: "",
        sendFeedback: ""
    };
    // Declare a variable called oriFeedback
    var oriFeedback = angular.copy($scope.oriFeedback);
    // On initial, set feedback to original
    $scope.feedback = angular.copy(oriFeedback);
    // Reset form
    $scope.reset = function () {
        $scope.feedback = angular.copy(oriFeedback);
        // Reset form
        $scope.feedbackbeta.$setPristine();
        // Reset validation errors
        $scope.feedbackbeta.$setUntouched();
    };
    // More menu
    var originatorEv;

    $scope.openMenu = function ($mdOpenMenu, ev) {
        originatorEv = ev;
        $mdOpenMenu(ev);
    };
    // Menu ngRepeat
    $scope.menu = [
        { text: 'What\'s New', icon: 'new_releases', onclick: 'whats_new($event)'},
        { text: 'Settings', icon: 'settings', onclick: 'settings($event)'},
        { text: 'Report A Problem', icon: 'report_problem', onclick: ''},
        { text: 'Submit Bug Report', icon: 'bug_report', onclick: ''}
    ];
    // End ngRepeat

    // Initialize switches
    $scope.switch = {
        form_debug: false,
    };
    // $mdDialog (start)
    $scope.whats_new = function (ev) {
        $mdDialog.show({
            controller: DialogController,
            templateUrl: 'whats_new_tmpl.html',
            parent: angular.element(document.body),
            targetEvent: ev,
            clickOutsideToClose: true,
        });
    };
    $scope.settings = function (ev) {
        $mdDialog.show({
            controller: DialogController,
            teplateUrl: 'settings_tmpl.html',
            parent: angular.element(document.body),
            targetEvent: ev,
            clickOutsideToClose: true,
        });
    };

    // $mdDialog (end)
    
    function DialogController($scope, $mdDialog) {
        $scope.hide = function () {
            $mdDialog.hide();
        };
        $scope.cancel = function () {
            $mdDialog.cancel();
        };
    };

});

app.controller('SideNavController', function ($scope) {
    $scope.top = [
        { url: 'https://chan4077.github.io', title: 'Main', icon: 'home', class: 'material-icons' },
        { url: 'https://chan4077.github.io/about', title: 'About Me', icon: 'account_box', class: 'material-icons' },
        { url: 'https://chan4077.github.io/blog', title: 'Blog', icon: '', class: '' },
        { url: 'https://chan4077.github.io/media', title: 'Social Media', icon: 'group', class: 'material-icons' },
        { url: 'https://chan4077.github.io/preferences', title: 'Preferences', icon: 'settings', class: 'material-icons' },
        { url: 'https://chan4077.github.io/angular', title: 'Angular', icon: '' },
        { url: 'https://github.com/Chan4077/chan4077.github.io', title: 'Project Page', icon: '' }
    ];
});<commit_msg>Formatting<commit_after>var app = angular.module('testApp', ['ngMaterial']);
// Config
app.config(function ($mdThemingProvider) {
    $mdThemingProvider.theme('default')
        .primaryPalette('green')
        .accentPalette('purple');
});
app.controller('MainController', function ($scope, $mdSidenav, $mdDialog) {
    $scope.openLeftMenu = function () {
        $mdSidenav('left').toggle();
    };
    $scope.oriFeedback = {
        name: "",
        email: "",
        sendFeedback: ""
    };
    // Declare a variable called oriFeedback
    var oriFeedback = angular.copy($scope.oriFeedback);

    // On initial, set feedback to original
    $scope.feedback = angular.copy(oriFeedback);

    // Reset form
    $scope.reset = function () {
        $scope.feedback = angular.copy(oriFeedback);
        // Reset form
        $scope.feedbackbeta.$setPristine();
        // Reset validation errors
        $scope.feedbackbeta.$setUntouched();
    };

    // More menu
    var originatorEv;

    $scope.openMenu = function ($mdOpenMenu, ev) {
        originatorEv = ev;
        $mdOpenMenu(ev);
    };

    // Menu ngRepeat
    $scope.menu = [
        { text: 'What\'s New', icon: 'new_releases', onclick: 'whats_new($event)' },
        { text: 'Settings', icon: 'settings', onclick: 'settings($event)' },
        { text: 'Report A Problem', icon: 'report_problem', onclick: '' },
        { text: 'Submit Bug Report', icon: 'bug_report', onclick: '' }
    ];
    // End ngRepeat

    // Initialize switches
    $scope.switch = {
        form_debug: false,
    };
    // $mdDialog (start)
    $scope.whats_new = function (ev) {
        $mdDialog.show({
            controller: DialogController,
            templateUrl: 'whats_new_tmpl.html',
            parent: angular.element(document.body),
            targetEvent: ev,
            clickOutsideToClose: true,
        });
    };
    $scope.settings = function (ev) {
        $mdDialog.show({
            controller: DialogController,
            teplateUrl: 'settings_tmpl.html',
            parent: angular.element(document.body),
            targetEvent: ev,
            clickOutsideToClose: true,
        });
    };

    // $mdDialog (end)

    function DialogController($scope, $mdDialog) {
        $scope.hide = function () {
            $mdDialog.hide();
        };
        $scope.cancel = function () {
            $mdDialog.cancel();
        };
    };

});

app.controller('SideNavController', function ($scope) {
    $scope.top = [
        { url: 'https://chan4077.github.io', title: 'Main', icon: 'home', class: 'material-icons' },
        { url: 'https://chan4077.github.io/about', title: 'About Me', icon: 'account_box', class: 'material-icons' },
        { url: 'https://chan4077.github.io/blog', title: 'Blog', icon: '', class: '' },
        { url: 'https://chan4077.github.io/media', title: 'Social Media', icon: 'group', class: 'material-icons' },
        { url: 'https://chan4077.github.io/preferences', title: 'Preferences', icon: 'settings', class: 'material-icons' },
        { url: 'https://chan4077.github.io/angular', title: 'Angular', icon: '' },
        { url: 'https://github.com/Chan4077/chan4077.github.io', title: 'Project Page', icon: '' }
    ];
});
{'fraction_non_alphanumeric': 0.1668472372697725, 'fraction_numerical': 0.009905587370376103, 'mean_word_length': 2.431757833244822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, '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': '600973', 'n_tokens_mistral': 2013, 'n_tokens_neox': 1935, 'n_words': 390}