<commit_before>'use strict';

// Setting up route
angular.module('quizzes').config(['$stateProvider',
  function ($stateProvider) {
    // Quizzes state routing
    $stateProvider
      .state('quizzes', {
        abstract: true,
        url: '/quizzes',
        template: '<ui-view/>'
      })
      .state('quizzes.list', {
        url: '',
        templateUrl: 'modules/quizzes/client/views/list-quizzes.client.view.html'
      })
      .state('quizzes.create', {
        url: '/create',
        templateUrl: 'modules/quizzes/client/views/create-quiz.client.view.html',
        data: {
          roles: ['user', 'admin']
        }
      })
      .state('quizzes.view', {
        url: '/:quizId',
        templateUrl: 'modules/quizzes/client/views/view-quiz.client.view.html'
      })
      .state('quizzes.edit', {
        url: '/:quizId/edit',
        templateUrl: 'modules/quizzes/client/views/edit-quiz.client.view.html',
        data: {
          roles: ['user', 'admin']
        }<commit_msg>update with the permission of the quiz routes<commit_after>'use strict';

// Setting up route
angular.module('quizzes').config(['$stateProvider',
  function ($stateProvider) {
    // Quizzes state routing
    $stateProvider
      .state('quizzes', {
        abstract: true,
        url: '/quizzes',
        template: '<ui-view/>'
      })
      .state('quizzes.list', {
        url: '',
        templateUrl: 'modules/quizzes/client/views/list-quizzes.client.view.html',
        data: {
          roles: ['professor', 'admin','user']
        }
      })
      .state('quizzes.create', {
        url: '/create',
        templateUrl: 'modules/quizzes/client/views/create-quiz.client.view.html',
        data: {
          roles: ['professor', 'admin']
        }
      })
      .state('quizzes.view', {
        url: '/:quizId',
        templateUrl: 'modules/quizzes/client/views/view-quiz.client.view.html',
        data: {
          roles: ['professor', 'admin','user']
        }
      })
      .state('quizzes.edit', {
        url: '/:quizId/edit',
        templateUrl: 'modules/quizzes/client/views/edit-quiz.client.view.html',
        data: {
          roles: ['professor', 'admin']
        }
{'fraction_non_alphanumeric': 0.17168949771689498, 'fraction_numerical': 0.0, 'mean_word_length': 2.0686274509803924, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4643381', 'n_tokens_mistral': 713, 'n_tokens_neox': 710, 'n_words': 107}