<commit_before>export let controllerName = 'WelcomeController';
export default /*@ngInject*/ function WelcomeController(
  $ionicModal,
  $scope,
  R,
  state,
  session,
  storage
) {
  session.preparePublic()
    .then(() => {
      this.openPasswordPromptModal = function openPasswordPromptModal() {
        this.passwordPromptModal = $ionicModal.fromTemplate(
          `
          <toc-password-prompt-modal class="toc-modal-container"
            remove-modal="welcomeView.passwordPromptModal.remove()"
            show-modal="welcomeView.passwordPromptModal.show()"
            hide-modal="welcomeView.passwordPromptModal.hide()">
          </toc-password-prompt-modal>
          `,
          {
            scope: $scope,
            backdropClickToClose: false,
            hardwareBackButtonToClose: false
          }
        );

        this.passwordPromptModal.show();
      };

      this.openPasswordPromptModal();
    });
}
<commit_msg>Fixed wrong ionic modal parameter name<commit_after>export let controllerName = 'WelcomeController';
export default /*@ngInject*/ function WelcomeController(
  $ionicModal,
  $scope,
  R,
  state,
  session,
  storage
) {
  session.preparePublic()
    .then(() => {
      this.openPasswordPromptModal = function openPasswordPromptModal() {
        this.passwordPromptModal = $ionicModal.fromTemplate(
          `
          <toc-password-prompt-modal class="toc-modal-container"
            remove-modal="welcomeView.passwordPromptModal.remove()"
            show-modal="welcomeView.passwordPromptModal.show()"
            hide-modal="welcomeView.passwordPromptModal.hide()">
          </toc-password-prompt-modal>
          `,
          {
            scope: $scope,
            backdropClickToClose: false,
            hardwareBackButtonClose: false
          }
        );

        this.passwordPromptModal.show();
      };

      this.openPasswordPromptModal();
    });
}

{'fraction_non_alphanumeric': 0.11440457618304732, 'fraction_numerical': 0.0, 'mean_word_length': 2.4234875444839856, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4219273', 'n_tokens_mistral': 548, 'n_tokens_neox': 522, 'n_words': 77}