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

  angular
    .module('vmsFrontend')
    .controller('CreateProjectController', CreateProjectController);

  /** @ngInject */
  function CreateProjectController(
    $log,
    $state,
    $translate,
    project,
    projectHyperlink,
    PERMISSION_OPTIONS,
    FROALA_OPTIONS
  ) {
    var vm = this;
    vm.permissionOptions = PERMISSION_OPTIONS;
    vm.froalaOptions = FROALA_OPTIONS;
    vm.hyperlinks = [
      {
        name: '',
        link: ''
      }
    ];

    vm.create = function() {
      vm.alert = [];

      project
        .create(vm.project)
        .then(function(value) {
          $log.debug(value);

          var projectId = value.data.id;

          storeHyperlinks(projectId);
        })
        .catch(function(alert) {
          vm.alert.push(alert);
        });<commit_msg>Fix the error that change page after creating project<commit_after>(function() {
  'use strict';

  angular
    .module('vmsFrontend')
    .controller('CreateProjectController', CreateProjectController);

  /** @ngInject */
  function CreateProjectController(
    $log,
    $state,
    $translate,
    project,
    projectHyperlink,
    PERMISSION_OPTIONS,
    FROALA_OPTIONS
  ) {
    var vm = this;
    vm.permissionOptions = PERMISSION_OPTIONS;
    vm.froalaOptions = FROALA_OPTIONS;
    vm.hyperlinks = [
      {
        name: '',
        link: ''
      }
    ];

    vm.create = function() {
      vm.alert = [];

      project
        .create(vm.project)
        .then(function(value) {
          $log.debug(value);

          var projectId = value.id;

          storeHyperlinks(projectId);
        })
        .catch(function(alert) {
          vm.alert.push(alert);
        });
{'fraction_non_alphanumeric': 0.1239193083573487, 'fraction_numerical': 0.0, 'mean_word_length': 2.088967971530249, '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': '1449313', 'n_tokens_mistral': 549, 'n_tokens_neox': 532, 'n_words': 88}