<commit_before>(function () {
    'use strict';

    angular
      .module('password.dialog')
      .factory('dialogService', dialogService);

    function dialogService($mdDialog) {
        var service = {
            close: close,
            fail: fail,
            update: update,
            advice: advice,
            reset: reset,
            help: help,
            areYouSure: areYouSure,
            progress: progress,
            verify: verify,
            noMethods: noMethods
        };

        activate();

        return service;

        //////////////////////////////////////////////////////////////////

        function activate() {
        }

        function close() {
            $mdDialog.hide();
        }
        
        function fail(summary, error) {
            $mdDialog.show({
                templateUrl: 'dialog/failed-dialog.html',
                controller: 'FailedDialogController',
                controllerAs: 'vm',
                locals: {
                    summary: summary,
                    error: error
                }
            });
        }

        function update(message) {
            $mdDialog.show({
                templateUrl: 'dialog/updated-dialog.html',
                controller: 'UpdatedDialogController',
                controllerAs: 'vm',
                locals: {
                    message: message
                }

            });
        }

        function advice(warning, suggestions) {
            $mdDialog.show({
                templateUrl: 'dialog/password-advice-dialog.html',
                controller: 'PasswordAdviceDialogController',
                controllerAs: 'vm',
                locals: {
                    warning: warning,
                    suggestions: suggestions
                }
            });
        }

        function reset(primaryEmail, resetId) {
            $mdDialog.show({
               templateUrl: 'dialog/reset-dialog.html',
               controller: 'ResetDialogController',
               controllerAs: 'vm',
               locals: {
                   sentTo: primaryEmail,
                   resetId: resetId
               },
               escapeToClose: false
           });
        }

        function help(helpInfo) {
            $mdDialog.show({
                templateUrl: 'dialog/help-dialog.html',
                controller: 'HelpDialogController',
                controllerAs: 'vm',
                locals: {
                    helpInfo: helpInfo
                }
            });
        }

        function areYouSure(question) {
            return $mdDialog.show({
                       templateUrl: 'dialog/are-you-sure-dialog.html',
                       controller: 'AreYouSureDialogController',
                       controllerAs: 'vm',
                       locals: {
                           question: question
                       }
                   });
        }

        function progress() {
            $mdDialog.show({
                templateUrl: 'dialog/progress-dialog.html',
                escapeToClose: false
            });
        }

        function verify(sentTo) {
            console.log('gottem');
            dialogService.close();

            $mdDialog.show({
                templateUrl: 'dialog/verify-reset-dialog.html',<commit_msg>remove print statement from code<commit_after>(function () {
    'use strict';

    angular
      .module('password.dialog')
      .factory('dialogService', dialogService);

    function dialogService($mdDialog) {
        var service = {
            close: close,
            fail: fail,
            update: update,
            advice: advice,
            reset: reset,
            help: help,
            areYouSure: areYouSure,
            progress: progress,
            verify: verify,
            noMethods: noMethods
        };

        activate();

        return service;

        //////////////////////////////////////////////////////////////////

        function activate() {
        }

        function close() {
            $mdDialog.hide();
        }
        
        function fail(summary, error) {
            $mdDialog.show({
                templateUrl: 'dialog/failed-dialog.html',
                controller: 'FailedDialogController',
                controllerAs: 'vm',
                locals: {
                    summary: summary,
                    error: error
                }
            });
        }

        function update(message) {
            $mdDialog.show({
                templateUrl: 'dialog/updated-dialog.html',
                controller: 'UpdatedDialogController',
                controllerAs: 'vm',
                locals: {
                    message: message
                }

            });
        }

        function advice(warning, suggestions) {
            $mdDialog.show({
                templateUrl: 'dialog/password-advice-dialog.html',
                controller: 'PasswordAdviceDialogController',
                controllerAs: 'vm',
                locals: {
                    warning: warning,
                    suggestions: suggestions
                }
            });
        }

        function reset(primaryEmail, resetId) {
            $mdDialog.show({
               templateUrl: 'dialog/reset-dialog.html',
               controller: 'ResetDialogController',
               controllerAs: 'vm',
               locals: {
                   sentTo: primaryEmail,
                   resetId: resetId
               },
               escapeToClose: false
           });
        }

        function help(helpInfo) {
            $mdDialog.show({
                templateUrl: 'dialog/help-dialog.html',
                controller: 'HelpDialogController',
                controllerAs: 'vm',
                locals: {
                    helpInfo: helpInfo
                }
            });
        }

        function areYouSure(question) {
            return $mdDialog.show({
                       templateUrl: 'dialog/are-you-sure-dialog.html',
                       controller: 'AreYouSureDialogController',
                       controllerAs: 'vm',
                       locals: {
                           question: question
                       }
                   });
        }

        function progress() {
            $mdDialog.show({
                templateUrl: 'dialog/progress-dialog.html',
                escapeToClose: false
            });
        }

        function verify(sentTo) {
            dialogService.close();

            $mdDialog.show({
                templateUrl: 'dialog/verify-reset-dialog.html',
{'fraction_non_alphanumeric': 0.11094362375640639, 'fraction_numerical': 0.0, 'mean_word_length': 1.040910489080283, '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': '6316422', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1422, 'n_words': 276}