<commit_before>myApp.controller('logInConfirmController', ['$scope', '$location', function($scope, $location) {




    $scope.keyPressed = function(keyCode) {

        pword = $scope.typedCode;

        switch (keyCode) {
            case -3:
                var codeLength = $scope.typedCode.length;
                if (codeLength > 0) {
                    $scope.typedCode = $scope.typedCode.substr(0, codeLength - 1);
                }
                break;
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 0:
                if (!/^\d+$/.test(pword)) {
                    $scope.typedCode = keyCode;
                } else {
                    $scope.typedCode += '' + keyCode;
                }
                break;

        }

        if ($scope.typedCode.length == 6) {
            if ($scope.typedCode == 111111) {
                $location.path('templates/member');
            } else {
                $scope.typedCode = "";
            }
        }

    };

    $scope.goHome = function() {

        $location.path('templates/home');

    }


}]);
<commit_msg>fix issue login<commit_after>myApp.controller('logInConfirmController', ['$scope', '$location', function($scope, $location) {




    $scope.keyPressed = function(keyCode) {

        pword = $scope.typedCode;

        switch (keyCode) {
            case -3:
                var codeLength = $scope.typedCode.length;
                if (codeLength > 0) {
                    $scope.typedCode = $scope.typedCode.substr(0, codeLength - 1);
                }else{
                    $scope.typedCode = "";
                }
                break;
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 0:
                if (!/^\d+$/.test(pword)) {
                    $scope.typedCode = keyCode;
                } else {
                    $scope.typedCode += '' + keyCode;
                }
                break;

        }

        if ($scope.typedCode.length == 6) {
            if ($scope.typedCode == 111111) {
                $location.path('templates/member');
            } else {
                $scope.typedCode = "";
            }
        }

    };

    $scope.goHome = function() {

        $location.path('templates/home');

    }


}]);

{'fraction_non_alphanumeric': 0.1254964257347101, 'fraction_numerical': 0.016679904686258934, 'mean_word_length': 1.0580065359477124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6521237', 'n_tokens_mistral': 772, 'n_tokens_neox': 679, 'n_words': 132}