<commit_before>angular.module("app").controller "UnlockWalletController", ($scope, $rootScope, $interval, Wallet) ->
  $scope.descriptionCollapsed = true
  $scope.wrongPass = false
  $scope.submitForm = ->
    promise = Wallet.wallet_unlock($scope.spending_password).then( () ->
      $scope.history_back()
    , (error) ->
      $scope.wrongPass = true
    )

    i = $interval ->
        Wallet.wallet_get_info().then (info)->
            $rootScope.updateProgress Math.floor(info.wallet_scan_progress * 100)
        , 2000
    $rootScope.showLoadingIndicator promise, i
<commit_msg>Fix Wrong Password Issue<commit_after>angular.module("app").controller "UnlockWalletController", ($scope, $rootScope, $interval, Wallet) ->
  $scope.descriptionCollapsed = true
  $scope.wrongPass = false
  $scope.submitForm = ->
    $scope.wrongPass = false
    promise = Wallet.wallet_unlock($scope.spending_password).then( () ->
      $scope.history_back()
    , (error) ->
      $scope.wrongPass = true
    )

    i = $interval ->
        Wallet.wallet_get_info().then (info)->
            $rootScope.updateProgress Math.floor(info.wallet_scan_progress * 100)
        , 2000
    $rootScope.showLoadingIndicator promise, i

{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.011570247933884297, 'mean_word_length': 3.356115107913669, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5309658', 'n_tokens_mistral': 382, 'n_tokens_neox': 370, 'n_words': 61}